/* ====================================
   CSS Variables - Theme Colors
   ==================================== */
:root {
    /* Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #121633;
    --bg-card: #1a1f3a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #6366f1;
    --accent-hover: #a78bfa;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #2d3250;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ====================================
   Reset & Base Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

::selection {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

/* ====================================
   Container & Layout
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ====================================
   Navigation
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-base);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ====================================
   Hero Section — Redesign
   ==================================== */

/* Base hero shell */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ---- Background Orbs ---- */
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-bg-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: orbDrift1 18s ease-in-out infinite;
}

.hero-bg-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    bottom: -5%;
    right: 5%;
    animation: orbDrift2 22s ease-in-out infinite;
}

.hero-bg-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation: orbDrift3 16s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.05); }
}
@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -25px) scale(1.08); }
}
@keyframes orbDrift3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.1); }
}

/* ---- Glass Container ---- */
.hero-glass-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-glass {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 80px);
    padding: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top: 1px solid rgba(139, 92, 246, 0.18);
    border-bottom: 1px solid rgba(139, 92, 246, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 120px rgba(139, 92, 246, 0.06);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    animation: glassEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes glassEnter {
    to { opacity: 1; transform: translateY(0); }
}

/* Top-edge shimmer line */
.hero-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.65), rgba(99, 102, 241, 0.65), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Bottom-edge fade */
.hero-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Glass corner gradient overlay */
.hero-glass-glow {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(99, 102, 241, 0.05) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ---- Left Panel (60%) ---- */
.hero-left {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 3.5rem 4rem 4rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-28px);
    animation: slideInLeft 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* Subtle divider between panels */
.hero-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.18), transparent);
}

/* ---- Right Panel (40%) ---- */
.hero-right {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Soft spotlight behind portrait — no box, just light */
.portrait-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(99, 102, 241, 0.15) 40%,
        transparent 70%
    );
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: bloomPulse 4s ease-in-out infinite;
}

@keyframes bloomPulse {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.1); }
}

/* Glass highlight wash behind portrait */
.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 80%,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

/* Portrait image — fills right panel perfectly */
.portrait-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter:
        drop-shadow(-8px 0 32px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 40px rgba(139, 92, 246, 0.18));
    animation: portraitBreathe 8s ease-in-out infinite;
}

@keyframes portraitBreathe {
    0%, 100% { transform: scale(1);    object-position: top center; }
    50%       { transform: scale(1.03); object-position: top center; }
}

/* Pause float while JS tilt is active */
.portrait-img.tilting {
    animation-play-state: paused;
}

/* ---- Hero Title ---- */
.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #818cf8 70%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.35));
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.6s ease 0.7s forwards;
}

/* ---- Hero Subtitle ---- */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 1.4rem;
    color: transparent;
    background: linear-gradient(90deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
    letter-spacing: 0.5px;
    opacity: 0;
    animation: textReveal 0.6s ease 0.85s forwards;
}

@keyframes textReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Description ---- */
.hero-description {
    color: rgba(185, 195, 225, 0.78);
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: textReveal 0.6s ease 1s forwards;
}

/* ---- Hero Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: textReveal 0.6s ease 1.15s forwards;
}

/* ---- Social Links (hero) ---- */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    opacity: 0;
    animation: textReveal 0.6s ease 1.3s forwards;
}

/* ---- Buttons redesign ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.12));
    transform: translateX(-100%) skewX(-10deg);
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: translateX(100%) skewX(-10deg);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(139,92,246,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6), 0 0 0 1px rgba(139,92,246,0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

/* Portrait image is styled in the hero-right block above */
/* No wrapper, no card, no border — image floats freely inside glass */

/* ---- Social Icons (hero override) ---- */
.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background-color: rgba(139, 92, 246, 0.06);
    backdrop-filter: blur(8px);
}

