:root {
    --bg-color: #050505 --spotlight-color: rgba(56, 189, 248, 0.05);
    --particle-color: #0058d3;
    --grid-color: rgb(0, 0, 0);
}

/*
    assets/css/style.css
    ----------------------
    Hand-crafted stylesheet for Portfolio-Website. This file contains the site's
    non-Tailwind customizations (visual polish, fixes for canvas backgrounds,
    component-level styling and utility classes). It is intentionally authored
    for clarity and maintainability.

    Important:
        - Tailwind-generated CSS lives in `assets/css/output.css` and should not be
            edited directly.
        - Use `src/input.css` to change Tailwind utilities and rebuild `output.css`.

    Sections are grouped and labeled; modify only style rules you understand.
*/

/* ==========================================================================
     1. VARIABLES & BASE STYLES
     ========================================================================== */
:root {
    --bg-color: #050505; 
    --spotlight-color: rgba(56, 189, 248, 0.05);
    --particle-color: #0058d3;
    --grid-color: rgb(0, 0, 0);
}

/* Light Mode Variables */
body.light {
    --bg-color: #f8fafc;
    --spotlight-color: rgba(56, 189, 248, 0.1);
    --particle-color: #3b82f6;
    --grid-color: rgb(241, 245, 249);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    /* Deep Space Gradient */
    background-image: radial-gradient(circle at center, #0f172a 0%, #000000 100%);
    color: #e2e8f0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light {
    background-image: radial-gradient(circle at center, #e0e7ff 0%, #f8fafc 100%);
    color: #1e293b;
}

/* Light Mode Text Colors */
body.light .text-slate-300,
body.light .text-slate-400 {
    color: #475569;
}

body.light .text-white {
    color: #0f172a;
}

body.light .text-slate-200 {
    color: #334155;
}

/* Light Mode Backgrounds */
body.light .bg-slate-900,
body.light .bg-slate-800,
body.light .bg-zinc-900 {
    background-color: #f1f5f9;
}

body.light .bg-slate-950 {
    background-color: #e2e8f0;
}

body.light .border-slate-700,
body.light .border-slate-800 {
    border-color: #cbd5e1;
}

section {
    scroll-margin-top: 80px;
    /* Offset for fixed header */
}

/* Prevent horizontal overflow on any viewport */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Quick Links: keep each label on one line (e.g. "Resume" no wrap) */
.footer-quick-links a {
    white-space: nowrap;
}

/* Footer: break out of content-wrapper so background spans full viewport width */
.footer-full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

/* Responsive images: never break layout at any viewport */
.content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.content-wrapper img.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Containers for cover images in flex: allow shrink and clip */
.content-wrapper .overflow-hidden:has(img.object-cover) {
    min-height: 0;
}

/* About section image container: prevent flex from breaking aspect */
section#about .flex.flex-col > div:first-child,
section#about .flex.lg\:flex-row > div:first-child {
    min-height: 0;
    overflow: hidden;
}

/* Section titles: MY PROJECT style — Inter black, uppercase, large, cyan → purple gradient text */
.section-main-heading {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(2.35rem, 5.2vw + 1rem, 3.85rem);
    line-height: 1.05;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.02em;
    background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 32%, #818cf8 58%, #c084fc 88%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Shared subtitle under section titles (matches MY PROJECT blurb) */
.section-main-subtitle {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgb(148 163 184);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
}

@media (min-width: 768px) {
    .section-main-subtitle {
        font-size: 1.125rem;
    }
}

/* Slightly brighter subtitle on starfield-heavy sections */
.section-main-subtitle--on-dark {
    color: rgb(203 213 225 / 0.92);
}

/* Mobile: 480px and below – prioritize readable line length and side margins */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .content-wrapper {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Constrain long-form text blocks so line length stays comfortable (~45–65ch) */
    .about-text-card,
    .contact-text-card {
        max-width: 42em;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .text-6xl {
        font-size: 2.25rem;
    }

    .text-8xl {
        font-size: 3rem;
    }

    .text-5xl {
        font-size: 1.75rem;
    }

    .text-4xl {
        font-size: 1.5rem;
    }

    .text-3xl {
        font-size: 1.375rem;
    }

    section {
        scroll-margin-top: 72px;
    }

    .section-title,
    .section-main-heading {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        letter-spacing: 0.03em;
    }

    .p-8, .p-10 {
        padding: 1.25rem;
    }

    .gap-8 {
        gap: 1.25rem;
    }

    .gap-6 {
        gap: 0.875rem;
    }

    .rounded-2xl, .rounded-3xl {
        border-radius: 0.875rem;
    }

    /* Touch targets: nav and primary CTAs only */
    .expandable-tab {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
    }

    .submit-button {
        min-height: 44px;
    }

    /* Hero CTAs */
    #home a[href="#projects"],
    #home a[href="#contact"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Extra-small: 360px and below – prevent nav overflow and footer wrap */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }

    .content-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Keep bottom nav inside viewport: use insets instead of translate to avoid left overflow */
    .nav-bottom-bar {
        left: 0.75rem !important;
        right: 0.75rem !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }

    .text-6xl {
        font-size: 2rem;
    }

    .text-8xl {
        font-size: 2.5rem;
    }

    .text-5xl {
        font-size: 1.5rem;
    }

    .text-4xl {
        font-size: 1.375rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .section-title,
    .section-main-heading {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    }

    section#about .flex.flex-col > div:first-child {
        height: 280px;
    }

    .expandable-tab .expandable-tab-text {
        font-size: 0.7rem;
    }

    nav {
        max-width: 100%;
        padding: 0.375rem;
    }

    .expandable-tab {
        padding: 0.4rem 0.5rem;
    }
}

/* Minimum width: 320px (smallest phones) */
@media (max-width: 320px) {
    .content-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Same nav inset so bar never overflows or truncates */
    .nav-bottom-bar {
        left: 0.5rem !important;
        right: 0.5rem !important;
        bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
    }

    .text-6xl {
        font-size: 1.75rem;
    }

    .text-8xl {
        font-size: 2.25rem;
    }

    .text-5xl {
        font-size: 1.375rem;
    }

    .text-3xl {
        font-size: 1.125rem;
    }

    .section-title,
    .section-main-heading {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
    }

    section#about .flex.flex-col > div:first-child {
        height: 240px;
    }
}

/* ==========================================================================
   CUSTOM SCROLLBAR (STEALTH DRIVER)
   ========================================================================== */
/* Width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
    /* Completely see-through so stars show */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    /* Faint cyan glass */
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
    /* Solid cyan when you grab it */
}

/* ==========================================================================
   2. LAYOUT & GENERAL COMPONENTS
   ========================================================================== */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Sits just above the body background */
}

