﻿/* Color + typography system */
:root {
    --navy: #0b1d3a;
    --navy-80: rgba(11, 29, 58, 0.9);
    --blue: #3b82f6;
    --blue-soft: #e1ebff;
    --blue-mid: #2563eb;
    --white: #ffffff;
    --muted: #a2d8cb;
    --text-dark: #0b1d3a;
    --muted-dark: #4b5563;
    --surface-light: #f5f7fb;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.02);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    --font-title: "Playfair Display", "Times New Roman", serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
      margin: 0;
      font-family: var(--font-body);
      background: linear-gradient(180deg, #081229 0%, #0b1d3a 35%, #0f284d 100%);
      color: var(--white);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      zoom: 0.93;
  }
  @media (max-width: 900px) { body { zoom: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section {
    padding: 96px clamp(20px, 4vw, 80px);
    position: relative;
    overflow: hidden;
}

.section-header {
    max-width: 720px;
    margin-bottom: 48px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-title);
    color: var(--white);
    margin: 8px 0;
}

p { color: #d5deec; margin: 0 0 12px; }

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn.primary {
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.28);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(59, 130, 246, 0.36); }
.btn.ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(20px, 4vw, 80px);
    background: var(--white);
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(11, 29, 58, 0.08);
}
.navbar.scrolled {
    padding: 12px clamp(20px, 4vw, 80px);
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.nav-logo { display: flex; align-items: center; }
.logo-banner {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.navbar.scrolled .logo-banner { height: 44px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
    color: #0f284d;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: #0f284d; }
.nav-link.active { border-color: var(--blue); color: #0f284d; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--blue-mid);
    transition: all 0.2s ease;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 48px;
    min-height: 90vh;
    padding-top: 32px;
}
.hero-content { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); }
.hero h2 { font-family: var(--font-body); font-weight: 500; color: var(--muted); margin-top: 4px; }
.tagline { max-width: 560px; font-size: 18px; color: #dbe5ff; }
.hero-ctas { display: flex; gap: 12px; margin: 20px 0 28px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.metric-card {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #e6edff;
}
.hero-visual { display: flex; justify-content: center; }
.portrait-stack { display: flex; align-items: center; gap: 12px; }
.portrait-thumbs { display: flex; flex-direction: column; gap: 12px; }
.portrait-frame {
    width: min(420px, 90vw);
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: float 7s ease-in-out infinite;
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: saturate(1.05);
}
.portrait-frame.thumb {
    width: 148px;
    padding: 8px;
    border-radius: 20px;
    animation-duration: 6s;
}
.portrait-frame.thumb img { border-radius: 14px; object-position: center; }
.portrait-thumbs .portrait-frame:nth-child(2) { animation-delay: 0.9s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Collabs */
.collabs { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.logo-marquee { position: relative; overflow: hidden; padding: 6px 0; }
.logo-marquee::before,
.logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, var(--navy) 0%, rgba(11, 29, 58, 0) 100%);
    z-index: 1;
}
.logo-marquee::after { right: 0; transform: scaleX(-1); }
.logo-marquee::before { left: 0; }
.marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee 20s linear infinite;
}
.logo-card {
    padding: 18px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Work */
.work-carousel {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
}
.work-track {
    display: flex;
    gap: 18px;
    transition: transform 0.35s ease;
}
.work-track .card {
    flex: 0 0 calc((100% - 36px) / 3);
    max-width: 360px;
}
.work-arrow {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    z-index: 1;
}
.work-arrow.prev { left: 10px; }
.work-arrow.next { right: 10px; }
.work-arrow:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.18);
}
.work-arrow svg { width: 18px; height: 18px; }

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28); border-color: rgba(59, 130, 246, 0.35); }
.card-top { margin-bottom: 10px; }
.subtitle { color: var(--muted); margin: 4px 0 8px; font-weight: 500; }
.results { padding-left: 16px; color: #d5deec; }
.results li { margin-bottom: 6px; }

.case-study {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
}
.case-image img { border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.case-points h5 { margin: 6px 0; font-family: var(--font-body); letter-spacing: 0.01em; }
.case-points p { margin-bottom: 10px; }
.inline-link { color: #9bc2ff; border-bottom: 1px solid rgba(155, 194, 255, 0.5); font-weight: 600; }
.inline-link:hover { color: #c4d8ff; }

/* Expertise */
.expertise {
    background: var(--white);
    color: var(--text-dark);
}
.expertise h1,
.expertise h2,
.expertise h3,
.expertise h4,
.expertise h5 { color: var(--text-dark); }
.expertise p { color: var(--muted-dark); }
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.expertise .card {
    background: var(--surface-light);
    border: 1px solid rgba(11, 29, 58, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Biography */
.biography {
    background: var(--white);
    color: var(--text-dark);
}
.biography h1,
.biography h2,
.biography h3,
.biography h4,
.biography h5 { color: var(--text-dark); }
.biography p { color: var(--muted-dark); }
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    font-weight: 700;
    color: #e8edff;
}
.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(160deg, rgba(59,130,246,0.15), rgba(255,255,255,0.04));
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}
.social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}
.social-label { letter-spacing: 0.02em; font-size: 13px; }
.social-icon.linkedin { background: #0a66c2; color: #ffffff; }
.social-icon.x { background: #0f172a; color: #ffffff; }
.social-icon.facebook { background: #1877f2; color: #ffffff; }
.social-icon.instagram {
    background: radial-gradient(circle at 30% 30%, #ffdc80, #f77737 35%, #c13584 65%, #5851db);
    color: #ffffff;
}
.social-icon.github { background: #111826; color: #f6f8fa; }
.social-icon.linktree { background: #39e09b; color: #013220; }
.social {
    padding-top: 24px;
    padding-bottom: 24px;
}
.social .section-header {
    margin-bottom: 24px;
}
.bio-timeline {
    border-left: 1px solid rgba(11, 29, 58, 0.12);
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.bio-timeline h5 {
    font-size: 18px;
}
.timeline-item { display: flex; gap: 14px; color: var(--text-dark); }
.year {
    color: var(--blue-mid);
    font-weight: 700;
    min-width: 48px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.quote { font-style: italic; color: #e9efff; }
.person { color: var(--muted); font-weight: 600; }

/* Contact */
.contact {
    background: var(--white);
    color: var(--text-dark);
}
.contact h1,
.contact h2,
.contact h3,
.contact h4,
.contact h5 { color: var(--text-dark); }
.contact p { color: var(--muted-dark); }
.contact-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: start;
}
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.contact-links a { color: var(--blue-mid); font-weight: 600; }
  .contact-form {
      display: grid;
      gap: 12px;
      background: var(--surface-light);
      border: 1px solid rgba(11, 29, 58, 0.12);
      border-radius: 16px;
      padding: 18px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }
  .contact-form iframe { width: 100%; min-height: 520px; border: 0; border-radius: 12px; }
  .contact-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-dark); font-weight: 600; }
  .contact-form input,
.contact-form textarea {
    background: var(--white);
    border: 1px solid rgba(11, 29, 58, 0.16);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-dark);
    font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 1px solid var(--blue); }

/* Footer */
.footer {
    padding: 32px clamp(20px, 4vw, 80px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: rgba(11, 29, 58, 0.85);
    backdrop-filter: blur(12px);
}
.footer,
.footer a {
    color: rgba(255, 255, 255, 0.88);
}
.footer p { margin: 2px 0; color: #d8e1ff; }
.footer-left {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    text-align: right;
    flex: 1;
}
.logo-text { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-social-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9bc2ff;
}
.footer-social-icons { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--white);
}
.footer-icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer-icon img { width: 18px; height: 18px; object-fit: contain; display: block; }

.footer-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive nav */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-visual { order: -1; }
    .logo-banner { height: 40px; }
    .nav-links {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 14px 20px 20px;
        gap: 14px;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .nav-links .nav-link { padding: 10px 4px; color: var(--blue-mid); }
    .work-track .card { flex: 0 0 calc((100% - 18px) / 2); max-width: 100%; }
}

@media (max-width: 640px) {
    .section { padding: 72px 18px; }
    .hero { padding-top: 28px; gap: 32px; }
    .hero h1 { font-size: clamp(32px, 10vw, 44px); }
    .tagline { font-size: 16px; }
    .portrait-stack { gap: 10px; }
    .portrait-frame.thumb { width: 128px; }
    .navbar { padding: 16px 18px; }
    .navbar.scrolled { padding: 12px 18px; }
    .work-track .card { flex: 0 0 100%; }
    .work-arrow.prev { left: 6px; }
    .work-arrow.next { right: 6px; }
    .contact-inner { grid-template-columns: 1fr; }
    .contact-form iframe { min-height: 460px; }
}

