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

:root {
    /* Pitch Black Theme Colors - Enhanced */
    --pitch-black: #000000;
    --dark-surface: #0a0a0a;
    --dark-elevated: #141414;
    --dark-border: rgba(255, 255, 255, 0.08);
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-text-muted: #808080;
    --dark-accent: #1a1a1a;

    /* Light Theme Colors - Enhanced */
    --light-bg: #f8f9fa;
    --light-surface: #ffffff;
    --light-elevated: #f1f3f5;
    --light-border: rgba(0, 0, 0, 0.1);
    --light-text-primary: #212529;
    --light-text-secondary: #495057;
    --light-text-muted: #6c757d;
    --light-accent: #e9ecef;

    /* Brand Colors - Enhanced for Pitch Black */
    --primary: #00d4ff;
    --primary-light: #33e0ff;
    --primary-dark: #00a8cc;
    --secondary: #ff00ff;
    --accent: #ffaa00;
    --success: #00ff88;
    --warning: #ffcc00;
    --error: #ff4466;

    /* Gradients - Enhanced */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #cc00cc 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #ff8800 100%);
    --gradient-hero: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 50%, #ff00ff 100%);

    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6), 0 10px 10px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.5);
    --shadow-neon-secondary: 0 0 20px rgba(255, 0, 255, 0.5);

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 400ms ease;

    /* Responsive Breakpoints */
    --mobile-xs: 320px;
    --mobile-sm: 480px;
    --mobile-md: 640px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1280px;
    --desktop-xl: 1440px;
}

/* Light Theme - Enhanced */
/* --- NEW ENHANCED LIGHT THEME --- */
html.light-theme {
    /* 1. Refined Background & Surface Colors for Depth */
    --bg-primary: #f4f7f9; /* A softer, off-white for the main background */
    --bg-surface: #ffffff; /* Pure white for cards and primary surfaces */
    --bg-elevated: #f0f3f5; /* A slightly darker shade for contrast */
    --bg-border: #e1e8ed;  /* A subtle border color */

    /* 2. Improved Text Colors for Readability */
    --text-primary: #1f2937; /* A soft, dark gray instead of pure black */
    --text-secondary: #4b5563; /* A lighter gray for descriptions */
    --text-muted: #9ca3af;   /* Muted gray for less important text */
    --text-accent: #e5e7eb;   /* Accent color for subtle backgrounds */

    /* 3. Modern & Professional Brand Colors */
    --primary: #3b82f6;      /* A vibrant, modern blue */
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary: #ec4899;    /* A warm, energetic pink for secondary actions */
    --accent: #f59e0b;       /* A friendly amber for accents */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* 4. Adapted Gradients for the New Palette */
    --gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--secondary) 100%);

    /* 5. Softer Shadows instead of Neon Glows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    /* "Neon" shadows are now soft, colored glows suitable for a light background */
    --shadow-neon: 0 4px 20px rgba(59, 130, 246, 0.25);
    --shadow-neon-secondary: 0 4px 20px rgba(236, 72, 153, 0.25);
}

/* Dark Theme (Default) - Pitch Black */
html {
    --bg-primary: var(--pitch-black);
    --bg-surface: var(--dark-surface);
    --bg-elevated: var(--dark-elevated);
    --bg-border: var(--dark-border);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-muted: var(--dark-text-muted);
    --text-accent: var(--dark-accent);
}

/* Keep hero and navbar dark even in light theme */
/* Default Dark Theme styles for Hero and Nav */

html.light-theme nav {
    background: rgba(255, 255, 255, 0.7); /* Frosted glass effect on light background */
    border-bottom: 1px solid var(--bg-border);
}

html.light-theme nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

/* Make nav links darker on light theme */
html.light-theme .nav-link {
    color: var(--text-secondary);
}

html.light-theme .nav-link:hover,
html.light-theme .nav-link.active {
    color: var(--primary);
}

/* Light theme override for the Hero section */
html.light-theme .hero {
    background: var(--light-bg); /* Use the light theme background variable */
}
.hero {
    background: var(--bg-primary); /* Use the theme's primary background */
}

nav {
    background: rgba(0, 0, 0, 0.8); /* Keeps nav dark for contrast */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
    font-weight: 400;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    width: 100%;
    max-width: 100vw;
}

/* Enhanced Mobile Viewport Fixes */
@media (max-width: 768px) {
    body {
        cursor: auto;
        width: 100%;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden;
    }
    
    /* Prevent horizontal scroll on all elements */
    * {
        max-width: 100%;
    }
    
    /* Fix for sections that might cause overflow */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Container max width fixes */
    .container, .hero-content, .nav-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Container Class */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

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

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

/* 3D Background Canvas */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Animated Background Lines */
.background-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.background-lines svg {
    width: 100%;
    height: 100%;
}

.line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease-in-out infinite;
}

.line-1 {
    animation-delay: 0s;
}

.line-2 {
    animation-delay: 1s;
}

.line-3 {
    animation-delay: 2s;
}

.line-4 {
    animation-delay: 3s;
}

.line-5 {
    animation-delay: 4s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -1000;
        opacity: 0;
    }
}

/* Floating Dock Navigation */
.floating-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-normal);
}

.dock-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dock-item {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.dock-item:hover {
    transform: translateY(-10px) scale(1.2);
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.dock-item i {
    font-size: 20px;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

.dock-item:hover i {
    color: var(--bg-primary);
}

.dock-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--bg-border);
}

.dock-item:hover .dock-label {
    opacity: 1;
    bottom: -35px;
}

/* 3D Card Effect */
.card-3d {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(180deg);
}

.card-3d-front,
.card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-3d-front {
    background: rgba(15, 20, 35, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 30px;
    justify-content: flex-start;
}

.card-3d-back {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(15, 25, 40, 0.95));
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.card-3d-back h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

.card-3d-back p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.card-3d-back ul {
    list-style: none;
    text-align: left;
    width: 100%;
}

.card-3d-back ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.card-3d-back ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 48px;
        height: 48px;
        top: 20px;
        right: 75px; /* Make room for mobile menu button */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .theme-toggle i {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
        top: 18px;
        right: 70px;
    }

    .theme-toggle i {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 42px;
        height: 42px;
        top: 16px;
        right: 65px;
    }

    .theme-toggle i {
        font-size: 16px;
    }
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

/* Custom Cursor */
@media (min-width: 768px) {
    .cursor {
        width: 20px;
        height: 20px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        transition: all 50ms linear;
        z-index: 10000;
        mix-blend-mode: difference;
        will-change: transform;
    }

    .cursor-follower {
        width: 40px;
        height: 40px;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        transition: all 100ms linear;
        z-index: 9999;
        will-change: transform;
    }

    .cursor.active {
        width: 50px;
        height: 50px;
        background: rgba(0, 212, 255, 0.2);
        border-color: transparent;
    }
}

@media (max-width: 767px) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10001;
    transition: width var(--transition-normal);
    box-shadow: var(--shadow-neon);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    transition: opacity var(--transition-normal);
}

.loader-content {
    text-align: center;
    padding: 20px;
}

.loader-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 30px;
}

@media (max-width: 480px) {
    .loader-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
}

.loader-logo-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 2s linear infinite;
    box-shadow: var(--shadow-neon);
}

.loader-logo-inner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s ease infinite;
}

