/* ==========================================================================
   DESIGN TOKENS — Exact values from reference geometry
   ========================================================================== */
@font-face {
    font-family: 'Apfel Grotezk';
    src: url('https://db.onlinewebfonts.com/t/7a44ce607e2c764b7b1ce45e3d117d3b.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apfel Grotezk';
    src: url('https://db.onlinewebfonts.com/t/116da74f316034943e88a3c27fc5243f.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --bg: #0F0F0F;
    --accent: #00DE51;
    --accent-glow: rgba(0, 222, 81, 0.3);
    --accent-dim: rgba(0, 222, 81, 0.15);
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.56);
    --text-muted: rgba(255, 255, 255, 0.72);
    --border: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);

    /* Layout */
    --sidebar-width: 480px;
    --sidebar-inset: 48px;
    --content-width: 752px;
    --nav-width: 40px;
    --edge-padding: 48px;
    --section-padding: 72px;

    /* Typography */
    --font-heading: 'Apfel Grotezk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radius */
    --radius-card: 20px;
    --radius-pill: 999px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Transitions */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.6s;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Custom cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    transform: scale(2.5);
    background: rgba(0, 222, 81, 0.15);
    border-color: transparent;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.08s ease;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease-default);
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-counter {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -2px;
}

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */
.h1-hero,
.hero-headline {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 500;
    line-height: 64px;
    letter-spacing: -1.2px;
}

.h4-section,
.about-heading,
.edu-heading,
.contact-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -0.8px;
}

.h5-sub {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.64px;
}

.h6-small {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

/* Section tag labels */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 32px;
}

.section-tag svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

/* ==========================================================================
   LAYOUT — 3-column fixed grid
   ========================================================================== */
.layout {
    display: flex;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.layout.loaded {
    opacity: 1;
}

/* --- SIDEBAR (Left fixed profile card) --- */
.sidebar {
    position: fixed;
    left: var(--sidebar-inset);
    top: 32px;
    bottom: 32px;
    width: var(--sidebar-width);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Card header — logo + social icons */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 0 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.card-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-out-back);
}

.card-logo:hover {
    transform: rotate(-10deg) scale(1.05);
}

.card-logo svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.6);
}

.card-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-back);
}

.card-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.15) translateY(-2px);
}

.card-social svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
}

/* Profile image area */
.card-image {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Profile photo */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* "Available for Work" badge — rotated on left edge */
.available-badge {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--accent);
    white-space: nowrap;
    z-index: 10;
}

.available-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent-glow);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--accent-glow);
    }
}

/* Card info area (bottom) */
.card-info {
    padding: 24px 32px 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.95) 30%);
    position: relative;
    z-index: 5;
}

.card-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    line-height: 34px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text);
}

.card-name .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 28px;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.card-bio {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* CTA buttons */
.card-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-back);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 222, 81, 0.2);
}

.btn-arrow:hover {
    transform: scale(1.1) rotate(45deg);
    box-shadow: 0 0 30px rgba(0, 222, 81, 0.4);
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--bg);
    fill: none;
    stroke-width: 2;
}

.btn-primary {
    height: 40px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
    display: flex;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 222, 81, 0.2);
}

.btn-primary:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 222, 81, 0.4);
}

.btn-secondary {
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-default);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.btn-secondary svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* --- MAIN CONTENT (scrollable center) --- */
.content {
    margin-left: calc(var(--sidebar-inset) + var(--sidebar-width));
    margin-right: calc(var(--edge-padding) + var(--nav-width) + 24px);
    width: var(--content-width);
    padding-left: 80px;
    min-height: 100vh;
}

.content section {
    padding: var(--section-padding) 0;
}

/* --- FLOATING NAV (right fixed) --- */
.floating-nav {
    position: fixed;
    right: var(--edge-padding);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 100;
    width: var(--nav-width);
}

.floating-nav a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s var(--ease-out-back);
    position: relative;
}

.floating-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.floating-nav a.active {
    color: var(--accent);
}

.floating-nav a.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 222, 81, 0.1);
    animation: nav-pulse 2s ease infinite;
}

