/* ============================================================
   WILLIAM HUNT PORTFOLIO
   A computer scientist's portfolio, built like a computer scientist would.

   Color System:
     Navy:  #1B2A4A
     Teal:  #2A9D8F
     Coral: #E76F51
     White: #FFFFFF
     Light Gray: #F0F4F8

   Typography:
     Headers: Playfair Display
     Body:    Inter
     Code:    JetBrains Mono
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Theme System)
   ============================================================ */
:root {
    /* Colors */
    --navy:       #1B2A4A;
    --navy-light: #243658;
    --navy-dark:  #111D33;
    --teal:       #2A9D8F;
    --teal-light: #3AB8A8;
    --teal-dark:  #1F7A6F;
    --coral:      #E76F51;
    --coral-light:#EF8B72;
    --coral-dark: #D4573A;
    --white:      #FFFFFF;
    --light-gray: #F0F4F8;
    --mid-gray:   #CBD5E1;
    --text-gray:  #64748B;
    --dark-gray:  #334155;

    /* Theme-aware tokens */
    --bg-primary:    var(--white);
    --bg-secondary:  var(--light-gray);
    --bg-card:       var(--white);
    --text-primary:  var(--navy);
    --text-secondary: var(--dark-gray);
    --text-muted:    var(--text-gray);
    --border-color:  #E2E8F0;
    --shadow-sm:     0 1px 3px rgba(27, 42, 74, 0.08);
    --shadow-md:     0 4px 12px rgba(27, 42, 74, 0.1);
    --shadow-lg:     0 12px 40px rgba(27, 42, 74, 0.12);
    --shadow-xl:     0 20px 60px rgba(27, 42, 74, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* Sizing */
    --nav-height: 72px;
    --container-max: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --bg-primary:    #0F172A;
    --bg-secondary:  #1E293B;
    --bg-card:       #1E293B;
    --text-primary:  #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted:    #94A3B8;
    --border-color:  #334155;
    --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl:     0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-light);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--teal);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.15s; }
.fade-in--delay-2 { transition-delay: 0.3s; }
.fade-in--delay-3 { transition-delay: 0.45s; }

/* Section defaults */
.section {
    padding: var(--section-padding) 0;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn--primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 157, 143, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    text-decoration: none;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition-base);
}

.nav.scrolled .nav__logo-text {
    color: var(--text-primary);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav.scrolled .nav__link {
    color: var(--text-secondary);
}

.nav.scrolled .nav__link:hover {
    color: var(--teal);
    background: var(--bg-secondary);
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all var(--transition-fast);
}

.nav.scrolled .dark-mode-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(15deg);
}

.nav.scrolled .dark-mode-toggle:hover {
    background: var(--border-color);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav.scrolled .nav__toggle-bar {
    background: var(--text-primary);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--navy);
    overflow: hidden;
    padding: 100px 0 40px;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(42, 157, 143, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(231, 111, 81, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(42, 157, 143, 0.08) 0%, transparent 60%);
    animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(42, 157, 143, 0.4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--teal-light);
    font-weight: 300;
    min-height: 2.4em;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.hero__typewriter {
    /* Filled dynamically by JS */
}

.hero__cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--teal);
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 40px;
    font-family: var(--font-display);
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__headshot {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.hero__photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--teal);
    box-shadow: 0 0 30px rgba(42, 157, 143, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero__initials {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.hero__links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero__icon-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    padding: 8px;
    border-radius: 50%;
}

.hero__icon-link:hover {
    color: var(--teal-light);
    transform: translateY(-3px);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background: var(--bg-secondary);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.about__text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about__text p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--teal);
    font-weight: 700;
}

.about__fun-facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fun-fact {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fun-fact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.fun-fact__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.fun-fact strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.fun-fact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   BY THE NUMBERS
   ============================================================ */
.numbers {
    background: var(--bg-primary);
}

.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.number-card {
    text-align: center;
    padding: 28px 16px 20px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.number-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    width: 0;
    transition: width 1.2s ease-out;
}

.number-card:hover::after {
    width: 100%;
}

.number-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.number-card small {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 2px;
}

.number-card__stat-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
}

.number-card__prefix,
.number-card__suffix {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    flex-shrink: 0;
}

.number-card__value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    flex-shrink: 0;
}

