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

/* ============================================
   COMPLETE SCROLLING SYSTEM REDESIGN
   ============================================ */

html {
    /* Core scrolling properties */
    scroll-behavior: smooth !important;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-top: 80px; /* Account for sticky header */
    
    /* Height management */
    height: 100%;
    width: 100%;
    
    /* Smooth scrolling on all devices */
    -webkit-overflow-scrolling: touch;
    
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Force smooth scrolling on all elements */
* {
    scroll-behavior: smooth !important;
}

/* Smooth scrolling for all anchor links */
a[href^="#"] {
    scroll-behavior: smooth !important;
    cursor: pointer;
}

/* Scrollbar styling for modern browsers */
html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid rgba(74, 158, 255, 0.1);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        rgba(74, 158, 255, 0.4),
        rgba(139, 126, 200, 0.4)
    );
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
    transition: background 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        rgba(74, 158, 255, 0.6),
        rgba(139, 126, 200, 0.6)
    );
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 158, 255, 0.4) var(--bg-primary);
}

:root {
    /* Color-Blind Friendly & Eye-Comfortable Colors */
    /* Using blue-yellow palette (accessible for most color blindness types) */
    --primary-color: #4a9eff;        /* Muted blue - less bright */
    --primary-dark: #3a7fcc;
    --accent-cyan: #5ab3d6;          /* Softer cyan */
    --accent-blue: #6b8dd6;          /* Accessible blue */
    --accent-yellow: #d4af37;        /* Gold/yellow for contrast */
    --accent-purple: #8b7ec8;         /* Muted purple */
    
    /* Darker Backgrounds for True Dark Mode */
    --bg-primary: #0a0a12;
    --bg-secondary: #0f0f18;
    --bg-card: rgba(20, 20, 30, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    /* Text Colors - High Contrast for Dark Mode Readability */
    --text-primary: #f8fafc;         /* Very light grey-white for excellent readability */
    --text-secondary: #e2e8f0;       /* Light grey for secondary text */
    --text-muted: #cbd5e1;          /* Medium light grey for muted text */
    
    /* Borders & Shadows - Reduced Brightness */
    --border-color: rgba(74, 158, 255, 0.15);      /* Much more muted */
    --border-glow: rgba(74, 158, 255, 0.25);       /* Reduced glow */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(74, 158, 255, 0.15);  /* Much reduced glow */
    --transition: all 0.3s ease;
}


/* Dark mode text improvements */
body {
    color: var(--text-primary);
}

/* Ensure paragraphs and body text are readable */
p, li, span, div {
    color: var(--text-primary);
}

/* Headings should use primary text color */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        /* Muted gradients - much less bright */
        radial-gradient(ellipse at top, rgba(74, 158, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 126, 200, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(90, 179, 214, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    
    /* Scrolling properties */
    min-height: 100vh;
    height: auto; /* Allow body to grow with content */
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible; /* Let html handle scrolling */
    
    /* Smooth transitions */
    transition: filter 0.3s ease, background-image 1s ease, background-color 0.5s ease, color 0.5s ease;
    
    /* Touch scrolling */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal */
    
    /* Prevent horizontal scroll bounce on iOS */
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
}


/* Interactive Live Animated Background for Dark Mode */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Animated Tech Grid Pattern */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(74, 158, 255, 0.08) 30px,
            rgba(74, 158, 255, 0.08) 32px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(74, 158, 255, 0.08) 30px,
            rgba(74, 158, 255, 0.08) 32px
        ),
        /* Animated Circuit Board Lines */
        linear-gradient(90deg, transparent 0%, rgba(74, 158, 255, 0.15) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(90, 179, 214, 0.12) 50%, transparent 100%),
        /* Interactive Nodes */
        radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.2) 0%, transparent 4%),
        radial-gradient(circle at 80% 70%, rgba(139, 126, 200, 0.18) 0%, transparent 4%),
        radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.15) 0%, transparent 5%),
        radial-gradient(circle at 30% 80%, rgba(90, 179, 214, 0.16) 0%, transparent 4%),
        radial-gradient(circle at 70% 20%, rgba(74, 158, 255, 0.14) 0%, transparent 4%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    animation: interactiveGrid 20s ease-in-out infinite, nodePulse 8s ease-in-out infinite;
}