.content-wrapper {
    position: relative;
    z-index: 10;
    /* All main content sits on top of background effects */
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #38bdf8;
    width: 0%;
    z-index: 1000;
    /* Always on the very top */
    transition: width 0.05s linear;
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease-in-out;
}

.site-header.header-scrolled {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: #cbd5e1;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(56, 189, 248, 0.1);
}

.nav-link.active-link {
    color: #ffffff;
    background-color: rgba(56, 189, 248, 0.15);
}


/* ==========================================================================
   4. FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid #334155;
    padding: 3rem 0;
    position: relative;
    /* This is needed for z-index to work */
    z-index: 10;
    /* Ensures footer is on the same layer as content */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

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

.social-icon-link {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}


/* ==========================================================================
   5. UI EFFECTS & ANIMATIONS
   ========================================================================== */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allows clicks to pass through */
    z-index: 5;
    /* THE FIX: Sits below content (z-index 10) */
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--spotlight-color) 0%, transparent 25%);
    transition: background 0.1s ease-out;
}

.hero-glow {
    background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0));
}

.text-shimmer {
    background: linear-gradient(90deg, #93c5fd, #ffffff, #93c5fd);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

.hero-image-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes shimmer {
    to {
        background-position: -200% center;
    }
}


/* ==========================================================================
   6. COMPONENT STYLES
   ========================================================================== */
/* --- Skill Cards & Tooltips --- */
.skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.skill-card:hover .skill-icon-container {
    background-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.skill-icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    transition: all 0.3s;
}

.skill-card:hover .skill-icon {
    color: #38bdf8;
    transform: scale(1.1);
}

.skill-name {
    font-weight: 500;
    color: #cbd5e1;
}

.skill-card::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.skill-card:hover::before,
.skill-card:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- Project Cards --- */
.project-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.project-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: #ffffff;
}

.project-live-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.project-live-link a {
    color: #7dd3fc;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.project-live-link a:hover {
    color: #ffffff;
}

.project-live-link svg {
    width: 16px;
    height: 16px;
    color: #7dd3fc;
}

.project-languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* --- Contact Links & Form --- */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #334155;
    border-radius: 9999px;
    color: #cbd5e1;
    transition: all 0.3s;
}

