/* CSS Variables for Premium Dark/Light Mode */
:root {
    --bg-primary: #0a0a1f;
    --bg-secondary: #141428;
    --bg-tertiary: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a1a1aa;
    --text-accent: #00d4ff;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-color: rgba(0, 212, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #0a0a1f 0%, #141428 50%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #ff6b6b 100%);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
}

/* Global Section Titles */
section h2,
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

section h2::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #EAF6FF;
    --bg-secondary: #F8FBFF;
    --bg-tertiary: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-accent: #0066cc;
    --border-color: rgba(0, 102, 204, 0.15);
    --shadow-color: rgba(0, 102, 204, 0.1);
    --gradient-primary: linear-gradient(135deg, #EAF6FF 0%, #F8FBFF 50%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #0066cc 0%, #00d4ff 50%, #00ff88 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.95);
}

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

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

.particle {
    position: absolute;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(1px);
    animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 25s;
    background: rgba(0, 212, 255, 0.8);
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 80%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 30s;
    background: rgba(139, 92, 246, 0.8);
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 30%;
    top: 80%;
    animation-delay: 4s;
    animation-duration: 22s;
    background: rgba(0, 255, 136, 0.8);
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 60%;
    top: 10%;
    animation-delay: 1s;
    animation-duration: 35s;
    background: rgba(0, 212, 255, 0.8);
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 90%;
    top: 30%;
    animation-delay: 3s;
    animation-duration: 28s;
    background: rgba(139, 92, 246, 0.8);
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 15%;
    top: 50%;
    animation-delay: 5s;
    animation-duration: 32s;
    background: rgba(0, 255, 136, 0.8);
}

.particle:nth-child(7) {
    width: 9px;
    height: 9px;
    left: 70%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 40s;
    background: rgba(0, 212, 255, 0.8);
}

.particle:nth-child(8) {
    width: 6px;
    height: 6px;
    left: 45%;
    top: 25%;
    animation-delay: 6s;
    animation-duration: 26s;
    background: rgba(139, 92, 246, 0.8);
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-200px) translateX(-30px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-150px) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Premium Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Animated Flowing Background */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.1) 20%,
            rgba(139, 92, 246, 0.15) 40%,
            rgba(0, 255, 136, 0.1) 60%,
            rgba(0, 212, 255, 0.1) 80%,
            transparent 100%);
    animation: flowingNavbar 8s linear infinite;
    z-index: -1;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.08) 25%,
            rgba(139, 92, 246, 0.12) 50%,
            rgba(0, 255, 136, 0.08) 75%,
            transparent 100%);
    animation: flowingNavbar 12s linear infinite reverse;
    z-index: -1;
    opacity: 0.7;
}

@keyframes flowingNavbar {
    0% {
        transform: translateX(0);
    }

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

[data-theme="light"] .navbar {
    box-shadow:
        0 4px 20px rgba(0, 102, 204, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .navbar::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 102, 204, 0.08) 20%,
            rgba(0, 212, 255, 0.12) 40%,
            rgba(0, 255, 136, 0.08) 60%,
            rgba(0, 102, 204, 0.08) 80%,
            transparent 100%);
}

