/* ===============================================
   CUSTOM CSS STYLES
   =============================================== */

/* CSS Variables for Theme Colors */
:root {
    --bg-main: #f8fafc; 
    --card-bg: #ffffff; 
    --text-main: #0f172a; 
    --text-muted: #475569;
    --border-col: #e2e8f0; 
    --accent: #0ea5e9; 
    --accent-glow: rgba(14, 165, 233, 0.1);
    --purple: #8b5cf6;
    --pink: #ec4899;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    
    /* Better contrast colors for tags */
    --tag-blue-bg: rgba(59, 130, 246, 0.1);
    --tag-blue-text: #1d4ed8;
    --tag-green-bg: rgba(16, 185, 129, 0.1);
    --tag-green-text: #059669;
    --tag-purple-bg: rgba(139, 92, 246, 0.1);
    --tag-purple-text: #7c3aed;
    --tag-orange-bg: rgba(245, 158, 11, 0.1);
    --tag-orange-text: #d97706;
    --tag-red-bg: rgba(239, 68, 68, 0.1);
    --tag-red-text: #dc2626;
}

.dark {
    --bg-main: #0f172a; 
    --card-bg: #1e293b; 
    --text-main: #f1f5f9; 
    --text-muted: #94a3b8;
    --border-col: #334155; 
    --accent: #38bdf8; 
    --accent-glow: rgba(56, 189, 248, 0.15);
    --purple: #a855f7;
    --pink: #f472b6;
    --green: #34d399;
    --orange: #fbbf24;
    --red: #f87171;
    --blue: #60a5fa;
    --cyan: #22d3ee;
    
    /* Better contrast colors for tags in dark mode */
    --tag-blue-bg: rgba(96, 165, 250, 0.15);
    --tag-blue-text: #93c5fd;
    --tag-green-bg: rgba(52, 211, 153, 0.15);
    --tag-green-text: #6ee7b7;
    --tag-purple-bg: rgba(168, 85, 247, 0.15);
    --tag-purple-text: #c4b5fd;
    --tag-orange-bg: rgba(251, 191, 36, 0.15);
    --tag-orange-text: #fcd34d;
    --tag-red-bg: rgba(248, 113, 113, 0.15);
    --tag-red-text: #fca5a5;
}

/* Enhanced Text Readability */
.text-enhanced {
    color: var(--text-main);
    opacity: 0.95;
}

.text-muted-enhanced {
    color: var(--text-muted);
    opacity: 0.9;
}

.text-accent-enhanced {
    color: var(--accent);
    font-weight: 600;
}

/* Custom Selection Styles for Better Visibility */
::selection {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--text-main);
}

.dark ::selection {
    background-color: rgba(56, 189, 248, 0.25);
    color: var(--text-main);
}

/* Subtle Hover Effects */
a:hover, button:hover {
    transform: translateY(-1px);
}

.tech-stack-card, .skill-badge, .profile-card {
    transition: all 0.3s ease;
}

.tech-stack-card:hover, .skill-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Base Styles */
html.lenis { 
    height: auto; 
} 

.lenis.lenis-smooth { 
    scroll-behavior: auto !important; 
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    transition: background-color 0.5s, color 0.5s; 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* Enhanced readability classes */
.text-description {
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0.92;
}

.text-subtitle {
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1.6;
}

/* Better tag colors */
.tag-blue {
    background: var(--tag-blue-bg);
    color: var(--tag-blue-text);
}

.tag-green {
    background: var(--tag-green-bg);
    color: var(--tag-green-text);
}

.tag-purple {
    background: var(--tag-purple-bg);
    color: var(--tag-purple-text);
}

.tag-orange {
    background: var(--tag-orange-bg);
    color: var(--tag-orange-text);
}

.tag-red {
    background: var(--tag-red-bg);
    color: var(--tag-red-text);
}

/* Preloader Styles - Ultra Modern 2026 */
#preloader {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Background Interactive Grid */
.background-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.3;
}

.grid-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0ea5e9;
    border-radius: 50%;
    opacity: 0.2;
    animation: gridPulse 4s infinite;
}

.grid-dot:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.grid-dot:nth-child(2) { top: 30%; left: 35%; animation-delay: 0.5s; }
.grid-dot:nth-child(3) { top: 15%; left: 65%; animation-delay: 1s; }
.grid-dot:nth-child(4) { top: 45%; left: 25%; animation-delay: 1.5s; }
.grid-dot:nth-child(5) { top: 25%; left: 85%; animation-delay: 2s; }
.grid-dot:nth-child(6) { top: 65%; left: 45%; animation-delay: 2.5s; }
.grid-dot:nth-child(7) { top: 75%; left: 15%; animation-delay: 3s; }
.grid-dot:nth-child(8) { top: 55%; left: 75%; animation-delay: 3.5s; }
.grid-dot:nth-child(9) { top: 85%; left: 35%; animation-delay: 0.8s; }
.grid-dot:nth-child(10) { top: 10%; left: 50%; animation-delay: 1.3s; }
.grid-dot:nth-child(11) { top: 40%; left: 90%; animation-delay: 1.8s; }
.grid-dot:nth-child(12) { top: 80%; left: 60%; animation-delay: 2.3s; }

