/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--secondary-color, #7c3aed);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #1e1e2e;
    --secondary-color: #7c3aed;
    --secondary-light: #9d65f0;
    --accent-color: #f59e0b;
    --teal: #2dd4bf;
    --text-color: #374151;
    --text-muted: #6b7280;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: rgba(124, 58, 237, 0.1);
    --shadow: 0 4px 24px rgba(124, 58, 237, 0.06);
    --shadow-hover: 0 16px 48px rgba(124, 58, 237, 0.14);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --gradient: linear-gradient(135deg, #7c3aed, #2dd4bf);
    --gradient-hover: linear-gradient(135deg, #6d28d9, #14b8a6);
    --gradient-accent: linear-gradient(135deg, #7c3aed, #f59e0b);
    --section-alt-bg: #f1f5f9;
    --hero-gradient: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, rgba(45,212,191,0.04) 100%);
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
    --primary-color: #f1f5f9;
    --secondary-color: #a78bfa;
    --secondary-light: #c4b5fd;
    --accent-color: #fbbf24;
    --teal: #2dd4bf;
    --text-color: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: rgba(167, 139, 250, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.25);
    --section-alt-bg: #1a2332;
    --hero-gradient: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(45,212,191,0.05) 100%);
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    overflow-x: hidden;
}

@media (pointer: coarse) {
    body { cursor: auto; }
}

main {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--gradient);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
    top: 0;
    left: 0;
}

.cursor-follower {
    width: 32px;
    height: 32px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
    opacity: 0.5;
    top: 0;
    left: 0;
}

.cursor.cursor-hover {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.cursor-follower.cursor-hover {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    height: var(--nav-height);
}

.dark-theme header {
    background-color: rgba(15, 23, 42, 0.85);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    height: 60px;
}

.dark-theme header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    gap: 1rem;
}

/* Logo */
.logo {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    position: absolute;
    right: -10px;
    bottom: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(124, 58, 237, 0.08);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
    background-color: rgba(167, 139, 250, 0.1);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: rotate(20deg);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(124, 58, 237, 0.08);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2rem) 5% 4rem;
    background: var(--hero-gradient);
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--teal);
    bottom: -100px;
    left: -100px;
    animation-delay: 3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
    opacity: 0.08;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.dark-theme .orb { opacity: 0.2; }

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.greeting-wave {
    font-size: 1.4rem;
    animation: wave 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    min-height: 2.5rem;
}

.subtitle-prefix {
    color: var(--text-muted);
}

#typed {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 0.8rem 1.8rem;
    background: var(--gradient);
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::after { opacity: 1; }

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.cta-button > * { position: relative; z-index: 1; }

.cta-button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary::after {
    background: var(--secondary-color);
}

.cta-button.secondary:hover {
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.cta-button.outline {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.cta-button.outline::after {
    background: var(--border-color);
}

.cta-button.outline:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.hero-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

/* Hero image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid transparent;
    background: var(--gradient) padding-box, var(--gradient) border-box;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
    animation: float 5s ease-in-out infinite;
    margin: 20px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.profile-image:hover img { transform: scale(1.05); }
.profile-image:hover { animation-play-state: paused; }

.profile-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(124, 58, 237, 0.25);
    border-radius: 34px;
    animation: spin 15s linear infinite;
    z-index: 1;
}

.ring-2 {
    inset: -15px;
    border-color: rgba(45, 212, 191, 0.2);
    border-radius: 44px;
    animation-direction: reverse;
    animation-duration: 20s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Floating badges on hero image */
.floating-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap;
    animation: badgeFloat 3s ease-in-out infinite;
}

.floating-badge i { font-size: 0.9rem; }
.floating-badge span { color: var(--text-color); }

.badge-1 {
    top: 10px;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 1.5s;
}

.badge-3 {
    bottom: -10px;
    left: 30px;
    animation-delay: 0.8s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.dark-theme .floating-badge {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrows span {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: arrow-anim 2s infinite;
}

.arrows span:nth-child(2) { animation-delay: 0.2s; }

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes arrow-anim {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Hero particles canvas */
.hero-particles,
.hero-canvas-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SECTION SHARED STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(45, 212, 191, 0.1));
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* AI animated background */
.about-ai-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-ai-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.045) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}

.about-ai-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 20%, rgba(124,58,237,0.08) 0%, transparent 38%),
        radial-gradient(circle at 92% 80%, rgba(45,212,191,0.08) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(124,58,237,0.03) 0%, transparent 60%);
    animation: aboutBgPulse 8s ease-in-out infinite alternate;
}

