/* Modern Neon & Glassmorphism Portfolio CSS - Enhanced with Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Neon Colors */
    --neon-cyan: #00f0ff;
    --neon-pink: #9e027c;
    --neon-green: #7bff00;
    --neon-purple: #6f4bff;
    --neon-orange: #ff7a00;
    --neon-blue: #00d4ff;

    /* Base Colors */
    --primary: #00f0ff;
    --secondary: #850585;
    --dark: #0a0e27;
    --darker: #050818;
    --light: #f8fafc;
    --gray: #64748b;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Gradients with Neon */
    --gradient: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.28) 0%, rgba(111, 75, 255, 0.22) 50%, rgba(255, 0, 200, 0.22) 100%);
    
    /* Enhanced Shadows */
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
    --glow-pink: 0 0 20px rgba(255, 0, 200, 0.5), 0 0 40px rgba(255, 0, 200, 0.3);
    --glow-green: 0 0 20px rgba(123, 255, 0, 0.5), 0 0 40px rgba(123, 255, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 240, 255, 0.25);
}

[data-theme="dark"] {
    --bg-primary: #0a0e27;
    --bg-secondary: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(17, 24, 39, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
    min-height: 100vh;
}

/* Animated Background Orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::before {
    width: 500px;
    height: 500px;
    background: var(--neon-cyan);
    top: -200px;
    left: -200px;
}

body::after {
    width: 400px;
    height: 400px;
    background: var(--neon-pink);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed; /* Changed from absolute to fixed */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    pointer-events: none;
    z-index: 9999;
    animation: cursor-fade 0.5s ease-out forwards;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes cursor-fade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Skip link - visible when focused for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10001;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 6px;
    box-shadow: var(--glow-cyan);
    z-index: 10001;
}

/* Visible focus styles for keyboard users */
:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
    box-shadow: var(--glow-cyan);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 1.5rem;
    animation: float-logo 2s ease-in-out infinite;
}

.preloader-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-cyan);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Neon Cursor */
        * {
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300f0ff" stroke-width="2"><polyline points="3 6 5 4 19 18 17 20 3 6"></polyline></svg>') 12 2, auto;
        }

        a, button, .filter-btn, .project-link, .social-link {
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%2300f0ff"><circle cx="12" cy="12" r="8" fill="%2300f0ff" opacity="0.6"/><circle cx="12" cy="12" r="5" fill="%2300f0ff"/></svg>') 12 12, pointer;
        }

/* Custom Neon Cursor - REMOVED cursor styles from * selector to improve accessibility */
/* Let browser handle cursor by default, add custom only to specific elements */

/* Glassmorphism Navigation - Modern frosted glass effect */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(0, 240, 255, 0.15);
}

[data-theme="light"] nav:hover {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(0, 240, 255, 0.2);
}

nav:hover {
    background: rgba(10, 14, 39, 0.25);
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    box-shadow: 0 12px 48px rgba(0, 240, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(0, 240, 255, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.logo:hover::before {
    opacity: 1;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-self: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 1rem;
    letter-spacing: 0.3px;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover::after {
    opacity: 1;
}

/* Nav actions (right side): CTA, theme toggle, hamburger */
.nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-self: end;
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.12);
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-cta {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

[data-theme="light"] .nav-cta:hover {
    background: rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
}

/* Active/Current link styling */
.nav-links a.active,
.nav-links a:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 18px rgba(0,240,255,0.6);
}

/* Glowing Theme Toggle - Glassmorphism */
.theme-toggle {
    background: rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(204, 15, 15, 0.15);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.menu-toggle:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;   /* ✔ Show only on tablet + mobile */
    }
}


section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1440px;
    margin: 30px auto;
    position: relative;
    z-index: 1;
}


/* Hero Section */
.hero {
     width: 100vw;
    
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Neon gradient background with abstract shapes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 40%, rgba(0, 240, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(255, 0, 200, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 15%, rgba(123, 255, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(69, 66, 252, 0.2) 0%, transparent 40%);
    animation: pulse 12s ease-in-out infinite;
    z-index: 0;
    filter: blur(80px);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(5deg); }
}

/* Floating abstract blurry shapes */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #9c0b9d;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--neon-pink);
    bottom: 15%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--neon-purple);
    top: 60%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}


/* Artistic Intro Line */
.intro-heading {
    font-family: 'Dancing Script', cursive; /* Elegant, artistic font */
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--neon-cyan); /* Matches your neon theme */
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6); /* Neon glow effect */
}

/* Hero name (h1) */
.hero-text h1 {
    font-family: 'Poppins', sans-serif; /* Modern, bold */
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* Profession (h2) */
.hero-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--neon-pink);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(255,0,200,0.4);
}



.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left side text content */
.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

.hero h2 {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* CTA Buttons with micro-interactions */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8), 0 0 60px rgba(255, 0, 200, 0.6);
}

