/* Design System & Reset */
:root {
    /* Surreal Brand Colors (Refined) */
    --surreal-bg: #02040a;
    /* Rich Black */
    --surreal-void: #000000;

    --neon-cyan: #00F0FF;
    --neon-blue: #3b82f6;
    /* Royal Blue */
    --neon-white: #ffffff;

    /* Darker Glass */
    --glass-surface: rgba(10, 20, 30, 0.6);
    --glass-border: rgba(59, 130, 246, 0.2);
    --glass-highlight: rgba(0, 240, 255, 0.1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Typography */
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Shadows & Glows */
    --glow-sm: 0 0 15px rgba(0, 240, 255, 0.15);
    --glow-md: 0 0 30px rgba(59, 130, 246, 0.25);
    --glow-lg: 0 0 60px rgba(0, 240, 255, 0.35);
    --glow-text: 0 0 20px rgba(0, 240, 255, 0.5);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--surreal-void);
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Sections & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* --- GLOBAL SURREAL BACKGROUNDS --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* --- FLOATING 3D GLASS MENU --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 20, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(59, 130, 246, 0.1);
    animation: slide-down 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slide-down {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Logo Animation & Container */
.nav-logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo {
    height: 35px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    transition: all 0.5s ease;
    animation: logo-pulse 3s infinite ease-in-out;
}

/* Creative Logo Effect: "Pulse Jump" */
@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
    }
}

.nav-logo-container:hover .nav-logo {
    transform: rotate(-5deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--neon-cyan));
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.05);
    /* 3D Pop */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Nav CTA */
.nav-cta {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px var(--neon-cyan);
    color: rgb(10, 20, 30);
}

/* Spacer for Fixed Header */
.header-spacer {
    height: 120px;
}

/* --- HERO & HEADER SURREAL --- */
header {
    background: transparent;
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    position: relative;
    overflow: visible;
}

/* Hero Glow Center */
header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulse-slow 8s infinite alternate;
}

@keyframes pulse-slow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

header h1 {
    color: white;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
}

.tagline {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 300;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.experience-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.05);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    position: relative;
    z-index: 2;
}

/* --- GLOBAL CARDS (Glass Dark) --- */
.card,
.ai-card,
.project-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    color: white;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 1s);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card:hover,
.card.active,
.ai-card:hover,
.ai-card.active,
.project-card:hover,
.project-card.active {
    transform: translateY(-20px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-md);
    background: rgba(10, 25, 40, 0.8);
    z-index: 10;
}

.card-icon,
.ai-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.4s ease;
}

.card:hover .card-icon,
.card.active .card-icon,
.ai-card:hover .ai-icon,
.ai-card.active .ai-icon {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 40px var(--neon-cyan);
    transform: rotate(15deg) scale(1.1);
    border-color: transparent;
}

.card h3,
.ai-card h3,
.project-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.card p,
.ai-card p,
.project-card p {
    color: #94a3b8;
    font-weight: 300;
}

.check-list li {
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* --- SECTION SPECIFICS --- */
.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--neon-cyan);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* AI Section */
.ai-section {
    background: transparent;
    padding-top: 0;
}

.ai-title {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
    margin-bottom: 0.5rem;
}

.ai-scroll-text {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
    margin-bottom: 1rem;
    display: block;
}

.highlight-badge {
    background: var(--neon-blue);
    color: white;
    box-shadow: 0 0 20px var(--neon-blue);
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ai-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* Product Tag */
.product-tag {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Projects Grid */
.tech-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--neon-cyan);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: inline-block;
    margin-top: 1rem;
}

/* Custom Box */
.custom-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    border: 1px solid var(--neon-blue);
    box-shadow: var(--glow-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--space-lg);
}

.custom-box h3 {
    color: white !important;
    font-size: 2rem;
}

.custom-box p {
    color: #cbd5e1 !important;
}

/* CTA */
.cta {
    background: transparent;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 0 20px white;
}

.cta p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--neon-blue);
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 50px var(--neon-cyan);
    color: black;
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    padding: var(--space-md) 0;
    background: transparent;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-md);
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0;
    text-shadow: 0 0 20px var(--neon-blue);
}

.stat-item p {
    color: var(--neon-cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    padding: var(--space-lg) 0;
    text-align: center;
}

footer strong {
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1rem;
        top: 15px;
    }

    .nav-links {
        display: none;
        /* Hide links on mobile for now, or add burger menu later */
    }

    .nav-logo {
        height: 30px;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .ai-title {
        font-size: 2.5rem;
    }

    .card,
    .ai-card,
    .project-card {
        animation: none;
        /* Disable float on mobile */
    }
}