@keyframes nav-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.floating-nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Settings gear */
.settings-toggle {
    position: fixed;
    right: var(--edge-padding);
    top: var(--sidebar-inset);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 100;
    transition: all 0.5s var(--ease-out-back);
}

.settings-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.settings-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   SECTION 1: HERO / HOME
   ========================================================================== */
.hero-section {
    padding-top: var(--section-padding) !important;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Name badge at top */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-badge .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-badge-text .name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.hero-badge-text .role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Hero headline */
.hero-headline {
    color: var(--text);
    margin-bottom: 63px;
    max-width: 100%;
}

/* Split text animation */
.hero-headline .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero-headline .word .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.hero-headline.animated .word .char {
    transform: translateY(0);
    opacity: 1;
}

.hero-headline .highlight {
    display: inline;
    background: var(--accent);
    color: var(--bg);
    padding: 2px 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.hero-headline .highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Rotating award badge + green ribbon */
.hero-badge-area {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
    position: relative;
    min-height: 200px;
}

/* --- ROTATING BADGE with glass-morphism --- */
.rotating-badge {
    width: 140px;
    height: 140px;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

/* Outer glow ring */
.rotating-badge::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-glow), transparent 30%, transparent 70%, var(--accent-glow));
    animation: spin 4s linear infinite;
    opacity: 0.6;
}

/* Glass background */
.rotating-badge::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 222, 81, 0.15);
    box-shadow: 0 0 40px rgba(0, 222, 81, 0.1), inset 0 0 20px rgba(0, 222, 81, 0.05);
}

.rotating-badge .badge-text {
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
    position: relative;
    z-index: 3;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.rotating-badge .badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

/* Concentric spirals inside badge */
.badge-spiral {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: spiral-pulse 3s ease-in-out infinite;
}

.badge-spiral:nth-child(1) {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    animation-delay: 0s;
}

.badge-spiral:nth-child(2) {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    animation-delay: 0.3s;
}

.badge-spiral:nth-child(3) {
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    animation-delay: 0.6s;
}

.badge-spiral:nth-child(4) {
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    animation-delay: 0.9s;
}

@keyframes spiral-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* --- GREEN RIBBON DOODLE (exact looping knot from reference) --- */
.green-ribbon {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 200px;
    z-index: 1;
}

.green-ribbon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.green-ribbon .ribbon-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 36;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px rgba(0, 222, 81, 0.3));
}

/* Ribbon draw-in animation */
.green-ribbon .ribbon-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.green-ribbon.animated .ribbon-path {
    animation: draw-ribbon 2.5s var(--ease-out-expo) forwards;
}

@keyframes draw-ribbon {
    to {
        stroke-dashoffset: 0;
    }
}

/* Dark sections of ribbon that pass "behind" */
.green-ribbon .ribbon-shadow {
    fill: none;
    stroke: rgba(0, 80, 30, 0.7);
    stroke-width: 38;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 60px;
    margin-bottom: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    display: flex;
    align-items: baseline;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Client marquee */
.clients-section {
    margin-top: 24px;
}

.clients-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.clients-header svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

.clients-marquee-wrapper {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-marquee {
    display: flex;
    gap: 48px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.clients-marquee:hover {
    animation-play-state: paused;
}

.clients-marquee .client-name {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.clients-marquee .client-name:hover {
    color: rgba(255, 255, 255, 0.7);
}

.clients-marquee .client-name::before {
    content: '✦';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SECTION 2: ABOUT
   ========================================================================== */
.about-heading {
    color: var(--text);
    margin-bottom: 32px;
}

.about-text {
    font-size: 16px;
    line-height: 26px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Awards list */
.awards-list {
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    cursor: default;
    transition: all 0.4s var(--ease-default);
    position: relative;
}

.award-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.4s var(--ease-out-expo);
    transform-origin: top;
}

.award-item:hover::before {
    transform: scaleY(1);
}

.award-item:hover {
    padding-left: 12px;
}

.award-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--text);
}

.award-org {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.award-year {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    flex-shrink: 0;
    margin-left: 24px;
}

/* ==========================================================================
   SECTION 3: EDUCATION & EXPERIENCE
   ========================================================================== */
.edu-heading {
    margin-bottom: 48px;
}

.timeline {
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease-default);
}

.timeline-item:hover {
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.01);
}

.timeline-date {
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 2px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.timeline-description {
    font-size: 14px;
    line-height: 22px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==========================================================================
   SECTION 4: WORK HIGHLIGHTS
   ========================================================================== */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    position: relative;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
}

.project-card:hover {
    transform: scale(1.02) translateY(-4px);
}

.project-card:hover .project-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 222, 81, 0.05);
    border-color: rgba(0, 222, 81, 0.15);
}

.project-image {
    width: 100%;
    aspect-ratio: 1.639;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
}

.project-image .mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Hover overlay */
.project-image .mockup::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    letter-spacing: 0;
    transition: transform 0.4s var(--ease-out-back);
}