@keyframes interactiveGrid {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes nodePulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Live Interactive Data Streams for Dark Mode */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Animated Data Streams */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 4px,
            rgba(74, 158, 255, 0.1) 4px,
            rgba(74, 158, 255, 0.1) 6px
        ),
        /* Binary Code Pattern */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 12px,
            rgba(139, 126, 200, 0.08) 12px,
            rgba(139, 126, 200, 0.08) 14px
        ),
        /* Connection Flow Lines */
        linear-gradient(45deg, 
            transparent 0%,
            rgba(74, 158, 255, 0.1) 20%,
            transparent 40%,
            rgba(90, 179, 214, 0.08) 60%,
            transparent 80%,
            rgba(74, 158, 255, 0.1) 100%
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: dataStreamFlow 18s linear infinite, streamPulse 6s ease-in-out infinite;
}

@keyframes dataStreamFlow {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(50px) translateX(30px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(100px) translateX(0);
        opacity: 0.6;
    }
    75% {
        transform: translateY(150px) translateX(-30px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(200px) translateX(0);
        opacity: 0.5;
    }
}

@keyframes streamPulse {
    0%, 100% {
        filter: brightness(1) hue-rotate(0deg);
    }
    50% {
        filter: brightness(1.2) hue-rotate(10deg);
    }
}


/* Background AI Robots Styling */
.background-ai-robot {
    display: inline-block;
    text-align: center;
    line-height: 1;
    user-select: none;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Live Snow Effect */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.4);
    animation: snowfall linear infinite;
    user-select: none;
    will-change: transform, opacity;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) translateX(var(--drift, 0px)) rotate(720deg);
        opacity: 0;
    }
}

/* Different snowflake sizes and speeds for realistic effect */
.snowflake-small {
    font-size: 0.7em;
    animation-duration: 12s;
    opacity: 0.7;
}

.snowflake-medium {
    font-size: 1em;
    animation-duration: 18s;
    opacity: 0.8;
}

.snowflake-large {
    font-size: 1.4em;
    animation-duration: 25s;
    opacity: 0.9;
}

.snowflake-extra-large {
    font-size: 1.8em;
    animation-duration: 35s;
    opacity: 1;
}

/* Snowflakes naturally drift with wind effect */
.snowflake {
    animation-timing-function: linear;
}

.main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    overflow: visible;
    width: 100%;
    
    /* Smooth scroll snap for sections (optional) */
    scroll-snap-type: y proximity;
}

/* Section scroll snap points */
section {
    scroll-snap-align: start;
    scroll-margin-top: 80px; /* Account for sticky header */
}

/* AI Background Animated Elements - Reduced Brightness */
/* Live Interactive Neural Network for Dark Mode */
.main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Interactive Neural Network Nodes */
        radial-gradient(circle at 15% 25%, rgba(74, 158, 255, 0.15) 0%, transparent 6%),
        radial-gradient(circle at 85% 75%, rgba(139, 126, 200, 0.14) 0%, transparent 6%),
        radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.12) 0%, transparent 8%),
        radial-gradient(circle at 25% 80%, rgba(90, 179, 214, 0.13) 0%, transparent 6%),
        radial-gradient(circle at 75% 20%, rgba(74, 158, 255, 0.11) 0%, transparent 7%),
        radial-gradient(circle at 10% 60%, rgba(139, 126, 200, 0.1) 0%, transparent 5%),
        radial-gradient(circle at 90% 40%, rgba(90, 179, 214, 0.12) 0%, transparent 6%);
    pointer-events: none;
    z-index: 0;
    animation: aiNodesPulse 10s ease-in-out infinite, nodeFloat 15s ease-in-out infinite;
    filter: blur(45px);
    opacity: 0.8;
}

@keyframes aiNodesPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes nodeFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 30px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* AI Connection Lines - Much More Subtle */
.main::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Subtle connection lines */
        linear-gradient(
            45deg,
            transparent 30%,
            rgba(74, 158, 255, 0.03) 50%,
            transparent 70%
        ),
        linear-gradient(
            -45deg,
            transparent 30%,
            rgba(74, 158, 255, 0.025) 50%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            transparent 40%,
            rgba(139, 126, 200, 0.02) 50%,
            transparent 60%
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    animation: connectionFlow 10s linear infinite;
    background-size: 200% 200%;
}

@keyframes connectionFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

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


