:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --navy: #0f2044;
  --navy-deep: #0a1628;
  --navy-light: #1a3560;
  --text: #1e293b;
  --muted: #64748b;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(16px);
  padding: 14px 60px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.nav-logo:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.nav-links { display: flex; align-items: center; gap: 40px; }

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,53,96,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0a1628 0%, #0f2044 60%, #0a1628 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.85;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── SECTIONS ── */
.section { padding: 110px 60px; }
.section.alt { background: var(--bg-alt); }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.1;
}

.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.85;
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  border-radius: 2px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.highlight-card:hover {
  box-shadow: 0 4px 20px rgba(15,32,68,0.08);
  transform: translateX(4px);
}

.highlight-icon {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}

.highlight-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── EXPERTISE ── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.expertise-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.expertise-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-group li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.expertise-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 1px;
  background: var(--gold);
}

/* ── PROJECTS ── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(15,32,68,0.1);
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.3);
}

.card-muted { opacity: 0.6; }
.card-muted:hover { opacity: 0.8; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 4px 10px;
  border-radius: 3px;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.card:hover .card-arrow {
  color: var(--navy);
  transform: translate(2px, -2px);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card-tech {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* ── CONTACT ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s;
}

.contact-link:first-child { border-top: 1px solid var(--border); }

.contact-link:hover { padding-left: 8px; }

.contact-link-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  width: 64px;
  flex-shrink: 0;
}

.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  flex: 1;
}

.contact-link-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.contact-link:hover .contact-link-arrow {
  color: var(--navy);
  transform: translate(2px, -2px);
}

/* ── FOOTER ── */
footer {
  padding: 28px 60px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-logo {
  font-weight: 600;
  color: var(--navy);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-layout,
  .expertise-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.2rem;
    padding: 20px;
    letter-spacing: 0.15em;
  }

  .nav-toggle { display: flex; z-index: 300; }

  .hero { padding: 100px 24px 60px; min-height: 100svh; }

  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.5rem; }

  .hero-scroll { display: none; }

  .section { padding: 70px 24px; }

  .expertise-grid { grid-template-columns: 1fr; gap: 32px; }

  footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