.project-card:hover .mockup::after {
    transform: translate(-50%, -50%) scale(1);
}

.project-image .mockup.dark-tech {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.project-image .mockup.light-commerce {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e4de 50%, #f5f5f0 100%);
    color: rgba(0, 0, 0, 0.8);
}

.project-image .mockup.dark-campaign {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.project-card-info {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.project-card-tags {
    display: flex;
    gap: 8px;
}

.project-card-tags span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-card-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   SECTION 5: SERVICES (Accordion)
   ========================================================================== */
.services-list {
    border-top: 1px solid var(--border);
}

.service-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.service-header {
    display: flex;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    gap: 24px;
    transition: all 0.4s var(--ease-default);
}

.service-header:hover {
    padding-left: 8px;
}

.service-header:hover .service-number {
    color: var(--accent);
}

.service-number {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 32px;
    transition: color 0.3s ease;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: var(--text);
    flex: 1;
}

.service-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s var(--ease-out-back);
}

.service-item.active .service-toggle {
    background: var(--accent);
    border-color: var(--accent);
}

.service-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    transition: all 0.4s var(--ease-out-back);
}

.service-item.active .service-toggle svg {
    transform: rotate(45deg);
    stroke: var(--bg);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo);
}

.service-body-inner {
    padding: 0 0 24px 56px;
}

.service-description {
    font-size: 15px;
    line-height: 24px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 520px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-tags span:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ==========================================================================
   SECTION 6: TECH STACK (Pill progress bars)
   ========================================================================== */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    position: relative;
    height: 48px;
    background: var(--card-bg);
    border-radius: var(--radius-pill);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: all 0.3s var(--ease-default);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.tech-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 222, 81, 0.15) 0%, rgba(0, 222, 81, 0.08) 100%);
    border-radius: var(--radius-pill);
    width: 0%;
    transition: width 1.2s var(--ease-out-expo);
}

.tech-name {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.tech-percent {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 7: TESTIMONIALS
   ========================================================================== */
.testimonials-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.testimonial-stat {
    display: flex;
    flex-direction: column;
}

.testimonial-stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.testimonial-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.6s var(--ease-out-expo);
}

.testimonial-slide {
    min-width: 100%;
}

.testimonial-quote-mark {
    font-family: var(--font-heading);
    font-size: 60px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.6;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.5px;
    color: var(--accent);
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.testimonial-author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.testimonial-author-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s var(--ease-out-back);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.1);
    border-color: var(--accent);
}

.carousel-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
}

.carousel-counter {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 8: CONTACT
   ========================================================================== */
.contact-intro {
    margin-bottom: 40px;
}

.contact-heading {
    margin-bottom: 16px;
}

.contact-email {
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0 12px 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.24);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-submit {
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 222, 81, 0.3);
}

.btn-submit svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.form-success {
    font-size: 14px;
    color: var(--accent);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.form-success.visible {
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: var(--section-padding) 0 48px;
    border-top: 1px solid var(--border);
}

.footer-quote {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
    max-width: 500px;
}

.footer-quote-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    user-select: none;
    margin-bottom: 32px;
    transition: -webkit-text-stroke-color 0.5s ease;
}