@keyframes gridPulse {
    0%, 90%, 100% {
        opacity: 0.1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(14, 165, 233, 0);
    }
    5%, 15% {
        opacity: 1;
        transform: scale(2);
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
    }
}

/* Enhanced Particles */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 6px currentColor;
    animation: particleFloat 8s infinite linear;
}

.particle-small {
    width: 2px;
    height: 2px;
    opacity: 0.4;
    animation-duration: 12s;
}

.particle-large {
    width: 6px;
    height: 6px;
    opacity: 0.8;
    animation-duration: 6s;
    box-shadow: 0 0 12px currentColor;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: -2s; animation-duration: 6s; }
.particle:nth-child(3) { left: 60%; animation-delay: -4s; animation-duration: 10s; }
.particle:nth-child(4) { left: 80%; animation-delay: -1s; animation-duration: 7s; }
.particle:nth-child(5) { left: 90%; animation-delay: -3s; animation-duration: 9s; }
.particle:nth-child(6) { left: 20%; animation-delay: -5s; }
.particle:nth-child(7) { left: 70%; animation-delay: -1.5s; }
.particle:nth-child(8) { left: 50%; animation-delay: -2.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: scanMove 3s infinite;
    opacity: 0.8;
}

.scan-line-vertical {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(0deg, transparent, #8b5cf6, transparent);
    animation: scanMoveVertical 4s infinite;
    opacity: 0.6;
}

@keyframes scanMove {
    0%, 100% {
        transform: translateY(0) scaleX(0);
    }
    50% {
        transform: translateY(50vh) scaleX(1);
    }
}

@keyframes scanMoveVertical {
    0%, 100% {
        transform: translateX(0) scaleY(0);
    }
    50% {
        transform: translateX(50vw) scaleY(1);
    }
}

/* Corner Sparks */
.corner-sparks {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #fff, #0ea5e9);
    border-radius: 50%;
    opacity: 0;
    animation: sparkFlash 3s infinite;
    box-shadow: 0 0 8px currentColor;
}

.spark-1 {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.spark-2 {
    top: 10px;
    right: 10px;
    animation-delay: 0.5s;
}

.spark-3 {
    bottom: 10px;
    right: 10px;
    animation-delay: 1s;
}

.spark-4 {
    bottom: 10px;
    left: 10px;
    animation-delay: 1.5s;
}

@keyframes sparkFlash {
    0%, 90%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    5%, 15% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typing Dots Animation */
.typing-dots {
    display: inline-block;
    margin-left: 5px;
}

.typing-dots::after {
    content: '';
    animation: typingDots 1.5s infinite;
}

@keyframes typingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Container Breathing Effect */
.breathing-effect {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(14, 165, 233, 0.1), 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        transparent
    );
    animation: breathe 4s ease-in-out infinite;
    pointer-events: none;
}

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

/* Ripple Effects */
.ripple-effect {
    position: absolute;
    inset: -30px;
    pointer-events: none;
}

.ripple {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: rippleExpand 3s infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 1s; }
.ripple-3 { animation-delay: 2s; }

@keyframes rippleExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Orbital Trail Effect */
.orbital-trail {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(14, 165, 233, 0.6) 45deg,
        rgba(139, 92, 246, 0.6) 90deg,
        rgba(236, 72, 153, 0.6) 135deg,
        transparent 180deg,
        transparent 360deg
    );
    animation: orbitTrail 5s linear infinite;
    opacity: 0.7;
    mask: radial-gradient(circle at center, transparent 80%, black 85%, black 100%);
}

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

/* Enhanced Glassmorphism */
.loader-glass-container {
    position: relative;
    backdrop-filter: blur(24px) saturate(200%);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(14, 165, 233, 0.1);
    animation: containerEntrance 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

@keyframes containerEntrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8) rotateX(15deg) rotateY(5deg);
        filter: blur(20px);
    }
    30% {
        transform: translateY(-10px) scale(1.02) rotateX(-3deg) rotateY(-1deg);
    }
    60% {
        transform: translateY(5px) scale(0.98) rotateX(1deg) rotateY(0.5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
        filter: blur(0);
    }
}