.social-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 1024px) {
    .hero-left {
        flex: 0 0 55%;
        max-width: 55%;
        padding: 3rem 2.5rem 3rem 3rem;
    }

    .hero-right {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .portrait-bloom {
        width: 320px;
        height: 320px;
    }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 768px) {
    .hero-glass {
        flex-direction: column;
        min-height: unset;
    }

    .hero-left {
        flex: unset;
        max-width: 100%;
        padding: 3rem 2rem 2rem 2rem;
        align-items: center;
        text-align: center;
    }

    .hero-left::after {
        display: none;
    }

    .hero-right {
        flex: unset;
        max-width: 100%;
        width: 100%;
        height: 70vw;
        min-height: unset;
    }

    .portrait-bloom {
        width: 320px;
        height: 320px;
    }

    .social-links {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

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

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    background-color: rgba(255, 255, 255, 0.02);
}

.social-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

/* ====================================
   Section Titles
   ==================================== */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.skills-container h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

/* ---- Production Stack ---- */
.production-stack {
    margin-top: 0;
}

.production-stack-header {
    margin-bottom: 1.8rem;
}

.production-stack-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 0.4rem;
}

.production-stack-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.stack-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.stack-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.6rem 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
    animation-delay: var(--card-delay, 0s);
}

.stack-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
}

/* Per-category glow divs */
.stack-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.stack-card:hover .stack-card-glow {
    opacity: 0.45;
}

.stack-card--blue {
    border-color: rgba(96, 165, 250, 0.18);
}
.stack-card--blue:hover {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(96,165,250,0.12);
}
.stack-card--blue .stack-card-glow {
    background: #60a5fa;
}
.stack-card--blue .stack-card-icon {
    color: #60a5fa;
}

.stack-card--teal {
    border-color: rgba(45, 212, 191, 0.18);
}
.stack-card--teal:hover {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(45,212,191,0.12);
}
.stack-card--teal .stack-card-glow {
    background: #2dd4bf;
}
.stack-card--teal .stack-card-icon {
    color: #2dd4bf;
}

.stack-card--purple {
    border-color: rgba(139, 92, 246, 0.22);
}
.stack-card--purple:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(139,92,246,0.15);
}
.stack-card--purple .stack-card-glow {
    background: #8b5cf6;
}
.stack-card--purple .stack-card-icon {
    color: #a78bfa;
}

.stack-card--orange {
    border-color: rgba(251, 146, 60, 0.18);
}
.stack-card--orange:hover {
    border-color: rgba(251, 146, 60, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(251,146,60,0.12);
}
.stack-card--orange .stack-card-glow {
    background: #fb923c;
}
.stack-card--orange .stack-card-icon {
    color: #fb923c;
}

.stack-card-icon {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.stack-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.stack-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: default;
    white-space: nowrap;
}

.stack-card--blue .stack-chip:hover {
    color: #93c5fd;
    border-color: rgba(96,165,250,0.5);
    box-shadow: 0 0 8px rgba(96,165,250,0.2);
    transform: scale(1.06);
}
.stack-card--teal .stack-chip:hover {
    color: #5eead4;
    border-color: rgba(45,212,191,0.5);
    box-shadow: 0 0 8px rgba(45,212,191,0.2);
    transform: scale(1.06);
}
.stack-card--purple .stack-chip:hover {
    color: #c4b5fd;
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 8px rgba(139,92,246,0.25);
    transform: scale(1.06);
}
.stack-card--orange .stack-chip:hover {
    color: #fdba74;
    border-color: rgba(251,146,60,0.5);
    box-shadow: 0 0 8px rgba(251,146,60,0.2);
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .stack-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stack-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- FAQ Accordion ---- */
.faq-accordion {
    margin-top: var(--spacing-lg);
}

.faq-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.faq-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-hover);
}

.faq-item.active .faq-question {
    color: var(--accent-hover);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--accent-primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.4rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.85;
    margin: 0 0 0.6rem 0;
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
}

.faq-answer p:first-child {
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
    padding-bottom: 1.2rem;
}

.faq-answer ul {
    margin: 0.4rem 0 0.8rem 1.2rem;
    padding: 0;
}

.faq-answer ul li {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 0.3rem;
    list-style: disc;
}