.contact-link:hover {
    background-color: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.contact-link svg {
    transition: transform 0.3s ease-in-out;
}

.contact-link:hover svg {
    transform: scale(1.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #cbd5e1;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

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

.submit-button {
    padding: 0.75rem 1.5rem;
    background-color: #0ea5e9;
    color: #ffffff;
    font-weight: bold;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background-color: #0284c7;
    transform: translateY(-3px);
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 1rem);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* --- "View More" Button --- */
.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.view-more-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #334155;
    border-radius: 9999px;
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.view-more-button:hover {
    background-color: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}


/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .hero-glow h1 {
        font-size: 2.75rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
    }
}

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

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

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

/* ==========================================================================
   8. VANTA BACKGROUND FIX
   ========================================================================== */
.vanta-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;
    z-index: 0 !important;
}

/* Ensure the main content is layered on top of the fixed background */
.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Neon Glow for Skills */
.skill-card-glass {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Individual Glow Colors on Hover */
.group:hover .glow-python {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
}

.group:hover .glow-html {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 0.5);
}

.group:hover .glow-js {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
    border-color: rgba(250, 204, 21, 0.5);
}

.group:hover .glow-css {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.group:hover .glow-git {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
    border-color: rgba(244, 63, 94, 0.5);
}

.group:hover .glow-github {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Spotlight Effect for Projects */
.spotlight-card {
    background-color: rgba(15, 23, 42, 0.6);
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MOBILE NAVIGATION (APP STYLE)
   ========================================================================== */
.active-mobile-link {
    color: #38bdf8 !important;
    /* Sky-400 */
}

.active-mobile-link svg {
    fill: rgba(56, 189, 248, 0.15);
    /* Light background fill for active icon */
    stroke: #38bdf8;
}

/* ==========================================================================
   PARTICLES.JS BACKGROUND FIX
   ========================================================================== */
.particles-js-canvas-el {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* Sits behind content (which is z-10) */
    pointer-events: none;
    /* Ensures you can click buttons on top of it */
}

/* ==========================================================================
   3D UNIVERSE BACKGROUND FIX
   ========================================================================== */
canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    /* Puts it behind everything */
    pointer-events: none;
    /* Lets you click links on top of it */
    background: #000000;
    /* Fallback black */
}

/* ==========================================================================
   FOOTER ANIMATIONS & STYLES
   ========================================================================== */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #0f172a;
    /* Slate-900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: white;
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* The "Draw" animation for LAKSH text */
.footer-text-anim {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawStroke 2s ease-in-out infinite alternate;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   SKILLS SECTION — dark navy / charcoal, electric accents, Inter, chip icons
   ========================================================================== */
.skills-section {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.skills-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(100%, 72rem);
    height: min(32rem, 75vh);
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 85% 55% at 50% 0%, rgba(56, 189, 248, 0.09) 0%, transparent 58%),
        radial-gradient(ellipse 50% 40% at 100% 35%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 48%);
}

.skills-section__grid {
    position: relative;
    padding: 0.25rem;
    margin: -0.25rem;
}

.skills-section__grid::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.12) 0%,
        rgba(139, 92, 246, 0.1) 45%,
        rgba(34, 211, 238, 0.1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
    z-index: -1;
}

/* Category → minimalist mask icon on each chip (inherits from panel) */
.skills-panel[data-skill-group="fullstack"] {
    --skill-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 12 9 5v14L2 12zm20 0-7-7v14l7-7z'/%3E%3C/svg%3E");
}

.skills-panel[data-skill-group="mobile"] {
    --skill-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E");
}

.skills-panel[data-skill-group="aiml"] {
    --skill-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M8 4h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9z'/%3E%3C/svg%3E");
}

.skills-panel[data-skill-group="tools"] {
    --skill-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H4zm3.3 6.3 3 3-3 3 1.4 1.4 4.4-4.4-4.4-4.4L7.3 11.3zm6.7 5.7h6v2h-6v-2z'/%3E%3C/svg%3E");
}

.skills-panel {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(12, 14, 24, 0.96) 50%, rgba(15, 23, 42, 0.88) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1.35rem 1.45rem;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.65);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .skills-panel {
        padding: 1.5rem 1.75rem;
    }
}

.skills-panel:hover {
    transform: translateY(-2px);
}

.skills-panel[data-skill-group="fullstack"]:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.12),
        0 0 40px -20px rgba(56, 189, 248, 0.2);
}

