* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;   /* Indigo */
    --secondary-color: #4f46e5; /* Deep Indigo */
    --accent-color: #06b6d4;    /* Electric Blue/Cyan */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: #0f172a; 
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    
    /* Advanced Animation Tokens */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-back: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --duration-fast: 0.25s;
    --duration-normal: 0.5s;
    --duration-slow: 0.9s;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    transition: background-color var(--duration-default) linear;
}

body.loaded {
    /* Kept for backward compatibility if any other selectors rely on it */
}

/* Light Theme */
body.light-theme {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #0891b2;
    --dark-bg: #f8fafc;
    --darker-bg: #e2e8f0;
    --light-text: #0f172a;
    --gray-text: #475569;
    --card-bg: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

body.light-theme .particle {
    background: var(--primary-color);
    opacity: 0.1;
}

/* ── Aura Container & Blobs ── */
.aura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: none;
    opacity: 0.07;
    transition: transform 0.6s var(--ease-out-expo);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

body.light-theme .home-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

body.light-theme .about-section,
body.light-theme .projects-section,
body.light-theme .resume-section {
    background: #F6FAFD;
}

body.light-theme .skills-section,
body.light-theme .contact-section,
body.light-theme .education-section {
    background: #E3EAF1;
}

body.light-theme .footer {
    background: #1e293b;
    color: #f8fafc;
}

body.light-theme .image-placeholder {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

body.light-theme .image-placeholder::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

body.light-theme .skill-item,
body.light-theme .skills-table {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 61, 99, 0.1);
    border: 1px solid rgba(26, 61, 99, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .skill-item:hover,
body.light-theme .skills-table:hover {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-10px) scale(1.05);
}

body.light-theme .edu-highlights {
    background: #ffffff;
    border-color: rgba(26, 61, 99, 0.12);
}

body.light-theme .project-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 61, 99, 0.1);
    border: 1px solid rgba(26, 61, 99, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
    z-index: 10;
}

.project-card:hover::after {
    left: 100%;
    top: 100%;
}

body.light-theme .project-card:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    transform: translateY(-12px) scale(1.03);
}

body.light-theme .contact-item,
body.light-theme .contact-form,
body.light-theme .resume-description {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.card-hover-effect {
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.card-hover-effect:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

/* Unified Box Format for all cards */
.project-card, .skill-item, .skills-table, .edu-highlights, .contact-item, .cert-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    transition: all 0.4s var(--ease-out-expo) !important;
}

.project-card:hover, .skill-item:hover, .skills-table:hover, .edu-highlights:hover, .contact-item:hover, .cert-card:hover {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

@keyframes glint {
    0% { transform: translateX(-100%) skewX(-25deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateX(200%) skewX(-25deg); opacity: 0; }
}

.box-glint::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 20%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: glint 4s infinite linear;
}

/* ── Education & Experience Tabs ── */
.edu-panel {
    display: none;
    animation: panelFadeIn 0.5s var(--ease-out-expo);
}

.edu-panel.active {
    display: block !important;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.edu-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.edu-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}


body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    background: #ffffff;
    border-color: var(--primary-color);
}

body.light-theme .btn-primary {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

body.light-theme .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

body.light-theme .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

body.light-theme .custom-cursor {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
}

body.light-theme .section-title::after {
    background: var(--gradient-1);
}

body.light-theme .tagline {
    color: #334155; /* Darker, more readable text */
    font-weight: 500;
}

body.light-theme .avatar-circle {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

body.light-theme .strengths-list li {
    color: #475569;
}

body.light-theme .strengths-list li:hover {
    color: #1e293b;
}

body.light-theme .table-title {
    color: var(--primary-color);
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.nav-link,
.btn,
.section-title {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
    font-weight: 600;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.8rem; line-height: 1.2; }
h3 { font-size: 1.8rem; line-height: 1.3; }

p {
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
}

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

/* Navbar & Progress */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s ease-out;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

/* Dropdown Container */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Light Theme Dropdown */
body.light-theme .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-item {
    color: #334155;
}

body.light-theme .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Mobile Dropdown styles */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-item.dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 5px 0;
        display: none;
        width: 100%;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 8px 0;
    }
    
    .dropdown-toggle i {
        margin-left: auto;
    }
}

.brand-icon {
    font-size: 24px;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.resume-btn {
    background: var(--gradient-1);
    color: white !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.resume-btn:hover {
    background: var(--gradient-2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

body.light-theme .nav-link {
    color: #334155;
}

body.light-theme .nav-link:hover {
    background: rgba(99, 102, 241, 0.08);
}

body.light-theme .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Home Section & Aura */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--dark-bg) 0%, var(--darker-bg) 100%);
    --hero-mx: 50%;
    --hero-my: 45%;
}

.home-section::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at var(--hero-mx) var(--hero-my),
            rgba(99, 102, 241, 0.2) 0%,
            rgba(6, 182, 212, 0.08) 20%,
            transparent 55%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease;
}

.home-section::after {
    content: '';
    position: absolute;
    top: -25%;
    left: -15%;
    width: 70%;
    height: 160%;
    background: linear-gradient(110deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 45%,
            transparent 70%);
    transform: translateX(-120%) rotate(8deg);
    animation: hero-sheen-sweep 8.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: none;
    opacity: 0.09;
    border-radius: 50%;
    animation: shapeFloat 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(100px, 100px) scale(1.2) rotate(180deg); }
}

.home-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 20px;
    max-width: 900px;
}

.home-content .greeting,
.home-content .hero-actions,
.home-content .scroll-indicator-v2 {
    opacity: 0;
    transform: translateY(26px);
}

body.loaded .home-content .greeting {
    animation: hero-reveal-up 0.85s var(--ease-out-expo) 0.08s forwards;
}

body.loaded .home-content .hero-actions {
    animation: hero-reveal-up 0.85s var(--ease-out-expo) 0.28s forwards;
}

body.loaded .home-content .scroll-indicator-v2 {
    animation: hero-reveal-up 0.85s var(--ease-out-expo) 0.46s forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 30px;
}

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

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-text);
}

@keyframes badgePulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.greeting-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-text);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.name-text {
    font-size: 5.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1;
    letter-spacing: -2px;
    animation: nameReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1), hero-name-shimmer 5.5s linear infinite;
    will-change: transform;
}