@keyframes aboutBgPulse {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ---- AI floating chips below header ---- */
.about-ai-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 1rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(45,212,191,0.08));
    border: 1px solid rgba(124,58,237,0.22);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.03em;
    animation: chipFloat 3.5s ease-in-out infinite;
    transition: var(--transition);
}

.ai-chip:hover {
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(45,212,191,0.15));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

.ai-chip:nth-child(2) { animation-delay: 0.8s; }
.ai-chip:nth-child(3) { animation-delay: 1.6s; }
.ai-chip:nth-child(4) { animation-delay: 2.4s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 0 auto 3.5rem;
    max-width: 900px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.stat-item:hover::before { transform: scaleX(1); }

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat icon (AI theme) */
.stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.55rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsing glow on stat items */
@keyframes statItemGlow {
    0%, 100% { box-shadow: var(--shadow-card); }
    50%       { box-shadow: var(--shadow-card), 0 0 22px rgba(124,58,237,0.18); }
}
.stat-item:nth-child(1) { animation: statItemGlow 4s ease-in-out infinite 0s; }
.stat-item:nth-child(2) { animation: statItemGlow 4s ease-in-out infinite 1s; }
.stat-item:nth-child(3) { animation: statItemGlow 4s ease-in-out infinite 2s; }
.stat-item:nth-child(4) { animation: statItemGlow 4s ease-in-out infinite 3s; }

/* About Content */
.about-current-role {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(45, 212, 191, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.about-current-role:hover {
    border-color: rgba(124,58,237,0.35);
    box-shadow: 0 0 20px rgba(124,58,237,0.08);
}

.about-current-role > i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.current-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.current-value {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.about-content {
    width: 100%;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.about-intro:hover {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(124,58,237,0.3), 0 0 30px rgba(124,58,237,0.1);
}

/* Animated scan line */
.about-intro::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -50%;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04), transparent);
    animation: aboutScanLine 5s ease-in-out infinite 0.5s;
    pointer-events: none;
}

@keyframes aboutScanLine {
    0%   { top: -50%; }
    100% { top: 100%; }
}

.about-intro::after {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-description {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(45, 212, 191, 0.03));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.about-description a {
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--secondary-color);
    transition: var(--transition);
}

.about-description a:hover { opacity: 0.8; border-bottom-style: solid; }

.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.expertise-list li {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expertise-list li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover), 0 0 20px rgba(45,212,191,0.1);
    border-left-color: var(--teal);
}

/* AI icon for each expertise card */
.expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
    transition: var(--transition);
}

.expertise-list li:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(124,58,237,0.4);
}

.expertise-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: 6rem 0;
    background: var(--section-alt-bg);
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 4rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.education-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.education-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: absolute;
    left: -3.2rem;
    top: 1.5rem;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.education-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.education-card .year {
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.education-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.education-card .institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.education-card .description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.education-highlights .highlight {
    background: rgba(124, 58, 237, 0.08);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.15);
    transition: var(--transition);
}