.btn-secondary {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-secondary:hover {
    transform: scale(1.02) translateY(-2px);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

/* Right side - Floating glass card */
.hero-mockup-container {
    position: relative;
    perspective: 1000px;
}

.hero-mockup {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 240, 255, 0.15),
        inset 0 0 60px rgba(255, 0, 200, 0.05);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    animation: floatCard 6s ease-in-out infinite;
}

/* Neon edges on glass card */
.hero-mockup::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 20px;
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateY(0.5deg) rotateX(0.5deg); }
    50% { transform: translateY(-20px) rotateY(-0.5deg) rotateX(-0.5deg); }
}

.hero-mockup:hover {
    transform: translateY(-10px) rotateY(1deg) rotateX(1deg) scale(1.02);
}

.hero-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .hero-mockup-img {
        display: none; /* Hide on mobile */
    }
}


/* Animated code snippet floating behind */
.code-snippet {
    position: absolute;
    top: -10px;
    right: -40px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
    z-index: 1;
    animation: floatCode 8s ease-in-out infinite;
    line-height: 1.6;
    transform: rotateZ(-5deg);
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotateZ(-5deg); opacity: 0.8; }
    50% { transform: translateY(-15px) rotateZ(-3deg); opacity: 1; }
}

.code-line {
    white-space: nowrap;
}

.code-keyword { color: #ff00c8; }
.code-function { color: #00f0ff; }
.code-string { color: #7bff00; }

/* Desktop layout */
@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 500px;
        gap: 4rem;
    }

    .hero-text {
        text-align: left;
    }

    .cta-buttons {
        justify-content: flex-start;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .code-snippet {
        font-size: 0.75rem;
        padding: 1rem;
        top: -30px;
        right: -30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .code-snippet {
        display: none;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    animation: glow-line 2s ease-in-out infinite;
}

@keyframes glow-line {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 200, 0.7); }
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.profile-img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--glass-border);
    transition: all 0.4s ease;
    background: var(--gradient);
}

.profile-img::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.profile-img:hover::before {
    opacity: 1;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5), 0 0 100px rgba(255, 0, 200, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
 
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

[data-theme="light"] .skill-category {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .skill-category:hover {
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
}

.skill-category:hover::before {
    opacity: 0.1;
}

.skill-category h3 {
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 25px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-cyan);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4), 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-cyan);
}

[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-img img,
.project-img .project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .project-img::after {
    transform: translateX(100%);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--neon-cyan);
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: tag-appear 0.5s ease backwards;
}

@keyframes tag-appear {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.tag:hover {
    background: var(--neon-cyan);
    color: var(--dark);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    color: var(--neon-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: width 0.3s ease;
}

.project-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 200, 0.5);
    transform: translateX(5px);
}

.project-link:hover::after {
    width: 100%;
    background: var(--neon-pink);
    box-shadow: 0 0 5px var(--neon-pink);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-size: 1.4rem;
}

.service-card:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;  
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1rem;
    gap: 1rem;
    border-radius: 10px;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-icon {
    
    color: var(--neon-cyan);
  
    text-align: center;
    font-size: 1.5rem;
        min-width: 32px;
}

.contact-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p,
.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--neon-cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: inherit;
    
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0.8rem;
        font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: var(--glass-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

footer {
    background: var(--bg-secondary);
    padding: 1rem 1rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    background: var(--neon-cyan);
    color: var(--dark);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 1rem;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 1.5rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--glass-border);
        transition: right 0.3s ease;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .submit-btn {
        width: 100%;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Utility classes */
.glass,
.skill-category,
.project-card,
.service-card,
.filter-btn,
.tag,
.profile-img,
.nav-actions .theme-toggle,
.menu-toggle,
.nav-cta {
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure all interactive elements have proper cursor */
a, button, .filter-btn, .project-link, .social-link, .theme-toggle, .menu-toggle, .nav-cta, .submit-btn, .pricing-btn {
    cursor: pointer;
}

/* Fix for button text alignment */
.btn, .filter-btn, .submit-btn, .pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for section padding on mobile */
@media (max-width: 640px) {
    section {
        padding: 3rem 1rem;
    }
    
    .hero {
        padding: 80px 1rem 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

/* Fix for form inputs on iOS */
input, textarea, button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

input[type="text"],
input[type="email"],
textarea {
    border-radius: 12px;
}

/* Clear float fix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Print styles */
@media print {
    .preloader,
    .scroll-top,
    .menu-toggle,
    .theme-toggle,
    .nav-cta {
        display: none !important;
    }
    
    nav {
        position: static;
        background: white !important;
        box-shadow: none !important;
    }
    
    .hero::before,
    .abstract-shape,
    body::before,
    body::after {
        display: none !important;
    }
}