/* ==========================================================================
   Maximilian Alp Grüder — Minimalist Personal Page
   Cross-platform Compatibility: Windows, macOS, Linux, iOS, Android
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #FFFFFF;
  background-color: #0B0F19 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: #0B0F19 !important;
}

/* --------------------------------------------------------------------------
   Fixed Fullscreen Background Layer with Rich Warm Orange Ambient Atmosphere
   -------------------------------------------------------------------------- */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #0B0F19;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.38) 0%, rgba(234, 88, 12, 0.22) 40%, transparent 68%),
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.22) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(11, 15, 25, 0.35) 0%, rgba(194, 65, 12, 0.16) 50%, rgba(11, 15, 25, 0.8) 100%),
    url('/assets/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top Centered Navigation Capsule
   -------------------------------------------------------------------------- */
.top-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 2.2rem;
  padding-bottom: 1rem;
}

.top-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0.55rem 1.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.top-nav .nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 180ms ease;
  letter-spacing: -0.01em;
}

.top-nav .nav-link:hover {
  color: #FFFFFF;
}

.top-nav .nav-link.active {
  color: #F97316;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Centered Main Card
   -------------------------------------------------------------------------- */
.center-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 4rem 1.5rem;
}

.profile-card {
  width: 100%;
  max-width: 820px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 26px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 50px -5px rgba(249, 115, 22, 0.22);
  animation: cardFadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enlarged Welcome Headline */
.hero-name {
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.greeting-word {
  display: inline-block;
  transition: opacity 220ms ease, transform 220ms ease;
}

.greeting-word.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.greeting-wave {
  display: inline-block;
}

/* Name on top of greeting (same size as hero-sub) */
.hero-author {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: #FB923C;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

/* Paragraph 1: Primary role */
.hero-bio {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: #FFFFFF;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.65rem;
}

/* Paragraph 2: Interests & focus */
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.3rem;
}

/* Social Icons */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 180ms ease, transform 180ms ease;
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon-link svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block;
  flex-shrink: 0;
}

.social-icon-link:hover {
  color: #F97316;
  transform: translateY(-2px) scale(1.12);
}

/* CTA Buttons */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.8rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block;
  flex-shrink: 0;
}

/* Resume Pill: Orange Border */
.btn-resume {
  border: 1.5px solid #F97316;
  color: #FFFFFF;
  background: rgba(249, 115, 22, 0.12);
}

.btn-resume:hover {
  background: #F97316;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* Contact Pill: White/Translucent Border */
.btn-contact {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.btn-contact:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .top-nav {
    padding-top: 1.5rem;
  }

  .top-nav nav {
    gap: 1.2rem;
    padding: 0.45rem 1.25rem;
  }

  .profile-card {
    padding: 2.8rem 1.5rem;
    border-radius: 20px;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .cta-row .btn {
    width: 100%;
    max-width: 280px;
  }
}