.education-highlights .highlight:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.education-status {
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-completed {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.education-score {
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 165, 0, 0.1);
    color: #e17055;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.education-score i { font-size: 0.7rem; color: #f39c12; }

.education-achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(45, 212, 191, 0.05));
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.education-achievement i { color: #f39c12; font-size: 0.9rem; }
.education-achievement span { font-size: 0.82rem; color: var(--text-color); font-weight: 500; }

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 6rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.experience-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 0.5rem;
}

.experience h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 4rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.experience-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.experience-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: absolute;
    left: -3.2rem;
    top: 1.5rem;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.experience-card .year {
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.experience-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.experience-card .institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.experience-card .description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-skills .skill-tag,
.skill-tag {
    background: rgba(124, 58, 237, 0.08);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.15);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--secondary-color);
    color: white;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 6rem 0;
    background: var(--section-alt-bg);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 90% 50%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.skills h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.skills h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.skills-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category:hover::before { transform: scaleX(1); }

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.skill-category h3 i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    padding: 0.5rem;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    background: rgba(124, 58, 237, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px 0 0 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before { transform: scaleY(1); }

.skill-item:hover {
    transform: translateX(5px);
    background: var(--card-bg);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-card);
}

.skill-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-icon-wrap i {
    font-size: 1.15rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.skill-item:hover .skill-icon-wrap {
    background: var(--gradient);
    transform: scale(1.05);
}

.skill-item:hover .skill-icon-wrap i { color: white; }

.skill-details { flex: 1; min-width: 0; }

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-info span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.skill-info .percent {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.1rem 0.4rem;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    inset: 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 SECTION ===== */
.projects {
    padding: 6rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.projects h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.projects h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.55rem 1.3rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    font-weight: 700;
}

.filter-btn:not(.active) .filter-count {
    background: var(--border-color);
    color: var(--text-muted);
}

.project-card.hidden-card { display: none; }

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.75rem;
}

.projects-grid .project-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.6s ease forwards;
}

.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { animation-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { animation-delay: 0.6s; }
.projects-grid .project-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.project-card.featured {
    border-color: rgba(124, 58, 237, 0.15);
    animation: featuredGlow 4s ease-in-out infinite alternate, fadeInUp 0.6s ease forwards;
}

@keyframes featuredGlow {
    0% { box-shadow: var(--shadow-card); }
    50% { box-shadow: var(--shadow-card), 0 0 25px rgba(124, 58, 237, 0.18), 0 0 50px rgba(45,212,191,0.08); }
    100% { box-shadow: var(--shadow-card); }
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-image {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.project-card.featured .project-image { height: 240px; }

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.92);
}

.project-card:hover .project-image img {
    transform: scale(1.07);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.88), rgba(45,212,191,0.78));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay-content {
    transform: translateY(0) scale(1);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-category {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(45,212,191,0.08));
    color: var(--secondary-color);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.12);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-tech span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.project-link:hover::before { transform: scaleX(1); }

.project-link > * { position: relative; z-index: 1; }

.project-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.project-link.live {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.project-link.live::before { background: var(--gradient-hover); }

.project-link.live:hover { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4); }

/* ===== PROJECT STATS BAR ===== */
.project-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.project-stats-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pstat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    min-width: 100px;
}

.pstat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.pstat-plus {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
    vertical-align: super;
}

.pstat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.pstat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
    margin: 0 0.5rem;
}

/* ===== PROJECT DOMAIN BADGES ===== */
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.project-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-badge {
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(45,212,191,0.12));
    color: var(--secondary-color);
    border: 1px solid rgba(124,58,237,0.25);
}

.web-badge {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(59,130,246,0.12));
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.25);
}

.game-badge {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.12));
    color: var(--accent-color);
    border: 1px solid rgba(245,158,11,0.25);
}

.nlp-badge {
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(99,102,241,0.12));
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,0.25);
}

.clone-badge {
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(236,72,153,0.12));
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.25);
}

.project-year {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== OVERLAY DESC ===== */
.overlay-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== ENHANCED ANIMATION for project cards ===== */
.projects-grid .project-card:nth-child(8) { animation-delay: 0.8s; }
.projects-grid .project-card:nth-child(9) { animation-delay: 0.9s; }
.projects-grid .project-card:nth-child(10) { animation-delay: 1.0s; }
.projects-grid .project-card:nth-child(11) { animation-delay: 1.1s; }
.projects-grid .project-card:nth-child(12) { animation-delay: 1.2s; }

/* ===== 3D TILT EFFECT ===== */
.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card.tilt {
    transition: none;
}

/* 3D tilt shine overlay */
.project-card.tilt-active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
        rgba(124, 58, 237, 0.12) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 2;
}