/* Header Styles */
.header {
    background: rgba(5, 5, 16, 0.85);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 217, 255, 0.1);
    transition: background 0.5s ease, border-color 0.5s ease;
}



.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(74, 158, 255, 0.3);
    letter-spacing: -0.5px;
}

.nav-brand a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions .nav-menu {
    margin: 0;
    padding: 0;
}

/* Theme Toggle Switch Styles */

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 6px rgba(74, 158, 255, 0.4);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 4px rgba(74, 158, 255, 0.3);
}

/* Hero Section - Reduced Brightness */
.hero {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(139, 126, 200, 0.06) 50%, rgba(90, 179, 214, 0.04) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 126, 200, 0.08) 0%, transparent 50%);
    animation: pulse 6s ease-in-out infinite;
    opacity: 0.6;
}

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* Dark mode: Bright vibrant colors for visibility */
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 30%, #8000ff 60%, #ff00ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    perspective: 1000px;
    transform-style: preserve-3d;
    
    /* Reduced brightness - softer glows */
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5))
            drop-shadow(0 0 16px rgba(0, 128, 255, 0.4))
            drop-shadow(0 0 24px rgba(128, 0, 255, 0.3))
            drop-shadow(0 0 32px rgba(255, 0, 255, 0.25));
    
    /* Coming from background - hidden initially, then minimal animation */
    animation: titleEmergeFromBackground 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               titleFloat 12s ease-in-out infinite 2s;
    opacity: 0;
    transform: translateZ(-2000px) scale(0.1) rotateX(90deg) rotateY(180deg);
}

/* Animated glow effect like cursor particles */
.hero-title::before {
    content: 'Sasi Gunturu';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark mode: Bright colors */
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 30%, #8000ff 60%, #ff00ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(15px);
    /* Reduced brightness */
    opacity: 0.3;
    animation: titleGlowPulse 4s ease-in-out infinite 2s;
    pointer-events: none;
}

/* Combined floating, rotating, and scaling animation */
@keyframes titleFloatRotateScale {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) translateZ(10px) rotateX(3deg) rotateY(5deg) rotateZ(2deg) scale(1.03);
    }
    50% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(10deg) rotateZ(0deg) scale(1);
    }
    75% {
        transform: translateY(10px) translateZ(-5px) rotateX(-3deg) rotateY(5deg) rotateZ(-2deg) scale(0.98);
    }
}


.hero-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    /* Reduced brightness - dimmer aura */
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, rgba(0, 128, 255, 0.08) 30%, rgba(128, 0, 255, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    opacity: 0;
    animation: titleAura 8s ease-in-out infinite 2s;
    pointer-events: none;
}



/* Removed titleGlow animation - static glow only */


@keyframes titleGlowPulse {
    0%, 100% {
        opacity: 0.2;
        filter: blur(15px);
    }
    50% {
        opacity: 0.3;
        filter: blur(18px);
    }
}

/* Removed titleAuraColorShift - static aura only */


@keyframes titleAura {
    0%, 100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Title emerging from background - simplified and faster */
@keyframes titleEmergeFromBackground {
    0% {
        opacity: 0;
        transform: translateZ(-1000px) scale(0.5);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateZ(-200px) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
         filter: blur(0px) drop-shadow(0 0 8px rgba(0, 255, 255, 0.5))
                drop-shadow(0 0 16px rgba(0, 128, 255, 0.4))
                drop-shadow(0 0 24px rgba(128, 0, 255, 0.3))
                drop-shadow(0 0 32px rgba(255, 0, 255, 0.25));
    }
}

/* Removed titleColorShift - static gradient only */


/* 3D rotation animation */
@keyframes titleRotate3D {
    0%, 100% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(5deg) rotateY(5deg) rotateZ(2deg);
    }
    50% {
        transform: rotateX(0deg) rotateY(10deg) rotateZ(0deg);
    }
    75% {
        transform: rotateX(-5deg) rotateY(5deg) rotateZ(-2deg);
    }
}

/* Scale pulse animation */
@keyframes titleScalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Simplified floating animation - reduced movement */
@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mini Robot Styling */
.mini-robot {
    display: inline-block;
    text-align: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.title-robots-container {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}


.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    opacity: 1;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    
    /* Delayed entrance animation */
    animation: subtitleFadeIn 1.5s ease-out forwards 2.5s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Technical Skills Section - Compact Scrolling Animation */
.skills-section {
    padding: 2.5rem 0;
    background: rgba(26, 31, 58, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 217, 255, 0.08) 50%,
            transparent 100%
        );
    pointer-events: none;
    animation: aiPulse 4s ease-in-out infinite;
}

