/* ==========================================================================
   MODERN PORTFOLIO DESIGN SYSTEM - NILESH SOLANKI
   High-performance, modern dark-aesthetic UI for Software Engineers
   ========================================================================== */

/* ==========================================================================
   THEME PRESETS (DYNAMIC SWITCHING VIA [data-theme])
   ========================================================================== */
/* 1. Default: Obsidian Cyberpunk */
:root, [data-theme="obsidian"] {
    --bg-main: #0a0e17;
    --bg-surface: #111827;
    --bg-surface-elevated: #162032;
    --bg-glass: rgba(17, 24, 39, 0.88);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --brand-primary: #ff6e42; /* Nilesh's signature accent */
    --brand-glow: rgba(255, 110, 66, 0.3);
    
    --indigo-primary: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.25);

    --cyan-primary: #06b6d4;
    --emerald-primary: #10b981;
    --purple-primary: #a855f7;
}

/* 2. Emerald Matrix / Cyber Terminal */
[data-theme="emerald"] {
    --bg-main: #04090b;
    --bg-surface: #0a1317;
    --bg-surface-elevated: #0f1c22;
    --bg-glass: rgba(10, 19, 23, 0.9);
    --border-subtle: rgba(16, 185, 129, 0.14);
    --border-highlight: rgba(16, 185, 129, 0.45);

    --text-primary: #ecfdf5;
    --text-secondary: #6ee7b7;
    --text-muted: #047857;

    --brand-primary: #10b981;
    --brand-glow: rgba(16, 185, 129, 0.35);

    --indigo-primary: #059669;
    --indigo-glow: rgba(5, 150, 105, 0.25);

    --cyan-primary: #34d399;
    --emerald-primary: #10b981;
    --purple-primary: #6ee7b7;
}

/* 3. Neon Cyberpunk / Synthwave */
[data-theme="cyberpunk"] {
    --bg-main: #0b0517;
    --bg-surface: #14092b;
    --bg-surface-elevated: #1c0d3a;
    --bg-glass: rgba(20, 9, 43, 0.9);
    --border-subtle: rgba(236, 72, 153, 0.15);
    --border-highlight: rgba(236, 72, 153, 0.45);

    --text-primary: #fdf2f8;
    --text-secondary: #e879f9;
    --text-muted: #a21caf;

    --brand-primary: #ec4899;
    --brand-glow: rgba(236, 72, 153, 0.35);

    --indigo-primary: #a855f7;
    --indigo-glow: rgba(168, 85, 247, 0.25);

    --cyan-primary: #06b6d4;
    --emerald-primary: #f43f5e;
    --purple-primary: #c084fc;
}

/* 4. Sapphire Cloud / Enterprise Navy */
[data-theme="sapphire"] {
    --bg-main: #070d1e;
    --bg-surface: #0e1730;
    --bg-surface-elevated: #142042;
    --bg-glass: rgba(14, 23, 48, 0.9);
    --border-subtle: rgba(56, 189, 248, 0.14);
    --border-highlight: rgba(56, 189, 248, 0.45);

    --text-primary: #f0f9ff;
    --text-secondary: #7dd3fc;
    --text-muted: #0369a1;

    --brand-primary: #38bdf8;
    --brand-glow: rgba(56, 189, 248, 0.35);

    --indigo-primary: #3b82f6;
    --indigo-glow: rgba(59, 130, 246, 0.25);

    --cyan-primary: #0284c7;
    --emerald-primary: #10b981;
    --purple-primary: #818cf8;
}

/* 5. Solarized Amber / Flame */
[data-theme="amber"] {
    --bg-main: #100b08;
    --bg-surface: #1a120d;
    --bg-surface-elevated: #241912;
    --bg-glass: rgba(26, 18, 13, 0.9);
    --border-subtle: rgba(245, 158, 11, 0.15);
    --border-highlight: rgba(245, 158, 11, 0.45);

    --text-primary: #fffbeb;
    --text-secondary: #fcd34d;
    --text-muted: #b45309;

    --brand-primary: #f59e0b;
    --brand-glow: rgba(245, 158, 11, 0.35);

    --indigo-primary: #d97706;
    --indigo-glow: rgba(217, 119, 6, 0.25);

    --cyan-primary: #fbbf24;
    --emerald-primary: #10b981;
    --purple-primary: #fb923c;
}