[data-theme="light"] .navbar::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 102, 204, 0.06) 25%,
            rgba(0, 212, 255, 0.1) 50%,
            rgba(0, 255, 136, 0.06) 75%,
            transparent 100%);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle:hover span {
    background: var(--text-accent);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: var(--blur-md);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .nav-links a:hover {
        background: var(--glass-bg);
        border-color: var(--text-accent);
        transform: none;
    }

    .nav-links a::after {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .theme-toggle {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
        padding: 0.5rem;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #8b5cf6 100%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    z-index: -1;
    border-radius: 50px;
}

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

.nav-links a:hover::before {
    left: 100%;
}

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

.nav-links a:hover {
    color: #ffffff;
    background: var(--glass-bg);
    border-color: #00d4ff;
    box-shadow:
        0 12px 35px rgba(0, 212, 255, 0.6),
        0 0 25px rgba(0, 212, 255, 0.5),
        0 0 50px rgba(0, 212, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.3);
}

[data-theme="light"] .nav-links a {
    box-shadow:
        0 2px 8px rgba(0, 102, 204, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .nav-links a:hover {
    box-shadow:
        0 12px 35px rgba(0, 102, 204, 0.4),
        0 0 25px rgba(0, 102, 204, 0.3),
        0 0 50px rgba(0, 102, 204, 0.2),
        0 0 80px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #8b5cf6 100%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    z-index: -1;
    border-radius: 50px;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    color: #ffffff;
    background: var(--glass-bg);
    border-color: #00d4ff;
    box-shadow:
        0 8px 25px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.4);
}

[data-theme="light"] .theme-toggle {
    box-shadow:
        0 2px 8px rgba(0, 102, 204, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .theme-toggle:hover {
    color: #ffffff;
    background: var(--glass-bg);
    border-color: #0066cc;
    box-shadow:
        0 8px 25px rgba(0, 102, 204, 0.4),
        0 0 20px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.2),
        0 0 60px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    filter: brightness(1.3);
}

/* Hero Section - Premium Redesign */
.hero {
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--text-accent);
    top: -100px;
    left: -100px;
    animation: shapeFloat 20s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation: shapeFloat 15s infinite alternate-reverse;
}

@keyframes shapeFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Image Container with Neural Ring */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    margin-top: -30px;
}

.profile-image-wrap {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-wrap:hover img {
    transform: scale(1.1);
}

.neural-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 2px dashed var(--text-accent);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

.neural-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--text-accent);
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Text Side Styles */
.hero-text-side {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00ff88;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-text-side h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.typewriter-container {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.typing-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-accent);
    margin: 0;
    border-right: 3px solid var(--text-accent);
    padding-right: 8px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--text-accent);
    }
}

.hero-text-side p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.cta-button {
    position: relative;
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    z-index: 1;
}

.cta-button span {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--gradient-accent);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.cta-button.secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-button::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: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.5);
}

.cta-button.primary:hover span {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-accent);
}

.cta-button.secondary:hover span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: var(--text-accent);
    transform: translateY(-5px);
}

/* Premium Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-accent);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-text-side {
        text-align: center;
    }

    .hero-text-side p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text-side h1 {
        font-size: 3.5rem;
    }

    .profile-image-wrap {
        width: 280px;
        height: 280px;
    }

    .neural-ring {
        width: 330px;
        height: 330px;
    }
}

[data-theme="light"] .cta-button.primary:hover {
    box-shadow: 
        0 16px 48px rgba(0, 102, 204, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 102, 204, 0.4),
        0 0 60px rgba(0, 102, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


.cta-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cta-button.secondary:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 102, 204, 0.4),
        0 0 20px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
}

[data-theme="light"] .cta-button.secondary {
    box-shadow:
        0 2px 8px rgba(0, 102, 204, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .cta-button.secondary:hover {
    box-shadow:
        0 12px 40px rgba(0, 102, 204, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(0, 102, 204, 0.2),
        0 0 50px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

section h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

/* About Section Animated Background */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.08) 20%,
            rgba(0, 212, 255, 0.12) 40%,
            rgba(0, 255, 136, 0.08) 60%,
            rgba(139, 92, 246, 0.08) 80%,
            transparent 100%);
    animation: flowingSection 10s linear infinite;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.06) 25%,
            rgba(0, 212, 255, 0.1) 50%,
            rgba(0, 255, 136, 0.06) 75%,
            transparent 100%);
    animation: flowingSection 15s linear infinite reverse;
    z-index: 0;
    opacity: 0.7;
}

[data-theme="light"] .about::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.06) 20%,
            rgba(0, 102, 204, 0.1) 40%,
            rgba(0, 212, 255, 0.06) 60%,
            rgba(102, 126, 234, 0.06) 80%,
            transparent 100%);
}

[data-theme="light"] .about::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.04) 25%,
            rgba(0, 102, 204, 0.08) 50%,
            rgba(0, 212, 255, 0.04) 75%,
            transparent 100%);
}

@keyframes flowingSection {
    0% {
        transform: translateX(0);
    }

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

/* About Section - Premium Redesign */
.about {
    padding: 10rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-side {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-accent);
    border-radius: 30px;
    z-index: 1;
    animation: frameFloat 6s ease-in-out infinite;
}

@keyframes frameFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, 15px);
    }
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-accent);
    padding: 1.5rem;
    border-radius: 20px;
    color: #1a1a2e;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
    z-index: 3;
    animation: badgePulse 4s infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.05);
    }
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-text-side h3 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: var(--text-accent);
    background: rgba(255, 255, 255, 0.05);
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 0.8rem;
    display: block;
}