.project-card:not(.tilt):hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

/* ===== TECH TAG SHIMMER ===== */
@keyframes techShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.project-card:hover .project-tech span {
    background: linear-gradient(90deg,
        rgba(124,58,237,0.08) 0%,
        rgba(45,212,191,0.18) 50%,
        rgba(124,58,237,0.08) 100%);
    background-size: 200% auto;
    animation: techShimmer 2s linear infinite;
}

/* ===== PROJECTS CTA ===== */
.projects-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.projects-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
    background: var(--section-alt-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.contact h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 58, 237, 0.2);
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-item:hover .contact-icon-wrap {
    background: var(--gradient);
    color: white;
}

.contact-item h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.contact-value:hover { color: var(--secondary-color); }

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.contact-social a:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 0.4rem;
    font-size: 0.95rem;
}

/* Using placeholder=" " technique */
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group label.active {
    top: -0.6rem;
    font-size: 0.78rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: var(--card-bg);
}

.form-group .border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 0 0 0 0;
}

.form-group input:focus ~ .border,
.form-group textarea:focus ~ .border { width: 100%; }

.submit-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover:not(:disabled)::after { opacity: 1; }
.submit-btn > * { position: relative; z-index: 1; }

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #0f0c29, #1a0533, #24243e);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.footer-logo .logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo .logo-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-color);
    right: -9px;
    bottom: 3px;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: white; }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content { text-align: center; }

.preloader-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: preloaderPulse 1.2s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.preloader-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.75; }
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    animation: preloaderBar 1.5s ease-in-out forwards;
}

@keyframes preloaderBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.scroll-top::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: scrollTopFloat 2.2s ease-in-out infinite;
}

.scroll-top.visible::before {
    animation: scrollTopPulse 2s ease-out infinite;
}

.scroll-top i {
    position: relative;
    z-index: 1;
}

.scroll-top:hover {
    animation: none;
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

@keyframes scrollTopPulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    40% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes scrollTopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    animation: glitch 3s linear infinite;
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(3deg); }
    0%, 5%, 65%, 100% { transform: none; }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
}

.glitch::before {
    animation: glitchTop 3s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    color: rgba(124, 58, 237, 0.5);
}

@keyframes glitchTop {
    2%, 64% { transform: translate(2px, -2px); }
    4%, 60% { transform: translate(-2px, 2px); }
    62% { transform: translate(10px, -1px) skew(-10deg); }
    0%, 5%, 65%, 100% { transform: none; }
}

.glitch::after {
    animation: glitchBottom 3.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    color: rgba(45, 212, 191, 0.5);
}

@keyframes glitchBottom {
    2%, 64% { transform: translate(-2px, 0); }
    4%, 60% { transform: translate(-2px, 0); }
    62% { transform: translate(-18px, 4px) skew(18deg); }
    0%, 5%, 65%, 100% { transform: none; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gradient-hover); }

