    /* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
    :root {
        /* Colors - Monochrome & Glass */
        --color-bg: #000000;
        --color-surface: #0a0a0a;
        --color-surface-glass: rgba(20, 20, 20, 0.6);
        --color-text: #ffffff;
        --color-text-muted: #a0a0a0;
        --color-text-dark: #666666;
        --color-border: rgba(255, 255, 255, 0.1);
        --color-border-hover: rgba(255, 255, 255, 0.3);
        --color-primary: #ffffff;
        --color-accent: #ffffff;
        --color-particle-rgb: 255, 255, 255;

        /* Spacing */
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 32px;
        --spacing-xl: 64px;
        --spacing-2xl: 128px;

        /* Typography */
        --font-sans: 'Inter', sans-serif;
        --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 2rem;
        --font-size-4xl: 3rem;

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

        /* Transitions */
        --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

        /* Shadows */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.15);

        /* Z-index layers */
        --z-background: -2;
        --z-shapes: -1;
        --z-content: 1;
        --z-navbar: 100;
        --z-modal: 1000;
        --z-loader: 9999;
    }

    /* Light Mode Variables */
    :root[data-theme="light"] {
        --color-bg: #ffffff;
        --color-surface: #f5f5f5;
        --color-surface-glass: rgba(240, 240, 240, 0.6);
        --color-text: #000000;
        --color-text-muted: #666666;
        --color-text-dark: #999999;
        --color-border: rgba(0, 0, 0, 0.1);
        --color-border-hover: rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
        --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.05);
    }

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

    body {
        font-family: var(--font-sans);
        background: var(--color-bg);
        color: var(--color-text);
        overflow-x: hidden;
        position: relative;
        scroll-behavior: smooth;
        overflow-wrap: break-word;
        line-height: 1.6;
        font-size: var(--font-size-base);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-sans);
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    code,
    pre,
    .font-mono {
        font-family: var(--font-mono);
    }

    /* Reduce motion for users who prefer it */
    @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;
        }
    }

    /* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--color-text-dark);
        border-radius: var(--radius-md);
        border: 2px solid var(--color-bg);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-muted);
    }

    /* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */
    /* body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: var(--z-background);
    will-change: transform;
} */

    @keyframes gradientShift {

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

        33% {
            transform: scale(1.1) rotate(120deg);
        }

        66% {
            transform: scale(0.9) rotate(240deg);
        }
    }

    /* ============================================
   NAVIGATION
   ============================================ */
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: var(--z-navbar);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all var(--transition-base);
    }

    nav.scrolled {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(30px);
        padding: 15px var(--spacing-lg);
    }

    .logo {
        display: flex;
        align-items: center;
        font-size: var(--font-size-xl);
        font-weight: 600;
        color: var(--color-text);
        letter-spacing: -0.5px;
        transition: all var(--transition-base);
        cursor: pointer;
    }

    .logo:hover {
        opacity: 0.8;
    }

    .logo-img {
        height: 45px;
        width: auto;
        transition: all var(--transition-base);
    }

    /* Resume link in nav */
    .nav-resume {
        display: inline-block;
        padding: 6px 10px;
        background: linear-gradient(90deg, #7c4dff 0%, #4f7bff 100%);
        color: #fff;
        border-radius: var(--radius-md);
        text-decoration: none;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-resume:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    /* Theme Toggle Button */
    .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        border: 1px solid var(--color-text);
        background: var(--color-surface);
        cursor: pointer;
        transition: all 0.3s ease;
        margin-left: var(--spacing-md);
        position: relative;
        overflow: hidden;
    }

    /* Circular moving element */
    .theme-toggle::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--color-text);
        transition: transform 0.3s ease;
        transform: translateX(10px);
        /* Default to dark position */
    }

    .theme-toggle:hover {
        transform: scale(1.1);
        background: var(--color-border);
    }

    /* Hide the SVG icons */
    .theme-toggle svg {
        display: none;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
        z-index: var(--z-menu-toggle);
        background: linear-gradient(135deg, rgba(120, 80, 255, 0.2), rgba(80, 100, 255, 0.2));
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border: 1px solid rgba(120, 80, 255, 0.3);
        border-radius: var(--radius-lg);
        padding: var(--spacing-sm);
        transition: all var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    .menu-toggle:hover {
        background: linear-gradient(135deg, rgba(120, 80, 255, 0.3), rgba(80, 100, 255, 0.3));
        border-color: rgba(120, 80, 255, 0.5);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(120, 80, 255, 0.3);
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: linear-gradient(90deg, #fff, var(--color-primary));
        margin: 4px 0;
        border-radius: 2px;
        transition: var(--transition-base);
        box-shadow: var(--shadow-sm);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    /* Navigation Links */
    .nav-links {
        display: flex;
        gap: var(--spacing-lg);
        list-style: none;
        align-items: center;
        margin-left: auto;
    }

    .nav-links a {
        color: var(--color-text-muted);
        text-decoration: none;
        transition: all var(--transition-base);
        font-size: var(--font-size-sm);
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
        transition: width var(--transition-base);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--color-text);
    }

    .nav-links a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 4px;
        border-radius: 2px;
    }

    /* ============================================
   GEOMETRIC SHAPES & PARTICLES
   ============================================ */
    .geometric-shapes {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: var(--z-shapes);
    }

    .shape {
        position: absolute;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: floatAdvanced 20s infinite ease-in-out;
        will-change: transform;
    }

    .liquid-orb {
        position: absolute;
        border-radius: var(--radius-full);
        background: radial-gradient(circle at 30% 30%, rgba(120, 50, 255, 0.3), transparent 70%);
        filter: blur(40px);
        animation: liquidMove 25s infinite ease-in-out;
        will-change: transform;
    }

    .liquid-orb:nth-child(1) {
        width: 400px;
        height: 400px;
        top: -200px;
        left: -200px;
        animation-delay: 0s;
    }

    .liquid-orb:nth-child(2) {
        width: 300px;
        height: 300px;
        bottom: -150px;
        right: -150px;
        background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.3), transparent 70%);
        animation-delay: 5s;
    }

    .liquid-orb:nth-child(3) {
        width: 250px;
        height: 250px;
        top: 50%;
        left: 50%;
        background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
        animation-delay: 10s;
    }

    @keyframes liquidMove {

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

        25% {
            transform: translate(100px, -50px) scale(1.1);
        }

        50% {
            transform: translate(-50px, 100px) scale(0.9);
        }

        75% {
            transform: translate(-100px, -100px) scale(1.05);
        }
    }

    .triangle {
        width: 0;
        height: 0;
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 100px solid rgba(255, 255, 255, 0.02);
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .circle {
        width: 150px;
        height: 150px;
        border-radius: var(--radius-full);
        top: 60%;
        right: 15%;
        animation-delay: 5s;
    }

    .square {
        width: 100px;
        height: 100px;
        top: 70%;
        left: 20%;
        transform: rotate(45deg);
        animation-delay: 10s;
    }

    .hexagon {
        width: 80px;
        height: 80px;
        top: 15%;
        right: 25%;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        animation-delay: 15s;
    }

    @keyframes floatAdvanced {

        0%,
        100% {
            transform: translateY(0) rotate(0deg) scale(1);
            opacity: 0.3;
        }

        25% {
            transform: translateY(-30px) rotate(90deg) scale(1.1);
            opacity: 0.5;
        }

        50% {
            transform: translateY(20px) rotate(180deg) scale(0.9);
            opacity: 0.2;
        }

        75% {
            transform: translateY(-15px) rotate(270deg) scale(1.05);
            opacity: 0.4;
        }
    }

    #particle-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: var(--z-background);
        pointer-events: none;
        /* Allow clicks to pass through, but we'll track mouse on window */
    }

    .particles {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: var(--z-shapes);
        display: none;
        /* Hide old CSS particles */
    }



    .particle {
        position: absolute;
        width: 2px;
        height: 2px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-full);
        animation: particleFloat 20s infinite linear;
    }

    @keyframes particleFloat {
        0% {
            transform: translateY(100vh) translateX(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateY(-100vh) translateX(100px);
            opacity: 0;
        }
    }

    /* ============================================
   LAYOUT CONTAINER
   ============================================ */
    .container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--spacing-lg);
        position: relative;
        z-index: var(--z-content);
    }

    /* ============================================
   HERO SECTION
   ============================================ */
    .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(600px, 90vw);
        height: min(600px, 90vw);
        background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
        animation: pulseGlow 4s ease-in-out infinite;
    }

    @keyframes pulseGlow {

        0%,
        100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.5;
        }

        50% {
            transform: translate(-50%, -50%) scale(1.2);
            opacity: 0.2;
        }
    }

    .portfolio-label {
        color: var(--color-text-dark);
        text-transform: uppercase;
        letter-spacing: 5px;
        font-size: var(--font-size-xs);
        margin-bottom: 30px;
        animation: fadeInUp 1s ease forwards;
        opacity: 0;
        animation-delay: 0.2s;
        text-align: center;
    }

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

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

    h1 {
        font-size: clamp(36px, 8vw, 96px);
        font-weight: 800;
        margin-bottom: var(--spacing-md);
        color: var(--color-text);
        animation: fadeInUp 1s ease forwards;
        opacity: 0;
        animation-delay: 0.4s;
        line-height: 1.1;
        text-align: center;
        letter-spacing: -2px;
    }

    @keyframes gradientText {

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

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

    .subtitle {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: var(--spacing-lg);
        animation: fadeInUp 1s ease forwards;
        opacity: 0;
        animation-delay: 0.6s;
        max-width: 90%;
        text-align: center;
        background: linear-gradient(135deg, #fff 0%, #fff 50%, #fff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
        animation: gradientText 3s ease infinite, fadeInUp 1s ease forwards;
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    }

    .cta-buttons {
        display: flex;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
        animation: fadeInUp 1s ease forwards;
        opacity: 0;
        animation-delay: 0.8s;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        padding: 14px 35px;
        background: transparent;
        border: 1px solid var(--color-border);
        color: var(--color-text);
        cursor: pointer;
        transition: all var(--transition-base);
        font-size: var(--font-size-sm);
        text-decoration: none;
        display: inline-block;
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-full);
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .btn.primary {
        background: var(--color-text);
        color: var(--color-bg);
        border-color: var(--color-text);
    }

    .btn.primary:hover {
        background: transparent;
        color: var(--color-text);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    .btn.secondary {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .btn.secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .btn.outline {
        border-color: var(--color-text-dark);
        color: var(--color-text-muted);
    }

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

    .btn:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 4px;
    }

    .social-links {
        display: flex;
        gap: 25px;
        justify-content: center;
        animation: fadeInUp 1s ease forwards;
        opacity: 0;
        animation-delay: 1s;
    }

    .social-links a {
        color: var(--color-text-dark);
        transition: all var(--transition-base);
        position: relative;
        display: inline-flex;
    }

    .social-links a::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        background: var(--color-primary);
        border-radius: var(--radius-full);
        opacity: 0;
        transition: all var(--transition-base);
    }

    .social-links a:hover {
        color: var(--color-text);
        transform: translateY(-3px);
    }

    .social-links a:hover::after {
        opacity: 1;
        box-shadow: 0 0 10px #fff;
    }

    .social-links a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 4px;
        border-radius: 4px;
    }

    /* ============================================
   GLASS CARD EFFECT
   ============================================ */
    .glass-card {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-2xl);
        overflow: hidden;
        position: relative;
    }

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    /* ============================================
   ABOUT SECTION
   ============================================ */
    .about {
        padding: var(--spacing-2xl) 0;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .about h2 {
        font-size: clamp(32px, 6vw, 48px);
        margin-bottom: var(--spacing-lg);
        background: linear-gradient(135deg, #fff, #fff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .about-content {
        max-width: 900px;
        line-height: 1.8;
        color: var(--color-text-light);
        margin-bottom: var(--spacing-xl);
        font-size: var(--font-size-lg);
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 30px;
        margin-top: var(--spacing-xl);
    }

    .education-section,
    .skills-section {
        padding: 30px;
        transition: transform var(--transition-base), box-shadow var(--transition-base);
    }

    .education-section:hover,
    .skills-section:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    .section-title {
        font-size: var(--font-size-sm);
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--color-primary);
        margin-bottom: 30px;
        font-weight: 600;
    }

    .timeline-section {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .timeline {
        position: relative;
        padding-left: 30px;
        border-left: 1px solid var(--color-border);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 40px;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -35px;
        top: 5px;
        width: 10px;
        height: 10px;
        background: var(--color-bg);
        border: 2px solid var(--color-text);
        border-radius: 50%;
    }

    .timeline-date {
        font-size: var(--font-size-xs);
        color: var(--color-text-muted);
        margin-bottom: 5px;
    }

    .timeline-content h3 {
        font-size: var(--font-size-lg);
        color: var(--color-text);
        margin-bottom: 5px;
    }

    .timeline-content p {
        font-size: var(--font-size-sm);
        color: var(--color-text-dark);
        margin-bottom: 5px;
    }

    .grade {
        font-size: var(--font-size-xs);
        color: var(--color-text);
        padding: 2px 8px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        display: inline-block;
    }

    .skill-category {
        margin-bottom: var(--spacing-md);
        transition: all var(--transition-base);
    }

    .skill-category:hover {
        padding-left: var(--spacing-sm);
    }

    .skill-label {
        color: var(--color-text);
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
        font-weight: 500;
    }

    .skill-items {
        color: var(--color-text-dark);
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }

    /* ============================================
   PROJECTS SECTION
   ============================================ */
    .projects {
        padding: var(--spacing-2xl) 0;
        position: relative;
    }

    .projects h2 {
        font-size: clamp(32px, 6vw, 48px);
        margin-bottom: var(--spacing-xl);
        background: linear-gradient(135deg, #fff, #999);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 30px;
    }

    .project-card {
        padding: var(--spacing-lg);
        transition: all var(--transition-base);
        cursor: pointer;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        border: 1px solid var(--color-border);
    }

    .project-card:hover {
        transform: translateY(-5px);
        border-color: var(--color-text);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    }

    .project-title {
        font-size: var(--font-size-xl);
        margin-bottom: 10px;
        color: var(--color-text);
        font-weight: 600;
    }

    .project-description {
        color: var(--color-text-dark);
        font-size: var(--font-size-sm);
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    .tech-stack {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .tech-tag {
        font-size: 10px;
        padding: 4px 8px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-full);
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Base button */
    .view-project {
        position: relative;
        display: inline-block;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        color: #fff;
        text-decoration: none;
        border: 1px solid #777;
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: color 0.3s ease, transform 0.28s ease, box-shadow 0.35s ease;
        will-change: transform, color, box-shadow;
        z-index: 1;
        backdrop-filter: blur(4px);
    }

    /* Action group for project links */
    .project-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
        /* allow wrapping on narrow cards */
    }

    @media (min-width: 900px) {
        .project-actions {
            flex-wrap: nowrap;
            /* keep side-by-side on laptop/desktop */
        }
    }

    /* Projects footer button */
    .projects-footer {
        text-align: center;
        margin-top: var(--spacing-xl);
    }

    .view-workshops {
        /* layout helper only — visual styles come from .view-project */
        display: inline-block;
        margin-top: var(--spacing-lg);
    }

    /* Animated metallic shine */
    .view-project::before {
        content: "";
        position: absolute;
        inset: 0;
        left: -120%;
        background: linear-gradient(90deg,
                #555 0%,
                #999 50%,
                #555 100%);
        opacity: 0.95;
        transition: left 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
        z-index: -1;
    }

    /* Gloss layer */
    .view-project::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.15),
                rgba(255, 255, 255, 0));
        pointer-events: none;
        z-index: -1;
    }

    /* Hover effect */
    .view-project:hover::before {
        left: 0;
    }

    .view-project:hover {
        color: #fff;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 6px 20px rgba(150, 150, 150, 0.45);
        animation: metallicPulse 1.7s ease-in-out infinite;
    }

    /* Focus state */
    .view-project:focus-visible {
        outline: 3px solid rgba(150, 150, 150, 0.6);
        outline-offset: 4px;
    }

    /* Metallic glow pulse */
    @keyframes metallicPulse {

        0%,
        100% {
            box-shadow: 0 0 10px rgba(160, 160, 160, 0.35);
        }

        50% {
            box-shadow: 0 0 22px rgba(180, 180, 180, 0.7);
        }
    }



    /* ============================================
   CONTACT SECTION
   ============================================ */
    .contact {
        padding: var(--spacing-2xl) 0;
        text-align: center;
        position: relative;
    }

    .contact h2 {
        font-size: clamp(32px, 6vw, 48px);
        margin-bottom: 30px;
        background: linear-gradient(135deg, #fff, #333);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .contact-description {
        color: var(--color-text-muted);
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .contact-links {
        display: flex;
        gap: var(--spacing-lg);
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        color: var(--color-text-dark);
        text-decoration: none;
        transition: all var(--transition-base);
        padding: var(--spacing-sm) var(--spacing-md);
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 25px;
    }

    .contact-item:hover {
        color: var(--color-text);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .contact-item:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 4px;
    }

    /* ============================================
   FOOTER
   ============================================ */
    footer {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(15, 15, 15, 1) 100%);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(100, 100, 100, 0.2);
        padding: var(--spacing-xl) var(--spacing-lg) 30px;
        position: relative;
        overflow: hidden;
    }

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #333, #555, #333, transparent);
        animation: shimmer 3s linear infinite;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 50px;
        margin-bottom: 50px;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-logo {
        font-size: 32px;
        font-weight: 700;
        background: linear-gradient(135deg, #fff, #fff, #fff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 1px;
        margin-bottom: var(--spacing-xs);
    }

    .footer-logo:hover {
        background: linear-gradient(135deg, #fff, #fff, #fff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .footer-tagline {
        color: #999;
        font-size: 15px;
        line-height: 1.6;
        max-width: 300px;
    }

    .footer-section-title {
        color: var(--color-text);
        font-size: var(--font-size-base);
        font-weight: 600;
        margin-bottom: var(--spacing-md);
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        padding-bottom: var(--spacing-sm);
    }

    .footer-section-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, #333, #555);
    }

    .footer-center {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-link {
        color: var(--color-text-light);
        text-decoration: none;
        font-size: 15px;
        transition: all var(--transition-base);
        position: relative;
        padding-left: 0;
        width: fit-content;
    }

    .footer-link::before {
        content: '→';
        position: absolute;
        left: -20px;
        opacity: 0;
        transition: all var(--transition-base);
        color: #333;
    }

    .footer-link:hover {
        color: var(--color-text);
        padding-left: var(--spacing-md);
        transform: translateX(5px);
    }

    .footer-link:hover::before {
        opacity: 1;
        left: 0;
    }

    .footer-link:focus-visible {
        outline: 2px solid #333;
        outline-offset: 4px;
        border-radius: 2px;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-social-container {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-social {
        width: 50px;
        height: 50px;
        border-radius: var(--radius-xl);
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 22px;
        transition: all var(--transition-base);
        position: relative;
        overflow: hidden;
        color: var(--color-text-light);
    }

    .footer-social::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: var(--radius-full);
        background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
        transform: translate(-50%, -50%);
        transition: all var(--transition-slow);
    }

    .footer-social:hover::before {
        width: 100px;
        height: 100px;
    }

    .footer-social:hover {
        transform: translateY(-5px);
        border-color: #fff;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.2);
        color: var(--color-text);
    }

    .footer-social:focus-visible {
        outline: 2px solid #333;
        outline-offset: 4px;
    }

    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .footer-logo-svg {
        filter: drop-shadow(0 0 8px rgba(100, 100, 100, 0.6));
        transition: transform var(--transition-base);
    }

    .footer-logo-svg:hover {
        transform: scale(1.1);
    }

    .footer-bottom p {
        color: var(--color-text-dark);
        font-size: var(--font-size-sm);
        text-align: center;
    }

    .footer-bottom span {
        color: #333;
        font-weight: 600;
    }

    /* ============================================
   SCROLL INDICATOR
   ============================================ */
    .scroll-indicator {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        animation: bounce 2s infinite;
        cursor: pointer;
    }

    .scroll-indicator::before {
        content: '';
        display: block;
        width: 20px;
        height: 30px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        position: relative;
    }

    .scroll-indicator::after {
        content: '';
        display: block;
        width: 4px;
        height: 8px;
        background: var(--color-primary);
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        animation: scrollDot 2s infinite;
    }

    @keyframes bounce {

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

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

    @keyframes scrollDot {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        50% {
            transform: translateX(-50%) translateY(5px);
            opacity: 0.5;
        }
    }

    /* ============================================
   RESPONSIVE DESIGN
   ============================================ */

    /* Tablets and smaller desktops */
    @media (max-width: 968px) {
        :root {
            --spacing-lg: 30px;
            --spacing-xl: 50px;
            --spacing-2xl: 80px;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
            text-align: center;
        }

        .footer-left,
        .footer-center,
        .footer-right {
            align-items: center;
        }

        .footer-section-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .footer-social-container {
            justify-content: center;
        }

        .footer-link {
            margin: 0 auto;
        }

        .footer-tagline {
            margin: 0 auto;
        }
    }

    /* Tablets */
    @media (max-width: 768px) {
        :root {
            --spacing-md: 15px;
            --spacing-lg: 20px;
            --spacing-xl: 40px;
            --spacing-2xl: 60px;
        }

        nav {
            padding: 15px 20px;
        }

        .logo {
            font-size: var(--font-size-lg);
        }

        .container {
            padding: 0 var(--spacing-md);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Mobile Navigation */
        .menu-toggle {
            display: flex;
        }

        .nav-links {
            position: fixed;
            top: 60px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 60px);
            background: rgba(0, 0, 0, 0.98);
            backdrop-filter: blur(20px);
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px;
            transition: left var(--transition-base);
            padding: var(--spacing-lg);
        }

        .nav-links.active {
            left: 0;
        }

        .nav-links a {
            font-size: var(--font-size-base);
            padding: var(--spacing-sm) 0;
            color: var(--color-text);
        }

        /* Hero Section Mobile Centering */
        .hero .container {
            width: 100%;
            max-width: 100%;
            text-align: center;
            align-items: center;
        }

        .portfolio-label,
        h1,
        .subtitle {
            width: 100%;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .subtitle {
            max-width: 100%;
            padding: 0 var(--spacing-md);
        }

        .cta-buttons {
            width: 100%;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
            justify-content: center;
        }

        .social-links {
            width: 100%;
            justify-content: center;
        }

        /* Grid layouts */
        .about-grid,
        .projects-grid {
            grid-template-columns: 1fr;
            gap: var(--spacing-md);
            width: 100%;
        }

        /* Centered content on mobile */
        .about h2,
        .projects h2,
        .contact h2 {
            text-align: center;
            width: 100%;
        }

        .about-content {
            text-align: center;
            width: 100%;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .education-section,
        .skills-section {
            padding: var(--spacing-md);
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .project-card {
            padding: 25px var(--spacing-md);
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
            text-align: center;
        }

        .project-title {
            text-align: center;
        }

        .project-description {
            text-align: center;
        }

        .view-project {
            display: inline-block;
            margin: 0 auto;
        }

        .contact-links {
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .contact-item {
            width: 100%;
            max-width: 400px;
            justify-content: center;
        }
    }

    /* Mobile devices */
    @media (max-width: 600px) {
        .container {
            padding: 0 var(--spacing-md);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hero .container,
        .about .container,
        .projects .container,
        .contact .container {
            align-items: center;
            text-align: center;
        }

        .subtitle {
            font-size: var(--font-size-sm);
            padding: 0 var(--spacing-md);
            text-align: center;
            width: 100%;
        }

        .social-links {
            gap: var(--spacing-md);
            width: 100%;
            justify-content: center;
        }

        .social-links a svg {
            width: 20px;
            height: 20px;
        }

        .btn {
            font-size: 13px;
            padding: 12px 28px;
            width: 100%;
            max-width: 280px;
        }

        .about-grid {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .projects-grid {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }

    /* Small mobile devices */
    @media (max-width: 480px) {
        :root {
            --font-size-2xl: 36px;
        }

        .container {
            padding: 0 var(--spacing-md);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .footer-logo {
            font-size: 24px;
        }

        .footer-social {
            width: 45px;
            height: 45px;
            font-size: 20px;
        }

        h1 {
            font-size: clamp(32px, 10vw, 48px);
            text-align: center;
            width: 100%;
        }

        .about h2,
        .projects h2,
        .contact h2 {
            font-size: clamp(28px, 8vw, 36px);
            text-align: center;
            width: 100%;
        }

        .cta-buttons {
            flex-direction: column;
            width: 100%;
            max-width: 300px;
            gap: 12px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn {
            width: 100%;
            max-width: 300px;
            text-align: center;
        }

        .about-content {
            font-size: var(--font-size-sm);
            text-align: center;
            width: 100%;
        }

        .project-card {
            padding: var(--spacing-md);
            text-align: center;
            width: 100%;
        }

        .contact-links {
            max-width: 280px;
            margin: 0 auto;
            width: 100%;
        }

        .contact-description {
            text-align: center;
            width: 100%;
        }

        footer {
            padding: 30px 15px 20px;
        }

        .education-section,
        .skills-section {
            width: 100%;
            text-align: center;
        }

        .degree {
            justify-content: center;
            text-align: center;
        }

        .institution {
            text-align: center;
        }
    }

    /* Extra small devices */
    @media (max-width: 375px) {
        .container {
            padding: 0 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        h1 {
            font-size: clamp(28px, 10vw, 36px);
            text-align: center;
            width: 100%;
        }

        .btn {
            padding: 11px 24px;
            font-size: 12px;
            width: 100%;
            max-width: 260px;
            text-align: center;
        }

        .cta-buttons {
            width: 100%;
            max-width: 260px;
        }

        footer {
            padding: 25px 10px 15px;
        }

        .footer-content {
            gap: 30px;
        }

        .about h2,
        .projects h2,
        .contact h2 {
            text-align: center;
            width: 100%;
        }
    }

    /* Landscape orientation adjustments */
    @media (max-height: 600px) and (orientation: landscape) {
        .hero {
            min-height: auto;
            padding: 100px 0 60px;
        }

        .hero::before {
            width: 400px;
            height: 400px;
        }

        h1 {
            font-size: clamp(32px, 6vw, 48px);
            margin-bottom: 15px;
        }

        .subtitle {
            margin-bottom: 25px;
        }

        .cta-buttons {
            margin-bottom: 30px;
        }
    }

    /* High resolution displays */
    @media (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
        .glass-card::before {
            height: 2px;
        }

        .nav-links a::after {
            height: 3px;
        }
    }

    /* Print styles */
    @media print {

        .geometric-shapes,
        .particles,
        .scroll-indicator,
        nav,
        .cta-buttons,
        .social-links {
            display: none;
        }

        body {
            background: white;
            color: black;
        }

        body::before {
            display: none;
        }

        .container {
            max-width: 100%;
        }
    }

    /* Desktop / Laptop: ensure project action links appear side-by-side */
    @media (min-width: 900px) {
        .project-card {
            /* allow actions to be visible and not clipped */
            overflow: visible;
        }

        /* Keep action links inline and add a small gap; allow wrapping if card is too narrow */
        .project-card .view-project {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin: 0 8px 8px 0;
            vertical-align: middle;
        }

        .project-card .view-project:last-of-type {
            margin-right: 0;
        }

        /* Slightly increase card minimum on wide screens so two buttons fit better */
        .projects-grid {
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        }
    }