.skills-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 2px,
            rgba(0, 217, 255, 0.03) 4px
        );
    pointer-events: none;
    opacity: 0.5;
}

@keyframes aiPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.skills-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(248, 250, 252, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    animation: titleGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


.skills-title::after {
    content: '🤖';
    display: inline-block;
    margin-left: 1rem;
    animation: aiRotate 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.8));
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(248, 250, 252, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(248, 250, 252, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
}

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

/* Horizontal Scrolling Container */
.skills-popup-container {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.skills-popup-container::before,
.skills-popup-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-popup-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.skills-popup-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.skills-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    width: fit-content;
    will-change: transform;
    animation: scrollSkillsHorizontal 40s linear infinite;
}

.skills-scroll-wrapper:hover {
    animation-play-state: paused;
}

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

/* Pop-up Window Style - Compact for Scrolling */
.skill-item {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 1;
}

/* Light mode specific styles for skill items */

/* Window Header Bar */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue), var(--accent-purple));
    border-radius: 12px 12px 0 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Window Glow Effect */
.skill-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(12px);
}

/* Pop-up Hover Effect */
.skill-item:hover {
    transform: scale(1.08) translateY(-8px) !important;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    z-index: 10;
}


.skill-item:hover::before {
    opacity: 1;
    height: 5px;
}

.skill-item:hover::after {
    opacity: 0.4;
}

.skill-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(74, 158, 255, 0.6));
}

.skill-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
    transform: scale(1.05);
}


.skill-level {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-level::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.5s ease;
}

.skill-item:hover .skill-level::before {
    left: 100%;
}


.skill-level-advanced {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.1));
    color: var(--accent-green);
    border: 1.5px solid rgba(0, 255, 136, 0.6);
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.4),
        inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.skill-item:hover .skill-level-advanced {
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.8),
        inset 0 0 15px rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

.skill-level-intermediate {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0.1));
    color: var(--primary-color);
    border: 1.5px solid rgba(0, 217, 255, 0.6);
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.4),
        inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.skill-item:hover .skill-level-intermediate {
    box-shadow: 
        0 0 25px rgba(0, 217, 255, 0.8),
        inset 0 0 15px rgba(0, 217, 255, 0.2);
    transform: scale(1.1);
}

.skill-level-beginner {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(157, 78, 221, 0.1));
    color: var(--accent-purple);
    border: 1.5px solid rgba(157, 78, 221, 0.6);
    box-shadow: 
        0 0 15px rgba(157, 78, 221, 0.4),
        inset 0 0 10px rgba(157, 78, 221, 0.1);
}

.skill-item:hover .skill-level-beginner {
    box-shadow: 
        0 0 25px rgba(157, 78, 221, 0.8),
        inset 0 0 15px rgba(157, 78, 221, 0.2);
    transform: scale(1.1);
}

/* AI Particle Effects */
.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.8);
}

.skill-item:hover .ai-particle {
    animation: particleBurst1 0.6s ease-out forwards;
}

.skill-item:hover .ai-particle:nth-child(2) {
    animation: particleBurst2 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.skill-item:hover .ai-particle:nth-child(3) {
    animation: particleBurst3 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes particleBurst1 {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(30px, -40px) scale(0);
    }
}

@keyframes particleBurst2 {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-35px, -30px) scale(0);
    }
}

@keyframes particleBurst3 {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(25px, 45px) scale(0);
    }
}

.ai-floating-particle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, -50px);
        opacity: 0.4;
    }
    75% {
        transform: translate(25px, -20px);
        opacity: 0.5;
    }
}

@keyframes connectionFade {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Blog Posts Section */
.blog-posts {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
}

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

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: rgba(26, 31, 58, 0.95);
}

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

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3) 0%, rgba(157, 78, 221, 0.3) 50%, rgba(0, 255, 136, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 217, 255, 0.1) 10px,
            rgba(0, 217, 255, 0.1) 20px
        );
    opacity: 0.5;
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(74, 158, 255, 0.3);
    padding: 0.25rem 0.75rem;
    background: rgba(74, 158, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    display: inline-block;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-shadow: 0 0 6px rgba(74, 158, 255, 0.3);
}