.skills-panel[data-skill-group="mobile"]:hover {
    border-color: rgba(251, 191, 36, 0.38);
    box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(251, 191, 36, 0.1),
        0 0 40px -20px rgba(245, 158, 11, 0.18);
}

.skills-panel[data-skill-group="aiml"]:hover {
    border-color: rgba(217, 70, 239, 0.4);
    box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(217, 70, 239, 0.12),
        0 0 44px -18px rgba(168, 85, 247, 0.22);
}

.skills-panel[data-skill-group="tools"]:hover {
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(34, 211, 238, 0.12),
        0 0 40px -20px rgba(6, 182, 212, 0.2);
}

.skills-panel__accent {
    width: 3px;
    min-height: 2.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
    opacity: 0.95;
}

.skills-panel__badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    width: fit-content;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250, 232, 255, 0.95);
    background: rgba(217, 70, 239, 0.18);
    border: 1px solid rgba(217, 70, 239, 0.35);
}

.skills-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    color: rgb(226 232 240);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease,
        transform 0.25s ease;
}

.skills-chip::before {
    content: "";
    width: 0.8125rem;
    height: 0.8125rem;
    flex-shrink: 0;
    opacity: 0.48;
    background-color: currentColor;
    -webkit-mask-image: var(--skill-chip-icon);
    mask-image: var(--skill-chip-icon);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.skills-chip:hover {
    color: rgb(248 250 252);
    border-color: rgba(186, 198, 216, 0.32);
    background: rgba(255, 255, 255, 0.065);
    transform: scale(1.03);
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
}

.skills-chip:hover::before {
    opacity: 0.88;
    transform: scale(1.08);
}

/* Strongest tools per domain — accent matches panel */
.skills-chip--highlight {
    font-weight: 600;
    color: rgb(224 242 254);
    border-color: rgba(56, 189, 248, 0.45);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 8px 26px -12px rgba(14, 165, 233, 0.35);
}

.skills-chip--highlight:hover {
    border-color: rgba(56, 189, 248, 0.62);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.24) 0%, rgba(56, 189, 248, 0.12) 100%);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 12px 32px -12px rgba(56, 189, 248, 0.35);
}

.skills-panel[data-skill-group="fullstack"] .skills-chip--highlight {
    color: rgb(224 242 254);
    border-color: rgba(56, 189, 248, 0.48);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.18) 0%, rgba(56, 189, 248, 0.09) 100%);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1), 0 8px 28px -12px rgba(14, 165, 233, 0.38);
}

.skills-panel[data-skill-group="fullstack"] .skills-chip--highlight:hover {
    border-color: rgba(125, 211, 252, 0.65);
}

.skills-panel[data-skill-group="mobile"] .skills-chip--highlight {
    color: rgb(254 243 199);
    border-color: rgba(251, 191, 36, 0.48);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.08) 100%);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1), 0 8px 28px -12px rgba(245, 158, 11, 0.28);
}

.skills-panel[data-skill-group="mobile"] .skills-chip--highlight:hover {
    border-color: rgba(253, 224, 71, 0.58);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.12) 100%);
}

.skills-panel[data-skill-group="aiml"] .skills-chip--highlight {
    color: rgb(250 232 255);
    border-color: rgba(217, 70, 239, 0.48);
    background: linear-gradient(145deg, rgba(192, 38, 211, 0.16) 0%, rgba(56, 189, 248, 0.07) 100%);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.1), 0 8px 30px -12px rgba(168, 85, 247, 0.32);
}

.skills-panel[data-skill-group="aiml"] .skills-chip--highlight:hover {
    border-color: rgba(232, 121, 249, 0.58);
}

.skills-panel[data-skill-group="tools"] .skills-chip--highlight {
    color: rgb(204 251 241);
    border-color: rgba(34, 211, 238, 0.48);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.16) 0%, rgba(45, 212, 191, 0.08) 100%);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 8px 28px -12px rgba(6, 182, 212, 0.3);
}