.stat-box .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

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

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.interest-item i {
    color: var(--text-accent);
}

/* Projects Section - Premium Redesign */
.projects {
    padding: 10rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(20px);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--text-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.project-card:hover .project-image-wrap img {
    transform: scale(1.1) rotate(2deg);
}

.project-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.project-category {
    background: var(--gradient-accent);
    color: #1a1a2e;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

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

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-accent);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

/* Mini CTA Button Modifier */
.cta-button.mini {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 12px;
}

.cta-button.mini i {
    font-size: 0.9rem;
}

.cta-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.skill-category-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-category-card:hover::before {
    opacity: 1;
}

.skill-category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
    border-color: var(--text-accent);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.skill-category-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.skill-progress-wrap {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    animation: skillFill 2s cubic-bezier(0.1, 0.5, 0.5, 1) forwards;
}

@keyframes skillFill {
    from {
        width: 0%;
    }
}

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

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

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

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

/* Contact Section Animated Background */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.08) 20%,
            rgba(0, 255, 136, 0.12) 40%,
            rgba(0, 212, 255, 0.08) 60%,
            rgba(139, 92, 246, 0.08) 80%,
            transparent 100%);
    animation: flowingSection 16s linear infinite;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.06) 25%,
            rgba(0, 255, 136, 0.1) 50%,
            rgba(0, 212, 255, 0.06) 75%,
            transparent 100%);
    animation: flowingSection 22s linear infinite reverse;
    z-index: 0;
    opacity: 0.7;
}

[data-theme="light"] .contact::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.06) 20%,
            rgba(0, 255, 136, 0.1) 40%,
            rgba(0, 102, 204, 0.06) 60%,
            rgba(102, 126, 234, 0.06) 80%,
            transparent 100%);
}

[data-theme="light"] .contact::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.04) 25%,
            rgba(0, 255, 136, 0.08) 50%,
            rgba(0, 102, 204, 0.04) 75%,
            transparent 100%);
}

/* Contact Section - Premium Redesign */
.contact {
    padding: 10rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* Left Side: Contact Details */
.contact-details-side {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-card-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-accent);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 15px rgba(0, 212, 255, 0.2);
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.info-text p,
.info-text a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: var(--text-accent);
}

.social-connect h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    width: 55px;
    height: 55px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-accent);
    color: #fff;
    transform: translateY(-8px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.4);
}

/* Right Side: Form */
.glass-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group {
    position: relative;
    width: 100%;
}

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

.input-group textarea {
    min-height: 120px;
    resize: none;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
}

.input-group input:focus~.focus-border,
.input-group textarea:focus~.focus-border {
    width: 100%;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder,
.input-group textarea:focus::placeholder {
    opacity: 0;
    transform: translateY(-10px);
}

#form-result {
    margin-top: 1.5rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.5rem;
}

/* Contact Form Button Styling */
.premium-form .cta-button {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 1.3rem;
    margin-top: 1rem;
}

.premium-form .cta-button i {
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-form .cta-button:hover i {
    transform: translate(10px, -10px) rotate(-15deg);
    color: #fff;
}

.premium-form .cta-button:active {
    transform: scale(0.98);
}

/* Responsiveness */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .glass-form-container {
        padding: 3rem 2rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.footer i {
    color: var(--text-accent);
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.chatbot.active {
    display: flex;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gradient-accent);
    color: #1a1a2e;
    border-radius: 20px 20px 0 0;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1a1a2e;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

.whatsapp-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-toggle:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Remove global section animation to prevent layout issues */

/* Ensure proper initial loading states */
section {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Scroll-triggered animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .nav-links {
        display: none;
    }

    .chatbot {
        width: calc(100vw - 40px);
        height: 400px;
        bottom: 80px;
        right: 20px;
    }

    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .container {
        padding: 0 15px;
    }

    .project-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-accent);
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--text-accent);
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    line-height: 0;
}

#modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* Gallery Modal Styles */
.gallery-content {
    max-width: 1200px;
    background: transparent;
}

.gallery-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#gallery-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.gallery-nav button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav button:hover {
    background: var(--gradient-accent);
    color: #1a1a2e;
    transform: scale(1.1);
}

.gallery-info {
    text-align: center;
    color: #fff;
}

#gallery-counter {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

#gallery-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .gallery-nav {
        position: relative;
        top: 0;
        transform: none;
        margin-top: 1rem;
        gap: 2rem;
        justify-content: center;
    }
}