/* ===== SELECTION ===== */
::selection { background: var(--secondary-color); color: white; }
::-moz-selection { background: var(--secondary-color); color: white; }

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success { background: linear-gradient(135deg, #00b894, #00a085); }
.notification-error { background: linear-gradient(135deg, #e17055, #d63031); }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 2.5rem;
    }
    
    .profile-image-container {
        width: 280px;
        height: 280px;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-right { align-items: center; }
    .footer-left { align-items: center; }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 0.25rem;
    }

    .dark-theme .nav-links {
        box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
        border-left: 3px solid transparent;
        transition: var(--transition);
    }

    .nav-link.active, .nav-link:hover {
        border-left-color: var(--secondary-color);
        background: rgba(124,58,237,0.08);
        transform: none;
    }

    .nav-link::after { display: none; }

    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    
    .hero {
        padding: calc(var(--nav-height) + 1rem) 5% 3rem;
        text-align: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .profile-image-container {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .badge-1 { left: -10px; }
    .badge-2 { right: -10px; }
    .badge-3 { left: 10px; }

    .hero-greeting { justify-content: center; }
    .hero-bio { margin: 0 auto 2rem; }

    /* Reduce glitch intensity on tablets for better readability */
    .glitch::before,
    .glitch::after {
        opacity: 0.3;
    }

    .hero-cta { justify-content: center; }
    .hero-social { justify-content: center; }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-ai-chips { gap: 0.5rem; }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .education-timeline,
    .experience-timeline {
        padding-left: 3rem;
    }

    .education-icon,
    .experience-icon {
        left: -2.75rem;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-stats-bar {
        max-width: 100%;
        margin: 0 1rem 2rem;
        padding: 1rem;
    }

    .pstat-number { font-size: 1.5rem; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }

    .hero-text h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    /* Disable glitch effect on mobile for better readability */
    .glitch {
        animation: none;
    }

    .glitch::before,
    .glitch::after {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-number { font-size: 2rem; }

    .pstat-divider { display: none; }
    .project-stats-bar { gap: 1rem; }
    .pstat-item { min-width: 80px; }

    .about-container { padding: 0 1rem; }

    .skills-container { padding: 0 1rem; }

    .projects-grid { padding: 0 1rem; }

    .education-timeline,
    .experience-timeline {
        padding-left: 0;
    }

    .education-timeline::before,
    .experience-timeline::before { display: none; }

    .education-card,
    .experience-card {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
    }

    .education-icon,
    .experience-icon {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 1rem;
        align-self: flex-start;
    }

    .contact-form { padding: 1.25rem; }

    .contact-container { padding: 0 1rem; }

    .form-group input,
    .form-group textarea { font-size: 16px; }

    .notification {
        top: 68px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .hero-cta { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 260px; justify-content: center; }

    .scroll-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }

    .cursor, .cursor-follower { display: none; }

    .floating-badge { display: none; }

    .profile-ring, .ring-2 { display: none; }
}

@media (max-width: 360px) {
    .cta-button { max-width: 220px; font-size: 0.88rem; padding: 0.7rem 1.2rem; }
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    nav { padding: 0 4%; }
}

/* ===== NAVBAR SCROLL ===== */
header.scrolled nav { padding-block: 0; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .preloader-progress { animation: none; width: 100%; }
    html { scroll-behavior: auto; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== SOFT SKILLS (legacy support) ===== */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.soft-skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--card-bg);
    border-color: var(--secondary-color);
}

.soft-skill-item i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    padding: 0.8rem;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 50%;
    transition: var(--transition);
}

.soft-skill-item:hover i {
    background: var(--secondary-color);
    color: white;
}

.soft-skill-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===================================================
   AI-THEMED EDUCATION & EXPERIENCE ENHANCEMENTS
   =================================================== */

/* ---- Shared: Neural Grid Background ---- */
.edu-grid-bg,
.exp-circuit-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.edu-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.edu-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 30%, rgba(45,212,191,0.07) 0%, transparent 45%),
                radial-gradient(circle at 85% 70%, rgba(124,58,237,0.07) 0%, transparent 45%);
}

.exp-circuit-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(124,58,237,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

.exp-circuit-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(45,212,191,0.06) 0%, transparent 40%),
                radial-gradient(circle at 15% 80%, rgba(124,58,237,0.06) 0%, transparent 40%);
}

/* ---- AI Timeline line glow ---- */
.ai-timeline,
.ai-exp-timeline {
    position: relative;
}

.ai-timeline::before,
.ai-exp-timeline::before {
    background: linear-gradient(180deg,
        rgba(124,58,237,0) 0%,
        rgba(124,58,237,0.8) 20%,
        rgba(45,212,191,0.8) 80%,
        rgba(45,212,191,0) 100%);
    box-shadow: 0 0 12px rgba(124,58,237,0.4), 0 0 24px rgba(124,58,237,0.2);
    animation: timelineGlow 3s ease-in-out infinite alternate;
}

@keyframes timelineGlow {
    from { box-shadow: 0 0 8px rgba(124,58,237,0.3), 0 0 20px rgba(124,58,237,0.1); }
    to   { box-shadow: 0 0 18px rgba(45,212,191,0.5), 0 0 36px rgba(45,212,191,0.2); }
}

/* ---- AI Card ---- */
.ai-card,
.ai-exp-card {
    position: relative;
    overflow: visible;
    background: var(--card-bg);
    border: 1px solid rgba(124,58,237,0.25);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1),
                border-color 0.35s ease;
}

.ai-card:hover,
.ai-exp-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(124,58,237,0.18), 0 0 0 1px rgba(124,58,237,0.25);
    border-color: rgba(45,212,191,0.5);
}