.faq-answer strong {
    color: var(--accent-hover);
    font-weight: 600;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

/* ====================================
   Projects Section
   ==================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-md);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.project-card-link:hover .project-card::before {
    transform: scaleX(1);
}

.project-card-link:hover .project-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.project-card-link:hover .project-link {
    color: var(--accent-hover);
}

.project-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.375rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.tag {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--accent-hover);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-link {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: var(--spacing-sm);
    transition: all var(--transition-base);
    pointer-events: none;
}

/* ====================================
   Premium MLOps Architecture Flow
   ==================================== */
.mlops-premium {
    background: linear-gradient(180deg, #05070d 0%, #0a0e27 50%, #05070d 100%);
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) + 6rem);
    position: relative;
    overflow: hidden;
}

.mlops-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1) 30%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
    pointer-events: none;
    filter: blur(100px);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.pipeline-boundary {
    position: relative;
    background: rgba(10, 14, 39, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 32px;
    padding: 4rem 2rem;
    margin: 4rem auto 0;
    max-width: min(1400px, 95vw);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 80px rgba(139, 92, 246, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.95);
    animation: boundaryFadeIn 1.5s ease forwards 0.3s;
}

.pipeline-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.pipeline-svg {
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    width: calc(100% - 100px);
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.pipeline-line {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    opacity: 0;
    animation: drawPipeline 3s ease-out forwards;
    animation-play-state: paused;
}

.pipeline-shadow {
    filter: blur(20px);
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawPipeline 3s ease-out forwards;
    animation-play-state: paused;
}

.flow-dot {
    opacity: 0;
    animation: fadeInDot 1s ease 3.2s forwards;
    animation-play-state: paused;
}

@keyframes drawPipeline {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes fadeInDot {
    to {
        opacity: 0.9;
    }
}

.pipeline-container {
    position: relative;
    z-index: 10;
}

.pipeline-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 1rem;
    padding: 0;
    flex-wrap: nowrap;
}

.flow-card {
    position: relative;
    width: 100%;
    max-width: 180px;
    height: 240px;
    flex: 1 1 180px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-play-state: paused;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
    overflow: visible;
}

.flow-card[data-index="1"] { animation-delay: 0.3s; }
.flow-card[data-index="2"] { animation-delay: 0.7s; }
.flow-card[data-index="3"] { animation-delay: 1.1s; }
.flow-card[data-index="4"] { animation-delay: 1.5s; }
.flow-card[data-index="5"] { animation-delay: 1.9s; }
.flow-card[data-index="6"] { animation-delay: 2.3s; }

.flow-card-final {
    position: relative;
}

.flow-card-final::after {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0.15) 50%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    animation: finalGlow 2s ease 3.5s forwards, glowPulse 4s ease-in-out 5.5s infinite;
    z-index: -3;
    pointer-events: none;
}

@keyframes finalGlow {
    to {
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.card-glow {
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2px;
    z-index: 0;
    opacity: 0.9;
    transition: opacity var(--transition-base);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(0px);
}

.card-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gradient-start) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.6;
    z-index: -1;
}

.flow-card::before {
    content: '';
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gradient-end) 0%, transparent 65%);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.6s ease;
    z-index: -2;
}

.flow-card:hover::before {
    opacity: 0.7;
}

.flow-card:hover .card-glow {
    opacity: 1;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.3);
    }
}

.card-glass {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(18, 22, 51, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.flow-card:hover .card-glass {
    transform: translateY(-5px);
    background: rgba(18, 22, 51, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.flow-card-final .card-glass {
    background: rgba(18, 22, 51, 0.9);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: inset 0 1px 3px rgba(168, 85, 247, 0.2);
}

.flow-card-final:hover .card-glass {
    background: rgba(18, 22, 51, 1);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 2px 6px rgba(168, 85, 247, 0.3), 0 15px 50px rgba(168, 85, 247, 0.4);
}

.card-step-badge {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 12px;
    border: 1.5px solid;
    border-color: var(--gradient-start);
    background: rgba(5, 8, 20, 0.95);
    color: var(--gradient-start);
    box-shadow: 
        0 0 15px var(--gradient-start),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: all var(--transition-base);
}

.flow-card:hover .card-step-badge {
    border-color: var(--gradient-end);
    color: var(--gradient-end);
    box-shadow: 
        0 0 20px var(--gradient-end),
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) scale(1.05);
}

.card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.15;
    transition: opacity var(--transition-base);
}

.flow-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.15);
}