.number-card__label {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================================
   DIFFERENTIATOR
   ============================================================ */
.differentiator {
    background: var(--bg-secondary);
}

.diff__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.diff__vs {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral);
    align-self: center;
    padding-top: 60px;
}

.diff__col {
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.diff__col:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.diff__col--traditional {
    background: var(--bg-card);
}

.diff__col--william {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-color: transparent;
}

.diff__col--william .diff__heading {
    color: var(--teal-light);
}

.diff__col--william .diff__list li span:last-child {
    color: rgba(255, 255, 255, 0.9);
}

.diff__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.diff__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diff__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.diff__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section {
    background: var(--bg-primary);
    padding-bottom: 80px;
}

.timeline__wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--border-color);
}

.timeline__wrapper::-webkit-scrollbar {
    height: 6px;
}

.timeline__wrapper::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.timeline__wrapper::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 3px;
}

.timeline__track {
    display: flex;
    gap: 0;
    position: relative;
    padding: 0 60px;
    min-width: max-content;
}

.timeline__track::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--border-color);
}

.timeline__node {
    position: relative;
    padding: 0 16px;
    min-width: 180px;
    cursor: pointer;
}

.timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--teal);
    margin: 28px auto 12px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline__dot--highlight {
    background: var(--coral);
    box-shadow: 0 0 0 2px var(--coral), 0 0 20px rgba(231, 111, 81, 0.4);
}

.timeline__node:hover .timeline__dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 2px var(--teal), 0 0 16px rgba(42, 157, 143, 0.4);
}

.timeline__year {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 12px;
}

.timeline__card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    max-width: 220px;
}