/* Glow overlay on hover */
.ai-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 40%, rgba(124,58,237,0.07) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.ai-card:hover .ai-card-glow,
.ai-exp-card:hover .ai-card-glow {
    opacity: 1;
}

/* ---- Node Icon with pulse ---- */
.ai-node-icon,
.ai-exp-icon {
    position: relative;
    z-index: 2;
}

.node-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(45,212,191,0.5);
    animation: nodePulse 2.5s ease-out infinite;
}

.node-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,0.3);
    animation: nodePulse 2.5s ease-out infinite 1.25s;
}

@keyframes nodePulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* ---- AI Phase Badge ---- */
.ai-phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(45,212,191,0.15));
    color: var(--secondary-color);
    border: 1px solid rgba(124,58,237,0.2);
    font-family: 'Fira Code', monospace;
}

.ai-phase-badge.phase-2 {
    background: linear-gradient(135deg, rgba(45,212,191,0.15), rgba(124,58,237,0.1));
    color: var(--teal);
    border-color: rgba(45,212,191,0.25);
}

.ai-phase-badge.phase-1 {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(124,58,237,0.1));
    color: var(--accent-color);
    border-color: rgba(245,158,11,0.2);
}

/* ---- AI Year Label ---- */
.ai-year,
.exp-year {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---- Edu Module Tags (replaces .highlight) ---- */
.edu-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 1rem;
}

.module-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(124,58,237,0.07);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 600;
    border: 1px solid rgba(124,58,237,0.15);
    transition: var(--transition);
}

.module-tag i {
    font-size: 0.68rem;
    opacity: 0.85;
}

.module-tag:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

/* ---- Edu Metric / Progress Bar ---- */
.edu-metric-row {
    margin: 0.75rem 0 0.5rem;
}

.edu-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 130px;
    font-family: 'Fira Code', monospace;
}

.edu-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(124,58,237,0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.edu-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.edu-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(45,212,191,0.8);
}

.metric-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Fira Code', monospace;
    min-width: 36px;
    text-align: right;
}

/* ---- Experience: Meta Row & Status Badges ---- */
.exp-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.exp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.exp-status-badge.current {
    background: rgba(45,212,191,0.12);
    color: var(--teal);
    border: 1px solid rgba(45,212,191,0.25);
}

.exp-status-badge.current i {
    font-size: 0.5rem;
    animation: blink 1.2s step-start infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.exp-status-badge.completed {
    background: rgba(0,184,148,0.1);
    color: #00b894;
    border: 1px solid rgba(0,184,148,0.2);
}

/* ---- Experience: Impact Chips ---- */
.exp-impact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 0.85rem;
}

.impact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(45,212,191,0.07));
    color: var(--secondary-color);
    border: 1px solid rgba(124,58,237,0.15);
    transition: var(--transition);
}

.impact-chip i {
    font-size: 0.68rem;
    color: var(--teal);
}

.impact-chip:hover {
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(45,212,191,0.12));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}

/* ---- Dark theme adjustments ---- */
.dark-theme .ai-card,
.dark-theme .ai-exp-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(167,139,250,0.2);
}

.dark-theme .ai-card:hover,
.dark-theme .ai-exp-card:hover {
    border-color: rgba(45,212,191,0.45);
}

.dark-theme .module-tag {
    background: rgba(167,139,250,0.08);
    border-color: rgba(167,139,250,0.18);
}

.dark-theme .impact-chip {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(45,212,191,0.07));
    border-color: rgba(167,139,250,0.18);
}

.dark-theme .edu-progress-bar {
    background: rgba(167,139,250,0.12);
}

