/* ===== CSS Variables - Dark Theme ===== */
:root,
[data-theme="dark"] {
    --bg: #050508;
    --bg-secondary: #0a0a0f;
    --surface: #12121a;
    --surface-light: #1a1a25;
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(139, 92, 246, 0.3);
    --text: #f5f5f7;
    --text-secondary: #a0a0b0;
    --text-muted: #606075;
    --shadow: rgba(0, 0, 0, 0.3);

    /* Vibrant Gaming Colors */
    --accent-purple: #8b5cf6;
    --accent-cyan: #00d4ff;
    --accent-green: #00ff88;
    --accent-pink: #ff0080;
    --accent-orange: #ff6b00;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    --gradient-gaming: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --gradient-cricket: linear-gradient(135deg, #ff6b00 0%, #ff0080 100%);
    --gradient-tech: linear-gradient(135deg, #8b5cf6 0%, #ff0080 100%);
    --gradient-name: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #00d4ff 100%);

    --noise-opacity: 0.025;
    --grid-opacity: 0.03;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #ffffff;
    --surface: #ffffff;
    --surface-light: #f8fafc;
    --border: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(124, 58, 237, 0.2);
    --text: #1a1a2e;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --shadow: rgba(0, 0, 0, 0.08);

    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;
    --accent-green: #059669;
    --accent-pink: #db2777;
    --accent-orange: #ea580c;

    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
    --gradient-name: linear-gradient(135deg, #6d28d9 0%, #0891b2 50%, #059669 100%);

    --noise-opacity: 0;
    --grid-opacity: 0.008;
}

/* Light theme - Body and Background */
[data-theme="light"] body {
    background: #ffffff !important;
}

/* Light theme - Hide dark mode effects */
[data-theme="light"] .noise {
    display: none;
}

[data-theme="light"] .grid-bg {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .grid-bg::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.06) 0%, transparent 50%);
}

/* Light theme - Navbar */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Light theme - Cards with shadows */
[data-theme="light"] .skill-card,
[data-theme="light"] .interest-card,
[data-theme="light"] .social-card,
[data-theme="light"] .email-wrapper,
[data-theme="light"] .xp-card,
[data-theme="light"] .tag {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .skill-card:hover,
[data-theme="light"] .interest-card:hover,
[data-theme="light"] .social-card:hover {
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(124, 58, 237, 0.2);
}

/* Light theme - Hero badge */
[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(8, 145, 178, 0.08));
    border-color: rgba(5, 150, 105, 0.2);
}