.timeline__card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.timeline__org {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.timeline__details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.timeline__node.active .timeline__details {
    max-height: 400px;
    opacity: 1;
}

.timeline__node.active .timeline__card {
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
    background: var(--bg-secondary);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-card__body {
    padding: 24px;
}

.project-card__tag {
    display: inline-block;
    background: rgba(42, 157, 143, 0.1);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.project-card__org {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 12px;
}

.project-card__body > p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   PROJECT MOCKUPS (CSS-only browser screenshots)
   ============================================================ */
.project-card__mockup {
    border-bottom: 1px solid var(--border-color);
}

.mockup__browser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mockup__browser--dark {
    background: #1a1a2e;
    border-bottom-color: #333;
}

.mockup__dots {
    display: flex;
    gap: 6px;
}

.mockup__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup__dots span:nth-child(1) { background: #FF5F57; }
.mockup__dots span:nth-child(2) { background: #FFBD2E; }
.mockup__dots span:nth-child(3) { background: #28CA41; }

.mockup__url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup__browser--dark .mockup__url {
    background: #0d0d1a;
    color: #666;
}

.mockup__content {
    padding: 20px;
    min-height: 200px;
}

/* Analytics Mockup */
.mockup__content--analytics {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

[data-theme="dark"] .mockup__content--analytics {
    background: linear-gradient(180deg, #1a2332 0%, #1E293B 100%);
}

.mockup__chart-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.mockup__chart-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.mockup__bar-chart {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 100px;
    flex: 1;
}

.mockup__bar {
    flex: 1;
    background: var(--teal);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.mockup__bar--highlight {
    background: var(--coral);
    opacity: 1;
}

.mockup__stat-card {
    background: var(--teal);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
}

.mockup__stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.mockup__stat-label {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup__data-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup__data-row {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
}

.mockup__data-row:nth-child(2) { width: 80%; }
.mockup__data-row:nth-child(3) { width: 60%; }

/* Gov Mockup */
.mockup__content--gov {
    background: linear-gradient(180deg, #1B2A4A 0%, #243658 100%);
    text-align: center;
    color: white;
}

.mockup__gov-seal {
    font-size: 2rem;
    margin-bottom: 8px;
}

.mockup__gov-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mockup__gov-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 16px;
}

.mockup__gov-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mockup__donut {
    width: 90px;
    height: 90px;
}

.mockup__donut svg {
    width: 100%;
    height: 100%;
}

.mockup__gov-stats {
    text-align: left;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup__gov-stats strong {
    color: var(--teal-light);
}

/* SaaS Mockup */
.mockup__content--saas {
    background: linear-gradient(180deg, #f0f9f7 0%, #fff 100%);
    padding: 0;
}

[data-theme="dark"] .mockup__content--saas {
    background: linear-gradient(180deg, #162028 0%, #1E293B 100%);
}

.mockup__saas-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mockup__saas-logo {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--teal);
}

.mockup__saas-links {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mockup__saas-hero {
    padding: 24px 20px;
    text-align: center;
}

.mockup__saas-headline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.mockup__saas-btn {
    display: inline-block;
    background: var(--teal);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
}

.mockup__saas-cards {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
}

.mockup__saas-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.mockup__saas-card-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Terminal Mockup */
.mockup__content--terminal {
    background: #0d0d1a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 20px;
}

.mockup__code {
    margin-bottom: 16px;
}

.code-comment { color: #6A7A8B; }
.code-keyword { color: #C678DD; }
.code-class { color: #E5C07B; }
.code-type { color: #61AFEF; }
.code-fn { color: #98C379; }
.code-prompt { color: var(--teal); }
.code-cmd { color: #ABB2BF; }

.mockup__terminal-prompt {
    border-top: 1px solid #333;
    padding-top: 12px;
}

/* API Mockup */
.mockup__content--api {
    background: #1E1E2E;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    padding: 20px;
}

.json-brace { color: #ABB2BF; }
.json-key { color: #E06C75; }
.json-string { color: #98C379; }
.json-num { color: #D19A66; }

/* Clients Mockup */
.mockup__content--clients {
    background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

[data-theme="dark"] .mockup__content--clients {
    background: linear-gradient(135deg, #1a2332 0%, #1E293B 100%);
}

.mockup__client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.mockup__client-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.mockup__client-box strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mockup__client-box small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mockup__client-box--accent {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-color: transparent;
}

.mockup__client-box--accent strong,
.mockup__client-box--accent small {
    color: white;
}

.mockup__client-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
    background: var(--bg-primary);
}

/* Radar Chart */
.skills__radar {
    max-width: 400px;
    margin: 0 auto 60px;
}

.radar {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.radar__bg {
    position: absolute;
    inset: 10%;
}

.radar__ring {
    position: absolute;
    width: var(--size);
    height: var(--size);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.radar__axes {
    position: absolute;
    inset: 0;
}

.radar__axis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 1px;
    background: var(--border-color);
    transform-origin: left center;
    transform: rotate(var(--angle));
}

.radar__axis span {
    position: absolute;
    right: -10px;
    top: -22px;
    transform: rotate(calc(-1 * var(--angle)));
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.radar__shape {
    position: absolute;
    inset: 10%;
}

.radar__polygon {
    fill: rgba(42, 157, 143, 0.2);
    stroke: var(--teal);
    stroke-width: 2;
    transition: all var(--transition-slow);
}

.radar__shape:hover .radar__polygon {
    fill: rgba(42, 157, 143, 0.3);
    stroke-width: 3;
}

/* Skill Categories */
.skills__categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skills__cat-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.skills__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(27, 42, 74, 0.08);
    color: var(--navy);
    border: 1px solid rgba(27, 42, 74, 0.12);
    transition: all var(--transition-fast);
}

[data-theme="dark"] .pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pill--teal {
    background: rgba(42, 157, 143, 0.1);
    color: var(--teal-dark);
    border-color: rgba(42, 157, 143, 0.2);
}

[data-theme="dark"] .pill--teal {
    color: var(--teal-light);
}

.pill--coral {
    background: rgba(231, 111, 81, 0.1);
    color: var(--coral-dark);
    border-color: rgba(231, 111, 81, 0.2);
}

[data-theme="dark"] .pill--coral {
    color: var(--coral-light);
}

.pill--navy {
    background: rgba(27, 42, 74, 0.1);
    color: var(--navy);
    border-color: rgba(27, 42, 74, 0.15);
}

[data-theme="dark"] .pill--navy {
    background: rgba(42, 157, 143, 0.08);
    color: var(--teal-light);
    border-color: rgba(42, 157, 143, 0.15);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education {
    background: var(--bg-secondary);
}

.education__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.edu-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.edu-card:hover {
    transform: translateY(-4px);
}

.edu-card__accent {
    height: 6px;
}

.edu-card--uk .edu-card__accent { background: #0033A0; }
.edu-card--jhu .edu-card__accent { background: #002D72; }

.edu-card__body {
    padding: 32px;
}

.edu-card__degree {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-card__school {
    font-size: 1.1rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-card__year {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.edu-card__details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edu-card__details li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.edu-card__details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.5;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs {
    background: var(--bg-primary);
}

.clearances {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.clearance-badge {
    padding: 20px 32px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.clearance-badge:hover {
    transform: translateY(-3px);
}

.clearance-badge--active {
    border-color: var(--teal);
    box-shadow: 0 0 20px rgba(42, 157, 143, 0.15);
}

.clearance-badge__status {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.clearance-badge--active .clearance-badge__status {
    color: var(--teal);
}

.clearance-badge__level {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Marquee */
.certs__marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.certs__track {
    display: flex;
    gap: 16px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.certs__track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-badge {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    background: var(--navy);
    color: white;
}

.testimonials .section__title {
    color: white;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial {
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--teal);
}

.testimonial__text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial__cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--teal-light);
    font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: var(--bg-secondary);
}

.contact__intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -20px auto 48px;
    font-family: var(--font-display);
    font-style: italic;
    line-height: 1.7;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
}

.contact__item svg {
    flex-shrink: 0;
    color: var(--teal);
}

.contact__item a {
    color: var(--text-primary);
    font-weight: 500;
}

.contact__item a:hover {
    color: var(--teal);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
}

.footer__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.footer__copyright {
    font-size: 0.8rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal-dark);
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .numbers__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .diff__vs {
        text-align: center;
        padding-top: 0;
    }

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

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

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 64px;
    }

    /* Mobile nav */
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 24px;
        transition: right var(--transition-base);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__link {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1rem;
        padding: 12px 16px;
        display: block;
    }

    .nav.scrolled .nav__link {
        color: rgba(255, 255, 255, 0.8);
    }

    .nav.scrolled .nav__link:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
    }

    .dark-mode-toggle {
        margin-top: 16px;
    }

    /* Hero */
    .hero__name {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero__avatar {
        width: 110px;
        height: 110px;
    }

    .hero__initials {
        font-size: 2.5rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

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

    /* Numbers */
    .numbers__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .number-card {
        padding: 24px 12px;
    }

    .number-card__value {
        font-size: 2.2rem;
    }

    .number-card__prefix,
    .number-card__suffix {
        font-size: 1.8rem;
    }

    /* Timeline */
    .timeline__node {
        min-width: 160px;
    }

    /* Clearances */
    .clearances {
        flex-direction: column;
        align-items: center;
    }

    .clearance-badge {
        width: 100%;
        max-width: 300px;
    }

    /* Skills radar */
    .skills__radar {
        max-width: 280px;
    }

    .radar__axis span {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .numbers__grid {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .hero__tagline {
        font-size: 0.95rem;
    }

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

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .nav,
    .back-to-top,
    .hero__particles,
    .dark-mode-toggle,
    .hero__scroll-hint {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}