.dark-theme .edu-grid-bg::before {
    background-image:
        linear-gradient(rgba(167,139,250,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.06) 1px, transparent 1px);
}

.dark-theme .exp-circuit-bg::before {
    background-image:
        radial-gradient(circle, rgba(167,139,250,0.1) 1px, transparent 1px);
}

/* Dark theme: about AI background */
.dark-theme .about-ai-bg::before {
    background-image:
        linear-gradient(rgba(167,139,250,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.06) 1px, transparent 1px);
}

.dark-theme .about-ai-bg::after {
    background:
        radial-gradient(circle at 8% 20%, rgba(167,139,250,0.1) 0%, transparent 38%),
        radial-gradient(circle at 92% 80%, rgba(45,212,191,0.1) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(167,139,250,0.04) 0%, transparent 60%);
}

.dark-theme .ai-chip {
    background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(45,212,191,0.1));
    border-color: rgba(167,139,250,0.28);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .edu-metric { flex-wrap: wrap; gap: 0.5rem; }
    .metric-label { min-width: auto; }
    .exp-meta-row { gap: 0.5rem; }
    .exp-impact-row { gap: 0.4rem; }
    .impact-chip { font-size: 0.7rem; padding: 0.22rem 0.6rem; }
}

@media (max-width: 480px) {
    .edu-modules { gap: 0.4rem; }
    .module-tag { font-size: 0.72rem; padding: 0.25rem 0.65rem; }
    .edu-metric { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .edu-progress-bar { width: 100%; }
    .metric-val { text-align: left; }
    .ai-phase-badge { font-size: 0.65rem; }
}

/* Ensure content sits above grid backgrounds */
.education .about-container,
.experience .experience-container {
    position: relative;
    z-index: 1;
}

/* ===== 3D SCENE ENHANCEMENTS ===== */

/* --- Section decoration canvases (about / experience) --- */
.about,
.experience {
    position: relative;
    overflow: hidden;
}

.section-deco-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Ensure content stays above deco canvas */
.about .about-container,
.experience .experience-container {
    position: relative;
    z-index: 1;
}

/* --- Skills 3D sphere --- */
.skills-sphere-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.skills-sphere-canvas {
    width: 100%;
    height: 340px;
    display: block;
    border-radius: 1rem;
    cursor: grab;
}

.skills-sphere-canvas:active {
    cursor: grabbing;
}

.sphere-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}

/* --- Project card 3D positioning context --- */
.project-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* --- Skill item 3D lift --- */
.skill-item {
    will-change: transform;
    transform-origin: center;
}

/* --- Responsive: disable 3D tilt on touch/small screens --- */
@media (hover: none), (max-width: 768px) {
    .skills-sphere-wrapper {
        max-width: 320px;
        margin-bottom: 2rem;
    }
    .skills-sphere-canvas {
        height: 260px;
    }
    .section-deco-canvas {
        display: none;
    }
}

@media (max-width: 480px) {
    .skills-sphere-wrapper {
        max-width: 270px;
        margin-bottom: 1.5rem;
    }
    .skills-sphere-canvas {
        height: 220px;
    }
}

/* --- Skill item 3D lift class --- */
.skill-item.skill-lifted {
    transform: perspective(400px) translateZ(12px) scale(1.04);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Certifications & Achievements ===== */
.certifications,
.achievements {
    padding: 5rem 1.5rem;
}

.certifications-grid,
.achievements-grid {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.cert-card,
.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-card:hover,
.achievement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.12);
}

.cert-card h3,
.achievement-card h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
    color: var(--text-primary);
}

.cert-issuer,
.achievement-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.cert-type {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.24);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.achievement-tags span {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid rgba(45, 212, 191, 0.26);
    background: rgba(45, 212, 191, 0.12);
    color: var(--text-secondary);
}

.contact-resume-cta {
    margin-top: 1rem;
    width: fit-content;
}

.dark-theme .cert-card,
.dark-theme .achievement-card {
    border-color: rgba(167, 139, 250, 0.2);
}

.dark-theme .cert-type {
    background: rgba(167, 139, 250, 0.16);
    border-color: rgba(167, 139, 250, 0.3);
}
