/* =====================================================
   SHAQRAN HUSSAIN - ULTRA MODERN PORTFOLIO
   Inspired by Best-in-Class Developer Portfolios
   ===================================================== */

/* =====================================================
   IMPORTS & FONTS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    /* Dark Theme - Ultra Modern */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-elevated: #1a1a1a;

    /* Accent Colors */
    --accent-cyan: #00d9ff;
    --accent-blue: #0066ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #fbbf24;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #00d9ff 0%, #0066ff 50%, #7c3aed 100%);
    --gradient-text: linear-gradient(90deg, #00d9ff, #0066ff, #7c3aed, #00d9ff);
    --gradient-glow: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(0, 102, 255, 0.15) 50%, rgba(124, 58, 237, 0.15) 100%);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(0, 217, 255, 0.3);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 140px 0;
    --container-max: 1280px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f4f5;
    --bg-elevated: #ffffff;
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-bg-hover: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 102, 255, 0.3);
}

/* Light Theme - Hide dark backgrounds */
[data-theme="light"] .bg-gradient,
[data-theme="light"] .bg-grid {
    opacity: 0.3;
}

[data-theme="light"] .hero-orb {
    opacity: 0.15;
}

[data-theme="light"] .cursor-glow {
    display: none;
}

/* Light Theme - Cards */
[data-theme="light"] .bento-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .education-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bento-card:hover,
[data-theme="light"] .skill-card:hover,
[data-theme="light"] .project-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.1);
}

/* Light Theme - Inputs */
[data-theme="light"] input,
[data-theme="light"] textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    background: #ffffff;
    border-color: var(--accent-blue);
}

/* Light Theme - Hero Badge */
[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light Theme - Tech Pills */
[data-theme="light"] .tech-pill {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Light Theme - Footer */
[data-theme="light"] .footer {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-tertiary));
}

/* Light Theme - Gradient Text Enhancement */
[data-theme="light"] .gradient-text {
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.25));
}

[data-theme="light"] .hero-title .gradient-text {
    filter: drop-shadow(0 0 25px rgba(0, 102, 255, 0.3));
}

/* Light Theme - Section Labels */
[data-theme="light"] .section-label {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(0, 102, 255, 0.2);
    color: var(--accent-blue);
}

/* Light Theme - Timeline */
[data-theme="light"] .timeline::before {
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    opacity: 0.3;
}

[data-theme="light"] .timeline-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

/* Light Theme - Navbar Links */
[data-theme="light"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover {
    color: var(--accent-blue);
}

[data-theme="light"] .nav-link.active {
    background: var(--accent-blue);
    color: white;
}

/* Light Theme - Social Links */
[data-theme="light"] .social-link {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

[data-theme="light"] .social-link:hover {
    background: var(--accent-blue);
    color: white;
}

/* Light Theme - Buttons */
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Light Theme - Scroll Indicator */
[data-theme="light"] .scroll-indicator {
    color: var(--text-secondary);
}

/* Light Theme - Highlight Text */
[data-theme="light"] .highlight {
    color: var(--accent-blue);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: 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: var(--accent-cyan);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* =====================================================
   CURSOR GLOW EFFECT
   ===================================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* =====================================================
   ANIMATED BACKGROUND
   ===================================================== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -3;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);
    z-index: -2;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.section-label i {
    font-size: 0.9rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-main);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
    transform: translateY(-4px);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar.navbar-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-expo);
}

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

.nav-link.active {
    color: var(--bg-primary);
    background: var(--accent-cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.1);
}

.nav-close {
    display: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

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

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

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 20s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: -8s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: -10s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: -12s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: -14s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: -16s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: -18s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Glowing Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 217, 255, 0.15);
    top: 10%;
    left: 60%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.12);
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(0, 102, 255, 0.1);
    top: 50%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.02);
    }
}

.hero-container {
    max-width: 900px;
    padding: 120px 32px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease-out-expo), borderGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15), inset 0 0 20px rgba(0, 217, 255, 0.05);
    backdrop-filter: blur(10px);
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(0, 217, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.15), inset 0 0 20px rgba(0, 217, 255, 0.05);
    }

    50% {
        border-color: rgba(0, 217, 255, 0.6);
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.25), inset 0 0 25px rgba(0, 217, 255, 0.1);
    }
}

.hero-badge .dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-green), 0 0 30px var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px var(--accent-green), 0 0 30px var(--accent-green);
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
        box-shadow: 0 0 25px var(--accent-green), 0 0 50px var(--accent-green);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
    line-height: 1.15;
}

.hero-title .name {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.hero-title .gradient-text {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff 0%, #0066ff 30%, #7c3aed 60%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.3));
    line-height: 1.1;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-subtitle .typed-text {
    color: var(--accent-cyan);
}

.hero-subtitle .cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-expo);
}

.tech-pill i {
    color: var(--accent-cyan);
}

.tech-pill:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.15);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    animation: fadeIn 1s 1s both;
    z-index: 5;
}

.scroll-indicator i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =====================================================
   BENTO GRID - About Section
   ===================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.bento-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card>* {
    position: relative;
    z-index: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.bento-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    color: white;
    margin-bottom: 24px;
}

.bento-stats {
    display: flex;
    gap: 32px;
    margin-top: auto;
}

.bento-stat {
    text-align: center;
}

.bento-stat .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.bento-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight {
    color: var(--accent-cyan);
}

