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

/* Hardware Acceleration for Better Performance */
.hero, .about, .experience, .skills, .projects, .contact,
.hero-name, .exp-node, .skill-card, .project-card,
.particle, .orb, .geo-shape, .floating-icon {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce Motion for Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile Performance Optimizations */
.mobile-optimized .particle,
.mobile-optimized .orb,
.mobile-optimized .geo-shape {
    animation-play-state: paused;
}

.mobile-optimized .morphing-gradient {
    animation-duration: 20s !important;
}

/* Fast initial load animations */
.mobile-optimized .name-first,
.mobile-optimized .name-last {
    animation-duration: 0.6s !important;
    animation-delay: 0.1s !important;
}

.mobile-optimized .hero-title,
.mobile-optimized .hero-description {
    animation-duration: 0.4s !important;
}

/* Disable complex transforms on mobile during initial load */
@media (max-width: 768px) {
    .loading .particle,
    .loading .orb,
    .loading .geo-shape,
    .loading .morphing-gradient {
        display: none;
    }
}


:root {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --accent-color: #9eff00;
    --accent-green: #9eff00;
    --accent-purple: #9d4edd;
    --bg-dark: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #333333;
    --gradient: linear-gradient(135deg, #9eff00 0%, #7ed321 100%);
    --purple-gradient: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    /* Purple Grid Background */
    background-image: 
        /* Main grid pattern */
        linear-gradient(rgba(157, 78, 221, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.15) 1px, transparent 1px),
        /* Diagonal lines for depth */
        linear-gradient(45deg, rgba(157, 78, 221, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(157, 78, 221, 0.05) 1px, transparent 1px),
        /* Subtle dots at intersections */
        radial-gradient(circle at 50px 50px, rgba(157, 78, 221, 0.3) 1px, transparent 1px),
        /* Larger grid overlay */
        linear-gradient(rgba(157, 78, 221, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.08) 2px, transparent 2px);
    background-size: 
        50px 50px,
        50px 50px,
        25px 25px,
        25px 25px,
        50px 50px,
        200px 200px,
        200px 200px;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
    animation: gridShift 20s ease-in-out infinite;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    line-height: 1.6;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Utilities */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.responsive-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--accent-purple);
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Background Shapes */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Animated Purple Grid Overlay */
.bg-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Animated grid cells */
        linear-gradient(rgba(157, 78, 221, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.1) 1px, transparent 1px),
        /* Pulsing nodes */
        radial-gradient(circle at 100px 100px, rgba(157, 78, 221, 0.4) 2px, transparent 2px);
    background-size: 100px 100px, 100px 100px, 100px 100px;
    animation: gridPulse 15s ease-in-out infinite;
    opacity: 0.8;
}

/* Floating Grid Particles */
.bg-shapes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Moving dots */
        radial-gradient(circle at 25% 25%, rgba(199, 125, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(157, 78, 221, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(199, 125, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(157, 78, 221, 0.5) 1px, transparent 1px);
    background-size: 150px 150px, 120px 120px, 180px 180px, 90px 90px;
    animation: gridFloat 25s linear infinite;
}

.shape {
    position: absolute;
    background: rgba(157, 78, 221, 0.03);
    filter: blur(40px);
    animation: liquidMovement 25s ease-in-out infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -200px;
    animation: liquidMovement 30s ease-in-out infinite;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, rgba(80, 80, 80, 0.02) 40%, rgba(157, 78, 221, 0.01) 70%);
}

.shape-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -200px;
    animation: morphShape 20s ease-in-out infinite;
    animation-delay: -10s;
    background: radial-gradient(ellipse, rgba(199, 125, 255, 0.04) 0%, rgba(157, 78, 221, 0.01) 60%);
}

.shape-3 {
    width: 800px;
    height: 800px;
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
    animation: liquidMovement 35s ease-in-out infinite reverse;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.06) 0%, rgba(157, 78, 221, 0.01) 80%);
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
    opacity: 0.7;
    box-shadow: 0 0 10px var(--accent-purple);
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    top: 20%;
    left: 80%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.particle-3 {
    top: 60%;
    left: 20%;
    animation-delay: -4s;
    animation-duration: 15s;
}

.particle-4 {
    top: 80%;
    left: 70%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.particle-5 {
    top: 40%;
    left: 90%;
    animation-delay: -8s;
    animation-duration: 14s;
}

.particle-6 {
    top: 30%;
    left: 5%;
    animation-delay: -10s;
    animation-duration: 16s;
}

.particle-7 {
    top: 70%;
    left: 50%;
    animation-delay: -12s;
    animation-duration: 13s;
}

.particle-8 {
    top: 50%;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 17s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    height: 100vh;
    position: relative;
    z-index: 2;
    padding-top: 100px; /* Account for fixed navbar */
}



/* Hero Main Content */
.hero-main {
    height: calc(100vh - 100px); /* Adjusted for navbar only */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 4rem;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.location-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-greeting {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.hero-name {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin: 0;
}

.name-first {
    display: block;
    color: var(--accent-purple);
    animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
}

.name-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s ease-in-out 1s infinite;
    opacity: 0.3;
    z-index: -1;
}

.name-last {
    display: block;
    color: var(--text-primary);
    animation: slideInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.name-last:hover {
    animation: magneticHover 0.6s ease-in-out;
    cursor: default;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--accent-purple);
    margin: 1.5rem 0 1rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 1s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 1.5s forwards;
    max-width: 500px;
}

/* Enhanced Background Animations */
.bg-animated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.morphing-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(199, 125, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(157, 78, 221, 0.04) 0%, transparent 50%);
    animation: morphingGradient 15s ease-in-out infinite;
}

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

.orb {
    position: absolute;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.6) 0%, rgba(199, 125, 255, 0.1) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(2px);
}

.orb-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation: floatingOrb 20s ease-in-out infinite;
    animation-delay: 0s;
}

.orb-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation: floatingOrb 25s ease-in-out infinite;
    animation-delay: -5s;
}

.orb-3 {
    width: 30px;
    height: 30px;
    top: 40%;
    left: 70%;
    animation: floatingOrb 18s ease-in-out infinite;
    animation-delay: -10s;
}

.orb-4 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    left: 20%;
    animation: floatingOrb 22s ease-in-out infinite;
    animation-delay: -3s;
}

.orb-5 {
    width: 35px;
    height: 35px;
    top: 10%;
    right: 40%;
    animation: floatingOrb 28s ease-in-out infinite;
    animation-delay: -8s;
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    background: rgba(157, 78, 221, 0.04);
    border: 1px solid rgba(157, 78, 221, 0.2);
    animation: geometricSpin 30s linear infinite;
}