.post-link:hover {
    gap: 0.75rem;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* Post Page Styles */
.post-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.post-header {
    margin-bottom: 2rem;
}

.post-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-page-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.post-page-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.12) 0%, rgba(139, 126, 200, 0.12) 50%, rgba(90, 179, 214, 0.08) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.post-page-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(74, 158, 255, 0.04) 15px,
            rgba(74, 158, 255, 0.04) 30px
        );
    opacity: 0.3;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    opacity: 0.95;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    opacity: 0.95;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    opacity: 0.95;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(0, 217, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    opacity: 0.9;
}

/* Light mode blockquote */
/* Removed light mode */
    background: rgba(26, 26, 46, 0.05);
    color: #2d3748;
    border-left-color: #1a1a2e;
    font-weight: 500;
}

/* Light mode heading improvements */
/* Removed light mode */
    color: #1a1a2e;
    border-bottom-color: rgba(26, 26, 46, 0.3);
    font-weight: 700;
}

/* Removed light mode - dark mode only */ 
        /* Computer Screen Grid - Modern Terminal Look */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(255, 140, 66, 0.06) 24px,
            rgba(255, 140, 66, 0.06) 25px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 24px,
            rgba(255, 140, 66, 0.06) 24px,
            rgba(255, 140, 66, 0.06) 25px
        ),
        /* Code Editor Lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 163, 102, 0.03) 20px,
            rgba(255, 163, 102, 0.03) 21px
        ),
        /* Monitor/Display Frame Effect */
        linear-gradient(90deg, rgba(255, 140, 66, 0.08) 0%, transparent 5%, transparent 95%, rgba(255, 140, 66, 0.08) 100%),
        linear-gradient(0deg, rgba(255, 140, 66, 0.08) 0%, transparent 5%, transparent 95%, rgba(255, 140, 66, 0.08) 100%),
        /* Computer Screen Glow */
        radial-gradient(ellipse at center, rgba(255, 179, 128, 0.1) 0%, transparent 70%),
        /* Subtle Tech Gradient */
        linear-gradient(135deg, rgba(255, 140, 66, 0.05) 0%, transparent 50%, rgba(255, 163, 102, 0.04) 100%);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 20px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}


@keyframes computerScreen {
    0%, 100% {
        opacity: 0.5;
        filter: brightness(1);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.05);
    }
}

@keyframes techPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}


@keyframes codeTyping {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(30px);
        opacity: 0.6;
    }
    100% {
        transform: translateY(60px);
        opacity: 0.4;
    }
}

/* Computer Desktop Icons/Windows for Light Mode */
[data-theme="light"] .main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Computer Desktop Icons */
        radial-gradient(circle at 15% 20%, rgba(255, 140, 66, 0.12) 0%, transparent 3%),
        radial-gradient(circle at 85% 80%, rgba(255, 163, 102, 0.1) 0%, transparent 3%),
        radial-gradient(circle at 50% 50%, rgba(255, 179, 128, 0.08) 0%, transparent 4%),
        radial-gradient(circle at 25% 75%, rgba(255, 140, 66, 0.09) 0%, transparent 3%),
        radial-gradient(circle at 75% 25%, rgba(255, 163, 102, 0.08) 0%, transparent 3%),
        /* Window Frames */
        linear-gradient(90deg, rgba(255, 140, 66, 0.06) 0%, transparent 10%, transparent 90%, rgba(255, 140, 66, 0.06) 100%),
        linear-gradient(0deg, rgba(255, 140, 66, 0.06) 0%, transparent 10%, transparent 90%, rgba(255, 140, 66, 0.06) 100%);
    pointer-events: none;
    z-index: 0;
    animation: desktopIcons 15s ease-in-out infinite;
    filter: blur(35px);
    opacity: 0.5;
}

@keyframes desktopIcons {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Removed light mode */
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Screen Refresh Lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 200px,
            rgba(255, 140, 66, 0.08) 200px,
            rgba(255, 140, 66, 0.08) 205px
        ),
        /* Computer Taskbar Effect */
        linear-gradient(0deg, 
            transparent 0%,
            transparent 95%,
            rgba(255, 140, 66, 0.1) 95%,
            rgba(255, 140, 66, 0.1) 100%
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: screenRefresh 8s linear infinite;
}

