:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0d1f3c;
    --bg-tertiary: #132744;
    --accent-primary: #64ffda;
    --accent-secondary: #7b93ff;
    --accent-warm: #ff6b9d;
    --text-primary: #e8f1ff;
    --text-secondary: #8ba4c7;
    --text-muted: #5a7194;
    --glass-bg: rgba(13, 31, 60, 0.6);
    --glass-border: rgba(100, 255, 218, 0.15);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #1a365d 100%);
    --gradient-accent: linear-gradient(135deg, #64ffda 0%, #7b93ff 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b9d 0%, #ffa07a 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

section, footer {
    scroll-snap-align: start;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo .bracket {
    color: var(--accent-primary);
}

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

.nav-cta {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent-primary);
    padding: 0.875rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    cursor: none;
    scroll-snap-align: start;
}

/* Restore default cursor on touch/mobile devices */
@media (hover: none) {
    .hero,
    .hero-content,
    .hero .btn-primary,
    .hero .btn-secondary,
    .hero-badge,
    .hero-scroll {
        cursor: auto;
    }
}

/* ... existing hero styles ... */

/* About Section */
.about {
    padding: 8rem 2rem;
    min-height: 100vh;
    display: flex; /* Helps center content if needed, optional */
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Projects Section */
/* Note: Projects might be taller than 100vh, so min-height is safer than height */
/* We'll need to see if .projects has a style definition later in the file */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 147, 255, 0.1) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes jiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

@keyframes ripple-effect {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.ripple {
    position: absolute;
    background: rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation: ripple-effect 0.6s ease-out forwards;
    z-index: 1;
    mix-blend-mode: normal;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.hero-cursor-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    mix-blend-mode: normal;
}

/* Hide crosshair on touch/mobile devices (no hover capability) */
@media (hover: none) {
    .hero-cursor-glow {
        display: none;
    }
}

.hero-cursor-glow::before,
.hero-cursor-glow::after {
    content: '';
    position: absolute;
    background: #ff3c3c;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-cursor-glow::before {
    width: 100%;
    height: 2px;
}

.hero-cursor-glow::after {
    width: 2px;
    height: 100%;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    cursor: none;
}

.hero-title span {
    display: block;
}

.hero-title .accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    cursor: none;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--bg-primary);
    background: var(--accent-primary);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.4);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    background: transparent;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: none;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    cursor: none;
}

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

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-primary);
}

.about-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.about-title .highlight {
    color: var(--accent-primary);
    font-style: italic;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-visual {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.about-visual.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-card-stack {
    position: relative;
    height: 400px;
}

.about-card {
    position: absolute;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
}

.about-card:nth-child(2) {
    top: 30px;
    left: 30px;
    z-index: 2;
    opacity: 0.7;
}

.about-card:nth-child(3) {
    top: 60px;
    left: 60px;
    z-index: 1;
    opacity: 0.4;
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(123, 147, 255, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-primary);
}

.about-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section */
/* Projects Section */
.projects {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.projects-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.projects-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.projects-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent);
    transition: height 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.project-card[data-project="scra"] { --card-accent: #22c55e; }
.project-card[data-project="fitsquad"] { --card-accent: #14b8a6; }
.project-card[data-project="ediscover"] { --card-accent: #a855f7; }
.project-card[data-project="passpurge"] { --card-accent: #3b82f6; }
.project-card[data-project="fairshare"] { --card-accent: #ef4444; }

.project-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--card-accent), transparent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--text-primary);
}

.project-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--card-accent);
    position: relative;
    z-index: 1;
}

.project-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--card-accent);
    transition: transform 0.3s ease;
}

.project-card:hover .project-link svg {
    transform: translateX(4px);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center bottom, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
    z-index: -1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-profile {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
}

.contact-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.2);
    margin-bottom: 1.5rem;
}

.contact-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-role {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.contact-method:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    background: rgba(100, 255, 218, 0.05);
}

.contact-method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15) 0%, rgba(123, 147, 255, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent-primary);
}

.contact-method-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-method-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-method-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-primary);
}

.contact-method:hover .contact-method-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-right: 1rem;
}

.footer-logo .bracket {
    color: var(--accent-primary);
}

.footer-logo .text {
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}


/* Case Studies Section */
.case-studies {
    padding: 8rem 2rem;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    scroll-snap-align: start;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.case-studies-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.case-studies-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-study-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    padding: 3rem;
}

.case-study-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.case-study-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.case-study-client {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-client::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
}

.case-study-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.case-study-grid-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .case-study-grid-details {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-block h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.case-study-results {
    background: rgba(10, 22, 40, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(123, 147, 255, 0.1);
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.result-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-text strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-visual {
        order: -1;
    }

    .about-card-stack {
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-profile {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    .about, .projects, .contact {
        padding: 5rem 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .about-card-stack {
        height: 250px;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card:nth-child(2),
    .about-card:nth-child(3) {
        display: none;
    }

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

    .project-card {
        padding: 2rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-method-icon {
        width: 50px;
        height: 50px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        order: -1;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .about-title, .projects-title, .contact-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .project-name {
        font-size: 1.25rem;
    }

    .contact-avatar {
        width: 120px;
        height: 120px;
    }
}

/* Differentiation Callout */
.differentiation-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, rgba(123, 147, 255, 0.05) 100%);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.diff-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.15);
    border-radius: 12px;
}

.diff-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.diff-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.diff-text strong {
    color: var(--accent-primary);
}

/* Personal Projects Section (Expandable) */
.personal-projects {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.projects-expand-toggle {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-align: left;
    color: inherit;
}

.projects-expand-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
}

.toggle-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.projects-toggle-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.toggle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
    transition: transform 0.3s ease;
}

.projects-expand-toggle[aria-expanded="true"] .toggle-icon svg {
    transform: rotate(180deg);
}

.projects-expand-content {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
}

.projects-expand-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 2rem;
}

.projects-expand-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Override for personal projects grid */
.personal-projects .projects-grid {
    max-width: 100%;
}

@media (max-width: 768px) {
    .differentiation-callout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .projects-expand-toggle {
        padding: 1.5rem;
    }
    
    .toggle-icon {
        width: 40px;
        height: 40px;
    }
}