.flow-card:hover .card-icon::before {
    opacity: 0.3;
}

.card-icon svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    color: var(--gradient-start);
    filter: drop-shadow(0 0 8px var(--gradient-start));
    transition: all var(--transition-base);
}

.flow-card:hover .card-icon svg {
    color: var(--gradient-end);
    filter: drop-shadow(0 0 12px var(--gradient-end));
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color var(--transition-base);
    width: 100%;
}

.flow-card:hover .card-title {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
    width: 100%;
}

/* Gradient definitions for each card */
.flow-card[data-gradient="purple-blue"] {
    --gradient-start: #8b5cf6;
    --gradient-end: #3b82f6;
}

.flow-card[data-gradient="blue-cyan"] {
    --gradient-start: #3b82f6;
    --gradient-end: #06b6d4;
}

.flow-card[data-gradient="cyan-green"] {
    --gradient-start: #06b6d4;
    --gradient-end: #10b981;
}

.flow-card[data-gradient="orange-pink"] {
    --gradient-start: #f97316;
    --gradient-end: #ec4899;
}

.flow-card[data-gradient="pink-purple"] {
    --gradient-start: #ec4899;
    --gradient-end: #a855f7;
}

.flow-card[data-gradient="purple-indigo"] {
    --gradient-start: #a855f7;
    --gradient-end: #6366f1;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.flow-card[data-index="1"],
.flow-card[data-index="3"],
.flow-card[data-index="5"] {
    animation: fadeInUp 0.8s ease forwards, float 9s ease-in-out infinite;
    animation-play-state: paused, paused;
}

.flow-card[data-index="2"],
.flow-card[data-index="4"],
.flow-card[data-index="6"] {
    animation: fadeInUp 0.8s ease forwards, float 9s ease-in-out 1s infinite;
    animation-play-state: paused, paused;
}

@media (max-width: 1200px) {
    .flow-card {
        max-width: 160px;
        flex: 1 1 160px;
    }
    
    .pipeline-row {
        gap: 0.75rem;
    }
}

@media (max-width: 968px) {
    .pipeline-boundary {
        padding: 3rem 1.5rem;
    }
    
    .pipeline-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .flow-card {
        max-width: 200px;
        flex: 0 0 200px;
    }
    
    .pipeline-svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .pipeline-boundary {
        padding: 2rem 1rem;
    }
    
    .pipeline-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-card {
        max-width: 280px;
        flex: 0 0 auto;
    }
}

/* ====================================
   Cloud Architecture Section
   ==================================== */
.cloud-architecture {
    background: linear-gradient(180deg, #05070d 0%, #0a0e27 50%, #05070d 100%);
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) + 4rem);
    position: relative;
    overflow: hidden;
}

.architecture-diagram {
    position: relative;
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.diagram-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(255, 153, 0, 0.12), rgba(255, 153, 0, 0.08) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(80px);
    opacity: 0;
    animation: glowFadeIn 2s ease forwards 0.5s;
}

@keyframes glowFadeIn {
    to { opacity: 1; }
}

.aws-boundary {
    position: relative;
    background: rgba(10, 14, 39, 0.4);
    border: 2px solid rgba(255, 153, 0, 0.3);
    border-radius: 32px;
    padding: 3rem 4rem 5rem 4rem;
    min-height: 900px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 80px rgba(255, 153, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.95);
    animation: boundaryFadeIn 1.5s ease forwards 0.3s;
}

@keyframes boundaryFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.aws-header {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.95), rgba(10, 14, 39, 0.95));
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    padding: 0.65rem 1.5rem;
    box-shadow: 
        0 8px 32px rgba(255, 153, 0, 0.25),
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    animation: headerBreathing 3s ease-in-out infinite;
    z-index: 100;
}