@keyframes screenRefresh {
    0% {
        transform: translateY(-100%);
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100%);
        opacity: 0.3;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.back-link:hover {
    gap: 0.75rem;
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

/* Footer */
/* Contact Section - Fun & Stylish Design */
.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff 0%, #7b2fff 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-title-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s ease-in-out infinite;
    display: inline-block;
}

.contact-title-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.contact-form {
    background: rgba(26, 31, 58, 0.7);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 217, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: formFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 217, 255, 0.05) 50%,
        transparent 70%
    );
    animation: formShine 8s linear infinite;
    pointer-events: none;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.label-icon {
    font-size: 1.3rem;
    animation: iconWiggle 3s ease-in-out infinite;
    display: inline-block;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 20, 40, 0.6);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    background: rgba(15, 20, 40, 0.8);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        0 0 40px rgba(123, 47, 255, 0.2),
        inset 0 0 10px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: rgba(0, 255, 150, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.input-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.form-input:focus + .input-feedback,
.form-textarea:focus + .input-feedback {
    opacity: 1;
    transform: translateY(0);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.char-counter span {
    color: var(--primary-color);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #00d9ff 0%, #7b2fff 50%, #ff00ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    box-shadow: 
        0 4px 15px rgba(0, 217, 255, 0.4),
        0 0 30px rgba(123, 47, 255, 0.3);
}

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

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 217, 255, 0.6),
        0 0 50px rgba(123, 47, 255, 0.5);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    animation: iconSpin 2s linear infinite;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    z-index: 1;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 31, 58, 0.7);
    border: 2px solid rgba(0, 255, 150, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    animation: successPop 0.5s ease-out;
}

.form-success.show {
    display: block;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successBounce 0.8s ease-out;
    display: inline-block;
}

.form-success h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ff96 0%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.reset-btn {
    padding: 0.75rem 2rem;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

/* Animations */
@keyframes titleShimmer {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(123, 47, 255, 0.8));
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-10deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
    75% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

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

@keyframes formShine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

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

@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.footer {
    background: rgba(26, 31, 58, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        align-items: stretch;
    }


    .header-actions .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    .header-actions {
        margin-right: 1rem;
        gap: 1rem;
    }
    
    .header-actions .nav-menu {
        gap: 1rem;
    }
    
    .theme-switch {
        width: 50px;
        height: 26px;
    }
    
    .theme-slider:before {
        height: 18px;
        width: 18px;
    }
    
    .theme-switch input:checked + .theme-slider:before {
        transform: translateX(24px);
    }
    
    .theme-icon-dark,
    .theme-icon-light {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }


    .skills-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .skills-section {
        padding: 2rem 0;
    }

    .skills-popup-container {
        padding: 1rem 0;
    }

    .skill-item {
        width: 180px;
        padding: 1.25rem 1rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

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

    .post-page-title {
        font-size: 2rem;
    }

    .post-page-image {
        height: 250px;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .skills-section {
        padding: 1.5rem 0;
    }

    .skills-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .skills-popup-container {
        padding: 0.75rem 0;
    }

    .skills-scroll-wrapper {
        gap: 1rem;
        animation-duration: 30s;
    }

    .skill-item {
        width: 160px;
        padding: 1rem 0.75rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .blog-posts {
        padding: 2rem 0;
    }

    .post-content {
        padding: 1rem;
    }
    
    /* Scroll to top button - mobile */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top::before {
        font-size: 20px;
    }
    
}

/* Hide default cursor */
* {
    cursor: none !important;
}

/* Cursor elements - pointer events disabled */
.custom-cursor,
.cursor-dot,
.cursor-outline,
.cursor-ring {
    pointer-events: none !important;
    touch-action: none;
}

/* Smooth scroll for all scrollable containers */
.scroll-container,
.skills-popup-container,
.posts-grid {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}


/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.scroll-to-top::before {
    content: '↑';
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.scroll-to-top:hover::before {
    color: var(--bg-primary);
}

/* ============================================
   NEW TRENDING ANIMATED CURSOR - FROM SCRATCH
   ============================================ */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}

/* Cursor Dot - Inner Core */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #00f0ff 0%, #7b2fff 50%, #ff00ff 100%);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100001;
    box-shadow: 
        0 0 12px rgba(0, 240, 255, 1),
        0 0 20px rgba(123, 47, 255, 0.9),
        0 0 30px rgba(255, 0, 255, 0.7),
        0 0 40px rgba(0, 240, 255, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
    transition: transform 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cursor Outline - Magnetic Ring */
.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2.5px solid rgba(0, 240, 255, 0.9);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(123, 47, 255, 0.1) 50%, transparent 70%);
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.8),
        0 0 35px rgba(123, 47, 255, 0.6),
        0 0 50px rgba(255, 0, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                transform 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: outlineRotate 8s linear infinite;
}

/* Multiple Rotating Particles Around Cursor */
.cursor-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #00f0ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(15px);
    box-shadow: 
        0 0 10px rgba(0, 240, 255, 1),
        0 0 20px rgba(0, 240, 255, 0.8),
        0 0 30px rgba(123, 47, 255, 0.6);
    animation: orbitParticle 3s linear infinite;
    pointer-events: none;
}

.cursor-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #ff00ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(15px);
    box-shadow: 
        0 0 8px rgba(255, 0, 255, 1),
        0 0 15px rgba(255, 0, 255, 0.8),
        0 0 25px rgba(123, 47, 255, 0.6);
    animation: orbitParticle 2s linear infinite reverse;
    pointer-events: none;
}

/* Additional animated elements using box-shadow for multiple particles */
.cursor-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #7b2fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(12px);
    box-shadow: 
        0 0 8px rgba(123, 47, 255, 1),
        0 0 15px rgba(123, 47, 255, 0.8),
        0 0 22px rgba(0, 240, 255, 0.6);
    animation: orbitParticleFast 1.5s linear infinite;
    pointer-events: none;
}