.loader-text-h,
.loader-text-n {
    font-size: 32px;
    font-weight: 900;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 480px) {

    .loader-text-h,
    .loader-text-n {
        font-size: 24px;
    }
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-border);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 480px) {
    .loader-progress {
        width: 150px;
    }
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progress 3s ease-in-out;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-border);
    transition: all var(--transition-normal);
    height: 80px;
}

nav.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-lg);
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        position: relative;
    }
    
    /* Enhanced header background on mobile */
    header {
        backdrop-filter: blur(25px);
        background: rgba(var(--bg-primary-rgb), 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-normal);
}

@media (max-width: 640px) {
    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-elevated);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 120px 25px 30px;
        gap: 25px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        border-left: 1px solid var(--bg-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
/* Add mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: -1;
        backdrop-filter: blur(2px);
    }
    
    .nav-menu.active::before {
        left: 0;
    }
    
    /* Handle mobile landscape orientation */
    @media (max-height: 500px) and (orientation: landscape) {
        .nav-menu {
            padding: 80px 25px 20px;
            gap: 15px;
        }
        
        .nav-link {
            padding: 10px 20px;
            font-size: 16px;
        }
        
        .nav-cta {
            padding: 12px 25px;
            margin-top: 15px;
        }
    }
    
    /* Enhanced mobile menu scrolling */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: all var(--transition-normal);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 18px;
        padding: 15px 20px;
        width: 100%;
        border-radius: 12px;
        background: transparent;
        transition: all var(--transition-normal);
        justify-content: flex-start;
    }
    
    .nav-link:hover {
        background: var(--bg-card);
        color: var(--primary);
        transform: translateX(10px);
    }
    
    .nav-link.active {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

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

.nav-link i {
    margin-right: 8px;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 16px 25px;
        margin-top: 30px;
        font-size: 16px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
        border: 2px solid transparent;
        background-size: 200% 100%;
        background-position: right bottom;
        transition: all 0.3s ease;
    }
    
    .nav-cta:hover {
        background-position: left bottom;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    transition: all var(--transition-normal);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-toggle:hover {
    background: var(--bg-elevated);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

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

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

/* Navigation Tooltips */
.nav-tooltip {
    position: absolute;
    top: 35px;
    /* Changed from -35px to 35px */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--bg-border);
    z-index: 10;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 30px 80px;
    background: #000000;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 80px);
        padding: 80px 20px 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh - 60px);
        padding: 60px 15px 30px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 3;
    padding-top: 40px;
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        gap: 30px;
        padding-top: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 20px;
        padding: 0 10px;
    }
}

.hero-text {
    animation: fadeInUp 1s ease;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-text {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        margin-bottom: 20px;
    }
}

.hero-greeting {
    font-size: 22px;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .hero-greeting {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-greeting {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

.hero-greeting span {
    position: relative;
}

.hero-greeting span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00d4ff;
}

/* --- CORRECTED PREMIUM HERO TITLE --- */

/* This rule applies the gradient to the H1 and makes the text transparent */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Removed conflicting rules - now handled by specific .hero-title-line rules */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 16px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        margin-bottom: 14px;
        line-height: 1.1;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.4rem);
        margin-bottom: 12px;
    }
}