.geo-1 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 80%;
    animation-delay: 0s;
}

.geo-2 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 5%;
    animation-delay: -10s;
}

.geo-3 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 20%;
    animation-delay: -20s;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-container {
    position: relative;
    width: 450px;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(20px);
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.02) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-secondary);
    position: relative;
    overflow: visible;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Social Icons on Image */
.image-social {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.social-btn:hover {
    background: rgba(157, 78, 221, 0.9);
    color: var(--bg-dark);
    transform: scale(1.1);
}

/* Hero Bottom */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 2rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--purple-gradient);
    color: var(--text-primary);
    font-weight: 600;
    animation: glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateX(10px) translateY(-5px) rotateX(10deg);
    box-shadow: 
        0 15px 40px rgba(157, 78, 221, 0.4),
        0 5px 20px rgba(157, 78, 221, 0.2);
}

.btn-outline {
    background: rgba(157, 78, 221, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--purple-gradient);
    opacity: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}

.btn-outline:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateX(10px) translateY(-5px) rotateX(10deg);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.btn-outline:hover::after {
    opacity: 1;
}

/* Animation Keyframes */
@keyframes gridShift {
    0%, 100% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0,
            0 0,
            0 0,
            0 0;
    }
    25% {
        background-position:
            12px 12px,
            12px 12px,
            6px 6px,
            -6px 6px,
            12px 12px,
            50px 50px,
            50px 50px;
    }
    50% {
        background-position:
            25px 25px,
            25px 25px,
            12px 12px,
            -12px 12px,
            25px 25px,
            100px 100px,
            100px 100px;
    }
    75% {
        background-position:
            12px 25px,
            25px 12px,
            6px 18px,
            -6px 18px,
            18px 25px,
            75px 125px,
            125px 75px;
    }
}

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

@keyframes gridFloat {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-5px);
    }
    75% {
        transform: translateY(-20px) translateX(15px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

@keyframes floatingOrb {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-80px) translateX(40px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-160px) translateX(-20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-120px) translateX(60px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes morphingGradient {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(199, 125, 255, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 40% 80%, rgba(157, 78, 221, 0.06) 0%, transparent 50%);
        transform: scale(1) rotate(0deg);
    }
    33% {
        background: radial-gradient(circle at 80% 30%, rgba(199, 125, 255, 0.12) 0%, transparent 60%),
                    radial-gradient(circle at 20% 70%, rgba(157, 78, 221, 0.09) 0%, transparent 50%),
                    radial-gradient(circle at 60% 20%, rgba(199, 125, 255, 0.07) 0%, transparent 40%);
        transform: scale(1.1) rotate(120deg);
    }
    66% {
        background: radial-gradient(circle at 60% 80%, rgba(157, 78, 221, 0.11) 0%, transparent 55%),
                    radial-gradient(circle at 30% 20%, rgba(199, 125, 255, 0.08) 0%, transparent 45%),
                    radial-gradient(circle at 90% 60%, rgba(157, 78, 221, 0.09) 0%, transparent 50%);
        transform: scale(0.9) rotate(240deg);
    }
}

@keyframes geometricSpin {
    0% {
        transform: rotate(0deg) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        border-radius: 20% 80% 20% 80%;
    }
    50% {
        transform: rotate(180deg) scale(0.9);
        border-radius: 80% 20% 80% 20%;
    }
    75% {
        transform: rotate(270deg) scale(1.05);
        border-radius: 20% 80% 80% 20%;
    }
    100% {
        transform: rotate(360deg) scale(1);
        border-radius: 50%;
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

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

@keyframes magneticHover {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-200px) translateX(-30px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-150px) translateX(80px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes liquidMovement {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    20% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(72deg) scale(1.1);
    }
    40% {
        border-radius: 50% 60% 30% 60% / 40% 50% 60% 30%;
        transform: rotate(144deg) scale(0.9);
    }
    60% {
        border-radius: 60% 30% 60% 40% / 30% 40% 50% 60%;
        transform: rotate(216deg) scale(1.05);
    }
    80% {
        border-radius: 40% 70% 60% 30% / 70% 50% 40% 60%;
        transform: rotate(288deg) scale(0.95);
    }
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 60% / 40% 50% 60% 30%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 60% 30% 60% 40% / 30% 40% 50% 60%;
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-30px) scale(1.1);
    }
    60% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.7);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow: 0 0 0 20px rgba(157, 78, 221, 0);
    }
}

/* Mobile-specific slower animations */
@keyframes slowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-20px) scale(1.05);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes slowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.5);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(157, 78, 221, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(157, 78, 221, 0.8), 0 0 80px rgba(157, 78, 221, 0.3);
    }
}

@keyframes textFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px #9d4edd,
            0 0 80px #9d4edd,
            0 0 90px #9d4edd,
            0 0 100px #9d4edd,
            0 0 150px #9d4edd;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* About Section Styles */
.about {
    background: var(--bg-secondary);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.about-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.code-snippet {
    position: absolute;
    color: rgba(157, 78, 221, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    animation: floatCode 20s linear infinite;
    opacity: 0;
}

.code-snippet:nth-child(1) {
    top: 20%;
    left: -20%;
    animation-delay: 0s;
}

.code-snippet:nth-child(2) {
    top: 60%;
    left: -30%;
    animation-delay: -7s;
}

.code-snippet:nth-child(3) {
    top: 40%;
    left: -25%;
    animation-delay: -14s;
}

.section-number {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.section-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-purple);
    animation: pulse 2s infinite;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text:hover::before {
    animation: glitch-1 0.3s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch-text:hover::after {
    animation: glitch-2 0.3s infinite;
    color: #00ffff;
    z-index: -2;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Profile Card */
.profile-card {
    perspective: 1000px;
    height: 500px;
}

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

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

.profile-front, .profile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.profile-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    position: relative;
    margin-bottom: 2rem;
}

.profile-img-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(157, 78, 221, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.profile-img-placeholder i {
    font-size: 4rem;
    color: var(--accent-purple);
}

/* Profile Image Styles */
.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.flip-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.quick-contact-btn:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

.quick-contact-btn i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

/* About Text Content */
.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.text-block h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.text-block h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-purple);
}

.text-block p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Journey Timeline */
.journey-timeline h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.journey-timeline h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-purple);
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple), rgba(157, 78, 221, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInTimeline 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    z-index: 2;
}