.footer-brand:hover {
    -webkit-text-stroke-color: rgba(0, 222, 81, 0.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.08s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.16s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.24s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.32s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.40s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(7) {
    transition-delay: 0.48s;
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   MAGNETIC HOVER ELEMENTS
   ========================================================================== */
.magnetic {
    transition: transform 0.3s var(--ease-out-expo);
}

/* ==========================================================================
   PARALLAX SECTIONS
   ========================================================================== */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ==========================================================================
   RESPONSIVE — Tablet (≤1280px)
   ========================================================================== */
@media (max-width: 1280px) {
    :root {
        --sidebar-width: 360px;
        --sidebar-inset: 32px;
        --content-width: 100%;
        --edge-padding: 32px;
    }

    .content {
        margin-left: calc(var(--sidebar-inset) + var(--sidebar-width) + 40px);
        margin-right: calc(var(--edge-padding) + var(--nav-width) + 16px);
        padding-left: 0;
        max-width: 640px;
    }

    .hero-headline {
        font-size: 48px;
        line-height: 52px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 36px;
    }

    .footer-brand {
        font-size: 64px;
    }

    .green-ribbon {
        width: 450px;
    }
}

/* ==========================================================================
   RESPONSIVE — Small Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 300px;
        --sidebar-inset: 24px;
        --edge-padding: 24px;
    }

    .content {
        margin-left: calc(var(--sidebar-inset) + var(--sidebar-width) + 30px);
        margin-right: calc(var(--edge-padding) + var(--nav-width) + 12px);
        max-width: 100%;
    }

    .hero-headline {
        font-size: 40px;
        line-height: 44px;
    }

    .card-name {
        font-size: 22px;
        line-height: 28px;
    }

    .card-bio {
        font-size: 12px;
        line-height: 18px;
    }

    .card-cta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-secondary {
        font-size: 12px;
        padding: 0 14px;
        height: 36px;
    }

    .green-ribbon {
        width: 350px;
    }

    .testimonial-quote {
        font-size: 26px;
        line-height: 34px;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --sidebar-inset: 16px;
        --edge-padding: 16px;
        --section-padding: 48px;
    }

    /* Stack layout vertically */
    .layout {
        flex-direction: column;
    }

    /* Sidebar becomes horizontal card at top */
    .sidebar {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: calc(100% - 32px);
        margin: 16px auto;
        height: auto;
        max-height: none;
    }

    .card-image {
        height: auto;
        aspect-ratio: 4 / 5;
        flex: none;
    }

    .profile-photo {
        object-position: top center;
    }

    .card-info {
        padding: 20px 24px 24px;
    }

    .card-name {
        font-size: 24px;
        line-height: 30px;
    }

    .card-bio {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .card-cta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-primary {
        font-size: 13px;
        padding: 0 18px;
        height: 38px;
    }

    .btn-secondary {
        font-size: 12px;
        padding: 0 14px;
        height: 36px;
    }

    /* Content fills full width */
    .content {
        margin-left: 0;
        margin-right: 0;
        padding: 0 var(--edge-padding);
        width: 100%;
        max-width: 100%;
    }

    /* Hide desktop-only elements */
    .floating-nav,
    .settings-toggle,
    .custom-cursor,
    .cursor-dot {
        display: none;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
    }

    .hero-headline {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.8px;
        margin-bottom: 32px;
    }

    .hero-badge-area {
        min-height: 120px;
        margin-bottom: 40px;
    }

    .rotating-badge {
        width: 90px;
        height: 90px;
    }

    .green-ribbon {
        width: 260px;
        left: 50px;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* About */
    .about-heading,
    .edu-heading,
    .contact-heading {
        font-size: 26px;
        line-height: 32px;
    }

    .about-text {
        font-size: 15px;
        line-height: 24px;
    }

    .award-title {
        font-size: 16px;
        line-height: 24px;
    }

    .award-year {
        font-size: 16px;
    }

    /* Timeline — stack date above content */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .timeline-date {
        font-size: 12px;
        color: var(--accent);
        font-weight: 500;
    }

    .timeline-title {
        font-size: 16px;
        line-height: 22px;
    }

    .timeline-description {
        font-size: 13px;
        line-height: 20px;
    }

    /* Portfolio CTA button */
    .portfolio-cta .btn-portfolio {
        padding: 16px 32px !important;
        font-size: 16px !important;
    }

    /* Services */
    .service-title {
        font-size: 18px;
        line-height: 26px;
    }

    .service-header {
        gap: 16px;
    }

    .service-body-inner {
        padding: 0 0 24px 0;
    }

    .service-description {
        font-size: 14px;
        line-height: 22px;
    }

    /* Tech Stack */
    .tech-item {
        height: 44px;
        padding: 0 16px;
    }

    .tech-name {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonials-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .testimonial-stat-value {
        font-size: 22px;
    }

    .testimonial-quote {
        font-size: 20px;
        line-height: 28px;
    }

    .testimonial-quote-mark {
        font-size: 40px;
    }

    /* Contact */
    .contact-email {
        font-size: 16px;
        word-break: break-all;
    }

    /* Footer */
    .footer-brand {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .footer-quote {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    /* Client marquee */
    .clients-marquee {
        gap: 32px;
    }
}

/* ==========================================================================
   RESPONSIVE — Small Phone (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --edge-padding: 12px;
        --section-padding: 36px;
    }

    .sidebar {
        width: calc(100% - 24px);
        max-height: none;
    }

    .card-image {
        aspect-ratio: 4 / 5;
    }

    .card-header {
        padding: 16px 16px 0 16px;
    }

    .card-info {
        padding: 16px 16px 20px;
    }

    .card-name {
        font-size: 20px;
        line-height: 26px;
    }

    .card-bio {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 12px;
    }

    .card-cta {
        gap: 8px;
    }

    .btn-arrow {
        width: 36px;
        height: 36px;
    }

    .btn-primary {
        font-size: 12px;
        padding: 0 14px;
        height: 34px;
    }

    .btn-secondary {
        font-size: 11px;
        padding: 0 10px;
        height: 34px;
    }

    .hero-headline {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    .hero-headline .highlight {
        padding: 1px 8px;
    }

    .hero-badge-area {
        min-height: 100px;
        margin-bottom: 28px;
    }

    .rotating-badge {
        width: 70px;
        height: 70px;
    }

    .green-ribbon {
        width: 200px;
        left: 40px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 24px;
    }

    .about-heading,
    .edu-heading,
    .contact-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .about-text {
        font-size: 14px;
        line-height: 22px;
    }

    .award-item {
        padding: 16px 0;
    }

    .award-title {
        font-size: 14px;
        line-height: 20px;
    }

    .award-year {
        font-size: 14px;
        margin-left: 12px;
    }

    .portfolio-cta .btn-portfolio {
        padding: 14px 24px !important;
        font-size: 14px !important;
        gap: 8px !important;
    }

    .timeline-title {
        font-size: 15px;
    }

    .service-title {
        font-size: 16px;
        line-height: 22px;
    }

    .service-number {
        font-size: 12px;
        min-width: 24px;
    }

    .service-header {
        gap: 12px;
        padding: 18px 0;
    }

    .service-toggle {
        width: 28px;
        height: 28px;
    }

    .service-description {
        font-size: 13px;
        line-height: 20px;
    }

    .tech-item {
        height: 40px;
        padding: 0 12px;
    }

    .tech-name {
        font-size: 12px;
    }

    .tech-percent {
        font-size: 12px;
    }

    .testimonial-quote {
        font-size: 17px;
        line-height: 24px;
    }

    .testimonial-stat-value {
        font-size: 20px;
    }

    .testimonial-stat-label {
        font-size: 11px;
    }

    .contact-heading {
        font-size: 20px;
    }

    .contact-email {
        font-size: 14px;
    }

    .footer-brand {
        font-size: 28px;
    }

    .footer-quote {
        font-size: 14px;
        line-height: 22px;
    }

    .section-tag {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .loader-counter {
        font-size: 48px;
    }
}