:root {

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere Glows */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 5%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 110, 66, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container-modern {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Section Common Styles */
.section-modern {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

/* ==========================================================================
   MODERN NAVBAR
   ========================================================================== */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-nav.scrolled {
    height: 68px;
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-brand img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-brand .brand-highlight {
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.25s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-recruiter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-full);
    color: #67e8f9;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-recruiter-pill:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    border-color: #67e8f9;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--brand-glow);
    transition: var(--transition-fast);
}

.btn-resume:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 110, 66, 0.4);
}

.btn-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.btn-admin-icon:hover {
    color: var(--text-primary);
    border-color: var(--indigo-primary);
    background: rgba(99, 102, 241, 0.15);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding: 130px 0 70px 0;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: #34d399;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .text-accent {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-bio {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-bio strong {
    color: var(--text-primary);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #e65100 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(255, 110, 66, 0.4);
    transition: var(--transition-fast);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 110, 66, 0.6);
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-secondary-modern:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--indigo-primary);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

/* Hero Visual / Card Side */
.hero-visual-card {
    position: relative;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 110, 66, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    z-index: -1;
}

.avatar-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--border-subtle);
}

.avatar-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.hero-visual-card:hover .avatar-wrapper img {
    transform: scale(1.02);
}

.code-badge-floating {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-sm {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-mono);
    color: #e2e8f0;
}

/* ==========================================================================
   METRICS / HIGHLIGHTS STRIP
   ========================================================================== */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.metric-card {
    padding: 24px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px -5px rgba(255, 110, 66, 0.15);
}

.metric-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-text .pwc-highlight {
    color: var(--brand-primary);
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}

.feature-box {
    padding: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.feature-box:hover {
    border-color: var(--indigo-primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 22px;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.feature-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   SKILLS SECTION (100% Backend & Enhanced Frontend)
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-smooth);
}

.skill-category-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.category-icon {
    font-size: 22px;
    color: var(--brand-primary);
}

.category-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.skill-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--brand-primary) 0%, #ff9800 100%);
    box-shadow: 0 0 8px rgba(255, 110, 66, 0.4);
}

.progress-fill.full {
    width: 100% !important;
}

.progress-fill.cyan {
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.progress-fill.emerald {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.skill-chip:hover {
    border-color: var(--border-highlight);
    background: rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   CORE TECHNOLOGIES & TOOLS: INFINITE CAROUSEL (LEFT TO RIGHT)
   ========================================================================== */
.tech-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 28px 0;
    margin-top: 45px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tech-marquee-title {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 700;
}

.tech-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-ltr 28s linear infinite;
}

.tech-marquee-wrapper:hover .tech-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

.marquee-tech-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.marquee-tech-pill:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 110, 66, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 110, 66, 0.25);
}

.marquee-tech-pill i,
.marquee-tech-pill img {
    font-size: 18px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.marquee-tech-pill span {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    font-family: var(--font-mono);
}

/* ==========================================================================
   FEATURED PROJECTS: CONTINUOUS CAROUSEL (SPOTLIGHT HOVER + DARKEN OTHERS)
   ========================================================================== */
.projects-carousel-container {
    position: relative;
    width: 100%;
    padding: 10px 0 20px 0;
}

.projects-carousel-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.projects-carousel-hint {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.carousel-nav-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--brand-glow);
    transform: scale(1.05);
}

.projects-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 24px 10px 48px 10px;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    transition: mask-image 0.3s ease;
}

.projects-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.projects-carousel-container:hover .projects-scroll-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
}

.projects-scroll-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding: 6px;
    align-items: flex-start;
}

/* Individual Carousel Project Card */
.project-card-carousel {
    flex: 0 0 380px;
    width: 380px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    will-change: transform, opacity, filter;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                filter 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* SPOTLIGHT EFFECT: When track is hovered, darken & blur all cards */
.projects-scroll-track:hover .project-card-carousel {
    opacity: 0.2;
    filter: blur(1.5px) grayscale(30%) brightness(0.35);
    transform: scale(0.95);
}

/* But the actively hovered project card shines bright and expands full info! */
.projects-scroll-track .project-card-carousel:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.05) translateY(-10px) !important;
    z-index: 100 !important;
    border-color: var(--brand-primary);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 35px var(--brand-glow), 0 0 25px rgba(99, 102, 241, 0.35);
}

.project-thumbnail-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.project-thumbnail-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-carousel:hover .project-thumbnail-carousel img {
    transform: scale(1.08);
}

.project-badge-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
}

.project-content-carousel {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title-carousel {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #ffffff;
}

.project-short-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-hover-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #38bdf8;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card-carousel:hover .project-hover-cue {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Expanded Full Details on Hover with Silky Smooth Transition */
.project-expanded-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-carousel:hover .project-expanded-info {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.project-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cbd5e1;
}

.project-features-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.project-features-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}
    padding-left: 18px;
    line-height: 1.5;
}

.project-features-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}

.project-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.stack-pill {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-mono);
    color: #a5b4fc;
}

.project-card-actions {
    display: flex;
    gap: 10px;
}

.btn-card-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--brand-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition-fast);
}

.btn-card-primary:hover {
    background: #ff5722;
}

.btn-card-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-card-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--indigo-primary);
}