/* =====================================================
   ACHIEVEMENTS SECTION
   ===================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    justify-content: center;
}

.achievement-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.achievement-card.featured {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-color: rgba(0, 217, 255, 0.2);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
    border-color: var(--accent-cyan);
}

.achievement-badge {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.achievement-badge i {
    font-size: 2rem;
    color: white;
}

.achievement-content {
    flex: 1;
}

.achievement-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    display: block;
}

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

.achievement-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.achievement-prize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-prize i {
    color: var(--accent-yellow);
}

/* =====================================================
   CERTIFICATES SECTION
   ===================================================== */
.certificates {
    background: var(--bg-secondary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.certificate-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    align-items: center;
}

.certificate-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    padding: 8px;
}

.certificate-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.certificate-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.certificate-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Light theme overrides for achievements and certificates */
[data-theme="light"] .achievement-card,
[data-theme="light"] .certificate-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .achievement-card:hover,
[data-theme="light"] .certificate-card:hover {
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.1);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

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

.skill-card:hover::after {
    transform: scaleX(1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: white;
}

.skill-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.skill-tag:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* =====================================================
   EXPERIENCE - Timeline
   ===================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-main);
}

.timeline-item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-cyan);
}

.timeline-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out-expo);
}

.timeline-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--accent-cyan);
    font-weight: 500;
}

.timeline-date {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(0, 217, 255, 0.08);
    border-radius: var(--radius-full);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.education-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    padding: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out-expo);
}

.education-card:hover {
    border-color: var(--glass-border-hover);
}

.education-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.education-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.education-status {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
}

.education-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.education-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.education-info i {
    color: var(--accent-cyan);
    width: 18px;
}

.education-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.project-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    font-size: 2.2rem;
    color: white;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-content {
    padding: 32px;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Featured Project Card */
.project-card.featured {
    border-color: rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
}

.project-card.featured:hover {
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.2);
}

/* Project Badge */
.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #f59e0b 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.project-badge i {
    font-size: 0.8rem;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.projects-cta {
    text-align: center;
    padding: 56px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.projects-cta p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-cards {
    display: grid;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out-expo);
}

.contact-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(10px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #128C7E);
}

.contact-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.contact-icon.github {
    background: linear-gradient(135deg, #333, #6e5494);
}

.contact-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form {
    padding: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 80px 0 40px;
    position: relative;
    background: var(--bg-secondary);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5), 0 0 60px rgba(0, 102, 255, 0.3);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

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

.footer-nav h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-contact a i {
    color: var(--accent-cyan);
    width: 20px;
}

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

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-social {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
}

.footer-social:hover {
    color: white;
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-made i {
    color: #ef4444;
    margin: 0 4px;
}

.footer-made i.fa-coffee {
    color: #a16207;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-contact a {
        justify-content: center;
    }

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

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 100px 0;
    }

    .navbar {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        border-radius: var(--radius-lg);
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        background: var(--bg-secondary);
        border-left: 1px solid var(--glass-border);
        border-radius: 0;
        transition: right 0.4s var(--ease-out-expo);
        z-index: 999;
    }

    .nav-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        color: var(--text-primary);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-close:hover {
        background: var(--accent-cyan);
        color: var(--bg-primary);
        border-color: var(--accent-cyan);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 20px 40px;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .education-icon {
        margin: 0 auto;
    }

    .education-header {
        justify-content: center;
    }

    .education-info span {
        justify-content: center;
    }

    .education-tags {
        justify-content: center;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 0;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

    .contact-form {
        padding: 28px;
    }
}

/* =====================================================
   ANIMATIONS & ENHANCED EFFECTS
   ===================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-main);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Transition */
.btn,
.social-link,
.nav-link,
.theme-toggle {
    transition: all 0.3s var(--ease-out-expo), transform 0.15s ease-out !important;
}

/* Form Focus Glow */
.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.15), 0 0 20px rgba(0, 217, 255, 0.1);
}

.form-group.focused label {
    color: var(--accent-cyan);
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageIn 0.6s var(--ease-out-expo);
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Stagger Animation Classes */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            var(--glass-bg) 25%,
            var(--glass-bg-hover) 50%,
            var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glow Pulse Animation */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Text Gradient Animation */
.animate-gradient {
    background: var(--gradient-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 10s linear infinite;
}

/* Scale Pulse */
@keyframes scalePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.scale-pulse {
    animation: scalePulse 2s ease-in-out infinite;
}

/* Line Draw Animation */
@keyframes lineDraw {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Typing Cursor Blink */
@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    animation: cursorBlink 1s step-end infinite;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* Skip to Content Link */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 20px;
    outline: none;
}

/* Enhanced Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Focus within cards */
.nav-link:focus-visible,
.btn:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-orb,
    .particle,
    .cursor-glow,
    .custom-cursor {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.3);
    }

    .bento-card,
    .skill-card,
    .project-card {
        border-width: 2px;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {

    /* Hide non-essential elements */
    .navbar,
    .theme-toggle,
    .back-to-top,
    .hero-particles,
    .hero-orb,
    .bg-gradient,
    .bg-grid,
    .cursor-glow,
    .scroll-progress,
    .contact-form,
    .preloader,
    .nav-toggle,
    .footer-socials {
        display: none !important;
    }

    /* Optimize for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .section {
        padding: 40px 0;
    }

    a {
        text-decoration: underline;
        color: black !important;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .section-header {
        page-break-after: avoid;
    }

    .project-card,
    .skill-card,
    .bento-card {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ccc !important;
        background: white !important;
    }

    .gradient-text {
        -webkit-text-fill-color: black !important;
        color: black !important;
        background: none !important;
    }

    .hero-title .gradient-text {
        filter: none !important;
    }

    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}