/* Hologram Effect */
.hologram-effect {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    border-radius: 28px;
    opacity: 0.6;
    animation: hologramShift 4s infinite linear;
}

@keyframes hologramShift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Premium Avatar */
.loader-avatar {
    position: relative;
    width: 85px;
    height: 85px;
    margin: 0 auto 2.5rem;
}

.avatar-letter {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 40%, #ec4899 80%, #10b981 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    z-index: 3;
    animation: avatarPulse 4s ease-in-out infinite;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border: 3px solid transparent;
    border-radius: 27px;
    background: linear-gradient(45deg, #0ea5e9, #8b5cf6, #ec4899, #10b981, #0ea5e9) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: ringRotate 6s linear infinite;
    z-index: 1;
}

.avatar-glow {
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite alternate;
    z-index: 0;
}

.avatar-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: sparkOrbit 5s linear infinite;
    z-index: 4;
}

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

@keyframes sparkOrbit {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
        opacity: 1;
    }
}

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

@keyframes glowPulse {
    from { opacity: 0.4; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.15); }
}

/* Enhanced Typography */
.brand-stack {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-primary {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    animation: textFloat 3s ease-in-out infinite;
}

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

.brand-secondary {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    animation: textFadeInOut 4s ease-in-out infinite;
}

@keyframes textFadeInOut {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

.brand-accent {
    font-size: 0.8rem;
    color: #0ea5e9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: textShimmer 2.5s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { 
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
    }
    50% { 
        opacity: 1;
        text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    }
}

/* Ultimate Spinner */
.modern-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.spinner-orb {
    position: absolute;
    width: 14px;
    height: 14px;
    background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.8);
    animation: orbitalMotion 4s ease-in-out infinite;
}

.spinner-trail {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-top-color: rgba(14, 165, 233, 0.4);
    border-radius: 50%;
    animation: trailRotation 3s linear infinite;
}

.spinner-dots {
    position: absolute;
    inset: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spinner-dots .dot {
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.spinner-dots .dot:nth-child(2) { animation-delay: 0.3s; }
.spinner-dots .dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes orbitalMotion {
    0% {
        transform: rotate(0deg) translateX(28px) rotate(0deg);
        background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
        box-shadow: 0 0 25px rgba(14, 165, 233, 0.8);
    }
    25% {
        transform: rotate(90deg) translateX(28px) rotate(-90deg);
        background: linear-gradient(45deg, #8b5cf6, #ec4899);
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
    }
    50% {
        transform: rotate(180deg) translateX(28px) rotate(-180deg);
        background: linear-gradient(45deg, #ec4899, #10b981);
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
    }
    75% {
        transform: rotate(270deg) translateX(28px) rotate(-270deg);
        background: linear-gradient(45deg, #10b981, #f59e0b);
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
    }
    100% {
        transform: rotate(360deg) translateX(28px) rotate(-360deg);
        background: linear-gradient(45deg, #f59e0b, #0ea5e9);
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.8);
    }
}

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

/* Enhanced Navigation Styles */
.glass-nav {
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.logo-text:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.logo-underline {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.logo-text:hover .logo-underline {
    width: 100%;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
}

.social-icon:hover {
    background: var(--accent-glow);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.theme-toggle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
}

.theme-toggle:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.3);
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

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

/* Profile and About Section */
.profile-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.profile-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

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

.skill-badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Skills Progress Bars */
.skill-progress {
    transition: all 0.3s ease;
}

.skill-progress:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.contact-form {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: scale(1.02);
}

.availability-card {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
}

/* Typewriter Effect Styles */
#typewriter {
    min-height: 1.2em;
    display: inline-block;
    position: relative;
    color: var(--accent);
    font-weight: 800;
}

.typewriter-text {
    display: inline-block;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.1);
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    animation: glow-blink 1.5s ease-in-out infinite;
    opacity: 0.9;
    margin-left: 2px;
    text-shadow: 0 0 10px currentColor;
}

@keyframes glow-blink {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
    51%, 100% {
        opacity: 0.3;
        transform: scale(0.98);
        text-shadow: 0 0 5px currentColor;
    }
}

/* Fallback for browsers that don't support background-clip: text */
.no-webkit-text .typewriter-text {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: unset;
}

/* Tech Stack Cards */
.tech-stack-card {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-col);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.5s;
}

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

.tech-stack-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--accent-glow);
    transform: translateY(-5px);
}

/* Enhanced Button Styles */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
}

.magnetic-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Utility Classes */ 