@keyframes nameReveal {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tagline {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.type-roles {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.6rem;
    display: inline-block;
    min-height: 1.4em;
    padding-right: 4px;
    border-right: 2px solid rgba(99, 102, 241, 0.7);
    text-shadow: 0 0 18px rgba(99, 102, 241, 0.18);
    animation: roles-soft-pulse 2.8s ease-in-out infinite, role-caret-blink 0.95s steps(1) infinite;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-glow {
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    animation: hero-cta-float 3.6s ease-in-out infinite;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.28) 50%,
            transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
}

.btn-glow:hover::before {
    transform: translateX(130%);
}

.btn-glow:hover {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
}

.scroll-indicator-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: hero-cta-float 3.6s ease-in-out 0.4s infinite;
}

.mouse-scroll {
    width: 25px;
    height: 45px;
    border: 2px solid var(--gray-text);
    border-radius: 20px;
    position: relative;
}

.mouse-scroll .wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    left: calc(50% - 2px);
    top: 8px;
    animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

@keyframes hero-reveal-up {
    0% { opacity: 0; transform: translateY(26px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-name-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes roles-soft-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}

@keyframes hero-cta-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes hero-sheen-sweep {
    0%, 20% { transform: translateX(-120%) rotate(8deg); opacity: 0; }
    38% { opacity: 1; }
    52% { transform: translateX(180%) rotate(8deg); opacity: 0; }
    100% { transform: translateX(180%) rotate(8deg); opacity: 0; }
}

@keyframes role-caret-blink {
    0%, 45% { border-right-color: rgba(99, 102, 241, 0.8); }
    46%, 100% { border-right-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .home-content .greeting,
    .home-content .hero-actions,
    .home-content .scroll-indicator-v2 {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .name-text,
    .type-roles,
    .btn-glow,
    .scroll-indicator-v2 {
        animation: none !important;
    }

    .home-section::after {
        animation: none !important;
    }
}

.scroll-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .name-text { font-size: 3.5rem; }
    .tagline { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

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

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

.scroll-indicator-v2 {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

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

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

/* Section Styling */
section {
    padding: 100px 0;
}

@media (max-width: 968px) {
    section {
        padding: 60px 0;
    }
}

/* Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-tagline {
    color: var(--gray-text);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.6;
    opacity: 0.9;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 4px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--dark-bg);
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
}

.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card-v2 {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 1/1.2;
    background: var(--gradient-1);
    border-radius: 40px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.image-inner {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.profile-img-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.profile-card-v2:hover .profile-img-v2 {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    pointer-events: none;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
}

.about-info {
    padding-top: 20px;
}

.info-hook {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 700;
}

.info-hook .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.about-chips-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 40px;
}

.skill-pill {
    padding: 8px 18px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.about-actions-v2 {
    display: flex;
    gap: 20px;
}

.btn-primary-v2 {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary-v2:hover {
    background: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-outline-v2 {
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-v2:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-visuals {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .info-hook {
        font-size: 1.8rem;
    }
}


body.light-theme .chip {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* ── Text Styling ── */
.about-hook {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 10px;
}

.about-hook::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.about-text p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ── 3D Image Interaction ── */
.image-placeholder {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.image-wrapper:hover .image-placeholder {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
}

/* Skills Section */
.skills-section {
    background: var(--dark-bg);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.skills-section > .container {
    position: relative;
    z-index: 1;
}

.skills-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: breathingAura 8s ease-in-out infinite;
}

@keyframes breathingAura {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.skills-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.skills-infographic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.skills-section .skills-aura {
    animation: none;
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
}

.skills-category-node {
    --pillar-accent: #6366f1;
    --pillar-glow: rgba(99, 102, 241, 0.22);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    padding: 28px 18px 26px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.skills-category-node.pillar-ds {
    --pillar-accent: #06b6d4;
    --pillar-glow: rgba(6, 182, 212, 0.28);
}

.skills-category-node.pillar-eng {
    --pillar-accent: #818cf8;
    --pillar-glow: rgba(129, 140, 248, 0.28);
}

.skills-category-node.pillar-eco {
    --pillar-accent: #2dd4bf;
    --pillar-glow: rgba(45, 212, 191, 0.24);
}

.node-pillar-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 55%;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--pillar-glow) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.skills-category-node:hover .node-pillar-glow {
    opacity: 0.6;
    transform: translateX(-50%);
}

/* Scanner sweep — disabled for calmer skills section */
.skills-category-node::after {
    display: none;
}

.skills-category-node:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--pillar-accent) 40%, transparent);
    box-shadow:
        0 12px 28px -8px rgba(0, 0, 0, 0.45),
        0 0 0 1px color-mix(in srgb, var(--pillar-accent) 14%, transparent);
}

.node-header {
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.node-icon-bg {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--pillar-accent), #4f46e5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.35rem;
    color: #fff;
    box-shadow:
        0 8px 20px color-mix(in srgb, var(--pillar-accent) 35%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-category-node:hover .node-icon-bg {
    transform: scale(1.03);
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--pillar-accent) 40%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.node-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.72));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.node-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-text);
    margin-top: 8px;
    line-height: 1.45;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.02em;
}

.node-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px 10px;
    position: relative;
    z-index: 2;
    flex: 1;
    align-content: start;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 11px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
    transition-delay: 0s;
    cursor: pointer;
}

.skills-category-node:hover .tech-item:nth-child(1) { transition-delay: 0.01s; }
.skills-category-node:hover .tech-item:nth-child(2) { transition-delay: 0.03s; }
.skills-category-node:hover .tech-item:nth-child(3) { transition-delay: 0.05s; }
.skills-category-node:hover .tech-item:nth-child(4) { transition-delay: 0.07s; }
.skills-category-node:hover .tech-item:nth-child(5) { transition-delay: 0.09s; }
.skills-category-node:hover .tech-item:nth-child(6) { transition-delay: 0.11s; }
.skills-category-node:hover .tech-item:nth-child(7) { transition-delay: 0.13s; }
.skills-category-node:hover .tech-item:nth-child(8) { transition-delay: 0.15s; }
.skills-category-node:hover .tech-item:nth-child(9) { transition-delay: 0.17s; }

.tech-item:hover {
    background: color-mix(in srgb, var(--pillar-accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--pillar-accent) 35%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.tech-item:focus-visible {
    outline: 2px solid var(--pillar-accent);
    outline-offset: 3px;
}

.tech-item i {
    font-size: 1.28rem;
    color: rgba(148, 163, 184, 0.85);
    transition: color 0.2s ease, transform 0.2s ease;
}

.tech-item:hover i {
    color: #fff;
    transform: scale(1.05);
}

.tech-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
}

.tech-item:hover .tech-name {
    color: #fff;
}

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

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

@media (max-width: 768px) {
    .skills-infographic {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-category-node {
        padding: 24px 16px 22px;
    }

    .skills-section .node-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* ── Skills Summary Hub (Box Format) ── */
.skills-hub-heading {
    margin-top: 56px;
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-text);
    text-align: center;
    position: relative;
    z-index: 1;
}

.skills-summary-hub {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.summary-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(99, 102, 241, 0.07) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.summary-box:hover::before {
    transform: translateX(100%);
}

.summary-box:hover {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.65));
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(99, 102, 241, 0.12);
}

.box-icon-v2 {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.summary-box:hover .box-icon-v2 {
    transform: scale(1.08) rotate(-4deg);
}

.box-info {
    display: flex;
    flex-direction: column;
}

.box-num {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 45%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.box-lbl {
    font-size: 0.75rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

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

@media (max-width: 500px) {
    .skills-summary-hub {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skills-aura {
        animation: none;
    }

    .skills-category-node::after {
        animation: none;
    }

    .skills-grid-bg {
        opacity: 0.35;
    }
}



/* For screens smaller than 600px */
@media (max-width: 600px) {
    .animated-element {
        animation-duration: 0.5s;
        transform: scale(0.8);
    }
}

/* For screens between 600px and 900px */
@media (min-width: 600px) and (max-width: 900px) {
    .animated-element {
        animation-duration: 0.8s;
        transform: scale(0.9);
    }
}

/* For screens larger than 900px */
@media (min-width: 900px) {
    .animated-element {
        animation-duration: 1s;
        transform: scale(1);
    }
}

.skill-item:hover::after {
    opacity: 1;
}

.skill-item:hover {
    background: var(--gradient-1);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    color: white;
    transform: rotateY(360deg);
}

/* Default styles for desktop */
body {
    font-size: 16px;
}

/* Styles for smaller screens */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Adjust the layout for smaller screens */
    .navbar {
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
    }

    /* Adjust the size of elements */
    .project-card {
        width: 100%;
        height: auto;
    }
}

@keyframes scale-up {
    0% {
        transform: scale(0);
    }

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

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animated-element {
    animation: scale-up 1s ease-in-out, fade-in 1s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

.project-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Styles for even smaller screens */
@media (max-width: 480px) {

    /* Adjust the layout further for even smaller screens */
    .navbar {
        padding: 10px;
    }

    .nav-menu {
        gap: 5px;
    }

    /* Adjust the size of elements */
    .project-card {
        width: 90%;
        height: auto;
    }
}

.skill-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.skill-item:hover span {
    color: white;
}

/* Skills Summary Cards */
.skills-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.summary-card {
    background: var(--card-bg);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.summary-card:hover::before {
    left: 100%;
}

.summary-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.summary-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.summary-card:hover .summary-icon {
    transform: rotateY(360deg) scale(1.08);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.summary-icon i {
    font-size: 1.5rem;
    color: white;
}

.summary-card h4 {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 10px;
    font-weight: 500;
}

.summary-number {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: all 0.3s ease;
}

.summary-card:hover .summary-number {
    transform: scale(1.1);
}

/* Projects Section */
.projects-section {
    background: var(--darker-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 550px;
    position: relative;
    z-index: 1;
}

body.light-theme .project-card {
    border-color: rgba(99, 102, 241, 0.1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 
                inset 0 0 20px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Dark Spotlight Effect */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.15),
        transparent 40%
    );
    z-index: 2; /* On top of background elements */
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card .project-image, 
.project-card .project-info {
    position: relative;
    z-index: 3; /* Above the spotlight layer */
}

/* Apply spotlight to other cards too */
.cert-card, .summary-card, .magnetic-card {
    position: relative;
    overflow: hidden;
}

.cert-card::after, .summary-card::after, .magnetic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.1),
        transparent 40%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cert-card:hover::after, .summary-card:hover::after, .magnetic-card:hover::after {
    opacity: 1;
}

/* stylized project preview */
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #020617;
}

.project-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; /* Matches screenshot gap */
    transition: all 0.5s ease;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.project-preview-mockup {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}



.project-preview-top {
    height: 28px;
    background: rgba(2, 6, 23, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
    z-index: 3;
}

.project-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.project-preview-body {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    pointer-events: none;
}

.project-preview-icon {
    display: none; /* Removed icons per screenshot */
}

.project-preview-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.project-preview-img {
    position: absolute;
    top: 28px; /* space for bar */
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 38px);
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-preview-img.loaded {
    opacity: 1;
}

.project-preview-img.loaded {
    opacity: 1;
}


.project-preview-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
}

.project-card:hover .project-preview-mockup {
    transform: perspective(1000px) rotateX(12deg) translateY(-15px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.25);
}

.project-card:hover .project-preview-icon {
    transform: translateZ(30px) scale(1.1);
}

body.light-theme .project-preview {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
}

body.light-theme .project-preview-mockup {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .project-preview-mockup.has-image-loaded .project-preview-body {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55) 55%, transparent);
}

body.light-theme .project-preview-title {
    color: #1e293b;
}

body.light-theme .project-preview-top {
    background: #f8fafc;
}

body.light-theme .project-preview-dot {
    background: #e2e8f0;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px); /* Fill remaining space in card */
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--light-text);
    line-height: 1.3;
}

.project-info p {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1; /* Allow description to take available space */
}

.project-category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto; /* Push tags to the bottom of the info area if possible */
}

.tag {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

body.light-theme .tag {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--gray-text);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    background: var(--card-bg);
    padding: 0 5px;
    color: var(--primary-color);
}

/* Resume Section */
.resume-section {
    background: var(--darker-bg);
}

.resume-content {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Internships Grid */
.internships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.internship-card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.internship-card:hover::before {
    transform: translateX(100%);
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.internship-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

.internship-icon i {
    font-size: 1.2rem;
    color: white;
}

.internship-card h4 {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 6px;
    font-weight: 600;
}

.internship-card .company {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.internship-points {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.internship-points li {
    font-size: 0.75rem;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.internship-points li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

.tech-stack {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Resume Highlights */
.resume-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.highlight-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    border: 2px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.highlight-card:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: var(--accent-color);
}

.highlight-card h4 {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.achievement-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.achievement-icon i {
    font-size: 1.8rem;
    color: white;
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

.achievement-content p {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.resume-description {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

/* Professional Timeline */
.resume-timeline {
    position: relative;
    margin-bottom: 60px;
    padding-left: 40px;
}

.resume-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

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

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--dark-bg);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
    background: var(--accent-color);
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Core Competencies */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.competency-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    border: 2px solid transparent;
}

.competency-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
}

.competency-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.competency-card:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: var(--accent-color);
}

.competency-card h4 {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.competency-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.resume-actions {
    text-align: center;
}

.resume-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.resume-buttons .btn {
    font-size: 1.1rem;
    min-width: 200px;
}

.resume-buttons .btn i {
    margin-right: 10px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--card-bg);
}

.footer p {
    color: var(--gray-text);
    margin: 5px 0;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }

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

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

    .image-wrapper {
        width: 280px;
        height: 340px;
    }

    .resume-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .skill-levels-banner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .skills-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .resume-timeline {
        padding-left: 30px;
    }

    .internships-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .name-text {
        font-size: 2.5rem;
    }

    .greeting-text {
        font-size: 1.8rem;
    }

    .name-container {
        flex-direction: column;
        gap: 15px;
    }

    .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

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

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

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

    .skills-tables-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

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

/* ── Education Section ────────────────────────────────────── */
.education-section {
    background: var(--dark-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.edu-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.edu-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 160px;
    position: relative;
}

.edu-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.edu-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.edu-tab-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.edu-icon-primary { background: rgba(99, 102, 241, 0.1); color: var(--primary-color); }
.edu-icon-secondary { background: rgba(79, 70, 229, 0.1); color: #818cf8; }
.edu-icon-accent { background: rgba(6, 182, 212, 0.1); color: var(--accent-color); }

.edu-tab-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.edu-tab-sub {
    font-size: 0.75rem;
    color: var(--gray-text);
    font-weight: 500;
}

.edu-tab-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

/* Panels */
.edu-panel-wrap {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
}

.edu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.edu-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.edu-panel-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: var(--ep-color, var(--primary-color));
}

.edu-panel-type {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.edu-panel-degree {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.edu-panel-degree span {
    font-weight: 400;
    color: var(--gray-text);
    font-size: 1.2rem;
}

.edu-panel-institute {
    font-size: 1.1rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.edu-panel-institute i {
    color: var(--primary-color);
}

.edu-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.edu-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-text);
    font-size: 1rem;
}

.edu-highlights li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .edu-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .edu-tab {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .edu-tab-line {
        display: none;
    }
    
    .edu-panel {
        padding: 30px 20px;
        flex-direction: column;
    }
}
/* ── Certifications Section ────────────────────────────────── */
.certifications-section {
    background: var(--darker-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-15px);
    border-color: var(--cert-color, var(--primary-color));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--cert-color), 0.1);
}

.cert-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-preview {
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.cert-pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-pdf-preview {
    opacity: 1;
}

.cert-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8));
    z-index: 2;
    pointer-events: none;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--cert-color, var(--primary-color));
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.cert-btn:hover {
    background: var(--cert-color, var(--primary-color));
    color: #000 !important;
    font-weight: 800;
    border-color: transparent;
}

.cert-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cert-card:hover .cert-shine {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-preview {
        height: 220px;
    }
}
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .name-text {
        font-size: 2.2rem;
    }

    .greeting-text {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .skills-summary,
    .competencies-grid,
    .resume-highlights {
        grid-template-columns: 1fr;
    }
}

/* Hide elements that will be animated */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Ripple Effect on Buttons and Interactive Elements */
.btn,
.social-link,
.project-link {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Global Motion Effects */
.section-header,
.about-card,
.skills-category-node,
.summary-box,
.edu-panel,
.project-card,
.cert-card,
.contact-card,
.contact-form-wrapper {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.98);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

.motion-float {
    animation: motion-soft-float 6s ease-in-out infinite;
}

.motion-glow-ring {
    position: relative;
    overflow: hidden;
}

.motion-glow-ring::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(125deg,
            rgba(99, 102, 241, 0.35),
            rgba(6, 182, 212, 0.2),
            rgba(59, 130, 246, 0.3));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.35s ease;
}

.motion-glow-ring:hover::before {
    opacity: 0.8;
}

.section-title {
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 70px;
    height: 2px;
    transform: translateX(-50%) scaleX(0.4);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.motion-revealed .section-title::before,
.section-header.motion-revealed .section-title::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

@keyframes motion-soft-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .section-header,
    .about-card,
    .skills-category-node,
    .summary-box,
    .edu-panel,
    .project-card,
    .cert-card,
    .contact-card,
    .contact-form-wrapper {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .motion-float {
        animation: none !important;
    }
}

/* Subtle Hover Glow Effect */
.btn:hover,
.social-link:hover,
.project-link:hover {
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
}

/* ===========================
   EDUCATION SECTION
   =========================== */
.education-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative radial glow behind the section */
.education-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.education-subtitle,
.cert-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.05rem;
    margin-top: -40px;
    margin-bottom: 65px;
}

/* ── Tab Switcher ── */
.edu-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    row-gap: 16px;
}

.edu-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 14px;
    transition: all 0.35s ease;
    position: relative;
    color: var(--gray-text);
}

.edu-tab:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--light-text);
}

.edu-tab.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--light-text);
}

.edu-tab-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0.55;
}

.edu-tab.active .edu-tab-icon {
    opacity: 1;
    transform: scale(1.1);
    animation: iconPulse 2s infinite;
}

.edu-tab:hover .edu-tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes iconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.edu-tab.active .edu-icon-primary {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.edu-tab.active .edu-icon-secondary {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.edu-tab.active .edu-icon-accent {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.edu-tab-label {
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s;
}

.edu-tab-sub {
    font-size: 0.7rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Active underline indicator */
.edu-tab.active .edu-tab-label {
    color: var(--primary-color);
}

.edu-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: transform 0.35s ease;
}

.edu-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Connecting line between tabs */
.edu-tab-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.25;
    min-width: 40px;
    max-width: 80px;
    border-radius: 2px;
    transform: translateY(-22px); /* Align with the icons center */
}

/* ── Panel Wrapper ── */
.edu-panel-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Panel ── */
.edu-panel {
    display: none;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    animation: eduPanelIn 0.4s ease;
}

.edu-panel.active {
    display: block;
}

@keyframes eduPanelIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Top color accent bar */
.edu-panel-accent {
    height: 4px;
    background: var(--ep-color, var(--primary-color));
    width: 100%;
    opacity: 0.8;
}

.edu-panel-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

/* Left column */
.edu-panel-left {
    background: rgba(99, 102, 241, 0.05);
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.edu-panel-big-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: transform 0.4s ease;
}

.edu-panel-big-icon:hover {
    transform: scale(1.1) rotate(6deg);
}

.edu-panel-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.edu-stat-box {
    background: var(--dark-bg);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.edu-stat-box:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.edu-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.edu-stat-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Right column */
.edu-panel-right {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edu-panel-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
}

.edu-panel-degree {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--light-text);
    line-height: 1.2;
    margin: 0;
}

.edu-panel-degree span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-text);
}

.edu-panel-field,
.edu-panel-institute {
    font-size: 0.88rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.edu-panel-field i,
.edu-panel-institute i {
    color: var(--primary-color);
    width: 14px;
}

.edu-panel-desc {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.75;
    margin: 4px 0 0;
}

.edu-highlights {
    margin: 16px 0 0;
    padding: 14px 16px;
    list-style: none;
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.edu-highlights li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.92rem;
}

.edu-highlights li i {
    margin-top: 2px;
    color: var(--primary-color);
}

/* Progress bar */
.edu-panel-progress {
    margin-top: 10px;
}

.edu-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-bottom: 6px;
    font-weight: 500;
}

.edu-progress-pct {
    color: var(--primary-color);
    font-weight: 700;
}

.edu-progress-bar {
    height: 6px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.edu-progress-fill {
    height: 100%;
    background: var(--bar-color, var(--primary-color));
    border-radius: 6px;
    position: relative;
    animation: progressFill 1s ease forwards;
}

@keyframes progressFill {
    from {
        width: 0 !important;
    }

    to {
        /* uses inline style width */
    }
}

/* Light theme */
body.light-theme .edu-panel {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .edu-panel-left {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.1);
}

body.light-theme .edu-stat-box {
    background: #f8fafc;
}

body.light-theme .edu-tab:hover,
body.light-theme .edu-tab.active {
    background: rgba(99, 102, 241, 0.07);
}

/* Responsive */
@media (max-width: 768px) {
    .edu-panel-body {
        grid-template-columns: 1fr;
    }

    .edu-panel-left {
        border-right: none;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        padding: 24px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .edu-panel-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .edu-stat-box {
        min-width: 72px;
    }

    .edu-panel-right {
        padding: 24px;
    }

    .edu-panel-degree {
        font-size: 1.15rem;
    }

    .edu-tab-line {
        max-width: 30px;
        min-width: 20px;
    }
}

@media (max-width: 500px) {
    .edu-tab {
        padding: 10px 14px;
    }

    .edu-tab-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .edu-tab-label {
        font-size: 0.78rem;
    }

    .edu-tab-sub {
        display: none;
    }
}

/* ── Showcase container ── */
.edu-showcase {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Individual card ── */
.edu-sc-card {
    display: grid;
    grid-template-columns: 100px 2px 1fr;
    align-items: stretch;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid transparent;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.edu-sc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(99, 102, 241, 0.22);
}

/* ── Left panel (number + icon + year) ── */
.edu-sc-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: rgba(99, 102, 241, 0.06);
    position: relative;
}



.edu-sc-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.edu-icon-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 5px 18px rgba(99, 102, 241, 0.5);
}

.edu-icon-secondary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 5px 18px rgba(139, 92, 246, 0.5);
}

.edu-icon-accent {
    background: linear-gradient(135deg, #ec4899, var(--primary-color));
    box-shadow: 0 5px 18px rgba(236, 72, 153, 0.45);
}

.edu-sc-card:hover .edu-sc-icon-circle {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55);
}

.edu-sc-year {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    text-align: center;
}

.edu-year-sec {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.edu-year-acc {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
}

/* ── Vertical divider bar ── */
.edu-sc-divider {
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
    transition: opacity 0.3s;
    border-radius: 2px;
}

.edu-div-sec {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

.edu-div-acc {
    background: linear-gradient(180deg, #ec4899, var(--primary-color));
}

.edu-sc-card:hover .edu-sc-divider {
    opacity: 1;
}

/* ── Right panel (content) ── */
.edu-sc-right {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.edu-sc-level {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
}

.edu-sc-degree {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.25;
}

.edu-sc-degree span {
    font-weight: 400;
    color: var(--gray-text);
    font-size: 0.92rem;
}

.edu-sc-field,
.edu-sc-institute {
    font-size: 0.88rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-sc-field i,
.edu-sc-institute i {
    color: var(--primary-color);
    width: 14px;
    font-size: 0.83rem;
}

.edu-sc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* Tag base */
.edu-tag {
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.edu-tag-sec {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.edu-tag-acc {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

.edu-sc-card:hover .edu-tag {
    background: rgba(99, 102, 241, 0.22);
}

.edu-sc-card:hover .edu-tag-sec {
    background: rgba(59, 130, 246, 0.22);
}

.edu-sc-card:hover .edu-tag-acc {
    background: rgba(6, 182, 212, 0.22);
}

/* ── Bottom glow sweep animating on hover ── */
.edu-sc-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
    border-radius: 0 0 20px 20px;
}

.edu-sc-glow-sec {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.edu-sc-glow-acc {
    background: linear-gradient(90deg, #06b6d4, var(--primary-color));
}

.edu-sc-card:hover .edu-sc-glow {
    transform: scaleX(1);
}

/* Light theme */
body.light-theme .edu-sc-card {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.1);
}

body.light-theme .edu-sc-left {
    background: rgba(99, 102, 241, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .edu-sc-card {
        grid-template-columns: auto 2px 1fr;
    }

    .edu-sc-left {
        padding: 24px 14px;
    }

    .edu-sc-number {
        font-size: 2.4rem;
    }

    .edu-sc-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .edu-sc-right {
        padding: 24px 20px;
    }

    .edu-sc-degree {
        font-size: 1.15rem;
    }
}

@media (max-width: 500px) {
    .edu-sc-card {
        grid-template-columns: 1fr;
    }

    .edu-sc-divider {
        display: none;
    }

    .edu-sc-left {
        flex-direction: row;
        justify-content: flex-start;
        padding: 18px 20px 0;
        gap: 14px;
    }

    .edu-sc-right {
        padding: 14px 20px 24px;
    }
}


/* ===========================
   CERTIFICATIONS SECTION
   =========================== */
.certifications-section {
    background: var(--darker-bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ── Card ── */
.cert-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cert-card:hover {
    border-color: var(--cert-color, var(--primary-color));
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 20px 55px rgba(99, 102, 241, 0.2);
}

/* ── Date badge — top right ── */
.cert-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-date-badge i {
    color: var(--cert-color, var(--primary-color));
}

/* ── Certificate preview mockup ── */
.cert-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cert-img, .cert-pdf-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.cert-card:hover .cert-img {
    transform: scale(1.08);
}

.cert-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 20%, rgba(15, 23, 42, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.cert-card:hover .cert-preview-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Watermark circle */
.cert-preview-watermark {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--cert-color, #6366f1) 15%, transparent);
    pointer-events: none;
}

/* Corner decorations */
.cert-preview-corners {
    position: absolute;
    inset: 15px;
    pointer-events: none;
}

.cert-preview-corners span {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: color-mix(in srgb, var(--cert-color, #6366f1) 50%, transparent);
    border-style: solid;
}

.cert-preview-corners span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.cert-preview-corners span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.cert-preview-corners span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.cert-preview-corners span:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Seal icon */
.cert-preview-seal {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--cert-color, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-card:hover .cert-preview-seal {
    transform: scale(1.15) rotate(10deg);
}

.cert-preview-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cert-preview-title-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    max-width: 90%;
}

.cert-preview-line {
    width: 50px;
    height: 1.5px;
    background: color-mix(in srgb, var(--cert-color, #6366f1) 80%, transparent);
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

.cert-preview-issuer-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ── Content below the preview ── */
.cert-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cert-color, var(--primary-color));
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-issuer i {
    font-size: 0.82rem;
}

.cert-desc {
    color: var(--gray-text);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-top: 2px;
}

.cert-actions {
    margin-top: auto;
    padding-top: 10px;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.cert-btn:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.cert-btn i {
    font-size: 0.85rem;
}

/* ── Animated shine streak ── */
.cert-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    pointer-events: none;
}

.cert-card:hover .cert-shine {
    animation: certShineAnim 0.55s ease forwards;
}

@keyframes certShineAnim {
    0% {
        left: -100%;
    }

    100% {
        left: 120%;
    }
}

/* Light theme */
body.light-theme .cert-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.1);
}

body.light-theme .cert-preview {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cert-color, #6366f1) 15%, #e0e7ff) 0%,
            #e0e7ff 100%);
}

body.light-theme .cert-preview-title-text {
    color: #1e293b;
}

body.light-theme .cert-preview-label {
    color: rgba(30, 41, 59, 0.45);
}

body.light-theme .cert-preview-issuer-text {
    color: rgba(30, 41, 59, 0.5);
}

body.light-theme .cert-date-badge {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    border-color: rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

.education-section {
    background: var(--dark-bg);
}

.education-subtitle,
.cert-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.05rem;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ── Education & Internships Tabbed System ── */
.edu-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.edu-tab {
    background: none;
    border: none;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0.6;
    z-index: 2;
}

.edu-tab.active {
    opacity: 1;
    transform: translateY(-10px);
}

.edu-tab-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: all 0.4s;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.edu-icon-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.edu-icon-secondary { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.edu-icon-accent { background: linear-gradient(135deg, #06b6d4, #2dd4bf); }

.edu-tab.active .edu-tab-icon {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.edu-tab-label {
    font-weight: 700;
    color: var(--light-text);
    font-size: 0.95rem;
}

.edu-tab-sub {
    font-size: 0.75rem;
    color: var(--gray-text);
}

.edu-tab-line {
    height: 2px;
    width: 60px;
    background: rgba(255,255,255,0.05);
    margin: 0 -10px;
    margin-bottom: 30px;
}

.edu-panel-wrap {
    perspective: 1000px;
}

.edu-panel {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    animation: panelEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.edu-panel.active {
    display: block;
}

@keyframes panelEnter {
    from { 
        opacity: 0; 
        transform: translateY(30px) rotateX(-5deg); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) rotateX(0); 
    }
}

.edu-panel-body {
    display: flex;
    padding: 40px;
    gap: 40px;
}

.edu-panel-left {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.edu-panel-big-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    background: var(--gradient-1); /* Use the new primary gradient */
}

.edu-panel-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.edu-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.edu-stat-val {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light-text);
}

.edu-stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gray-text);
    letter-spacing: 1px;
}

.edu-panel-right {
    flex: 1;
}

.edu-panel-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.edu-panel-degree {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light-text);
    margin-bottom: 15px;
}

.edu-panel-degree span { color: var(--gray-text); font-weight: 400; font-size: 1.2rem; }

.edu-panel-field, .edu-panel-institute {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    margin-bottom: 8px;
    font-size: 1rem;
}

.edu-panel-desc {
    margin: 20px 0;
    line-height: 1.7;
    color: var(--light-text);
    opacity: 0.9;
}

.edu-panel-progress {
    margin-top: 30px;
}

.edu-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 10px;
}

.edu-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.edu-progress-fill {
    height: 100%;
    background: var(--bar-color);
    box-shadow: 0 0 15px var(--bar-color);
    animation: growProgress 1.5s ease;
}

@keyframes growProgress { from { width: 0; } }

/* Responsive Panels */
@media (max-width: 768px) {
    .edu-panel-body {
        flex-direction: column;
        padding: 30px;
    }
    .edu-panel-left {
        flex-direction: row;
        flex: 0;
        width: 100%;
        justify-content: center;
    }
    .edu-panel-meta {
        flex-direction: row;
        width: auto;
    }
    .edu-stat-box { min-width: 70px; }
}

@media (max-width: 500px) {
    .edu-tabs { flex-wrap: wrap; }
    .edu-tab-line { display: none; }
    .edu-panel-meta { display: none; }
}

/* Light Theme Overrides */
body.light-theme .edu-panel {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-theme .edu-stat-box { background: #f8fafc; border-color: #e2e8f0; }
body.light-theme .edu-tab-label { color: #1e293b; }


/* ===========================
   CERTIFICATIONS SECTION
   =========================== */
/* ===========================
   CERTIFICATIONS SECTION
   =========================== */
.certifications-section {
    background: var(--darker-bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ── Card ── */
.cert-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cert-card:hover {
    border-color: var(--cert-color, var(--primary-color));
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 20px 55px rgba(99, 102, 241, 0.2);
}

/* ── Date badge — top right ── */
.cert-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-date-badge i {
    color: var(--cert-color, var(--primary-color));
}

/* ── Certificate preview mockup ── */
.cert-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cert-color, #4A7FA7) 20%, #0A1931) 0%,
            #0A1931 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Watermark circle */
.cert-preview-watermark {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--cert-color, #6366f1) 20%, transparent);
    box-shadow: 0 0 0 20px color-mix(in srgb, var(--cert-color, #6366f1) 6%, transparent);
    pointer-events: none;
}

/* Corner decorations */
.cert-preview-corners {
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

.cert-preview-corners span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: color-mix(in srgb, var(--cert-color, #6366f1) 70%, transparent);
    border-style: solid;
}

.cert-preview-corners span:nth-child(1) {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.cert-preview-corners span:nth-child(2) {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.cert-preview-corners span:nth-child(3) {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.cert-preview-corners span:nth-child(4) {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* Seal icon */
.cert-preview-seal {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cert-color, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--cert-color, #6366f1) 60%, transparent);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-preview-seal {
    transform: scale(1.1) rotate(5deg);
}

.cert-preview-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cert-preview-title-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    max-width: 90%;
}

.cert-preview-line {
    width: 50px;
    height: 1.5px;
    background: color-mix(in srgb, var(--cert-color, #6366f1) 80%, transparent);
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

.cert-preview-issuer-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ── Content below the preview ── */
.cert-content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cert-color, var(--primary-color));
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-issuer i {
    font-size: 0.82rem;
}

.cert-desc {
    color: var(--gray-text);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-top: 2px;
}

/* ── Animated shine streak ── */
.cert-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    pointer-events: none;
}

.cert-card:hover .cert-shine {
    animation: certShineAnim 0.55s ease forwards;
}

@keyframes certShineAnim {
    0% {
        left: -100%;
    }

    100% {
        left: 120%;
    }
}

/* Light theme */
body.light-theme .cert-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.1);
}

body.light-theme .cert-preview {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cert-color, #6366f1) 15%, #e0e7ff) 0%,
            #e0e7ff 100%);
}

body.light-theme .cert-preview-title-text {
    color: #1e293b;
}

body.light-theme .cert-preview-label {
    color: rgba(30, 41, 59, 0.45);
}

body.light-theme .cert-preview-issuer-text {
    color: rgba(30, 41, 59, 0.5);
}

body.light-theme .cert-date-badge {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    border-color: rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   Resume Section Styling (Top-to-Bottom Layout)
========================================= */
.resume-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.resume-content {
    width: 100%;
    text-align: center;
}

.quote-card {
    padding: 30px;
    background: rgba(99, 102, 241, 0.05);
    /* very light primary */
    border-top: 4px solid var(--primary-color);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .quote-card {
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.05);
}

.quote-text {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--light-text);
}

body.light-theme .quote-text {
    color: var(--light-text);
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.5;
}

.quote-subtext {
    font-size: 1.1rem;
    color: var(--gray-text);
    opacity: 0.9;
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.resume-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.internships-grid {
    width: 100%;
}

/* =========================================
   Modern Professional Experience Timeline
========================================= */
.experience-header-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.exp-icon-box {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.experience-title {
    font-size: 1.8rem;
    color: var(--light-text);
    margin: 0;
}

body.light-theme .experience-title {
    color: var(--light-text);
}

/* Interactive Journey / Internships */
.experience-section {
    padding-bottom: 50px;
    background: var(--dark-bg);
    position: relative;
    z-index: 1; /* Cover fixed aura-container */
}

.journey-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.journey-path {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.journey-path::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--accent-color), transparent);
    animation: flowLight 5s linear infinite;
    background-size: 100% 200%;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-color);
}

body.light-theme .journey-path {
    background: rgba(99, 102, 241, 0.1);
}

@keyframes flowLight {
    0% { background-position: 0% -100%; }
    100% { background-position: 0% 100%; }
}

.journey-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.journey-node:last-child {
    margin-bottom: 0;
}

.journey-node.left {
    flex-direction: row-reverse;
}

.journey-card {
    width: calc(50% - 60px);
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

body.light-theme .journey-card {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.journey-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.journey-card.alt:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.journey-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--dark-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color), inset 0 0 5px var(--primary-color);
    z-index: 5;
    transition: all 0.4s ease;
}

body.light-theme .journey-dot {
    background: #ffffff;
}

.journey-dot.alt {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color), inset 0 0 5px var(--accent-color);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

.pulse-ring.alt {
    background: rgba(99, 102, 241, 0.2);
    animation: pulseRingAlt 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    80%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes pulseRingAlt {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    80%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.journey-node:hover .journey-dot {
    transform: translate(-50%, -50%) scale(1.4);
    background: var(--primary-color);
}

.journey-node:hover .journey-dot.alt {
    background: var(--secondary-color);
}

.jc-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.jc-date.alt {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.3);
}

.jc-role {
    font-size: 1.6rem;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 700;
}

body.light-theme .jc-role {
    color: #1e293b;
}

.jc-company {
    font-size: 1.1rem;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jc-body p {
    color: var(--light-text);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

body.light-theme .jc-body p {
    color: #475569;
}

.jc-body p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.journey-card.alt .jc-body p strong {
    color: var(--secondary-color);
}

.jc-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.jc-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

body.light-theme .jc-tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.jc-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.1);
}

.jc-tag.alt:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.1);
}

.jc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.jc-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.jc-btn.alt {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.jc-btn.alt:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.jc-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: none;
    opacity: 0.12;
    top: -50px;
    right: -50px;
    transition: 0.5s;
    pointer-events: none;
}

.journey-card.alt .jc-glow {
    background: var(--accent-color);
}

.journey-card:hover .jc-glow {
    opacity: 0.25;
    transform: scale(1.2);
}

/* Branch Connectors */
.journey-node::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.8), transparent);
    z-index: 1;
}

.journey-node.right::before {
    background: linear-gradient(to left, rgba(236, 72, 153, 0.8), transparent);
}

.journey-node.left::before {
    right: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to left, rgba(99, 102, 241, 0.8), transparent);
}

.journey-node.right::before {
    left: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(236, 72, 153, 0.8), transparent);
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.4s;
}

body.light-theme .journey-card::before {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.15);
}

.journey-node.left .journey-card::before {
    right: -11px;
    border-bottom: none;
    border-left: none;
}

.journey-node.right .journey-card::before {
    left: -11px;
    border-top: none;
    border-right: none;
}

.journey-card:hover::before {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.journey-card.alt:hover::before {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

/* Responsiveness */
@media (max-width: 768px) {
    .journey-path {
        left: 40px;
    }
    
    .journey-node {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 90px;
        margin-bottom: 50px;
    }
    
    .journey-card {
        width: 100%;
    }
    
    .journey-dot {
        left: 40px;
    }
    
    .journey-node::before {
        left: 40px !important;
        width: 50px !important;
        right: auto !important;
        background: linear-gradient(to right, rgba(99, 102, 241, 0.8), transparent) !important;
    }
    
    .journey-node.right::before {
        background: linear-gradient(to right, rgba(236, 72, 153, 0.8), transparent) !important;
    }
    
    .journey-node.left .journey-card::before,
    .journey-node.right .journey-card::before {
        left: -11px;
        right: auto;
        border-top: none;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        border-left: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    body.light-theme .journey-node.left .journey-card::before,
    body.light-theme .journey-node.right .journey-card::before {
        border-color: rgba(99, 102, 241, 0.15);
    }
}

.contact-section {
    padding: 120px 0;
    background: var(--dark-bg);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-decoration-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.08;
    filter: none;
    pointer-events: none;
}

.contact-decoration-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.08;
    filter: none;
    pointer-events: none;
}

/* ── Communication Hub Redesign ── */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.contact-card i {
    font-size: 1.3rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-card-content h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.email-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.3s;
    padding: 5px;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ── Social Hub ── */
.social-connectivity {
    margin-top: 35px;
}

.social-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.social-links-hub {
    display: flex;
    gap: 15px;
}

.social-hub-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--light-text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-hub-link::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.social-hub-link.linkedin::after { background: #0077b5; }
.social-hub-link.github::after { background: #333; }

.social-hub-link:hover {
    color: #fff;
    transform: translateY(-5px);
    border-color: transparent;
}

.social-hub-link:hover::after {
    bottom: 0;
}

/* ── Floating Label Form ── */
.form-group-hub {
    position: relative;
    margin-bottom: 25px;
}

.form-group-hub input,
.form-group-hub textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group-hub label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-hub textarea + label {
    top: 20px;
    transform: none;
}

.form-group-hub input:focus ~ label,
.form-group-hub input:not(:placeholder-shown) ~ label,
.form-group-hub textarea:focus ~ label,
.form-group-hub textarea:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    font-size: 0.7rem;
    padding: 0 8px;
    background: var(--dark-bg);
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-50%);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px;
    width: 0;
    background: var(--gradient-1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.form-group-hub input:focus ~ .input-glow,
.form-group-hub textarea:focus ~ .input-glow {
    width: 100%;
    box-shadow: 0 0 20px var(--primary-color);
}

.form-group-hub input:focus,
.form-group-hub textarea:focus {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.04);
}

/* ── Hub Submit Button ── */
.submit-hub-btn {
    width: 100%;
    background: var(--gradient-1);
    border: none;
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.submit-hub-btn .btn-icon {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.submit-hub-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
}

.submit-hub-btn.success {
    background: #10b981;
    pointer-events: none;
}

.submit-hub-btn.success .btn-icon {
    transform: translateX(200px) translateY(-50px) rotate(-45deg);
    opacity: 0;
}

/* New: Show checkmark after plane flies */
.submit-hub-btn.success::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    animation: successCheck 0.5s forwards 0.3s;
}

@keyframes successCheck {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.trust-signal {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.trust-signal i {
    color: #10b981;
}

/* Light Theme Overrides for Contact */
body.light-theme .contact-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

body.light-theme .form-group-hub input,
body.light-theme .form-group-hub textarea {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.light-theme .form-group-hub input:focus ~ label,
body.light-theme .form-group-hub input:not(:placeholder-shown) ~ label,
body.light-theme .form-group-hub textarea:focus ~ label,
body.light-theme .form-group-hub textarea:not(:placeholder-shown) ~ label {
    background: #fff;
    color: var(--primary-color);
}

body.light-theme .social-hub-link {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(26, 61, 99, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 127, 167, 0.6);
}



/* ── Interactive Shimmer & Glare ── */
.project-card, .cert-card, .stat-card, .summary-box, .profile-card-v2 {
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), background 0.6s var(--ease-out-expo) !important;
}

.project-card::before, .cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.8s;
    pointer-events: none;
    z-index: 5;
}

.project-card:hover::before, .cert-card:hover::before {
    left: 150%;
}

/* ── Global Reveal Animation ── */
.reveal-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-in-up.active {
    opacity: 1;
    transform: translateY(0);
}



.cursor-hover {
    width: 65px;
    height: 65px;
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-color);
    border-width: 1px;
    opacity: 0.6;
}

.dot-hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: #fff;
    mix-blend-mode: normal;
}

@media (max-width: 1024px) {
    .custom-cursor, .cursor-dot { display: none !important; }
}

/* ── Professional Glare & Shimmer ── */
.project-card, .cert-card, .stat-card, .summary-box, .skill-pill, .info-card-v2 {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo) !important;
}

.project-card::before, .cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.7s;
    pointer-events: none;
    z-index: 5;
}

.project-card:hover::before, .cert-card:hover::before {
    left: 150%;
}

/* ── Advanced Floating Aura ── */
.aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: none;
    opacity: 0.08;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.blob-1 { width: 400px; height: 400px; background: var(--primary-color); top: -100px; right: -50px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent-color); bottom: 10% ; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: var(--secondary-color); top: 40%; left: 20%; }

@keyframes float-gentle {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.floating {
    animation: float-gentle 6s infinite ease-in-out;
}

/* ── Staggered Section Reveals ── */
.reveal-heading {
    overflow: hidden;
}

.reveal-heading span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-out-expo);
}

.reveal-heading.active span {
    transform: translateY(0);
}

/* ── Magnetic Element Transitions ── */
.magnetic-transition {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Progress Bar Glow ── */
.scroll-progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

/* ── Tech Card Glow ── */
.tech-card:hover i {
    filter: drop-shadow(0 0 8px var(--primary-color));
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

/* ── Form Status Messages ── */
.form-status {
    margin-top: 15px;
    width: 100%;
}

.status-msg {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fade-in 0.4s ease-out forwards;
}

.status-msg.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.status-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-msg.loading {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

/* ── Initial Page Loader ── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.48s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.48s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-noise {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.14), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.14), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
    z-index: -3;
    animation: loader-pulse-bg 5s ease-in-out infinite alternate;
}

.loader-orbit {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 50%;
    pointer-events: none;
}

.loader-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.75);
}

.loader-orbit-one {
    width: min(80vw, 460px);
    height: min(80vw, 460px);
    animation: orbit-spin 12s linear infinite;
}

.loader-orbit-two {
    width: min(60vw, 340px);
    height: min(60vw, 340px);
    border-color: rgba(6, 182, 212, 0.3);
    animation: orbit-spin-reverse 8s linear infinite;
}

.loader-orbit-three {
    width: min(42vw, 240px);
    height: min(42vw, 240px);
    border-style: dashed;
    border-color: rgba(59, 130, 246, 0.35);
    animation: orbit-spin 5s linear infinite;
}

.loader-content-big {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    z-index: 2;
}

.loader-title {
    position: relative;
    font-size: clamp(3rem, 10vw, 6rem); /* Huge fluid text */
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 15px;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(to right, #6366f1, #06b6d4, #3b82f6, #6366f1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 3s linear infinite, scale-up-gentle 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.loader-title::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 110%;
    height: 120%;
    background: var(--dark-bg);
    transform-origin: right;
    animation: wipe-reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    z-index: 5;
}

.loader-progress-rail {
    width: min(480px, 70vw);
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #3b82f6);
    background-size: 200% auto;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.55);
    animation: gradient-flow 2.2s linear infinite;
    transition: width 0.18s ease-out;
}

.loader-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fade-in-up 0.5s ease-out 0.8s forwards;
}

.loader-text-big {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: baseline;
}

.loader-symbol-big {
    font-size: 1rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.loader-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-text);
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: pulse-label 1.5s infinite alternate;
    min-height: 1em;
}

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes scale-up-gentle {
    0% { 
        transform: scale(0.95); 
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.2)); 
        opacity: 0.5; 
    }
    50% { 
        filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.9)); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1.05); 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.7)); 
        opacity: 1; 
    }
}

@keyframes wipe-reveal {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}


@keyframes fade-in-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-label {
    0% { opacity: 0.3; }
    100% { opacity: 1; text-shadow: 0 0 15px rgba(99, 102, 241, 0.8); }
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes loader-pulse-bg {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.07); opacity: 1; }
}