.skills-panel[data-skill-group="tools"] .skills-chip--highlight:hover {
    border-color: rgba(103, 232, 249, 0.58);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.22) 0%, rgba(45, 212, 191, 0.11) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .skills-panel:hover {
        transform: none;
    }

    .skills-chip:hover,
    .skills-chip:hover::before {
        transform: none;
    }
}

.skills-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-content: flex-start;
    flex: 1 1 auto;
}

/* Wide band: multi-column chip layout so Generative AI is not a single tall strip */
.skills-list--wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem 0.65rem;
    flex: 1 1 auto;
    align-content: start;
}

@media (min-width: 480px) {
    .skills-list--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .skills-list--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.skills-list--wide .skills-chip {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   NEW SKILL GLOWS
   ========================================================================== */
.group:hover .glow-django {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Emerald */
.group:hover .glow-firebase {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.5);
}

/* Amber */
.group:hover .glow-kali {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Blue */
.group:hover .glow-security {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Red */
.group:hover .glow-ai {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.5);
}

/* Purple */
.group:hover .glow-db {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    border-color: rgba(20, 184, 166, 0.5);
}

/* Teal */
/* ==========================================================================
   EXPANDABLE TABS NAVBAR (Dark Glass Theme)
   ========================================================================== */
.expandable-tab {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.expandable-tab-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Active State: White Glass background */
.expandable-tab.active {
    background-color: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white */
    color: #ffffff;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    /* Subtle glow */
}

.expandable-tab.active .expandable-tab-text {
    max-width: 150px;
    opacity: 1;
}

/* Hover State: Slightly lighter than base */
.expandable-tab:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Project card description: show ~5 lines, scroll for rest */
.project-description {
    max-height: 7rem;
    display: block;
}
.project-description::-webkit-scrollbar {
    width: 6px;
}
.project-description::-webkit-scrollbar-track {
    background: transparent;
}
.project-description::-webkit-scrollbar-thumb {
    background: rgba(113, 113, 122, 0.5);
    border-radius: 3px;
}
.project-description::-webkit-scrollbar-thumb:hover {
    background: rgba(113, 113, 122, 0.8);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ==========================================================================
   FLOW BUTTON ANIMATION
   ========================================================================== */
@keyframes flow-gradient {
    0% {
        background-position: 0% 50%;
    }

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

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

.btn-flow {
    position: relative;
    /* The gradient colors: Sky Blue -> Indigo -> Pink -> Back to Sky Blue */
    background: linear-gradient(300deg, #0ea5e9, #6366f1, #ec4899, #0ea5e9);
    background-size: 300% 300%;
    animation: flow-gradient 3s ease infinite;
    z-index: 1;
    border: none;
}

/* Optional: Adds a glowing blur behind the button */
.btn-flow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s;
}

.btn-flow:hover::after {
    opacity: 0.5;
}

/* =========================================
   GLITCH TEXT ANIMATION (Footer)
   ========================================= */
.glitch-text {
    position: relative;
    color: white;
}

/* Creates the two offset layers */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    /* Match footer bg color */
}

/* Red/Pink Layer */
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

/* Blue/Cyan Layer */
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 10% 0);
    }

    40% {
        clip-path: inset(70% 0 30% 0);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
    }

    80% {
        clip-path: inset(50% 0 40% 0);
    }

    100% {
        clip-path: inset(0% 0 10% 0);
    }
}

/* =========================================
   PHASE 2: TIMELINE ANIMATION
   ========================================= */

/* Initial hidden state */
.timeline-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active state (triggered by JS IntersectionObserver) */
.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays so they don't all appear at once if screen is tall */
.timeline-item:nth-child(2) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.5s;
}

/* =========================================
   PHASE 3: SPOTIFY WIDGET ANIMATION
   ========================================= */
@keyframes music-bar {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

.music-bar-anim {
    animation: music-bar 0.8s ease-in-out infinite;
    transform-origin: bottom;
}
.typing-dot {
    animation: typing 1.4s infinite ease-in-out both;
    background-color: #94a3b8; /* slate-400 */
    border-radius: 50%;
    height: 6px;
    width: 6px;
    margin: 0 2px;
    display: inline-block;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}