.cursor-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5px;
    height: 2.5px;
    background: #ff00ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(12px);
    box-shadow: 
        0 0 6px rgba(255, 0, 255, 1),
        0 0 12px rgba(255, 0, 255, 0.8),
        0 0 18px rgba(123, 47, 255, 0.6);
    animation: orbitParticleFast 1s linear infinite reverse;
    pointer-events: none;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(123, 47, 255, 0.7);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 
        0 0 15px rgba(123, 47, 255, 0.6),
        0 0 30px rgba(0, 240, 255, 0.4),
        0 0 45px rgba(255, 0, 255, 0.3);
    animation: ringPulse 3s ease-in-out infinite, ringRotate 6s linear infinite;
}

/* Additional rotating dots on the ring */
.cursor-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #00f0ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(20px);
    box-shadow: 
        0 0 8px rgba(0, 240, 255, 1),
        0 0 15px rgba(0, 240, 255, 0.8),
        0 0 22px rgba(123, 47, 255, 0.6);
    animation: orbitRingParticle 4s linear infinite;
    pointer-events: none;
}

.cursor-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5px;
    height: 2.5px;
    background: #ff00ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateX(20px);
    box-shadow: 
        0 0 6px rgba(255, 0, 255, 1),
        0 0 12px rgba(255, 0, 255, 0.8),
        0 0 18px rgba(123, 47, 255, 0.6);
    animation: orbitRingParticle 3s linear infinite reverse;
    pointer-events: none;
}

@keyframes orbitRingParticle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(20px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(20px) rotate(-360deg);
        opacity: 0.8;
    }
}

/* New Animations */
@keyframes dotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes outlineRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbitParticle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(15px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(15px) rotate(-360deg);
        opacity: 1;
    }
}

@keyframes orbitParticleFast {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(12px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(12px) rotate(-360deg);
        opacity: 1;
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

@keyframes ringRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Trail particles animation */
.cursor-trail-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}

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

/* Additional pulsing rings */
.cursor-outline {
    position: relative;
}

.cursor-outline::before,
.cursor-outline::after {
    animation: orbitParticle 3s linear infinite, particleGlow 2s ease-in-out infinite;
}

.cursor-dot::before,
.cursor-dot::after {
    animation: orbitParticleFast 1.5s linear infinite, particleGlow 1.5s ease-in-out infinite;
}

@keyframes particleGlow {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(0, 240, 255, 1),
            0 0 15px rgba(123, 47, 255, 0.8);
        opacity: 1;
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 240, 255, 1),
            0 0 25px rgba(123, 47, 255, 1),
            0 0 35px rgba(255, 0, 255, 0.8);
        opacity: 0.95;
    }
}






/* Cursor hover effects are handled by JavaScript */

/* Hide cursor on mobile devices */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }
}