.aws-header::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9900, #ffd700, #ff9900);
    z-index: -1;
    opacity: 0.7;
}

.aws-header-glow {
    position: absolute;
    inset: -15px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.3), transparent 70%);
    filter: blur(15px);
    z-index: -2;
    animation: headerGlow 3s ease-in-out infinite;
}

.aws-header-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.4));
}

@keyframes headerBreathing {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.02); }
}

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

.layer-section {
    position: relative;
    background: rgba(5, 8, 20, 0.6);
    border: 2px solid;
    border-radius: 28px;
    padding: 4.5rem 3rem 3rem 3rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 1s ease forwards;
    animation-play-state: paused;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layer-section-data {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 
        0 0 40px rgba(96, 165, 250, 0.15),
        inset 0 1px 2px rgba(96, 165, 250, 0.05);
    animation-delay: 0.6s;
}

.layer-section-processing {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.15),
        inset 0 1px 2px rgba(168, 85, 247, 0.05);
    animation-delay: 1s;
}

.layer-section-deployment {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.15),
        inset 0 1px 2px rgba(59, 130, 246, 0.05);
    animation-delay: 1.4s;
}

.layer-section-monitoring {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 
        0 0 40px rgba(34, 211, 238, 0.15),
        inset 0 1px 2px rgba(34, 211, 238, 0.05);
    animation-delay: 1.8s;
    margin-bottom: 0;
}

.layer-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid;
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    z-index: 10;
}

.badge-data {
    border-color: rgba(96, 165, 250, 0.6);
    color: #60a5fa;
    box-shadow: 
        0 0 20px rgba(96, 165, 250, 0.3),
        0 4px 12px rgba(96, 165, 250, 0.2),
        inset 0 1px 1px rgba(96, 165, 250, 0.1);
}

.badge-processing {
    border-color: rgba(168, 85, 247, 0.6);
    color: #a855f7;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.3),
        0 4px 12px rgba(168, 85, 247, 0.2),
        inset 0 1px 1px rgba(168, 85, 247, 0.1);
}

.badge-deployment {
    border-color: rgba(59, 130, 246, 0.6);
    color: #3b82f6;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(59, 130, 246, 0.2),
        inset 0 1px 1px rgba(59, 130, 246, 0.1);
}