.timeline-marker::before {
    content: attr(data-year);
    position: absolute;
    left: -20px;
    top: -30px;
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -55px;
    top: -5px;
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 600;
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.timeline-content {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateX(10px);
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.2);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    animation: float 3s ease-in-out infinite;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(157, 78, 221, 0.1);
}

.progress-bar {
    height: 100%;
    background: var(--accent-purple);
    width: 0;
    transition: width 2s ease-out;
}

/* Animation Keyframes */
@keyframes floatCode {
    0% {
        transform: translateX(-100px) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-100px);
        opacity: 0;
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

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

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

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

/* Education Section Styles */
.education {
    background: var(--bg-dark);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.education-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-academic-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.academic-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: academicIconFloat 25s linear infinite;
    color: var(--accent-purple);
}

.icon-graduation { top: 20%; left: 10%; animation-delay: 0s; }
.icon-book { top: 60%; left: 20%; animation-delay: 4s; }
.icon-brain { top: 30%; left: 80%; animation-delay: 8s; }
.icon-code { top: 70%; left: 75%; animation-delay: 12s; }
.icon-laptop { top: 15%; left: 60%; animation-delay: 16s; }
.icon-robot { top: 80%; left: 40%; animation-delay: 20s; }

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

.education-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 20s linear infinite;
}

.edu-particle-1 { width: 4px; height: 4px; top: 25%; left: 15%; animation-delay: 0s; }
.edu-particle-2 { width: 6px; height: 6px; top: 45%; left: 85%; animation-delay: 4s; }
.edu-particle-3 { width: 3px; height: 3px; top: 65%; left: 25%; animation-delay: 8s; }
.edu-particle-4 { width: 5px; height: 5px; top: 35%; left: 70%; animation-delay: 12s; }
.edu-particle-5 { width: 4px; height: 4px; top: 75%; left: 60%; animation-delay: 16s; }

.education-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.education-card {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out 0.5s forwards;
}

.education-card:hover {
    transform: translateY(-10px);
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.3);
}