/* Light theme - Visual elements */
[data-theme="light"] .visual-center {
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .visual-ring {
    border-width: 2px;
}

[data-theme="light"] .ring-1 {
    border-color: rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .ring-2 {
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .ring-3 {
    border-color: rgba(5, 150, 105, 0.25);
}

/* Light theme - Buttons */
[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

[data-theme="light"] .btn-ghost {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-ghost:hover {
    background: #f1f5f9;
}

/* Light theme - Name text */
[data-theme="light"] .hero-title .name-text {
    text-shadow: none;
    filter: none;
}

/* Light theme - Card tags */
[data-theme="light"] .card-tags span {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

/* Light theme - Social icon background */
[data-theme="light"] .social-icon {
    background: #f8fafc;
}

/* Light theme - XP card */
[data-theme="light"] .xp-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(8, 145, 178, 0.06));
    border-color: rgba(124, 58, 237, 0.15);
}

/* Light theme - Theme toggle */
[data-theme="light"] .theme-toggle {
    background: #f8fafc;
}

/* Light theme - Floating icons */
[data-theme="light"] .float-icon {
    opacity: 0.15;
}

/* Light theme - Footer */
[data-theme="light"] .footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}


/* ===== Transitions ===== */
:root {
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Noise Texture ===== */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    transition: opacity 0.5s ease;
}

/* ===== Grid Background ===== */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(139, 92, 246, var(--grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, var(--grid-opacity)) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    transition: opacity 0.5s ease;
}

.grid-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.08) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
}

[data-theme="light"] .grid-bg::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ===== Floating Icons ===== */
.floating-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    animation: floatIcon 20s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

[data-theme="light"] .float-icon {
    opacity: 0.12;
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 10%;
    animation-delay: -3s;
}

.icon-3 {
    top: 60%;
    left: 8%;
    animation-delay: -6s;
}

.icon-4 {
    top: 40%;
    right: 5%;
    animation-delay: -9s;
}

.icon-5 {
    bottom: 20%;
    left: 15%;
    animation-delay: -12s;
}

.icon-6 {
    bottom: 30%;
    right: 15%;
    animation-delay: -15s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    25% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.12;
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.06;
    }

    75% {
        transform: translateY(-40px) rotate(5deg);
        opacity: 0.1;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.875rem 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-dot {
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

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

/* ===== Theme Toggle ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-purple);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text);
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.nav-toggle {
    display: none;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text);
    left: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
}

.hero-content {
    max-width: 650px;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-bottom: 2rem;
}

[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(8, 145, 178, 0.1));
    border-color: rgba(5, 150, 105, 0.3);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px var(--accent-green);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px var(--accent-green);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-title .line {
    display: block;
}

.hero-title .intro {
    font-size: 0.4em;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.hero-title .name-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
}

.hero-title .name-text {
    background: var(--gradient-name);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.5);
    animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.4));
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.tag-icon {
    font-size: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

/* ===== Hero Visual ===== */
.hero-visual {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: spinRing 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(139, 92, 246, 0.2);
    animation-direction: normal;
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-color: rgba(0, 212, 255, 0.2);
    animation-direction: reverse;
    animation-duration: 15s;
}

.ring-3 {
    width: 50%;
    height: 50%;
    border-color: rgba(0, 255, 136, 0.2);
    animation-duration: 10s;
}

[data-theme="light"] .visual-ring {
    border-width: 2px;
}

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

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

.visual-center {
    width: 100px;
    height: 100px;
    background: var(--gradient-main);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
    animation: floatCenter 4s ease-in-out infinite;
}

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

@keyframes floatCenter {

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

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        opacity: 1;
        height: 50px;
    }

    50% {
        opacity: 0.3;
        height: 30px;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ===== Sections ===== */
.section {
    padding: 8rem 2rem;
}

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

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.label-icon {
    font-size: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-60px);
}

.animate-on-scroll.slide-left.visible {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(60px);
}

.animate-on-scroll.slide-right.visible {
    transform: translateX(0);
}

.animate-on-scroll.scale-up {
    transform: scale(0.8);
}

.animate-on-scroll.scale-up.visible {
    transform: scale(1);
}

.animate-on-scroll.rotate-in {
    transform: rotate(-10deg) translateY(60px);
}

.animate-on-scroll.rotate-in.visible {
    transform: rotate(0) translateY(0);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-main {
    padding-right: 2rem;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text.large {
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== Interest Cards ===== */
.interest-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.interest-card {
    position: relative;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.interest-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--border-glow);
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: var(--transition);
}

.interest-card:hover .card-glow {
    opacity: 0.5;
}

.tech-card .card-glow {
    background: var(--accent-purple);
}

.gaming-card .card-glow {
    background: var(--accent-green);
}

.cricket-card .card-glow {
    background: var(--accent-orange);
}

.tech-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.gaming-card:hover {
    border-color: rgba(0, 255, 136, 0.4);
}

.cricket-card:hover {
    border-color: rgba(255, 107, 0, 0.4);
}

[data-theme="light"] .tech-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

[data-theme="light"] .gaming-card:hover {
    border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .cricket-card:hover {
    border-color: rgba(234, 88, 12, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-emoji {
    font-size: 1.75rem;
}

.card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.card-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--accent-purple);
}

[data-theme="light"] .card-tags span {
    background: rgba(124, 58, 237, 0.1);
}

/* ===== Skills Section ===== */
.skills-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
}

.skill-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: var(--transition);
}

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

.skill-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-card:hover .skill-icon-wrapper {
    background: var(--gradient-main);
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

.skill-icon {
    width: 36px;
    height: 36px;
    color: var(--text);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    color: white;
}

.skill-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-level {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-light);
    border-radius: 10px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    width: var(--level);
    background: var(--gradient-main);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-fill.animate {
    transform: scaleX(1);
}

.skill-level span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skills-footer {
    margin-top: 3rem;
}

.xp-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
}

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

.xp-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xp-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.xp-value {
    font-weight: 500;
    color: var(--text);
}

/* ===== Connect Section ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.social-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.social-card:hover .social-bg {
    opacity: 0.1;
}

.social-card.github .social-bg {
    background: linear-gradient(135deg, #6e5494, #333);
}

.social-card.linkedin .social-bg {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-card.twitter .social-bg {
    background: linear-gradient(135deg, #1da1f2, #14171a);
}

.social-card.instagram .social-bg {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-card.linktree .social-bg {
    background: linear-gradient(135deg, #43e660, #39d353, #2eb843);
}

.social-card.github:hover {
    border-color: #6e5494;
}

.social-card.linkedin:hover {
    border-color: #0077b5;
}

.social-card.twitter:hover {
    border-color: #1da1f2;
}

.social-card.instagram:hover {
    border-color: #dc2743;
}

.social-card.linktree:hover {
    border-color: #39d353;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.social-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.social-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.social-card:hover .social-arrow {
    color: var(--text);
    transform: translateX(5px);
}

.email-section {
    margin-top: 4rem;
    text-align: center;
}

.email-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.email-wrapper:hover {
    border-color: var(--accent-purple);
}

.email-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.email-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.email-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
}

.email-wrapper:hover .email-hint {
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-visual {
        width: 280px;
        height: 280px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-main {
        padding-right: 0;
    }

    .skills-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transition: var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .floating-icons {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 5rem 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .email-wrapper {
        padding: 2rem;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--text);
}

.loader-text span {
    color: var(--accent-cyan);
}

.loader-bar {
    width: 150px;
    height: 4px;
    background: var(--surface-light);
    border-radius: 10px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-main);
    border-radius: 10px;
    animation: loaderProgress 1.5s ease-out forwards;
}

@keyframes loaderProgress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ===== Animated Background Blobs ===== */
.animated-blobs {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.3);
    top: -20%;
    right: -10%;
    animation: blobMove1 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.25);
    bottom: -15%;
    left: -10%;
    animation: blobMove2 25s ease-in-out infinite;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 136, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobMove3 30s ease-in-out infinite;
}

@keyframes blobMove1 {

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

    25% {
        transform: translate(-50px, 50px) scale(1.1);
    }

    50% {
        transform: translate(-100px, -30px) scale(0.9);
    }

    75% {
        transform: translate(30px, -60px) scale(1.05);
    }
}

@keyframes blobMove2 {

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

    33% {
        transform: translate(80px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 60px) scale(0.95);
    }
}

@keyframes blobMove3 {

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

    50% {
        transform: translate(-40%, -60%) scale(1.15);
    }
}

[data-theme="light"] .blob {
    opacity: 0.15;
}

[data-theme="light"] .blob-1 {
    background: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .blob-2 {
    background: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .blob-3 {
    background: rgba(5, 150, 105, 0.1);
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ===== Profile Photo ===== */
.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-main);
    animation: photoRingSpin 6s linear infinite;
}

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

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

.photo-container {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg);
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-status {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ===== Education Timeline ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan), var(--accent-green));
    border-radius: 2px;
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--surface);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transform: translateX(-50%);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateX(-50%) scale(1.1);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-purple);
    transform: translateX(5px);
}

.timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-main);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-institution {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Light theme timeline */
[data-theme="light"] .timeline-content {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .timeline-item:hover .timeline-content {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1);
}

/* ===== Focus States (Accessibility) ===== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-purple);
    outline-offset: 3px;
}

.nav-link:focus-visible::before {
    width: 100%;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-cyan);
}

.social-card:focus-visible {
    outline: 3px solid var(--accent-purple);
    transform: translateY(-5px);
}

/* ===== Performance Optimizations ===== */
.hero-visual,
.visual-ring,
.visual-center,
.blob,
.loader {
    will-change: transform;
}

.animate-on-scroll {
    will-change: opacity, transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blob,
    .visual-ring,
    .float-icon,
    .loader-logo,
    .photo-ring {
        animation: none !important;
    }
}

/* ===== Timeline Responsive ===== */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        width: 2rem;
        height: 2rem;
        left: -2.5rem;
        font-size: 0.8rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .photo-placeholder {
        font-size: 2.5rem;
    }
}

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

    .timeline-marker {
        left: -2rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}