.badge-monitoring {
    border-color: rgba(34, 211, 238, 0.6);
    color: #22d3ee;
    box-shadow: 
        0 0 20px rgba(34, 211, 238, 0.3),
        0 4px 12px rgba(34, 211, 238, 0.2),
        inset 0 1px 1px rgba(34, 211, 238, 0.1);
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layer-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.service-card {
    position: relative;
    width: 280px;
    background: rgba(18, 22, 51, 0.8);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card-wide {
    width: 380px;
}

.service-glow {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
    padding: 2px;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.service-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

.service-glow::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-glow {
    opacity: 1;
}

.service-card:hover .service-glow::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-content {
    position: relative;
    z-index: 2;
    background: rgba(18, 22, 51, 0.95);
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.service-icon {
    color: #8b5cf6;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: #a78bfa;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
}

.service-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

@media (max-width: 1200px) {
    .layer-labels {
        display: none;
    }
    
    .aws-boundary {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .arch-layer {
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-card,
    .service-card-wide {
        width: 100%;
        max-width: 320px;
    }
    
    .arch-connectors {
        display: none;
    }
    
    .aws-boundary {
        min-height: auto;
        padding: 3rem 1.5rem;
    }
}

/* ====================================
   SRE-Style ML Architecture Flow
   ==================================== */
.sre-flow {
    background: #06090f;
    background-image: 
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.sre-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.sre-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    animation: fadeInSlow 1.2s ease forwards 0.2s;
}

.sre-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: block;
    width: 100%;
}

.sre-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.sre-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sre-diagram {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 0;
}

.sre-spine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: fadeInSlow 1s ease forwards 0.5s;
}

#spine-line {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300;
    animation: drawSpine 2s ease forwards 0.8s;
}

.spine-shadow {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes drawSpine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Column Labels */
.column-label {
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
}

.label-challenges {
    background: rgba(239, 68, 68, 0.85);
    border: 2px solid rgba(239, 68, 68, 0.8);
    color: #ffffff;
    box-shadow: 
        0 0 25px rgba(239, 68, 68, 0.5),
        0 4px 15px rgba(239, 68, 68, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation-delay: 0.8s;
}

.label-solutions {
    background: rgba(14, 165, 233, 0.85);
    border: 2px solid rgba(14, 165, 233, 0.8);
    color: #ffffff;
    box-shadow: 
        0 0 25px rgba(14, 165, 233, 0.5),
        0 4px 15px rgba(14, 165, 233, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation-delay: 0.9s;
}

/* Left Problems Column */
.sre-problems {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
    align-self: center;
}

.pill {
    position: relative;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 400;
    text-align: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pill-problem {
    background: rgba(10, 14, 27, 0.5);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    color: #f1f5f9;
    box-shadow: 
        0 0 15px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(239, 68, 68, 0.15);
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pill-problem:nth-child(1) { animation-delay: 1.0s; }
.pill-problem:nth-child(2) { animation-delay: 1.1s; }
.pill-problem:nth-child(3) { animation-delay: 1.2s; }
.pill-problem:nth-child(4) { animation-delay: 1.3s; }
.pill-problem:nth-child(5) { animation-delay: 1.4s; }
.pill-problem:nth-child(6) { animation-delay: 1.5s; }
.pill-problem:nth-child(7) { animation-delay: 1.6s; }
.pill-problem:nth-child(8) { animation-delay: 1.7s; }
.pill-problem:nth-child(9) { animation-delay: 1.8s; }
.pill-problem:nth-child(10) { animation-delay: 1.9s; }

.pill-problem:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 
        0 0 25px rgba(239, 68, 68, 0.25),
        inset 0 1px 0 rgba(239, 68, 68, 0.25);
    transform: translateX(-3px) scale(1.02);
}

/* Center Core Engine */
.sre-core {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.core-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    opacity: 0;
    animation: pulseGlow 4s ease-in-out infinite, fadeIn 1s ease forwards 1.5s;
}

.core-card {
    position: relative;
    width: 360px;
    padding: 3rem 2.5rem;
    background: rgba(12, 16, 32, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 1px 2px rgba(139, 92, 246, 0.2),
        0 20px 80px rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
    transition: all 0.4s ease;
}

.core-card:hover {
    transform: scale(1.02);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 0 80px rgba(139, 92, 246, 0.4),
        inset 0 2px 4px rgba(139, 92, 246, 0.3),
        0 25px 100px rgba(0, 0, 0, 0.6);
}

.core-content {
    text-align: center;
}

.core-label {
    font-size: 1.75rem;
    font-weight: 500;
    color: #f8fafc;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(139, 92, 246, 0.5);
}

.core-sublabel {
    font-size: 0.9375rem;
    color: #cbd5e1;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Right Outcomes Column */
.sre-outcomes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
    align-self: center;
}

.pill-outcome {
    background: rgba(10, 14, 27, 0.5);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
    box-shadow: 
        0 0 15px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.15);
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pill-outcome:nth-child(1) { animation-delay: 1.1s; }
.pill-outcome:nth-child(2) { animation-delay: 1.2s; }
.pill-outcome:nth-child(3) { animation-delay: 1.3s; }
.pill-outcome:nth-child(4) { animation-delay: 1.4s; }
.pill-outcome:nth-child(5) { animation-delay: 1.5s; }
.pill-outcome:nth-child(6) { animation-delay: 1.6s; }
.pill-outcome:nth-child(7) { animation-delay: 1.7s; }
.pill-outcome:nth-child(8) { animation-delay: 1.8s; }
.pill-outcome:nth-child(9) { animation-delay: 1.9s; }

.pill-outcome:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 
        0 0 25px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(99, 102, 241, 0.25);
    transform: translateX(3px) scale(1.02);
}

/* Animations */
@keyframes fadeInSlow {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive */
@media (max-width: 1400px) {
    .sre-diagram {
        grid-template-columns: 260px 1fr 260px;
        gap: 3rem;
    }
    
    .core-card {
        width: 320px;
        padding: 2.5rem 2rem;
    }
    
    .core-label {
        font-size: 1.5rem;
    }
}
}

@media (max-width: 1024px) {
    .pipeline-wrapper {
        padding: 3rem 1.5rem;
        max-width: 900px;
    }
    
    .pipeline-row-top,
    .pipeline-row-bottom {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .pipeline-container {
        gap: 4rem;
    }
    
    .flow-card {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .pipeline-wrapper {
        padding: 2rem 1rem;
    }
    
    .pipeline-svg {
        display: none;
    }
    
    .pipeline-container {
        gap: 2.5rem;
    }
    
    .pipeline-row {
        flex-direction: column;
        gap: 2rem;
        padding: 0 !important;
    }
    
    .pipeline-row-bottom {
        flex-direction: column;
    }
    
    .flow-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .card-glass {
        padding: 2rem 1.5rem;
    }
    
    .flow-card-final::after {
        display: none;
    }
}

@media (max-width: 1024px) {
    .sre-diagram {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .sre-spine {
        display: none;
    }
    
    .sre-header {
        text-align: center;
    }
    
    .sre-core {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .sre-problems,
    .sre-outcomes {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .core-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .sre-flow {
        padding: 5rem 0 6rem;
    }
    
    .sre-container {
        padding: 0 1.5rem;
    }
    
    .sre-header {
        margin-bottom: 4rem;
    }
    
    .sre-diagram {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .core-card {
        padding: 2rem 1.5rem;
    }
    
    .core-label {
        font-size: 1.375rem;
    }
    
    .core-sublabel {
        font-size: 0.8125rem;
    }
    
    .pill {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}
        font-size: 0.75rem;
    }
    
    .pill {
        font-size: 0.8125rem;
        padding: 0.6rem 1.25rem;
    }
}

/* ====================================
   Blog Section
   ====================================== */
.blog {
    background-color: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

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

.blog-category {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.blog-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.blog-link {
    color: var(--accent-primary);
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-block;
}

.blog-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* ====================================
   Resume Section
   ==================================== */
.resume-download {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: var(--spacing-md);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-left: var(--spacing-md);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.timeline-company {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    list-style: none;
    padding-left: 0;
}

.timeline-description li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-email a {
    color: var(--accent-primary);
    transition: color var(--transition-base);
}

.footer-email a:hover {
    color: var(--accent-hover);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-base);
}

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

/* ====================================
   Animations
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 968px) {
    .architecture-flow {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .timeline {
        padding-left: var(--spacing-sm);
    }
    
    .timeline-dot {
        left: -22px;
    }
    
    .pipeline-row {
        flex-direction: column;
        gap: 3rem;
    }
    
    .flow-card {
        width: 100%;
        max-width: 280px;
        height: 240px;
    }
    
    .pipeline-svg {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .social-links {
        gap: var(--spacing-xs);
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .architecture-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-glass {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ====================================
   Project Detail Page
   ==================================== */
.project-detail {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: var(--bg-primary);
}

.project-detail-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-detail-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.project-detail .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .project-detail {
        padding: 6rem 1.5rem 3rem;
    }
}

/* ====================================
   Accessibility
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ====================================
   Loading States & Performance
   ==================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth font rendering */
body {
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift */
.container {
    contain: layout;
}

/* ====================================
   Email Contact Modal
   ==================================== */
.email-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.email-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    animation: slideUp 0.3s ease;
}

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

.email-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
}

.email-modal-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.email-modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.email-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}

.email-text {
    flex: 1;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

.copy-email-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: white;
}

.copy-email-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.copy-feedback {
    display: block;
    text-align: center;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}