.hero-title-line {
    display: block;
    margin-bottom: 12px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-title-line:last-child {
    margin-bottom: 0;
}

/* Dark theme gradients for hero title lines - Higher specificity */
.hero-title .hero-title-line.first-name {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .hero-title-line.last-name {
    background: linear-gradient(135deg, #ff00ff 0%, #ff88aa 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light theme gradients for hero title lines - Higher specificity */
html.light-theme .hero-title .hero-title-line.first-name {
    background: linear-gradient(135deg, #2563eb 0%, #a855f7 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-theme .hero-title .hero-title-line.last-name {
    background: linear-gradient(135deg, #db2777 0%, #f43f5e 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    border-radius: 3px;
    opacity: 0.7;
}

.hero-title-subtitle {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-title-subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00a8cc);
    border-radius: 2px;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .hero-title-subtitle {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }
}

.hero-description {
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-weight: 400;
    position: relative;
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

@media (max-width: 640px) {
    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 12px 18px;
    }
}

.hero-description::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ff00ff);
    border-radius: 3px;
}

@media (max-width: 1200px) {
    .hero-description::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
    }
}


.name-divider {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 10px;
    vertical-align: middle;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 640px) {
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 22px;
        font-size: 14px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.btn:hover .btn-bg {
    transform: translateX(100%);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced Tech Stack Animation - Equal Distribution Grid */
.tech-stack-animation {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    min-height: 500px;
    max-height: 600px;
    place-items: center;
    padding: 40px;
    overflow: hidden;
}

/* Tech Card Styles - Enhanced Floating Cards */
.tech-card {
    position: relative;
    width: 140px;
    height: 140px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.tech-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tech-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.tech-icon i {
    font-size: 32px;
    transition: all 0.3s ease;
    color: var(--primary);
}

.tech-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.5px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* Light theme overrides */
html.light-theme .tech-card-inner {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

/* Hover Effects */
.tech-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 20;
}

.tech-card:hover .tech-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

html.light-theme .tech-card:hover .tech-card-inner {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.tech-card:hover .tech-glow {
    opacity: 0.3;
}

.tech-card:hover .tech-icon i {
    transform: scale(1.2) rotate(5deg);
}

.tech-card:hover .tech-name {
    opacity: 1;
    font-weight: 700;
}

/* Specific Technology Colors */
.tech-card[data-tech="React"]:hover .tech-icon i { color: #61DAFB; }
.tech-card[data-tech="React"]:hover .tech-glow { background: radial-gradient(circle, rgba(97, 218, 251, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="Node"]:hover .tech-icon i { color: #339933; }
.tech-card[data-tech="Node"]:hover .tech-glow { background: radial-gradient(circle, rgba(51, 153, 51, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="JavaScript"]:hover .tech-icon i { color: #F7DF1E; }
.tech-card[data-tech="JavaScript"]:hover .tech-glow { background: radial-gradient(circle, rgba(247, 223, 30, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="Python"]:hover .tech-icon i { color: #3776AB; }
.tech-card[data-tech="Python"]:hover .tech-glow { background: radial-gradient(circle, rgba(55, 118, 171, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="Docker"]:hover .tech-icon i { color: #2496ED; }
.tech-card[data-tech="Docker"]:hover .tech-glow { background: radial-gradient(circle, rgba(36, 150, 237, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="MongoDB"]:hover .tech-icon i { color: #47A248; }
.tech-card[data-tech="MongoDB"]:hover .tech-glow { background: radial-gradient(circle, rgba(71, 162, 72, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="Git"]:hover .tech-icon i { color: #F05032; }
.tech-card[data-tech="Git"]:hover .tech-glow { background: radial-gradient(circle, rgba(240, 80, 50, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="AWS"]:hover .tech-icon i { color: #FF9900; }
.tech-card[data-tech="AWS"]:hover .tech-glow { background: radial-gradient(circle, rgba(255, 153, 0, 0.3) 0%, transparent 70%); }

.tech-card[data-tech="Express"]:hover .tech-icon i { color: #000000; }
.tech-card[data-tech="Express"]:hover .tech-glow { background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%); }

html.light-theme .tech-card[data-tech="Express"]:hover .tech-icon i { color: #68D391; }
html.light-theme .tech-card[data-tech="Express"]:hover .tech-glow { background: radial-gradient(circle, rgba(104, 211, 145, 0.3) 0%, transparent 70%); }

/* Enhanced Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Animation States */
.tech-card.visible {
    opacity: 1;
    animation: slideInUp 0.8s ease-out forwards;
}

.tech-card.animate-in {
    animation: bounceIn 0.6s ease-out forwards;
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tech-stack-animation {
        gap: 20px;
        min-height: 450px;
        max-height: 550px;
        padding: 30px;
    }
    .tech-card {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .tech-stack-animation {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
        min-height: 300px;
        max-height: 400px;
        padding: 20px;
    }
    
    .tech-card {
        width: 100px;
        height: 100px;
    }
    
    .tech-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .tech-stack-animation {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        min-height: 250px;
        max-height: 300px;
        padding: 15px;
    }
    
    .tech-card {
        width: 90px;
        height: 90px;
    }
    
    .tech-card-inner {
        padding: 15px;
        border-radius: 15px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
    }
    
    .tech-icon i {
        font-size: 24px;
    }
    
    .tech-name {
        font-size: 10px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 60px;
    }
}

.section-subtitle {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

@media (max-width: 640px) {
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .section-description {
        font-size: 16px;
        padding: 0 20px;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

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

/* Premium About Section */
.premium-about {
    position: relative;
    padding: 140px 30px;
    overflow: hidden;
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .premium-about {
        padding: 100px 20px;
    }
}

/* About Background Elements */
.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.about-floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: floatingShape 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), var(--accent-purple));
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-purple), var(--primary));
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, var(--primary), var(--accent-purple));
    top: 80%;
    left: 60%;
    animation-delay: 10s;
}

@keyframes floatingShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translateY(-60px) rotate(240deg) scale(0.9);
    }
}

.floating-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.line-svg {
    width: 100%;
    height: 100%;
}

.animated-path {
    stroke-dasharray: 20 10;
    animation: pathAnimation 8s linear infinite;
}

@keyframes pathAnimation {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 300;
    }
}

/* Premium Header */
.premium-header {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.premium-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.subtitle-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.subtitle-text {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.premium-title {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
}

.title-main {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-right: 20px;
}

.title-accent {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: pulse 2s infinite;
}

.premium-description {
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Content Layout */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-normal);
}

.about-image img:hover {
    transform: translateY(-10px);
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-text h3 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-content {
        gap: 30px;
    }
}

/* Removed premium image styling - using basic layout now */

/* Removed all premium styling - using basic About section now */
/* All premium styling removed - using basic About section only */

/* Skills Section - Enhanced */
.skills {
    padding: 120px 30px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(10, 10, 15, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 187, 0.01) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.skills .container {
    position: relative;
    z-index: 2;
}

/* Floating Skills Particles */
.skills-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.skill-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    animation: floatSkillParticle 15s linear infinite;
    opacity: 0.7;
}

.skill-particle::before {
    content: attr(data-skill);
    position: absolute;
}

.skill-particle[data-skill="React"] {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.skill-particle[data-skill="Node"] {
    top: 25%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.skill-particle[data-skill="JS"] {
    top: 60%;
    left: 10%;
    animation-delay: -6s;
    animation-duration: 22s;
}

.skill-particle[data-skill="CSS"] {
    top: 40%;
    right: 15%;
    animation-delay: -9s;
    animation-duration: 16s;
}

.skill-particle[data-skill="DB"] {
    top: 80%;
    left: 30%;
    animation-delay: -12s;
    animation-duration: 24s;
}

.skill-particle[data-skill="API"] {
    top: 70%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 19s;
}

@keyframes floatSkillParticle {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-25px) translateX(10px) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 80px 20px;
    }
}

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

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 60px;
    }
}

.skill-card {
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
    min-height: 450px;
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

@media (max-width: 768px) {
    .skill-card {
        padding: 30px 20px;
        height: auto;
    }
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card:hover::after {
    opacity: 0.3;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 217, 255, 0.2), 0 0 40px rgba(0, 217, 255, 0.1);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--bg-primary);
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: iconGlow 3s ease-in-out infinite;
}

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

@media (max-width: 640px) {
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }
}

.skill-icon-bg {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s ease infinite;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5), inset 0 0 25px rgba(255, 255, 255, 0.2);
}

.skill-card:hover .skill-icon::before {
    transform: scale(1.2);
    opacity: 1;
    filter: blur(15px);
}

.skill-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.skill-card:hover .skill-title {
    transform: translateY(-5px);
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

@media (max-width: 640px) {
    .skill-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

.skill-bar {
    height: 8px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    clear: both;
    display: block;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    border-radius: 8px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 1px;
    position: relative;
    display: block !important;
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.8),
        0 0 25px rgba(0, 217, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Removed pseudo-elements to fix visibility issues */

/* Moved to end of file for maximum priority */

/* Ensure each skill block is properly separated */
.skill-details + .skill-bar + .skill-details {
    margin-top: 20px;
}

/* Force visibility for all skill items */
.card-3d-front > * {
    position: relative;
    z-index: 10;
}

.card-3d-front .skill-bar {
    position: relative;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
}

.card-3d-front .skill-details {
    position: relative;
    z-index: 10;
    display: flex !important;
    visibility: visible !important;
}

/* Progress animations removed for better compatibility */

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

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

.skill-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    font-weight: 500;
    clear: both;
}

.skill-details:first-of-type {
    margin-top: 20px;
}

@media (max-width: 640px) {
    .skill-details {
        font-size: 12px;
    }
}

/* Projects Section - Enhanced */
.projects {
    padding: 120px 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .projects {
        padding: 80px 20px;
    }
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .projects-filter {
        gap: 15px;
        margin-bottom: 40px;
    }
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.filter-btn.active,
.filter-btn:hover {
    color: #000000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    opacity: 1;
}

.projects-container {
    position: relative;
    z-index: 2;
}

.projects-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

@media (max-width: 768px) {
    .projects-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.projects-scroll-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.projects-scroll-left {
    left: -25px;
}

@media (max-width: 768px) {
    .projects-scroll-left {
        left: 10px;
    }
}

.projects-scroll-right {
    right: -25px;
}

@media (max-width: 768px) {
    .projects-scroll-right {
        right: 10px;
    }
}

.projects-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (max-width: 768px) {
    .projects-grid {
        flex-direction: column;
        overflow-x: visible;
        padding: 0;
    }
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 320px;
    width: 90vw;
    max-width: 400px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    height: 550px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Remove any pseudo-elements that might be creating the white surface */
.project-card::before,
.project-card::after {
    display: none;
}

@media (max-width: 768px) {
    .project-card {
        min-width: 100%;
        margin-bottom: 30px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .project-card {
        min-width: 100%;
    }
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #000;
}

@media (max-width: 640px) {
    .project-image {
        height: 250px;
    }
}

/* Enhanced MacBook Mockup */
.macbook-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.macbook-screen {
    position: relative;
    width: 100%;
    height: 85%;
    background: #000;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    border: 2px solid #333;
}

.macbook-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .macbook-screen img {
    transform: scale(1.05);
}

.macbook-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to bottom, #d4d4d8, #a1a1aa);
    border-radius: 0 0 10px 10px;
    transform: rotateX(-15deg);
    transform-origin: top;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-top: none;
}

.macbook-base::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #71717a;
    border-radius: 3px;
}

.macbook-base::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #71717a;
    border-radius: 2px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

@media (max-width: 640px) {
    .project-overlay {
        padding: 20px;
    }
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

@media (max-width: 480px) {
    .tech-tag {
        padding: 4px 12px;
        font-size: 10px;
    }
}

.project-content {
    padding: 30px;
    height: calc(100% - 300px);
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.8);
    flex-grow: 1;
}

@media (max-width: 640px) {
    .project-content {
        padding: 20px;
    }
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
}

@media (max-width: 640px) {
    .project-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

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

@media (max-width: 640px) {
    .project-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.project-links {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

@media (max-width: 480px) {
    .project-link {
        justify-content: center;
        padding: 10px 0;
    }
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

/* Light theme adjustments for projects section */
html.light-theme .projects {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(241, 243, 245, 0.95) 100%);
}

html.light-theme .project-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .project-content {
    background: rgba(255, 255, 255, 0.8);
}

html.light-theme .project-title {
    color: var(--primary);
}

html.light-theme .project-description {
    color: var(--light-text-secondary);
}

html.light-theme .filter-btn {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text-primary);
}

html.light-theme .filter-btn.active,
html.light-theme .filter-btn:hover {
    color: #ffffff;
}

html.light-theme .project-link {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.2);
}

html.light-theme .project-link:hover {
    color: var(--primary-dark);
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary);
}

html.light-theme .tech-tag {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-color: rgba(0, 102, 204, 0.2);
}

/* Light Theme Gallery Styles */
html.light-theme .premium-gallery {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

html.light-theme .floating-circle {
    opacity: 0.08;
}

html.light-theme .premium-gallery-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

html.light-theme .premium-gallery-card:hover {
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.12), 0 0 30px rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.2);
}

html.light-theme .gallery-badge {
    background: rgba(0, 102, 204, 0.9);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

html.light-theme .premium-overlay {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

html.light-theme .gallery-overlay {
    background: rgba(255, 255, 255, 0.94);
}

html.light-theme .premium-gallery-card:hover .premium-overlay {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 102, 204, 0.3);
}

html.light-theme .gallery-title {
    color: var(--text-primary);
    text-shadow: none;
}

html.light-theme .gallery-description {
    color: var(--text-secondary);
    text-shadow: none;
}

html.light-theme .detail-item {
    color: var(--text-secondary);
    background: rgba(0, 102, 204, 0.15);
    border: 1px solid rgba(0, 102, 204, 0.2);
    text-shadow: none;
}

html.light-theme .detail-item i {
    color: var(--primary);
    text-shadow: none;
}

html.light-theme .gallery-tag {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

html.light-theme .gallery-tag:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
}

html.light-theme .image-gradient-overlay {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

html.light-theme .image-zoom-icon {
    background: rgba(0, 102, 204, 0.9);
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
    border: none;
    box-shadow: none;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    border-bottom: none;
    z-index: 10;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 768px) {
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .image-zoom-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .image-zoom-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Gallery Section - Premium Design */
.gallery {
    padding: 120px 30px;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.premium-gallery {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-surface) 50%, var(--bg-primary) 100%);
}

/* Gallery Background Elements */
.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.gallery-floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: floatingCircle 20s infinite ease-in-out;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-purple);
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background: var(--primary);
    top: 30%;
    right: 40%;
    animation-delay: 14s;
}

@keyframes floatingCircle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Premium Section Header */
.premium-subtitle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.subtitle-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.subtitle-accent {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.premium-title {
    position: relative;
    margin-bottom: 20px;
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.8;
}

.premium-description {
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.divider-gem {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .gallery {
        padding: 80px 20px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.premium-grid {
    gap: 35px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 60px;
    }
    .premium-grid {
        gap: 25px;
    }
}

/* Premium Gallery Cards */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 320px;
}

.premium-gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.premium-gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15), 0 0 30px rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
}

.gallery-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 19px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .gallery-item {
        height: 280px;
    }
    .premium-gallery-card {
        height: 300px;
    }
}

/* Premium Gallery Image Container */
.gallery-image-container {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 217, 255, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.premium-gallery-card:hover .gallery-image img {
    transform: scale(1.08);
}

.premium-gallery-card:hover .image-gradient-overlay {
    opacity: 1;
}

/* Gallery Badge */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 217, 255, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
    animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 217, 255, 0.5);
    }
}

.badge-icon {
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Image Zoom Icon */
.image-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 217, 255, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all var(--transition-normal);
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-image:hover .image-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-image {
    cursor: pointer;
    position: relative;
}

/* Premium Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    padding: 20px;
    transition: all var(--transition-normal);
    opacity: 1;
}

.premium-overlay {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    height: 45%;
    padding: 20px;
    opacity: 1;
    align-items: flex-start;
    justify-content: flex-start;
}

.premium-gallery-card:hover .premium-overlay {
    height: 50%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(0, 217, 255, 0.3);
}

@media (max-width: 640px) {
    .gallery-overlay,
    .premium-overlay {
        padding: 18px;
    }
    .premium-overlay {
        height: 42%;
    }
    .premium-gallery-card:hover .premium-overlay {
        height: 47%;
    }
}

/* Premium Gallery Content */
.gallery-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.premium-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 10px;
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gallery-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    line-height: 1.3;
    flex: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.achievement-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    margin-top: 4px;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.gallery-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

@media (max-width: 640px) {
    .gallery-title {
        font-size: 16px;
    }
    .gallery-description {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

.gallery-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

@media (max-width: 640px) {
    .gallery-content h3 {
        font-size: 18px;
    }
}

.gallery-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .gallery-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

/* Premium Gallery Details */
.gallery-details {
    margin-bottom: 10px;
}

.premium-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.detail-item i {
    color: var(--primary);
    font-size: 10px;
    text-shadow: 0 0 8px var(--primary);
}

/* Gallery Tags */
.gallery-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.gallery-tag {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 217, 255, 0.4);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.gallery-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.6);
}

@media (max-width: 640px) {
    .premium-overlay {
        height: 48%;
        padding: 18px;
    }
    .premium-gallery-card:hover .premium-overlay {
        height: 52%;
    }
    .gallery-overlay {
        height: 45%;
        padding: 18px;
    }
    .gallery-title {
        font-size: 16px;
    }
    .gallery-description {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .detail-item {
        font-size: 10px;
        padding: 3px 8px;
    }
    .gallery-tag {
        font-size: 9px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .premium-details {
        gap: 6px;
        margin-bottom: 8px;
    }
    .detail-item {
        font-size: 9px;
        padding: 3px 7px;
    }
    .gallery-tag {
        font-size: 8px;
        padding: 3px 7px;
    }
    .gallery-title {
        font-size: 15px;
    }
    .gallery-description {
        font-size: 11px;
    }
    .premium-overlay {
        height: 50%;
        padding: 15px;
    }
    .premium-gallery-card:hover .premium-overlay {
        height: 55%;
    }
    .gallery-overlay {
        height: 47%;
        padding: 15px;
    }
}

/* Experience Section */
.experience {
    padding: 120px 30px;
}

@media (max-width: 768px) {
    .experience {
        padding: 80px 20px;
    }
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
}

.timeline-scroll-beam {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 1;
    transition: height 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 60px;
        margin-bottom: 40px;
    }
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
}

.timeline-content {
    width: 45%;
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .timeline-content {
        width: 48%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .timeline-content {
        width: 100%;
        padding: 25px 20px;
    }
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.timeline-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 18px;
}

@media (max-width: 640px) {
    .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: -15px;
        left: 15px;
    }
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 768px) {
    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }
}

.timeline-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .timeline-date {
        position: relative;
        transform: none;
        margin-bottom: 20px;
        left: 0;
        top: 0;
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .timeline-date {
        font-size: 12px;
        padding: 6px 16px;
    }
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

@media (max-width: 640px) {
    .timeline-title {
        font-size: 20px;
    }
}

.timeline-company {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .timeline-company {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

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

@media (max-width: 640px) {
    .timeline-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

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

@media (max-width: 480px) {
    .timeline-tags {
        flex-direction: column;
        gap: 8px;
    }
}

.timeline-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .timeline-tag {
        text-align: center;
    }
}

/* Contact Section */
.contact {
    padding: 120px 30px;
    background: var(--bg-surface);
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 20px;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .contact-content {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info {
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-info {
        padding: 20px;
        text-align: center;
    }
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
    .contact-info h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }
}

.contact-info p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .contact-info p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 768px) {
    .contact-details {
        align-items: center;
        gap: 20px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

@media (max-width: 640px) {
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .contact-text h4 {
        font-size: 16px;
    }
}

.contact-text p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 640px) {
    .contact-text p {
        font-size: 14px;
    }
}

.contact-form {
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
}

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

@media (max-width: 640px) {
    .form-group {
        margin-bottom: 20px;
    }
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-normal);
}

@media (max-width: 640px) {
    .form-control {
        padding: 12px 16px;
        font-size: 15px;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 640px) {
    textarea.form-control {
        min-height: 120px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Thank You Section */
.thank-you {
    padding: 120px 30px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .thank-you {
        padding: 80px 20px;
    }
}

.thank-you-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.thank-you-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .thank-you-title {
        font-size: clamp(2.2rem, 7vw, 3rem);
        margin-bottom: 20px;
    }
}

.thank-you-text {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin-bottom: 10px;
}

.thank-you-text:first-child::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    border-radius: 3px;
    opacity: 0.7;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: sparklePulse 1.5s infinite;
}

@keyframes sparklePulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

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

/* Footer */
footer {
    padding: 60px 30px 30px;
    background: var(--bg-elevated);
    border-top: 2px solid var(--bg-border);
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
    }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 40% 40%, rgba(255, 170, 0, 0.03) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

@media (max-width: 640px) {
    .footer-brand h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

@media (max-width: 640px) {
    .footer-brand p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Enhanced social links with profile preview */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--bg-elevated);
    border: 2px solid var(--bg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 24px;
    overflow: visible;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Prevent dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent dragging on icons inside social links */
.social-link i {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}


.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: -1;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
    border-color: transparent;
}


/* Platform-specific hover colors */
.social-link[data-profile="linkedin"]:hover::before {
    background: linear-gradient(135deg, #0077b5 0%, #0a66c2 100%);
}

.social-link[data-profile="github"]:hover::before {
    background: linear-gradient(135deg, #333 0%, #24292e 100%);
}

.social-link[data-profile="leetcode"]:hover::before {
    background: linear-gradient(135deg, #ffa116 0%, #f89f1b 100%);
}

.social-link[data-profile="twitter"]:hover::before {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

/* Platform-specific hover shadows */
.social-link[data-profile="linkedin"]:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-link[data-profile="github"]:hover {
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

.social-link[data-profile="leetcode"]:hover {
    box-shadow: 0 8px 25px rgba(255, 161, 22, 0.4);
}

.social-link[data-profile="twitter"]:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

/* Profile preview tooltip */
.profile-preview {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* Initially non-interactive */
    overflow: hidden;
}


.profile-preview.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Make interactive when active */
}

.profile-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-elevated);
}

.profile-preview-header {
    height: 30px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--bg-border);
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: move;
    /* Indicate draggable header */
}


.profile-preview-browser {
    display: flex;
    align-items: center;
    width: 100%;
}

.browser-dots {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.dot.red {
    background-color: #ff5f57;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #28ca42;
}

.browser-url {
    flex: 1;
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-preview-content {
    height: calc(100% - 30px);
    position: relative;
    overflow: hidden;
}

.profile-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--bg-border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Profile preview iframe styling */
.profile-preview-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: white;
}

.profile-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.8);
    transform-origin: 0 0;
    width: 125%;
    height: 125%;
}

/* Fallback content for blocked iframes */
.iframe-fallback {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.iframe-fallback-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.iframe-fallback h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.iframe-fallback p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.iframe-fallback button {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.iframe-fallback button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* Platform-specific iframe backgrounds */
.profile-preview-frame.linkedin iframe {
    background: #f3f6f8;
}

.profile-preview-frame.github iframe {
    background: #0d1117;
}

.profile-preview-frame.leetcode iframe {
    background: #1a1a1a;
}

.profile-preview-frame.twitter iframe {
    background: #000000;
}

/* LinkedIn preview */
/* LinkedIn-specific realistic preview */
.linkedin-real-preview {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.linkedin-cover-section {
    height: 80px;
    background: linear-gradient(135deg, #0077b5 0%, #0a66c2 100%);
    position: relative;
}

.linkedin-profile-section {
    padding: 15px;
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
}

.linkedin-profile-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
}

.linkedin-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.linkedin-profile-info {
    flex: 1;
}

.linkedin-profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 2px 0;
}

.linkedin-profile-headline {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.linkedin-profile-location {
    font-size: 14px;
    color: #666666;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
}

.linkedin-profile-location i {
    font-size: 12px;
    margin-right: 4px;
    color: #666666;
}

.linkedin-profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.linkedin-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.linkedin-btn-primary {
    background: #0a66c2;
    color: white;
}

.linkedin-btn-primary:hover {
    background: #004182;
}

.linkedin-btn-secondary {
    background: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
}

.linkedin-btn-secondary:hover {
    background: #e8f3fd;
}

.linkedin-about-section {
    padding: 15px;
    background: #f3f6f8;
    border-bottom: 1px solid #e1e5e9;
}

.linkedin-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.linkedin-about-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}

.linkedin-experience-section {
    padding: 15px;
    background: #ffffff;
}

.linkedin-experience-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e5e9;
}

.linkedin-experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.linkedin-experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.linkedin-experience-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.linkedin-experience-company {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.linkedin-experience-duration {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
}

.linkedin-skills-section {
    padding: 15px;
    background: #f3f6f8;
}

.linkedin-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.linkedin-skill-item {
    background: #e8f3fd;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #0a66c2;
    text-align: center;
}

.linkedin-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 15px;
    background: #ffffff;
    border-top: 1px solid #e1e5e9;
}

.linkedin-stat-item {
    text-align: center;
}

.linkedin-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.linkedin-stat-label {
    font-size: 12px;
    color: #666666;
}

/* GitHub-specific realistic preview */
.github-real-preview {
    width: 100%;
    height: 100%;
    background: #0d1117;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

.github-header {
    padding: 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.github-profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.github-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-right: 16px;
    border: 2px solid #30363d;
}

.github-user-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 4px 0;
}

.github-user-info p {
    font-size: 14px;
    color: #8b949e;
    margin: 0;
}

.github-bio {
    font-size: 14px;
    color: #c9d1d9;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.github-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.github-stat {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #8b949e;
}

.github-stat strong {
    color: #f0f6fc;
    font-weight: 600;
    margin-right: 4px;
}

.github-location {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 16px;
}

.github-location i {
    margin-right: 6px;
}

.github-links {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.github-link {
    color: #58a6ff;
    text-decoration: none;
    font-size: 14px;
}

.github-link:hover {
    text-decoration: underline;
}

.github-repo-section {
    padding: 16px;
    background: #0d1117;
}

.github-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 12px 0;
}

.github-repo-item {
    padding: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 8px;
}

.github-repo-name {
    font-size: 14px;
    font-weight: 600;
    color: #58a6ff;
    margin: 0 0 4px 0;
}

.github-repo-desc {
    font-size: 12px;
    color: #8b949e;
    margin: 0 0 8px 0;
}

.github-repo-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #8b949e;
}

.github-repo-stats span {
    display: flex;
    align-items: center;
}

.github-repo-stats i {
    margin-right: 4px;
}

.github-btn {
    background: #238636;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.github-btn:hover {
    background: #2ea043;
}

/* LeetCode-specific realistic preview */
.leetcode-real-preview {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.leetcode-header {
    padding: 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.leetcode-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.leetcode-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 28px;
    margin-right: 20px;
    border: 3px solid #2a2a2a;
}

.leetcode-user-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.leetcode-user-info .username {
    font-size: 16px;
    color: #ffa116;
    margin: 0 0 8px 0;
}

.leetcode-user-info .bio {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0;
}

.leetcode-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.leetcode-stat-card {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.leetcode-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffa116;
    margin-bottom: 4px;
}

.leetcode-stat-label {
    font-size: 12px;
    color: #b3b3b3;
    text-transform: uppercase;
}

.leetcode-skills-section {
    padding: 20px;
    background: #1a1a1a;
}

.leetcode-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.leetcode-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.leetcode-skill-item {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #ffa116;
}

.leetcode-skill-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.leetcode-skill-level {
    font-size: 12px;
    color: #ffa116;
    margin: 0;
}

.leetcode-recent-section {
    padding: 20px;
    background: #1a1a1a;
}

.leetcode-problem-item {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leetcode-problem-name {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
}

.leetcode-problem-difficulty {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.leetcode-difficulty-easy {
    background: #00b8a3;
    color: white;
}

.leetcode-difficulty-medium {
    background: #ffa116;
    color: #1a1a1a;
}

.leetcode-difficulty-hard {
    background: #ff375f;
    color: white;
}

.leetcode-btn {
    background: #ffa116;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.leetcode-btn:hover {
    background: #ff8c00;
    transform: translateY(-1px);
}

/* Twitter-specific realistic preview */
.twitter-real-preview {
    width: 100%;
    height: 100%;
    background: #000000;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.twitter-header {
    padding: 16px;
    background: #000000;
    border-bottom: 1px solid #2f3336;
}

.twitter-profile-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.twitter-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 28px;
    margin-right: 16px;
    border: 3px solid #000000;
}

.twitter-user-info {
    flex: 1;
}

.twitter-user-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.twitter-user-info .handle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 8px 0;
}

.twitter-user-info .bio {
    font-size: 14px;
    color: #e5e7eb;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.twitter-location {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.twitter-location i {
    margin-right: 6px;
}

.twitter-joined {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.twitter-joined i {
    margin-right: 6px;
}

.twitter-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

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

.twitter-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.twitter-stat-label {
    font-size: 13px;
    color: #9ca3af;
}

.twitter-follow-btn {
    background: #1d9bf0;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.twitter-follow-btn:hover {
    background: #1a8cd8;
}

.twitter-tweets-section {
    padding: 16px;
    background: #000000;
}

.twitter-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.twitter-tweet {
    background: #16181c;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #2f3336;
}

.twitter-tweet-content {
    font-size: 14px;
    color: #e5e7eb;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.twitter-tweet-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

.twitter-tweet-meta span {
    margin-right: 12px;
}

.twitter-tweet-actions {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.twitter-action {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.twitter-action:hover {
    color: #1d9bf0;
}

.twitter-action i {
    margin-right: 6px;
}

/* Screenshot fallback styling */
.screenshot-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.screenshot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 15px 15px;
    text-align: center;
}

.screenshot-overlay button {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.screenshot-overlay button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-neon);
}

/* Close button for profile preview */
.profile-preview-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.profile-preview.active .profile-preview-close {
    opacity: 1;
}

.profile-preview-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* Hover and active states */
.social-link:hover .profile-preview {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-preview-frame:hover {
    transform: scale(1.02);
    transition: transform var(--transition-normal);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .profile-preview {
        width: 280px;
        height: 180px;
        bottom: 60px;
    }
}

.footer-column h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

@media (max-width: 640px) {
    .footer-column h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

@media (max-width: 768px) {
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

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

@media (max-width: 640px) {
    .footer-links {
        gap: 15px;
    }
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 16px;
    position: relative;
    padding-left: 15px;
}

@media (max-width: 640px) {
    .footer-links a {
        font-size: 14px;
        padding-left: 0;
    }
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: transform var(--transition-normal);
}

@media (max-width: 768px) {
    .footer-links a::before {
        display: none;
    }
}

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

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--bg-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
}

@media (max-width: 640px) {
    .footer-bottom {
        font-size: 13px;
        padding-top: 20px;
    }
}

/* Light theme footer specific adjustments */
html.light-theme footer {
    background: var(--light-elevated);
    border-top-color: var(--light-border);
}

html.light-theme footer::before {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(153, 51, 204, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 40% 40%, rgba(255, 136, 0, 0.03) 0%, transparent 20%);
}

html.light-theme .footer-brand h3 {
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

html.light-theme .social-link {
    border-color: var(--light-border);
}

html.light-theme .social-link:hover {
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

html.light-theme .footer-column h4::after {
    background: var(--gradient-primary);
}

html.light-theme .footer-links a::before {
    color: var(--primary);
}

html.light-theme .footer-bottom {
    color: var(--light-text-secondary);
    border-top-color: var(--light-border);
}

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

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

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Image Borders and Shadows */
.img-bordered {
    border: 3px solid var(--bg-border);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.img-bordered:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.img-neon-border {
    border: 2px solid var(--primary);
    border-radius: 15px;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        var(--shadow-lg);
    transition: all var(--transition-normal);
}

.img-neon-border:hover {
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.5),
        0 0 50px rgba(0, 212, 255, 0.3),
        var(--shadow-xl);
    transform: translateY(-5px) scale(1.02);
}

.img-gradient-border {
    position: relative;
    border-radius: 15px;
    padding: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
}

.img-gradient-border:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.img-gradient-border img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Light theme border colors */
html.light-theme .img-bordered {
    border-color: var(--light-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html.light-theme .img-neon-border {
    border-color: var(--primary);
    box-shadow:
        0 0 15px rgba(0, 102, 204, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Special image hover effects */
.img-hover-lift {
    transition: all var(--transition-normal);
}

.img-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.4);
}

.img-hover-glow {
    transition: all var(--transition-normal);
}

.img-hover-glow:hover {
    filter: brightness(1.1);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3);
}

/* Responsive border adjustments */
@media (max-width: 768px) {

    .img-bordered,
    .img-neon-border {
        border-width: 2px;
        border-radius: 10px;
    }

    .img-gradient-border {
        padding: 2px;
    }

    .img-gradient-border img {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {

    .img-bordered,
    .img-neon-border {
        border-width: 1px;
        border-radius: 8px;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success .notification-content i {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

.notification-error .notification-content i {
    color: var(--error);
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all var(--transition-normal);
}

.notification-close:hover {
    background: var(--bg-border);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Premium Project Cards */
.premium-card {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

/* Project Image Container */
.project-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.premium-card:hover .project-image img {
    transform: scale(1.05);
}

.project-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

/* Project Status Badge */
.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.status-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}

.status-badge.live {
    background: #00ff88;
}

.status-badge.development {
    background: #ffaa00;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Tech Preview */
.project-tech-preview {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.tech-tag.primary {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tech-tag.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tech-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

/* Project Content */
.project-content {
    padding: 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.project-type {
    background: var(--bg-border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-year {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Project Actions */
.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-expand {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-expand:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.btn-expand i {
    transition: transform 0.3s ease;
}

.btn-expand:hover i {
    transform: translateX(4px);
}

.project-quick-links {
    display: flex;
    gap: 12px;
}

.quick-link {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Expandable Details */
.project-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 24px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.project-details.expanded {
    transform: translateY(0);
    opacity: 1;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-border);
}

.details-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.btn-close {
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.details-content {
    margin-bottom: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h5::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.detail-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.tech-stack-detailed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-detailed .tech-tag {
    background: var(--bg-surface);
    border: 1px solid var(--bg-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-stack-detailed .tech-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-border);
}

.detail-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.detail-actions .btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.detail-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.detail-actions .btn-secondary:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
}

/* Light Theme Overrides for Premium Cards */
html.light-theme .premium-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

html.light-theme .premium-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

html.light-theme .project-details {
    background: white;
}

html.light-theme .tech-tag.secondary {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

html.light-theme .quick-link {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Responsive Design for Premium Cards */
@media (max-width: 768px) {
    .project-image-container {
        height: 220px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .project-quick-links {
        justify-content: center;
        width: 100%;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .project-details {
        padding: 20px;
    }
}

/* Enhanced Tech Stack Animation - Reference Image Match */
.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

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

.tech-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgba(0, 212, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: pulse 0.6s ease-out;
}

.float-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Enhanced Timeline */
.timeline-sticky-header {
    position: sticky;
    top: 100px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-border);
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

/* Animated Gradient Backgrounds */
.animated-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Enhanced Glowing Effects */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Container Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Enhanced Button Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .macbook-screen {
        height: 75%;
    }

    .macbook-base {
        height: 25%;
    }

    .timeline-sticky-header {
        top: 80px;
    }

    .floating-dock {
        bottom: 20px;
        padding: 8px 15px;
    }

    .dock-item {
        width: 45px;
        height: 45px;
    }

    .dock-item i {
        font-size: 18px;
    }
}
@media (max-width: 640px) {
    .floating-dock {
        display: none; /* Hides the dock only on small phones */
    }
}

/* Remove floating animation from project cards */
.project-card {
    animation: none !important;
}

/* Make profile preview screens clickable */
.profile-preview-frame {
    cursor: pointer;
}

/* Ensure social links work properly */
.social-link {
    pointer-events: auto;
}

/* Fix for project cards hover effect */
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Ensure project links are clickable */
.project-links {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
/* --- RESPONSIVENESS FIXES --- */

/* For Tablets (up to 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-greeting, .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .tech-stack-animation {
        position: relative;
        height: auto;
        min-height: 400px; /* Give it some space */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .tech-item {
        position: relative;
        animation: floatTech 6s ease-in-out infinite; /* Re-enable animation */
        top: auto !important; left: auto !important; /* Override absolute positions */
        right: auto !important; bottom: auto !important;
    }
}

/* For Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    body {
        cursor: auto; /* Show default cursor on mobile */
    }

    .cursor, .cursor-follower {
        display: none; /* Hide custom cursor on mobile */
    }

    /* .floating-dock { */
        /* Hide the dock on smaller mobile to prevent clutter */
        /* display: none;
    } */
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .about-content {
        gap: 30px;
    }

    .skills-grid, .gallery-grid, .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Adjust project cards on mobile */
    .projects-grid {
        flex-direction: column;
        overflow-x: hidden;
        gap: 30px;
        padding: 0;
    }

    .project-card {
        min-width: 100%;
        height: auto;
    }

    .projects-scroll-btn {
        display: none; /* Hide scroll buttons in vertical layout */
    }

    .tech-stack-animation {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Project Modal Styles */
.project-card {
    cursor: pointer; /* Change cursor to show it's clickable */
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-elevated);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-primary);
    cursor: pointer;
}

.modal-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-description {
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-links {
    display: flex;
    gap: 20px;
}
/* --- LIGHT THEME BACKGROUND ANIMATION --- */

/* 1. Apply the animated gradient to the body in light mode */
html.light-theme body {
    /* Define a large gradient using your new light theme colors */
    background: linear-gradient(-45deg, #e0f2fe, #fce7f3, #fef3c7, #dcfce7);

    /* Set a massive size so the transitions are smooth and slow */
    background-size: 400% 400%;

    /* The key animation which you already have in your CSS! */
    animation: gradientShift 25s ease infinite;
}

/* 2. Hide the old, heavy canvas and SVG line animations ONLY in light mode */
html.light-theme .bg-canvas,
html.light-theme .background-lines {
    display: none;
}
/* --- FLOATING BLOBS BACKGROUND (ALTERNATIVE) --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    display: none; /* Hidden by default */
}

html.light-theme .blob-container {
    display: block; /* Only show in light theme */
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px); /* This creates the soft, diffused look */
    animation: moveBlob 30s infinite alternate;
}

/* Create three blobs with different colors, sizes, and positions */
.blob:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    background: var(--primary-light); /* Uses your light theme blue */
}

.blob:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    background: var(--secondary); /* Uses your light theme pink */
    animation-delay: -5s;
    animation-duration: 40s;
}

.blob:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent); /* Uses your light theme amber */
    animation-duration: 25s;
}

@keyframes moveBlob {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(100px, 50px) rotate(180deg);
    }
}

/* IMPORTANT: Also add this to hide the old canvas animations */
html.light-theme .bg-canvas,
html.light-theme .background-lines {
    display: none;
}
/* --- PREMIUM HERO SECTION ENHANCEMENTS --- */

/* 1. Add perspective for the 3D parallax effect */
.hero {
    perspective: 1000px;
}

/* 2. Create a more sophisticated, flowing gradient for your name */
.hero-title {
    background: linear-gradient(135deg, #ffffff 30%, #00d4ff 70%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0, 212, 255, 0.2); /* Adds a subtle glow */
}

/* Remove the individual color styles for first/last name to allow the new gradient to work */

/* 3. Enhance the subtitle with a stronger gradient */
.hero-title-subtitle {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Improve the "glass" effect on the description box */
.hero-description {
    background: rgba(10, 10, 10, 0.5); /* Slightly more transparent */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 5. Add a subtle "magnetic" hover effect to the buttons */
.btn {
    will-change: transform; /* Performance optimization for animations */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother transition */
}
.btn:hover {
    /* A more pronounced lift effect */
    transform: translateY(-5px) scale(1.05);
}
/* --- HERO VISIBILITY TEST --- */
.hero .hero-title {
    opacity: 1 !important;
    background: none !important;
    -webkit-text-fill-color: darkorange !important;
    color: white !important;
}
/* --- HERO TEXT AND LAYOUT CORRECTION --- */

/* Ensure the left/right grid layout is respected */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

/* Force the text block to align to the left */
.hero-text {
    text-align: left;
}

/* Force the title to be the correct, large size */
section.hero .hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
}
/* --- CURSOR FIX FOR MODALS --- */

/* This new 'inverted' class will make the cursor solid and always visible */
.cursor.inverted {
    mix-blend-mode: normal; /* Disables the difference effect */
    background-color: var(--primary); /* Fills the cursor with a solid color */
    border-color: #000000; /* Adds a contrasting border */
}
/* =============================================== */
/* === MOBILE RESPONSIVENESS FIXES (Add This) === */
/* =============================================== */

@media (max-width: 767px) {

    /*
     * PROBLEM: The main container's padding is inconsistent,
     * causing content to hit the screen edges.
     *
     * SOLUTION: We will force consistent padding on all main containers
     * to create a safe space on the left and right.
    */

    /* 1. Ensure the main page container has proper padding */
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: 100%;
        box-sizing: border-box; /* Include padding in the width calculation */
    }

    /* 2. Apply the same logic to the navigation container */
    .nav-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /*
     * PROBLEM: Some parent sections have their own padding that conflicts.
     *
     * SOLUTION: Reset the horizontal padding on the parent sections and
     * let the inner .container handle it. This is a cleaner approach.
    */
    .hero,
    .about,
    .skills,
    .projects,
    .gallery,
    .experience,
    .contact,
    .thank-you {
        padding-left: 0;
        padding-right: 0;
    }

    /*
     * PROBLEM: The text in some sections is left-aligned.
     *
     * SOLUTION: Center-align the text on mobile for a cleaner look.
    */
    .about-text,
    .section-header {
        text-align: center;
    }

    /*
     * PROBLEM: The skill tags in the "About Me" section are not centered.
     *
     * SOLUTION: Ensure the flex container centers its items.
    */
    .about-skills {
        justify-content: center;
    }
}
/* ======================================================== */
/* === EXPERTISE SECTION MOBILE VISIBILITY FIX (Add This) === */
/* ======================================================== */

@media (max-width: 768px) {
    /*
     * PROBLEM: The "My Expertise" (Skills) section disappears on mobile.
     * The skill cards collapse to zero height because their content is
     * absolutely positioned.
     *
     * SOLUTION: Change the card's front face to `position: relative`.
     * This keeps it in the normal document flow, allowing the parent card
     * to get the height it needs from its content.
    */
    .card-3d-front {
        position: relative; /* This is the main fix */
    }

    /* Hide the back of the card, as it's not needed on mobile. */
    .card-3d-back {
        display: none;
    }

    /* Disable the hover-to-flip effect on touch devices. */
    .card-3d:hover .card-3d-inner {
        transform: none;
    }
}
/* ===================================================== */
/* === THANK YOU SECTION LIGHT MODE FIX (Add This) === */
/* ===================================================== */

html.light-theme .thank-you-text {
    /*
     * PROBLEM: The "Thank You" text uses a white gradient,
     * making it invisible on a light background.
     *
     * SOLUTION: Override the background gradient with dark text colors
     * from the light theme's color palette.
    */
    background: linear-gradient(135deg, var(--light-text-primary) 0%, var(--light-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================== */
/* === BULLETPROOF PROGRESS BARS - FINAL OVERRIDE (Add This) === */
/* ============================================================== */

/* These rules have maximum specificity and will override everything else */
div.skill-progress[data-width="95"] {
    width: 95% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="90"] {
    width: 90% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="88"] {
    width: 88% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="85"] {
    width: 85% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="82"] {
    width: 82% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="80"] {
    width: 80% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="78"] {
    width: 78% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

div.skill-progress[data-width="75"] {
    width: 75% !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

/* Additional fallback for ANY skill progress bar */
.skill-progress {
    min-width: 10px !important;
    background: linear-gradient(90deg, #00d9ff 0%, #9333ea 100%) !important;
}

/* ======================================================== */
/* === LIGHT MODE PROGRESS BARS - THEMED COLORS === */
/* ======================================================== */

/* Light mode progress bar container */
html.light-theme .skill-bar {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Light mode progress bars with appropriate colors */
html.light-theme div.skill-progress[data-width="95"] {
    width: 95% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="90"] {
    width: 90% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="88"] {
    width: 88% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="85"] {
    width: 85% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="82"] {
    width: 82% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="80"] {
    width: 80% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="78"] {
    width: 78% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light-theme div.skill-progress[data-width="75"] {
    width: 75% !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Light mode general fallback */
html.light-theme .skill-progress {
    min-width: 10px !important;
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
}

/* ======================================================== */
/* === ADDITIONAL LIGHT MODE SKILLS SECTION STYLING === */
/* ======================================================== */

/* Light mode skill cards */
html.light-theme .skill-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    color: var(--light-text-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Light mode card fronts */
html.light-theme .card-3d-front {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    color: var(--light-text-primary) !important;
}

/* Light mode skill details text */
html.light-theme .skill-details {
    color: var(--light-text-primary) !important;
}

/* Light mode skill titles */
html.light-theme .skill-title {
    color: var(--light-text-primary) !important;
}

/* Light mode skill icons */
html.light-theme .skill-icon {
    background: linear-gradient(90deg, #007bff 0%, #6f42c1 100%) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

/* Light mode card hover effects */
html.light-theme .skill-card:hover {
    border-color: rgba(0, 123, 255, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.15), 0 0 40px rgba(0, 123, 255, 0.1) !important;
}

/* ======================================================== */
/* === LIGHT MODE SKILLS SECTION BACKGROUND === */
/* ======================================================== */

/* Light mode skills section background */
html.light-theme .skills {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-elevated) 100%) !important;
    position: relative;
}

/* Light mode skills section overlay effects */
html.light-theme .skills::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 85, 99, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.02) 0%, transparent 60%) !important;
}

/* Light mode floating skill particles */
html.light-theme .skill-particle {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    color: var(--primary) !important;
}

/* Light mode section header in skills */
html.light-theme .skills .section-subtitle {
    color: var(--primary) !important;
}

html.light-theme .skills .section-title {
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html.light-theme .skills .section-description {
    color: var(--text-secondary) !important;
}

/* ======================================================== */
/* === LIGHT MODE SOCIAL LINKS IMPROVEMENTS === */
/* ======================================================== */

/* Light mode social links */
html.light-theme .social-link {
    background: var(--bg-surface) !important;
    border: 2px solid var(--bg-border) !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
    html.light-theme .social-link {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Light mode social link hover effects */
html.light-theme .social-link:hover {
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    html.light-theme .social-link:hover {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    }
}

/* Light mode platform-specific hover shadows */
html.light-theme .social-link[data-profile="linkedin"]:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3) !important;
}

html.light-theme .social-link[data-profile="github"]:hover {
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.3) !important;
}

html.light-theme .social-link[data-profile="leetcode"]:hover {
    box-shadow: 0 8px 25px rgba(255, 161, 22, 0.3) !important;
}

html.light-theme .social-link[data-profile="twitter"]:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3) !important;
}

/* Light mode profile preview */
html.light-theme .profile-preview {
    background: var(--bg-surface) !important;
    border: 1px solid var(--bg-border) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    html.light-theme .profile-preview {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    }
}
