/* ============================
   CUSTOM PROPERTIES
   ============================ */

:root {
  --color-navy: #0a1628;
  --color-navy-dark: #060d18;
  --color-black: #0d0d0d;
  --color-gold: #c9a84c;
  --color-gold-dim: rgba(201, 168, 76, 0.6);
  --color-white: #ffffff;
  --color-sparkle: #7ec8e3;
  --color-text: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
  --section-padding: clamp(5rem, 12vw, 9rem);
  --content-width: 1200px;
}

/* ============================
   RESET / BASE
   ============================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-navy);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--color-white);
}

/* ============================
   TYPOGRAPHY
   ============================ */

h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ============================
   LAYOUT UTILITIES
   ============================ */

.experience__inner,
.services__grid,
.contact__grid,
.careers__content,
.about__timeline,
.footer__content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================
   CUSTOM CURSOR
   ============================ */

.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, input, select, textarea, .services__card {
    cursor: none;
  }

  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
  }

  .cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--color-white);
  }

  .cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--color-gold);
  }
}

/* ============================
   NAVIGATION
   ============================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(201, 168, 76, 0.12);
}

.nav__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-link {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__links a:hover {
  color: var(--color-white);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.is-active span:nth-child(1) {
  animation: hamburger-line1 0.4s forwards;
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  animation: hamburger-line3 0.4s forwards;
}

.nav__hamburger:not(.is-active) span:nth-child(1) {
  animation: hamburger-line1-reverse 0.4s forwards;
}

.nav__hamburger:not(.is-active) span:nth-child(3) {
  animation: hamburger-line3-reverse 0.4s forwards;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav__links a {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav__links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(5) a { transition-delay: 0.3s; }

.mobile-nav__links a:hover {
  color: var(--color-gold);
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-navy);
}

.hero__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(10, 22, 40, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(126, 200, 227, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
  z-index: 1;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__logo {
  max-width: min(480px, 80vw);
  margin: 0 auto;
  opacity: 0;
  animation: logo-entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
             glow-pulse 3s ease-in-out 1.8s infinite alternate;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
  transform: scaleX(0);
  animation: gold-line-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: text-reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

.hero__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  transition: all 0.4s ease;
  opacity: 0;
  animation: text-reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

.hero__cta:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 0.8s ease 2.8s forwards;
  transition: opacity 0.4s ease;
}

.hero__scroll-indicator svg {
  display: block;
  margin: 0.5rem auto 0;
  animation: bounce-scroll 2s ease-in-out infinite;
}

/* ============================
   EXPERIENCE
   ============================ */

.experience {
  padding: var(--section-padding) 0;
  background: var(--color-navy);
  position: relative;
}

.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(6, 13, 24, 0.8), transparent);
  pointer-events: none;
}

.experience__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.experience__text {
  max-width: 500px;
}

.experience__body {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.experience__sub {
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.8;
}

.experience__image-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.experience__image {
  width: 100%;
  display: block;
  transition: transform 0.1s linear;
}

.experience__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(10, 22, 40, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================
   SERVICES
   ============================ */

.services {
  padding: var(--section-padding) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 70%),
    var(--color-navy);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--content-width);
  margin: 2rem auto 0;
}

.services__card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.5s ease;
}

.services__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.2);
}

.services__card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(201, 168, 76, 0.06),
    transparent
  );
  pointer-events: none;
}

.services__card:hover .services__card-glow {
  opacity: 1;
}

.services__card-icon {
  width: 56px;
  height: 56px;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite alternate;
}

.services__card-icon svg {
  width: 100%;
  height: 100%;
}

.services__card h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.services__card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.services__features {
  margin-bottom: 2rem;
}

.services__features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
  font-size: 0.95rem;
}

.services__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
}

.services__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: gap 0.3s ease;
}

.services__card-link:hover {
  gap: 0.8rem;
}

/* ============================
   CONTACT
   ============================ */

.contact {
  padding: var(--section-padding) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(126, 200, 227, 0.03) 0%, transparent 70%),
    var(--color-navy);
}

.contact__intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.contact__info-item a,
.contact__info-item span {
  font-size: 1.1rem;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.contact__info-item a:hover {
  color: var(--color-gold);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-white);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.45)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.contact__form select option {
  background: var(--color-navy);
  color: var(--color-white);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.08);
}

.contact__form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form button {
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  background: transparent;
  transition: all 0.4s ease;
  align-self: flex-start;
}

.contact__form button:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

.contact__success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.contact__success.is-visible {
  display: block;
  animation: success-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact__success-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.contact__success-icon svg {
  margin: 0 auto;
}

.contact__success h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.contact__success p {
  color: var(--color-text-muted);
}

/* ============================
   CAREERS
   ============================ */

.careers {
  padding: var(--section-padding) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 70%),
    var(--color-navy);
  position: relative;
}

.careers__intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.careers__content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.careers__portrait-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 168, 76, 0.06);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.careers__portrait-wrapper:hover {
  border-color: var(--color-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.12);
}

.careers__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers__details {
  text-align: center;
}

.careers__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.careers__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.careers__cta:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
  gap: 0.8rem;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--color-navy-dark);
  padding: 3rem 0;
  text-align: center;
}

.footer__logo-wrapper {
  position: relative;
  display: inline-block;
}

.footer__logo {
  max-width: 180px;
  margin: 0 auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer__logo-wrapper:hover .footer__logo {
  opacity: 1;
}

.footer__easter-egg {
  position: absolute;
  top: 0;
  left: 50%;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(0);
}

.footer__logo-wrapper:hover .footer__easter-egg {
  animation: easter-egg-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.3;
  margin: 1.5rem auto;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================
   RESPONSIVE — TABLET
   ============================ */

@media (min-width: 768px) {
  .experience__inner {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }

  .contact__info {
    justify-content: center;
  }
}

/* ============================
   RESPONSIVE — DESKTOP
   ============================ */

@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .experience__inner {
    gap: 5rem;
  }

  .services__grid {
    gap: 2.5rem;
  }
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */

@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .contact__form button {
    width: 100%;
  }
}
