: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);
}

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;
}

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

/* ==========================================================================
   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;
    }

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

    .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;
    }
}

/* ==========================================================================
   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;
}

/* 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); }
}