@keyframes blink { 
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Filter Button Styles */
.filter-btn.active { 
    background-color: var(--accent); 
    color: white; 
    border-color: var(--accent); 
}

.hidden-item { 
    display: none; 
}

/* Additional Visual Enhancements */
#scroll-progress { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 3px; 
    background: linear-gradient(90deg, var(--accent), #8b5cf6, #ec4899);
    width: 0%; 
    z-index: 99999; 
    box-shadow: 0 0 10px var(--accent);
}

#neural-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.4; 
    pointer-events: none;
    will-change: transform;
    image-rendering: optimizeSpeed;
}

.tech-card { 
    transform-style: preserve-3d; 
    transform: perspective(1000px); 
    transition: all 0.4s ease;
}

/* Removed hover effect for consistency */

.modal-overlay { 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px); 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 0.9em;
    }
    
    .tech-stack-card {
        padding: 1rem;
    }
    
    #cursor, #cursor-dot {
        display: none; /* Hide custom cursor on mobile */
    }
    
    body {
        cursor: auto; /* Restore default cursor on mobile */
    }
    
    .profile-card .w-48 {
        width: 8rem;
        height: 8rem;
    }
    
    .skill-badge {
        padding: 0.75rem;
    }
}

/* Timeline Styles (restored) */
.timeline-line { 
    position: absolute; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 2px; 
    background: var(--border-col); 
}

.timeline-item { 
    padding-left: 2rem; 
    position: relative; 
    padding-bottom: 3rem; 
}

.timeline-dot { 
    position: absolute; 
    left: -5px; 
    top: 0; 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: var(--bg-main); 
    border: 2px solid var(--accent); 
    transition: background 0.3s;
}

/* Removed timeline dot hover effect */

/* Navigation Active State */
.nav-link.active {
    color: var(--accent);
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

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

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

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

/* Loading State for Buttons */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer-loading 2s infinite;
}

@keyframes shimmer-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fixed Action Section */
.fixed-action-section {
    transition: all 0.3s ease;
    background: var(--bg-main);
    padding: 2rem 0;
    border-radius: 2rem 2rem 0 0;
    position: relative;
}

.fixed-action-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, #ec4899);
    border-radius: 2px;
}

/* Parallax Background */
.parallax-background {
    z-index: -1;
}

/* Accordion Styles */
.accordion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background-color: rgba(147, 51, 234, 0.1);
}

.accordion-content {
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

.accordion-content.expanded {
    max-height: 1000px;
}

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

.accordion-btn.expanded svg {
    transform: rotate(180deg);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scroll-to-top:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) scale(1);
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.3);
}

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

.scroll-to-top .scroll-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-icon {
    transform: translateY(-2px);
}

.scroll-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 150.796; /* 2 * PI * 24 */
    stroke-dashoffset: 150.796;
    transition: stroke-dashoffset 0.1s linear;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    
    .scroll-progress-ring svg {
        width: 48px;
        height: 48px;
    }
    
    .progress-ring-circle {
        cx: 24;
        cy: 24;
        r: 20;
        stroke-dasharray: 125.664; /* 2 * PI * 20 */
        stroke-dashoffset: 125.664;
    }
}

/* ===============================================
   ENHANCED TOOLTIP STYLES
   =============================================== */

.tooltip-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
}

.custom-tooltip {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-col);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    z-index: 10000;
}

.custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-col);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

.custom-tooltip.tooltip-bottom::before {
    top: auto;
    bottom: -5px;
    border: 1px solid var(--border-col);
    border-top: none;
    border-left: none;
    transform: translateX(-50%) rotate(45deg);
}

.tooltip-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.tooltip-description {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ===============================================
   CV DOWNLOAD BUTTON STYLES
   =============================================== */

.cv-download-btn {
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    transition: left 0.6s ease;
}

.cv-download-btn:hover::before {
    left: 100%;
}

/* ===============================================
   ENHANCED FORM STYLES
   =============================================== */

.form-group {
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.error-message.show {
    display: block !important;
}

/* Loading States */
.loading .submit-text,
.loading .submit-icon {
    display: none;
}

.loading .loading-text,
.loading .loading-icon {
    display: block !important;
}

/* ===============================================
   ENHANCED ANIMATIONS
   =============================================== */

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

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

.custom-tooltip.entering {
    animation: tooltipIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.custom-tooltip.leaving {
    animation: tooltipOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===============================================
   RESPONSIVE ENHANCEMENTS
   =============================================== */

@media (max-width: 768px) {
    .custom-tooltip {
        max-width: 250px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ===============================================
   LANGUAGE SWITCHER STYLES
   =============================================== */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border-col);
    border-radius: 999px;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.language-switcher.mobile {
    display: inline-flex;
}

.language-segment {
    min-width: 42px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.language-segment:hover {
    color: var(--text-main);
}

.language-segment.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* Language transition animations */
.lang-fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}