/* ==========================================================================
   CAREER JOURNEY: HOVER-EXPAND DETAILS
   ========================================================================== */
.edu-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.column-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.column-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-header-title i {
    font-size: 22px;
    color: var(--brand-primary);
}

.column-header-title h3 {
    font-size: 22px;
    font-weight: 700;
}

.admin-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    transition: var(--transition-fast);
}

.admin-shortcut-btn:hover {
    background: var(--indigo-primary);
    color: #ffffff;
}

/* Experience Card styles with Hover Expand */
.exp-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--emerald-primary);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    outline: none;
}

.exp-card.exp-current {
    border-left-color: var(--brand-primary);
}

.exp-card.exp-former {
    border-left-color: #64748b;
}

.exp-card:hover,
.exp-card:focus-visible,
.exp-card.is-active {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px var(--brand-glow);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exp-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 2px;
}

.exp-card.exp-former .exp-role {
    color: #38bdf8;
}

.exp-meta {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

.exp-hover-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    transition: color 0.3s ease;
}

.exp-card:hover .exp-hover-indicator,
.exp-card.is-active .exp-hover-indicator,
.education-card:hover .exp-hover-indicator,
.education-card.is-active .exp-hover-indicator {
    color: var(--brand-primary);
}

.exp-hover-indicator i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.exp-card:hover .exp-hover-indicator i,
.exp-card.is-active .exp-hover-indicator i,
.education-card:hover .exp-hover-indicator i,
.education-card.is-active .exp-hover-indicator i {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

/* Modern Zero-Jitter Collapsible Height Transition via CSS Grid */
.collapsible-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
}

.exp-card:hover .collapsible-wrapper,
.exp-card:focus .collapsible-wrapper,
.exp-card.is-active .collapsible-wrapper,
.education-card:hover .collapsible-wrapper,
.education-card:focus .collapsible-wrapper,
.education-card.is-active .collapsible-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
}

.collapsible-content {
    overflow: hidden;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

/* Staggered Bullet Animation on Hover */
.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.exp-bullets li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.exp-card:hover .exp-bullets li,
.exp-card.is-active .exp-bullets li {
    transform: translateY(0);
    opacity: 1;
}

.exp-bullets li:nth-child(1) { transition-delay: 0.05s; }
.exp-bullets li:nth-child(2) { transition-delay: 0.10s; }
.exp-bullets li:nth-child(3) { transition-delay: 0.15s; }
.exp-bullets li:nth-child(4) { transition-delay: 0.20s; }
.exp-bullets li:nth-child(5) { transition-delay: 0.25s; }

.exp-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-size: 16px;
}

.exp-card.exp-former .exp-bullets li::before {
    color: #38bdf8;
}

/* Dynamic Education Card styles with hover expand */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
    outline: none;
}

.education-card.accent-indigo {
    border-left-color: var(--indigo-primary);
}

.education-card:hover,
.education-card:focus-visible,
.education-card.is-active {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.25);
}

.edu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.edu-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.badge-brand {
    background: rgba(255, 110, 66, 0.15);
    color: var(--brand-primary);
    border: 1px solid rgba(255, 110, 66, 0.3);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.edu-institution {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
}

.edu-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.edu-meta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Collapsible description on education card */
.edu-collapsible {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-card:hover .edu-collapsible {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.edu-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.edu-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
}

.edu-link-btn:hover {
    text-decoration: underline;
    color: #ff8c66;
}

.edu-portal-hint {
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.edu-portal-hint a {
    color: #818cf8;
    font-weight: 600;
    margin-left: 6px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--border-highlight);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo-primary);
    font-size: 20px;
}

.contact-info {
    flex-grow: 1;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--indigo-primary);
    color: #ffffff;
}

/* Quick Message Form */
.contact-form-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-box p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-glow);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.modern-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-top: 60px;
    background: rgba(10, 14, 23, 0.8);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-credits p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-credits a {
    color: var(--brand-primary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 22px;
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notice.toast-success {
    border-left: 4px solid var(--emerald-primary);
}

.toast-notice.toast-info {
    border-left: 4px solid var(--cyan-primary);
}

/* ==========================================================================
   THEME SWITCHER DROPDOWN
   ========================================================================== */
.theme-picker-wrapper {
    position: relative;
}

.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    background: var(--bg-surface-elevated);
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    backdrop-filter: blur(16px);
}

.theme-dropdown-menu.show {
    display: flex;
}

.theme-opt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.theme-opt-btn:hover,
.theme-opt-btn.active {
    background: rgba(255, 255, 255, 0.08);
}

.theme-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 44px;
    }

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

@media (max-width: 820px) {
    .hero-grid,
    .about-grid,
    .edu-exp-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 24px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-soft);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .section-modern {
        padding: 70px 0;
    }

    .project-card-carousel {
        flex: 0 0 310px;
        width: 310px;
    }
}