.education-card-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.education-icon {
    width: 80px;
    height: 80px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.education-icon i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.education-card:hover .education-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.education-card:hover .education-icon i {
    color: var(--text-primary);
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.3), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover .icon-glow {
    opacity: 1;
}

.education-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.degree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.degree-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.degree-status {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-green));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.university, .duration {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.university i, .duration i {
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.education-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coursework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-tag {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

.education-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.academic-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out forwards;
}

.highlight-card:nth-child(1) { animation-delay: 0.7s; }
.highlight-card:nth-child(2) { animation-delay: 0.9s; }
.highlight-card:nth-child(3) { animation-delay: 1.1s; }

.highlight-card:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.2);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.highlight-content h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.highlight-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Education Section Mobile Styles */
@media (max-width: 768px) {
    .education {
        padding: 4rem 0;
    }
    
    .education-card {
        padding: 2rem;
    }
    
    .education-card-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .education-icon {
        margin: 0 auto;
    }
    
    .degree-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .university, .duration {
        justify-content: center;
    }
    
    .coursework-tags {
        justify-content: center;
    }
    
    .academic-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .education-card {
        padding: 1.5rem;
    }
    
    .education-icon {
        width: 60px;
        height: 60px;
    }
    
    .education-icon i {
        font-size: 2rem;
    }
    
    .degree-header h3 {
        font-size: 1.5rem;
    }
    
    .course-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Experience Section Styles */
.experience {
    background: var(--bg-dark);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Ensure experience elements are always visible */
.experience .exp-node,
.experience .exp-card-3d,
.experience .node-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.experience-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.floating-icons i {
    position: absolute;
    color: rgba(157, 78, 221, 0.1);
    font-size: 2rem;
    animation: floatIcon 20s linear infinite;
    opacity: 0;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 40%;
    left: -10%;
    animation-delay: -3s;
}

.floating-icons i:nth-child(3) {
    top: 60%;
    left: -10%;
    animation-delay: -6s;
}

.floating-icons i:nth-child(4) {
    top: 80%;
    left: -10%;
    animation-delay: -9s;
}

.floating-icons i:nth-child(5) {
    top: 30%;
    left: -10%;
    animation-delay: -12s;
}

.floating-icons i:nth-child(6) {
    top: 70%;
    left: -10%;
    animation-delay: -15s;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    margin: 4rem 0;
    height: 400px;
}

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

.timeline-path svg {
    width: 100%;
    height: 100%;
}

#timeline-curve {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s ease-out forwards;
}

.experience-nodes {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.exp-node {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 1; /* Always visible */
    animation: fadeInNode 0.8s ease-out forwards;
}

.exp-node:nth-child(1) { animation-delay: 1s; }
.exp-node:nth-child(2) { animation-delay: 1.5s; }
.exp-node:nth-child(3) { animation-delay: 2s; }
.exp-node:nth-child(4) { animation-delay: 2.5s; }

.node-marker {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0 auto 1rem;
    cursor: pointer;
}

.node-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.node-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    animation: nodePulse 2s infinite;
}

.exp-node.active .node-dot {
    background: var(--accent-green);
    box-shadow: 0 0 20px rgba(158, 255, 0, 0.5);
}

.exp-node.active .node-pulse {
    background: rgba(158, 255, 0, 0.3);
}

.node-content {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 280px;
    backdrop-filter: blur(10px);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.exp-node:hover .node-content,
.exp-node.active .node-content {
    transform: translateY(0);
    opacity: 1;
    background: rgba(157, 78, 221, 0.1);
}

.node-year {
    font-size: 0.875rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.node-company {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.node-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.node-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.node-skills span {
    background: rgba(157, 78, 221, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Experience Cards Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.exp-card-3d {
    position: relative;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInCard 0.8s ease-out forwards;
}

.exp-card-3d:nth-child(1) { animation-delay: 0.2s; }
.exp-card-3d:nth-child(2) { animation-delay: 0.4s; }
.exp-card-3d:nth-child(3) { animation-delay: 0.6s; }

.card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(199, 125, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exp-card-3d:hover .card-bg-gradient {
    opacity: 1;
}

.exp-card-3d:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 30px 60px rgba(157, 78, 221, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

.exp-card-3d.active {
    background: rgba(158, 255, 0, 0.05);
    border-color: rgba(158, 255, 0, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.exp-card-3d:hover .card-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.exp-card-3d.active .card-icon {
    background: rgba(158, 255, 0, 0.2);
}

.exp-card-3d.active .card-icon i {
    color: var(--accent-green);
}

.card-meta {
    text-align: right;
}

.card-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    line-height: 1;
}

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

.card-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-company {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.achievement i {
    color: var(--accent-purple);
    font-size: 1rem;
}

.card-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
}

.tech:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes floatIcon {
    0% {
        transform: translateX(-50px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 50px)) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

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

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

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Skills Section Styles */
.skills {
    background: var(--bg-secondary);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.skills-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: techFloat 25s linear infinite;
}

.tech-icon i {
    color: var(--accent-purple);
}

.icon-react { 
    top: 20%; left: -10%; 
    animation-delay: 0s; 
}

.icon-js { 
    top: 40%; left: -10%; 
    animation-delay: -5s; 
}

.icon-python { 
    top: 60%; left: -10%; 
    animation-delay: -10s; 
}

.icon-node { 
    top: 80%; left: -10%; 
    animation-delay: -15s; 
}

.icon-git { 
    top: 30%; left: -10%; 
    animation-delay: -20s; 
}

.icon-docker { 
    top: 70%; left: -10%; 
    animation-delay: -25s; 
}

.skill-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.skill-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: skillParticleFloat 20s linear infinite;
    opacity: 0.3;
}

.skill-particle-1 { top: 15%; left: 80%; animation-delay: 0s; }
.skill-particle-2 { top: 35%; left: 85%; animation-delay: -4s; }
.skill-particle-3 { top: 55%; left: 90%; animation-delay: -8s; }
.skill-particle-4 { top: 75%; left: 82%; animation-delay: -12s; }
.skill-particle-5 { top: 95%; left: 88%; animation-delay: -16s; }

/* Skills Navigation */
.skills-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.skill-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-nav-btn:hover,
.skill-nav-btn.active {
    background: rgba(157, 78, 221, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

.skill-nav-btn i {
    color: var(--accent-purple);
}

/* Skills Radar Chart */
.skills-radar {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.radar-container {
    position: relative;
    width: 400px;
    height: 400px;
}

#skillsRadar {
    width: 100%;
    height: 100%;
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.radar-pulse {
    width: 60px;
    height: 60px;
    background: rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    animation: radarPulse 2s infinite;
}

.radar-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

/* Enhanced Skills Grid */
.enhanced-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.skill-card {
    position: relative;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: skillCardIn 0.8s ease-out forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }
.skill-card:nth-child(10) { animation-delay: 1.0s; }
.skill-card:nth-child(11) { animation-delay: 1.1s; }
.skill-card:nth-child(12) { animation-delay: 1.2s; }

.skill-card-inner {
    position: relative;
    z-index: 2;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.3);
}

.skill-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.skill-card:hover .skill-icon i {
    color: var(--text-primary);
}

.skill-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-bar {
    flex: 1;
    height: 8px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), rgba(199, 125, 255, 0.8));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-out 0.5s;
    position: relative;
}

.level-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: skillShimmer 2s ease-in-out infinite;
}

.level-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Skills Summary */
.skills-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.summary-card {
    display: flex;
    gap: 1.5rem;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-card:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.2);
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.summary-icon i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.summary-card:hover .summary-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1);
}

.summary-content h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.summary-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.summary-tech {
    color: var(--accent-purple);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animation Keyframes */
@keyframes techFloat {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes skillParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(-50px);
        opacity: 0;
    }
}

@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

/* Chat Interface Mockup Styles */
.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    height: 200px;
    overflow-y: auto;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 20px;
    max-width: 80%;
    font-size: 0.875rem;
    line-height: 1.4;
}

.chat-message.bot {
    background: rgba(157, 78, 221, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.chat-message.user {
    background: rgba(157, 78, 221, 0.3);
    color: var(--text-primary);
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-area {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.chat-input {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Projects Section Styles */
.projects {
    background: var(--bg-dark);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.projects-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-project-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.08;
    animation: projectIconFloat 30s linear infinite;
    color: var(--accent-purple);
}

.icon-web { top: 20%; left: -10%; animation-delay: 0s; }
.icon-mobile { top: 40%; left: -10%; animation-delay: -7s; }
.icon-desktop { top: 60%; left: -10%; animation-delay: -14s; }
.icon-code { top: 80%; left: -10%; animation-delay: -21s; }

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(157, 78, 221, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

.filter-btn i {
    color: var(--accent-purple);
}

/* Featured Project */
.featured-project {
    margin: 4rem 0;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    animation: featuredShimmer 3s infinite;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.featured-info .project-category {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.featured-info h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feature i {
    color: var(--accent-purple);
    font-size: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

/* Project Mockup */
.project-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.featured-project:hover .project-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-browser {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.browser-header {
    background: rgba(157, 78, 221, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.browser-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.address-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.browser-body {
    padding: 2rem;
    height: 300px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.nav-items {
    display: flex;
    gap: 1.5rem;
}

.nav-items span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-item {
    height: 80px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

/* Projects Carousel */
.projects-carousel {
    margin: 4rem 0;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    color: var(--accent-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

/* Project Cards */
.project-card {
    min-width: 350px;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: projectCardIn 0.8s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.3);
}

.card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

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

/* Mobile-friendly overlay */
@media (hover: none) and (pointer: coarse) {
    .project-overlay {
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .project-card:active .project-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.8);
    }
}

.overlay-content {
    text-align: center;
    color: var(--text-primary);
}

.overlay-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.overlay-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.overlay-link {
    width: 40px;
    height: 40px;
    background: rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-link:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

.card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(157, 78, 221, 0.3);
}

.mobile-placeholder {
    font-size: 3rem;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-category {
    background: rgba(157, 78, 221, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.card-content h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: var(--accent-purple);
    transform: scale(1.2);
}

/* GitHub Stats */
.github-stats {
    margin: 4rem 0;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.stat-info h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animation Keyframes */
@keyframes projectIconFloat {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

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

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

/* Contact Section Styles */
.contact {
    background: var(--bg-secondary);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-contact-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.06;
    animation: contactIconFloat 35s linear infinite;
    color: var(--accent-purple);
}

.icon-email { top: 15%; left: -10%; animation-delay: 0s; }
.icon-phone { top: 35%; left: -10%; animation-delay: -8s; }
.icon-location { top: 55%; left: -10%; animation-delay: -16s; }
.icon-message { top: 75%; left: -10%; animation-delay: -24s; }

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: contactParticleFloat 25s linear infinite;
    opacity: 0.2;
}

.contact-particle-1 { top: 10%; left: 85%; animation-delay: 0s; }
.contact-particle-2 { top: 25%; left: 90%; animation-delay: -4s; }
.contact-particle-3 { top: 40%; left: 88%; animation-delay: -8s; }
.contact-particle-4 { top: 55%; left: 92%; animation-delay: -12s; }
.contact-particle-5 { top: 70%; left: 87%; animation-delay: -16s; }
.contact-particle-6 { top: 85%; left: 89%; animation-delay: -20s; }

/* Contact Information Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.info-card {
    position: relative;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.3);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.info-card:hover .icon-wrapper {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.info-card:hover .icon-wrapper i {
    color: var(--text-primary);
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    border: 2px solid var(--accent-purple);
    opacity: 0;
    animation: iconPulse 2s infinite;
}

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

.card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

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

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27ca3f;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

/* Enhanced Contact Form */
.contact-form-wrapper {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    padding: 3rem;
    margin: 4rem 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.08), transparent);
    animation: formShimmer 4s infinite;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.enhanced-form {
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label {
    position: relative;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
    padding: 1rem 0 1rem 3rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.floating-label input:focus,
.floating-label textarea:focus {
    border-bottom-color: var(--accent-purple);
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 0 0.5rem;
}

.floating-label input:focus + label,
.floating-label input:valid + label,
.floating-label textarea:focus + label,
.floating-label textarea:valid + label {
    top: -0.5rem;
    left: 2.5rem;
    font-size: 0.875rem;
    color: var(--accent-purple);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.floating-label input:focus ~ .form-line,
.floating-label textarea:focus ~ .form-line {
    width: 100%;
}

.form-icon {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.floating-label input:focus ~ .form-icon,
.floating-label textarea:focus ~ .form-icon {
    color: var(--accent-purple);
    transform: scale(1.1);
}

.submit-btn {
    position: relative;
    background: var(--accent-purple);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto 0;
    min-width: 200px;
    justify-content: center;
}

.submit-btn:hover {
    background: rgba(157, 78, 221, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.4);
}

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

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Form Messages */
.form-message {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    font-weight: 500;
}

.success-message {
    background: rgba(39, 202, 63, 0.1);
    border: 1px solid rgba(39, 202, 63, 0.3);
    color: #27ca3f;
}

.error-message {
    background: rgba(255, 95, 86, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.3);
    color: #ff5f56;
}

.form-message.show {
    display: flex;
    animation: messageSlideIn 0.5s ease-out;
}

/* Social Links Section */
.social-section {
    text-align: center;
    margin: 4rem 0;
}

.social-section h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.2);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 1.5rem;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.social-info {
    flex: 1;
    text-align: left;
}

.social-info h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.social-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.social-arrow {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover .social-arrow {
    color: var(--accent-purple);
    transform: translateX(5px);
}

.social-link:hover .social-icon {
    background: rgba(157, 78, 221, 0.2);
    transform: scale(1.1);
}

/* Platform-specific colors */
.social-link.linkedin:hover .social-icon { background: rgba(0, 119, 181, 0.2); }
.social-link.github:hover .social-icon { background: rgba(51, 51, 51, 0.2); }
.social-link.twitter:hover .social-icon { background: rgba(29, 161, 242, 0.2); }
.social-link.portfolio:hover .social-icon { background: rgba(157, 78, 221, 0.2); }

/* Call to Action Section */
.cta-section {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
    backdrop-filter: blur(10px);
}

.cta-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--accent-purple);
    color: var(--bg-dark);
}

.cta-btn.primary:hover {
    background: rgba(157, 78, 221, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.cta-btn.secondary:hover {
    background: var(--accent-purple);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.3);
}

/* Animation Keyframes */
@keyframes contactIconFloat {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.06;
    }
    90% {
        opacity: 0.06;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-30px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes contactParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) translateX(-30px);
        opacity: 0;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Interactive Animations */
@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateX(20px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-15px) scale(1.1);
    }
    60% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes inputPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(157, 78, 221, 0.1);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), rgba(199, 125, 255, 0.8));
    width: 0%;
    transition: width 0.1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progressShimmer 2s infinite;
}

/* Active Navigation Links */
.nav-menu a.active {
    color: var(--accent-purple) !important;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-purple);
    animation: linkExpand 0.3s ease-out;
}

/* Enhanced Section Transitions */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.02), transparent);
    animation: sectionReveal 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

section:nth-child(even)::before {
    animation-delay: -1.5s;
}

/* Scroll-triggered reveal animations */
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Section in view state */
.section-in-view {
    position: relative;
}

.section-in-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    animation: sectionHighlight 1s ease-out;
}

/* Page transition overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-dark), var(--accent-purple));
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.custom-cursor.cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent-purple);
}

/* Animation Keyframes */
@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes linkExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

@keyframes sectionHighlight {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Advanced Mobile-First Responsive Design */

/* Large Desktop and Wide Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 8rem;
    }
    
    .hero-name {
        font-size: clamp(5rem, 12vw, 10rem);
    }
}

/* Medium Desktop (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .hero-content {
        gap: 5rem;
    }
}

/* Tablet styles (768px to 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .enhanced-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-mockup {
        order: -1;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Large Mobile/Small Tablet (768px and below) */
@media (max-width: 768px) {
    /* Performance Optimizations for Mobile */
    .particle, .orb, .geo-shape, .morphing-gradient,
    .floating-icon, .project-icon, .contact-icon,
    .floating-tech-icons, .experience-bg, .skills-bg {
        animation-duration: 6s !important; /* Slower animations */
        animation-iteration-count: infinite !important;
        will-change: transform !important;
    }
    
    /* Reduce background complexity on mobile */
    .particle:nth-child(n+6),
    .orb:nth-child(n+4),
    .geo-shape:nth-child(n+4) {
        display: none; /* Hide excessive background elements */
    }
    
    /* Enhanced Navigation */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-logo a {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(157, 78, 221, 0.3);
        z-index: 999;
        overflow-y: auto;
        padding: 4rem 1rem 2rem;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.6s; }
    .nav-menu.active .nav-link:nth-child(7) { transition-delay: 0.7s; }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile Optimization */
    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    /* Slower background animations on mobile */
    .particle {
        animation-duration: 20s !important; /* Slower particles */
    }
    
    .orb {
        animation-duration: 30s !important; /* Slower orbs */
    }
    
    .geo-shape {
        animation-duration: 40s !important; /* Slower geometric shapes */
    }
    
    .morphing-gradient {
        animation-duration: 25s !important; /* Slower morphing */
    }
    
    body {
        animation-duration: 30s !important; /* Slower background shift */
    }
    
    .hero-container {
        padding: 1rem;
        padding-top: 80px; /* Account for navbar on mobile */
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .hero-main {
        height: auto; /* Let content define height on mobile */
        min-height: calc(100vh - 160px);
        justify-content: space-around;
    }



    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        flex: 1;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .location-info {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    /* Slower location dot pulse on mobile */
    .location-dot {
        animation: slowPulse 4s infinite !important; /* Much slower pulse */
    }
    
    .hero-greeting {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.25rem, 4vw, 2rem);
        margin: 1rem 0 0.75rem 0;
        animation: slideInUp 2s ease-out 2s forwards; /* Slower on mobile */
    }
    
    .hero-description {
        font-size: clamp(0.875rem, 3vw, 1.125rem);
        margin-bottom: 1.5rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        animation: slideInUp 2s ease-out 2.5s forwards; /* Slower on mobile */
    }
    
    /* Slower hero name animations on mobile */
    .name-first {
        animation: slideInLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .name-first::before {
        animation: shimmer 3s ease-in-out 2s infinite; /* Slower shimmer */
    }
    
    .name-last {
        animation: slideInRight 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.5s; /* Longer delay */
    }
    
    /* Slower scroll indicator on mobile */
    .scroll-indicator {
        animation: slowBounce 4s infinite !important; /* Much slower bounce */
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    .scroll-indicator i {
        font-size: 0.875rem;
    }

    .hero-content .hero-text {
        order: 2;
    }

    .hero-content .hero-image {
        order: 1;
    }

    .hero-img-container {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }
    
    .hero-name {
        font-size: clamp(2.5rem, 8vw, 4rem);
        line-height: 1.1;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        margin-top: auto;
        padding: 1rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Section Spacing */
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        height: 350px;
        max-width: 100%;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .timeline-container {
        padding-left: 1rem;
    }

    .timeline-container::before {
        left: 10px;
    }

    .timeline-item::before {
        left: -45px;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .timeline-marker {
        left: -30px;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        margin-left: 0.5rem;
        padding: 1rem;
    }
    
    /* Experience Section Mobile */
    .experience {
        padding: 4rem 0;
    }
    
    .experience-timeline {
        height: auto;
        min-height: 250px;
        margin: 2rem 0;
        overflow: visible;
    }
    
    .timeline-path {
        display: none; /* Hide complex SVG path on mobile */
    }
    
    .experience-nodes {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }
    
    .exp-node {
        position: static;
        transform: none;
        opacity: 1 !important; /* Always visible on mobile */
        animation: slideInTimeline 0.6s ease-out forwards;
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .exp-node:nth-child(1) { animation-delay: 0.2s; }
    .exp-node:nth-child(2) { animation-delay: 0.4s; }
    .exp-node:nth-child(3) { animation-delay: 0.6s; }
    .exp-node:nth-child(4) { animation-delay: 0.8s; }
    
    .node-marker {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: rgba(157, 78, 221, 0.2);
        border: 2px solid var(--accent-purple);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: nodePulse 2s infinite;
    }
    
    .node-year {
        color: var(--accent-purple);
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .node-content {
        flex: 1;
        min-width: 0;
        padding: 1rem;
        background: rgba(157, 78, 221, 0.05);
        border: 1px solid rgba(157, 78, 221, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .node-content h4 {
        font-size: 1rem;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .node-content p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin: 0;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .exp-card-3d {
        padding: 1.5rem;
        transform: none; /* Remove 3D effects on mobile */
        margin: 0;
    }
    
    .exp-card-3d:hover {
        transform: translateY(-5px); /* Simple hover effect */
    }
    
    .card-header {
        margin-bottom: 1rem;
    }
    
    .card-role {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-company {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .card-duration {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .card-description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .card-tech {
        gap: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* Skills Section Mobile */
    .skills {
        padding: 4rem 0;
    }
    
    .skills-navigation {
        flex-direction: column;
        gap: 0.75rem;
        margin: 2rem 0 3rem;
        align-items: center;
    }
    
    .skill-nav-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.75rem 1.25rem;
        border-radius: 12px;
    }
    
    .skill-nav-btn i {
        font-size: 1rem;
    }
    
    .skills-radar {
        margin: 2rem 0;
    }
    
    .radar-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .radar-pulse {
        width: 50px;
        height: 50px;
    }
    
    .radar-label {
        font-size: 1rem;
    }
    
    .enhanced-skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .skill-card {
        padding: 1.5rem;
        text-align: center;
        transform: none; /* Remove 3D effects */
    }
    
    .skill-card:hover {
        transform: translateY(-5px); /* Simple hover */
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        font-size: 1.75rem;
    }
    
    .skill-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-percentage {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .skill-technologies {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .tech-pill {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .skills-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .summary-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .summary-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .summary-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .summary-tech {
        gap: 0.5rem;
        justify-content: center;
    }

    /* Projects Section Mobile */
    .projects {
        padding: 4rem 0;
    }
    
    /* Project Filters Mobile */
    .project-filters {
        flex-direction: column;
        gap: 0.75rem;
        margin: 2rem 0 3rem;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
    
    /* Featured Project Mobile */
    .featured-project {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .project-mockup {
        order: -1;
    }
    
    .mockup-browser {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        transform: none; /* Remove 3D transforms on mobile */
    }
    
    .featured-project:hover .project-mockup {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .featured-info h3 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .featured-info p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-category {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .project-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
        justify-items: center;
    }
    
    .feature {
        justify-content: center;
        font-size: 0.875rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .project-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .browser-body {
        height: 250px;
        padding: 1.5rem;
    }
    
    .chat-interface {
        height: 160px;
    }
    
    /* Carousel Mobile */
    .carousel-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carousel-header h3 {
        font-size: 1.25rem;
    }
    
    .carousel-track {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .project-card {
        min-width: 300px;
        margin: 0 auto;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-description {
        font-size: 0.875rem;
    }
    
    /* GitHub Stats Mobile */
    .github-stats {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .stats-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .stats-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .github-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        align-self: center;
        min-width: 150px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-info h4 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-info p {
        font-size: 0.8rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .info-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .card-icon i {
        font-size: 1.25rem;
    }
    
    .info-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
        border-radius: 15px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-label {
        margin-bottom: 1.5rem;
    }
    
    .floating-label input,
    .floating-label textarea {
        font-size: 0.9rem;
        padding: 1rem 0 1rem 3rem;
    }
    
    .floating-label label {
        font-size: 0.85rem;
        left: 3rem;
    }
    
    .form-icon {
        font-size: 1rem;
        left: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .social-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .social-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-link {
        padding: 1.25rem 1.5rem;
        border-radius: 12px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .social-icon i {
        font-size: 1.25rem;
    }
    
    .social-info h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .social-info p {
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Custom Cursor Disabled on Mobile */
    .custom-cursor {
        display: none;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Even tighter spacing for small screens */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Better navigation */
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .hamburger {
        width: 30px;
    }
    
    .bar {
        width: 20px;
        height: 2px;
    }
    
    /* Hero adjustments */
    .hero-container {
        padding: 0.75rem;
        padding-top: 70px;
    }
    
    .hero-img-container {
        width: 250px;
        height: 300px;
        margin: 1rem auto;
    }
    
    .hero-name {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1;
        margin: 0.5rem 0;
    }
    
    .hero-title {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 3vw, 1rem);
        line-height: 1.4;
        animation: slideInUp 2.5s ease-out 3s forwards; /* Even slower for small screens */
    }
    
    /* Optimized animations for very small screens - much faster */
    .name-first {
        animation: slideInLeft 0.8s ease-out forwards;
    }
    
    .name-last {
        animation: slideInRight 0.8s ease-out forwards;
        animation-delay: 0.2s;
    }
    
    .hero-title {
        animation: slideInUp 0.6s ease-out 0.4s forwards;
    }
    
    .hero-description {
        animation: slideInUp 0.6s ease-out 0.6s forwards;
    }
    
    /* Faster scroll indicator for small screens */
    .scroll-indicator {
        animation: slowBounce 3s infinite !important;
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
    .scroll-indicator i {
        font-size: 0.8rem;
    }
    
    /* Faster location dot for small screens */
    .location-dot {
        animation: slowPulse 3s infinite !important;
    }
    
    /* Single column layouts */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-quick {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        min-width: 280px;
        margin: 0 auto;
    }
    
    /* Projects Section Small Mobile */
    .projects {
        padding: 3rem 0;
    }
    
    .project-filters {
        gap: 0.5rem;
        margin: 1.5rem 0 2rem;
    }
    
    .filter-btn {
        max-width: 250px;
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* Featured Project Small Mobile */
    .featured-project {
        margin: 1.5rem 0;
        padding: 1.5rem 1rem;
    }
    
    .featured-info h3 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.75rem;
    }
    
    .featured-info p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        max-width: 95%;
    }
    
    .project-category {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
    
    .project-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        justify-items: center;
    }
    
    .project-features .feature:last-child {
        grid-column: 1 / -1;
    }
    
    .feature {
        font-size: 0.8rem;
    }
    
    .project-link {
        max-width: 220px;
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .browser-body {
        height: 220px;
        padding: 1.25rem;
    }
    
    .chat-interface {
        height: 140px;
    }
    
    .mockup-browser {
        max-width: 280px;
    }
    
    .carousel-track {
        padding: 0 0.5rem;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .skills-radar {
        display: none; /* Hide complex chart on very small screens */
    }
    
    .radar-container {
        width: 250px;
        height: 250px;
    }
    
    /* GitHub Stats Small Mobile */
    .github-stats {
        margin: 1.5rem 0;
        padding: 1.25rem;
    }
    
    .stats-header h3 {
        font-size: 1.1rem;
    }
    
    .github-link {
        padding: 0.675rem 1rem;
        font-size: 0.75rem;
        min-width: 140px;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 1.1rem;
    }
    
    .stat-info h4 {
        font-size: 1.1rem;
    }
    
    .stat-info p {
        font-size: 0.75rem;
    }
    
    /* Form optimizations */
    .contact {
        padding: 3rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .floating-label input,
    .floating-label textarea {
        font-size: 0.85rem;
        padding: 0.875rem 0 0.875rem 2.5rem;
    }
    
    .floating-label label {
        font-size: 0.8rem;
        left: 2.5rem;
    }
    
    .form-icon {
        font-size: 0.9rem;
        left: 0.875rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 1.25rem 1rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-icon i {
        font-size: 1.1rem;
    }
    
    .info-card h4 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
    
    .social-section h3 {
        font-size: 1.1rem;
    }
    
    .social-section p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .social-link {
        padding: 1rem 1.25rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
    
    .social-info h4 {
        font-size: 0.9rem;
    }
    
    .social-info p {
        font-size: 0.75rem;
    }
    
    /* Button optimizations */
    .btn, .submit-btn, .cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Card optimizations */
    .skill-card, .project-card, .info-card {
        padding: 1.5rem;
    }
    
    /* Experience Section Small Mobile */
    .experience {
        padding: 3rem 0;
    }
    
    .experience-timeline {
        margin: 1.5rem 0;
    }
    
    .experience-nodes {
        gap: 1.25rem;
    }
    
    .exp-node {
        gap: 0.75rem;
    }
    
    .node-marker {
        width: 35px;
        height: 35px;
    }
    
    .node-year {
        font-size: 0.7rem;
    }
    
    .node-content {
        padding: 0.875rem;
        border-radius: 10px;
    }
    
    .node-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .node-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .experience-grid {
        gap: 1.25rem;
        margin-top: 2.5rem;
    }
    
    .exp-card-3d {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .card-role {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .card-company {
        font-size: 0.85rem;
    }
    
    .card-duration {
        font-size: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .card-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.875rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Skills Section Small Mobile */
    .skills {
        padding: 3rem 0;
    }
    
    .skills-navigation {
        gap: 0.5rem;
        margin: 1.5rem 0 2.5rem;
    }
    
    .skill-nav-btn {
        max-width: 250px;
        font-size: 0.75rem;
        padding: 0.675rem 1rem;
    }
    
    .radar-container {
        width: 250px;
        height: 250px;
    }
    
    .radar-pulse {
        width: 45px;
        height: 45px;
    }
    
    .radar-label {
        font-size: 0.9rem;
    }
    
    .enhanced-skills-grid {
        gap: 1.25rem;
        margin: 2.5rem 0;
    }
    
    .skill-card {
        padding: 1.25rem;
    }
    
    .skill-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .skill-info h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .skill-percentage {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }
    
    .skill-description {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }
    
    .tech-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .skills-summary {
        gap: 1.25rem;
        margin: 2.5rem 0;
    }
    
    .summary-card {
        padding: 1.25rem;
    }
    
    .summary-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.875rem;
    }
    
    .summary-card h4 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .summary-card p {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }
    
    /* Timeline optimizations */
    .timeline-content {
        padding: 0.75rem;
        margin-left: 0.25rem;
    }
    
    .timeline-item::before {
        left: -40px;
        font-size: 0.65rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-img-container {
        width: 220px;
        height: 280px;
    }
    
    .project-card {
        min-width: 260px;
        margin: 0 auto;
    }
    
    /* Projects Extra Small Mobile */
    .filter-btn {
        max-width: 220px;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Featured Project Extra Small */
    .featured-project {
        margin: 1rem 0;
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
    }
    
    .featured-info h3 {
        font-size: clamp(1.25rem, 8vw, 1.75rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .featured-info p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        max-width: 98%;
    }
    
    .project-category {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    .project-features {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature {
        font-size: 0.75rem;
    }
    
    .project-links {
        gap: 0.75rem;
    }
    
    .project-link {
        max-width: 200px;
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .browser-body {
        height: 180px;
        padding: 1rem;
    }
    
    .chat-interface {
        height: 120px;
        gap: 0.5rem;
    }
    
    .chat-message {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .mockup-browser {
        max-width: 240px;
    }
    
    .card-image {
        height: 140px;
    }
    
    /* GitHub Stats Extra Small */
    .github-stats {
        margin: 1rem 0;
        padding: 1rem 0.75rem;
        border-radius: 12px;
    }
    
    .stats-header {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .stats-header h3 {
        font-size: 1rem;
    }
    
    .github-link {
        padding: 0.6rem 0.875rem;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .stats-grid {
        gap: 0.5rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: 0.875rem 0.5rem;
        gap: 0.375rem;
        border-radius: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.25rem;
    }
    
    .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-info h4 {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }
    
    .stat-info p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* Contact Extra Small */
    .contact {
        padding: 2.5rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem 0.75rem;
        margin: 1.25rem 0;
        border-radius: 12px;
    }
    
    .form-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }
    
    .form-header p {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .floating-label {
        margin-bottom: 1.25rem;
    }
    
    .floating-label input,
    .floating-label textarea {
        font-size: 0.8rem;
        padding: 0.8rem 0 0.8rem 2.25rem;
    }
    
    .floating-label label {
        font-size: 0.75rem;
        left: 2.25rem;
    }
    
    .form-icon {
        font-size: 0.85rem;
        left: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .info-card {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .info-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .info-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .social-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .social-section p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .social-link {
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .social-info h4 {
        font-size: 0.85rem;
        margin-bottom: 0.125rem;
    }
    
    .social-info p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .social-arrow {
        margin-left: auto;
    }
    
    .social-arrow i {
        font-size: 0.8rem;
    }
    
    /* Experience Section Extra Small */
    .experience {
        padding: 2.5rem 0;
    }
    
    .experience-timeline {
        margin: 1.25rem 0;
    }
    
    .experience-nodes {
        gap: 1rem;
    }
    
    .exp-node {
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .node-marker {
        width: 30px;
        height: 30px;
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .node-year {
        font-size: 0.65rem;
    }
    
    .node-content {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .node-content h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .node-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .experience-grid {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .exp-card-3d {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .card-role {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .card-company {
        font-size: 0.8rem;
    }
    
    .card-duration {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .card-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .tech-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Skills Section Extra Small */
    .skills {
        padding: 2.5rem 0;
    }
    
    .skills-navigation {
        gap: 0.375rem;
        margin: 1.25rem 0 2rem;
    }
    
    .skill-nav-btn {
        max-width: 220px;
        font-size: 0.7rem;
        padding: 0.6rem 0.875rem;
        border-radius: 8px;
    }
    
    .skill-nav-btn i {
        font-size: 0.9rem;
    }
    
    .radar-container {
        width: 220px;
        height: 220px;
    }
    
    .radar-pulse {
        width: 40px;
        height: 40px;
    }
    
    .radar-label {
        font-size: 0.85rem;
    }
    
    .enhanced-skills-grid {
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .skill-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .skill-percentage {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .tech-pill {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .skills-summary {
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .summary-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .summary-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-card p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .skill-card, .info-card {
        padding: 1rem;
    }
}

/* Responsive Utilities Breakpoints */
@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .responsive-flex {
        flex-direction: column;
    }
    
    h1 {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }
    
    h2 {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .btn:hover,
    .skill-card:hover,
    .project-card:hover,
    .info-card:hover,
    .social-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Increase touch targets */
    .btn, .skill-nav-btn, .filter-btn, .carousel-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Simplify animations for better performance */
    * {
        animation-duration: 0.3s !important;
    }
}

/* Performance and Polish Enhancements */

/* Loading states */
.loading-complete .animate-on-load {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Performance optimizations */
.reduced-animations * {
    animation-duration: 0.3s !important;
    animation-iteration-count: 1 !important;
}

.slow-connection .heavy-animation {
    display: none !important;
}

.page-hidden * {
    animation-play-state: paused !important;
}

/* Enhanced focus states */
.focused {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}

/* Skip link */
.skip-link:focus {
    top: 6px !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced hover effects */
.enhanced-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Touch optimizations */
.touch-device .enhanced-hover:hover {
    transform: none !important;
}

/* List animations */
.animate-list-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.6s ease-out forwards;
}

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

/* Scroll particles */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* Rainbow mode (easter egg) */
.rainbow-mode {
    animation: rainbowBackground 2s ease-in-out infinite;
}

@keyframes rainbowBackground {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Keyboard navigation indicators */
.nav-open body {
    overflow: hidden;
}

/* Safe area support for notched devices */
.safe-area-support {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Keyboard open state */
.keyboard-open .hero {
    height: 50vh;
}

/* CSS custom properties for dynamic viewport */
:root {
    --vh: 1vh;
}

/* Optimized animations with will-change */
[class*="animate"] {
    will-change: transform, opacity;
}

.parallax-element {
    will-change: transform;
}

/* Final polish animations */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerIn 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

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

/* Optimized grid layouts */
.optimized-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    will-change: auto;
}

/* Final visual polish */
.visual-enhancement {
    position: relative;
    overflow: hidden;
}

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

.visual-enhancement:hover::before {
    left: 100%;
}

/* Micro-interactions */
.micro-interaction {
    transition: all 0.2s ease;
}

.micro-interaction:active {
    transform: scale(0.98);
}

/* Loading progress */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    z-index: 10000;
    transition: width 0.3s ease;
}

/* Intersection observer animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-dark: #000000;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent-purple: #ff00ff;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    padding: 3rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent-purple),
        var(--accent-green),
        transparent
    );
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    margin-top: 0.5rem !important;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-social a:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
    background: rgba(157, 78, 221, 0.2);
    border-color: var(--accent-purple);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info {
        text-align: center;
        order: 1;
    }
    
    .footer-links {
        gap: 1.5rem;
        order: 2;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
        order: 3;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
