/* ============================================================
   STYLE.CSS — Pola Harsha Portfolio
   Organised top to bottom in the order things appear on the page
   ============================================================


   TABLE OF CONTENTS
   -----------------
   1.  Reset & Global
   2.  CSS Variables (theme colours — change these to retheme everything)
   3.  Cursor
   4.  Scroll Progress Bar
   5.  Cosmic Background & Stars
   6.  Layout & Container
   7.  Navigation
   8.  Hero Section
   9.  About Section
   10. Projects Section
   11. Skills Section
   12. Skills Modal
   13. Credentials Section
   14. Education — Road Journey
   15. Connect Section
   16. Beyond Tech Section
   17. Footer
   18. Intro Overlay (opening animation)
   19. Back To Top Button
   20. Keyframe Animations
   21. Media Queries (responsive / mobile)
   ============================================================ */


/* ============================================================
   1. RESET & GLOBAL
   Remove default browser spacing, set box model, smooth scroll
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* width includes padding — much easier to work with */
}

html {
    scroll-behavior: smooth; /* clicking nav links scrolls smoothly instead of jumping */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: transparent; /* cosmic-bg div provides the actual background */
    min-height: 100vh;
}


/* ============================================================
   2. CSS VARIABLES (THEME)
   Change values here and the whole site updates automatically
   --accent is the main amber gold colour used everywhere
   ============================================================ */

:root {
    --text:         #f5e6c8;                    /* main text — warm off-white */
    --text-muted:   #a88a5a;                    /* secondary text — muted gold-brown */
    --accent:       #fbbf24;                    /* amber gold — buttons, borders, highlights */
    --accent-glow:  rgba(251, 191, 36, 0.4);    /* glow version of accent for shadows */
    --glass-bg:     rgba(28, 16, 8, 0.65);      /* card backgrounds — semi-transparent dark */
    --glass-border: rgba(251, 191, 36, 0.12);   /* card borders — faint amber */
    --glass-hover:  rgba(251, 191, 36, 0.1);    /* card background when hovered */
}


/* ============================================================
   3. CURSOR
   Custom golden arrow replaces the default browser cursor
   The SVG is embedded directly as a data URL — no file needed
   "2 2" = hotspot (the tip of the arrow)
   "auto" = fallback if custom cursor fails to load
   ============================================================ */

* {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M2 2 L2 18 L6 14 L9 20 L12 19 L9 13 L15 13 Z' fill='%23fbbf24' stroke='%230a0700' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto;
}


/* ============================================================
   4. SCROLL PROGRESS BAR
   Thin line at the very top of the page
   JS sets its width as a percentage based on how far you've scrolled
   ============================================================ */

#scroll-bar {
    position: fixed;    /* stays at top even when scrolling */
    top: 0;
    left: 0;
    width: 0%;          /* starts empty — JS changes this */
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fbbf24); /* orange → gold */
    z-index: 9999;      /* sits above everything */
    transition: width 0.1s ease;
box-shadow: 0 0 6px rgba(251, 191, 36, 0.25);}


/* ============================================================
   5. COSMIC BACKGROUND & STARS
   Fixed behind all content — moves with parallax on mouse move
   Three layers (far/mid/near) move at different speeds for depth
   ============================================================ */

.cosmic-bg {
    position: fixed;
    inset: 0;           /* shorthand for top/right/bottom/left: 0 */
    z-index: -1;        /* behind everything */
    background: linear-gradient(-45deg, #0d0804, #080502, #100c04, #060400);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite; /* slowly shifts the gradient */
}

/* Star containers — JS fills these with dot divs */
#stars-far,
#stars-mid,
#stars-near {
    position: absolute;
    inset: -10%;        /* slightly oversized so parallax doesn't show edges */
    width: 120%;
    height: 120%;
    pointer-events: none; /* clicks pass through */
}

/* Individual star dots — created by generateStars() in JS */
.star {
    position: absolute;
    border-radius: 50%;
}

/* Ember particles — created by generateEmbers() in JS */
.ember {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: emberFloat var(--dur) ease-in infinite;
animation-delay: var(--delay);
opacity: 0;
}

/* Shooting stars — created by addShootingStar() in JS */
.shooting-star {
    position: absolute;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(251,191,36,0.8), transparent);
    animation: shoot var(--shoot-dur) linear var(--shoot-delay) forwards;
    transform: rotate(-35deg);
    opacity: 0;
}


/* ============================================================
   6. LAYOUT & CONTAINER
   .container keeps content centred with a max width
   .section applies consistent padding to every section
   ============================================================ */

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

.section {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
}

/* Section headings — the amber underline is added via ::after */
h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: var(--accent);
    margin: 0.7rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}


/* ============================================================
   7. NAVIGATION
   Fixed at top — .scrolled class is added by JS on scroll
   Mobile hamburger menu uses a pure CSS checkbox toggle trick
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(28, 12, 4, 0.85);
    backdrop-filter: blur(16px);          /* frosted glass effect */
    -webkit-backdrop-filter: blur(16px);  /* Safari support */
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Slightly more transparent when you've scrolled down */
.header.scrolled {
    background: rgba(20, 10, 2, 0.7);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

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

/* Logo — gradient text using background-clip trick */
.logo {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    position: relative;
}

/* Animated underline that grows on hover */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

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

/* Hide the real checkbox input */
.nav-toggle {
    display: none;
}

/* Hamburger — hidden on desktop, shown on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.4s;
}

/* Mobile nav styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Menu slides down from off-screen */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 10, 2, 0.98);
        backdrop-filter: blur(16px);
        transform: translateY(-110%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        text-align: center;
    }

    /* When checkbox is checked, slide menu into view */
    #nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }

    /* Animate hamburger into X when open */
    #nav-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #nav-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}


/* ============================================================
   8. HERO SECTION
   The first thing people see — big name, typewriter, CTA button
   ============================================================ */

.hero-section {
    padding: 140px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    flex: 1;
    animation: fadeUp 0.8s ease both;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Gradient text — white → amber → orange */
.hero-name {
    font-family: 'Major Mono Display', monospace;
    font-size: clamp(2.8rem, 7vw, 5rem); /* clamp: min, preferred, max */
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    position: relative; /* needed for ::before pseudo-element */
}

/* Soft ambient glow behind the name */
.hero-name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(251,191,36,0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Decorative line beneath the name */
.hero-name::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin: 1.5rem auto 0;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0.6;
}

/* ── Status badge — Style A pill — remove .status-badge block when exams are done ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    margin-bottom: 1.4rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #fde68a;
    letter-spacing: 0.04em;
    font-family: 'Inter', sans-serif;
    animation: badgeFadeIn 0.8s ease both;
    animation-delay: 0.3s;
}

/* Pulsing dot — signals "live / active" status */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

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

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Typewriter area — JS writes into the span inside this */
.tagline {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* The blinking cursor at end of typewriter text */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.7s step-end infinite;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #050d1a;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.cta-button:hover {
    background: #fde68a;
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.55);
    transform: translateY(-2px);
}


/* ============================================================
   9. ABOUT SECTION
   Single glassmorphism card with a hover lift effect
   ============================================================ */

.about-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.85;
    transition: all 0.3s;
}

.about-card:hover {
    background: var(--glass-hover);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
}


/* ============================================================
   10. PROJECTS SECTION
   CSS grid auto-fits cards — grows from 1 to 3 columns
   Cards have a 3D tilt effect applied by JS on mousemove
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s;
    transform-style: preserve-3d; /* enables 3D tilt from JS */
}

.project-card:hover {
    background: var(--glass-hover);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(251, 191, 36, 0.2);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: brightness(0.75) saturate(0.8);
}

.project-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.85) saturate(1);
}

.project-card h3 {
    padding: 1.2rem 1.4rem 0.4rem;
    font-size: 1.05rem;
    color: #fff;
}

.project-card p {
    padding: 0 1.4rem 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.project-link {
    display: inline-block;
    margin: 0 1.4rem 1.4rem;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* In-progress card — slightly dimmed with a badge */
.project-card.in-progress {
    position: relative;
    opacity: 0.75;
}

.in-progress-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    padding: 3px 10px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 20px;
    color: var(--accent);
    z-index: 1;
}

.project-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ============================================================
   11. SKILLS SECTION
   Grid of skill icons — clicking opens the modal
   ============================================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-item:hover {
    background: var(--glass-hover);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3),
                0 0 15px rgba(251,191,36,0.1);
}

.skill-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.6rem;
    font-size: 2rem;
    line-height: 44px;
    text-align: center;
}

.skill-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.skill-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ============================================================
   12. SKILLS MODAL
   Hidden popup — JS shows/hides it when you click a skill
   backdrop is the dark overlay behind the modal box
   ============================================================ */

.skill-modal {
    display: none;               /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.skill-modal-content {
    background: #1a0d04;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    margin: auto;
    margin-top: 15vh;
}

.skill-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.skill-modal-close:hover {
    color: var(--accent);
}

.skill-modal-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.skill-details {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.skill-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

/* Skill level progress bar */
.skill-level-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.skill-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s ease; /* JS sets this to the actual % */
    box-shadow: 0 0 8px rgba(251,191,36,0.4);
}

#modalLearnedFrom {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

#modalCertLink {
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
}


/* ============================================================
   13. CREDENTIALS SECTION
   Three cards in a responsive grid
   Left coloured border indicates certificate vs event
   ============================================================ */

.creds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cred-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.6rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Coloured left border strip using ::before pseudo-element */
.cred-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 16px 0 0 16px;
}

.cred-cert::before  { background: linear-gradient(to bottom, #fbbf24, #f97316); }
.cred-event::before { background: linear-gradient(to bottom, #f97316, rgba(251,191,36,0.4)); }

.cred-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.cred-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cred-icon { font-size: 1.6rem; line-height: 1; }

.cred-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cred-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.cred-issuer { font-size: 0.78rem; color: var(--text-muted); }

.cred-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}

.cred-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cred-link {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(251,191,36,0.3);
    padding-bottom: 1px;
    transition: all 0.2s;
}

.cred-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.cred-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(251,191,36,0.1);
    color: rgba(251,191,36,0.67);
    border: 1px solid rgba(251,191,36,0.25);
    font-weight: 500;
}


/* ============================================================
   14. EDUCATION — ROAD JOURNEY
   Vertical timeline with icon nodes, pipes, and content
   ============================================================ */

.road-journey {
    max-width: 680px;
    margin: 0 auto;
}

/* Each stop = icon + vertical pipe + content side by side */
.road-stop {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.road-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* The circular icon node */
.road-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ri-done   { background: rgba(251,191,36,0.12); border: 1.5px solid rgba(251,191,36,0.4); }
.ri-now    { background: rgba(251,191,36,0.2); border: 2px solid #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,0.3); }
.ri-future { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.15); }

/* Vertical line connecting nodes */
.road-pipe {
    width: 1.5px;
    flex: 1;
    min-height: 16px;
    margin: 4px 0;
}

.rp-done { background: rgba(251,191,36,0.25); }
.rp-dim  { background: rgba(255,255,255,0.07); }

.road-content {
    padding-bottom: 2.2rem;
    padding-top: 6px;
    flex: 1;
}

.road-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.road-sub {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.road-line {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.7rem;
    font-style: italic;
}

.road-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Tag pills */
.rtag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.rtag-amber  { background: rgba(251,191,36,0.1); color: rgba(251,191,36,0.8); border: 1px solid rgba(251,191,36,0.25); }
.rtag-orange { background: rgba(249,115,22,0.1); color: rgba(249,115,22,0.8); border: 1px solid rgba(249,115,22,0.2); }
.rtag-dim    { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); }

/* "Now" badge inline with the title */
.now-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(251,191,36,0.2);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.4);
    border-radius: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .road-icon { width: 34px; height: 34px; font-size: 14px; }
    .road-title { font-size: 0.92rem; }
}


/* ============================================================
   15. CONNECT SECTION
   Row of social link buttons
   ============================================================ */

.connect-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.connect-link:hover {
    background: var(--glass-hover);
    border-color: rgba(251, 191, 36, 0.5);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.connect-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s;
}

.connect-link:hover svg {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .connect-link { padding: 0.75rem 1.1rem; font-size: 0.85rem; }
}


/* ============================================================
   16. BEYOND TECH — HORIZONTAL SCROLL ROWS
   Three independent scroll rows: Travel, Gym, Books
   Each card is 220px wide and snaps on scroll
   ============================================================ */

/* Row heading with emoji + title + count badge */
.bt-row-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2.5rem 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.bt-row-label:first-of-type { margin-top: 0; }
.bt-row-icon { font-size: 1.1rem; }

.bt-row-count {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(251,191,36,0.1);
    color: rgba(251,191,36,0.6);
    border: 1px solid rgba(251,191,36,0.2);
    font-weight: 500;
    margin-left: auto;
}

/* The scrollable container */
.bt-scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;     /* cards snap into position */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.bt-scroll-row::-webkit-scrollbar       { height: 3px; }
.bt-scroll-row::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.25); border-radius: 3px; }

/* Individual card */
.bt-card {
    min-width: 220px;
    max-width: 220px;
    background: var(--glass-bg);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: border-color 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Coloured top border by category */
.bt-travel { border-top: 2px solid rgba(251,191,36,0.4); }
.bt-gym    { border-top: 2px solid rgba(249,115,22,0.4); }
.bt-book   { border-top: 2px solid rgba(139,92,246,0.4); }

/* Hover — border and background shift to match category */
.bt-travel:hover { border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.06); }
.bt-gym:hover    { border-color: rgba(249,115,22,0.5);  background: rgba(249,115,22,0.06); }
.bt-book:hover   { border-color: rgba(139,92,246,0.5);  background: rgba(139,92,246,0.06); }

/* Special states */
.bt-broken { opacity: 0.75; }
.bt-next   { opacity: 0.45; border-style: dashed; }

/* Card content */
.btc-num {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
}

.bt-travel .btc-num { color: rgba(251,191,36,0.47); }
.bt-gym    .btc-num { color: rgba(249,115,22,0.47); }
.bt-book   .btc-num { color: rgba(167,139,250,0.47); }

.btc-title   { font-size: 1rem; font-weight: 600; color: #fff; }
.btc-sub     { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.btc-preview { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; font-style: italic; flex: 1; }

/* Expandable story section — hidden until .open is added by JS */
.btc-more {
    display: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.7rem;
    margin-top: 0.4rem;
}

.btc-more.open { display: block; }

/* "the story →" button */
.btc-btn {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: left;
    transition: color 0.2s;
}

.btc-btn:hover { color: #fff; }

@media (max-width: 768px) {
    .bt-card { min-width: 180px; max-width: 180px; }
}


/* ============================================================
   17. FOOTER
   ============================================================ */

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
}

footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ============================================================
   18. INTRO OVERLAY
   Covers the whole screen on load, JS removes it after ~3s
   ============================================================ */

#intro-overlay {
    position: fixed;
    inset: 0;
    background: #0a0700;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

/* When JS adds .hidden, it fades out and becomes non-interactive */
#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-content {
    text-align: center;
    position: relative;
}

/* The large name displayed during the intro */
#intro-name {
    font-family: 'Major Mono Display', monospace;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: #fff;
    letter-spacing: 0.15em;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.05em;
}

/* Each letter — JS staggers their animation delays */
.intro-char {
    opacity: 0;
    transform: translateY(40px) scale(0.6);
    display: inline-block;
    animation: charAppear 0.5s ease forwards;
}

.intro-space { width: 0.4em; }

#intro-tagline {
    opacity: 0;
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    animation: fadeUp 0.8s ease 1.8s forwards;
}

/* Amber line that grows beneath the tagline */
#intro-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    margin: 1.2rem auto 0;
    animation: lineGrow 0.8s ease 1.6s forwards;
}

/* Burst stars container */
#intro-stars-burst {
    position: absolute;
    inset: -60px;
    pointer-events: none;
}

/* Individual burst star — JS sets --bx and --by for direction */
.burst-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    animation: burstOut 1s ease forwards;
}


/* ============================================================
   19. BACK TO TOP BUTTON
   Fixed bottom-right — JS toggles .visible class on scroll
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent);
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-3px);
}


/* ============================================================
   20. KEYFRAME ANIMATIONS
   Reusable animation definitions used throughout the site
   ============================================================ */

/* Stars pulsing in brightness */
@keyframes pulse {
    0%   { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Embers floating upward and shrinking */
@keyframes emberFloat {
    0%   { opacity: 0;    transform: translateY(0) scale(1); }
    15%  { opacity: 0.25; }
    85%  { opacity: 0.12; }
    100% { opacity: 0;    transform: translateY(-120px) scale(0.3); }
}

/* Shooting star sliding across screen */
@keyframes shoot {
    0%   { opacity: 0; transform: translateX(0) rotate(-35deg); }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(300px) rotate(-35deg); }
}

/* Background gradient slowly shifting */
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typewriter cursor blinking */
@keyframes blink {
    50% { opacity: 0; }
}

/* Skill level bar filling on modal open */
@keyframes fillBar {
    to { width: var(--fill-width); }
}

/* Elements fading up into view */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Intro letter appearing from below */
@keyframes charAppear {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Intro line growing from center */
@keyframes lineGrow {
    to { width: 300px; }
}

/* Burst stars flying outward from center */
@keyframes burstOut {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0); }
}


/* ============================================================
   21. MEDIA QUERIES
   Responsive adjustments for smaller screens
   ============================================================ */

@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.9rem; }

    .hero-section { padding: 120px 0 60px; }
    .about-card   { padding: 2rem; }
    .project-card img { height: 160px; }

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

    .skill-modal-content { padding: 2rem; }
}

@media (max-width: 480px) {
    .cta-button { padding: 0.75rem 1.6rem; }
    .hero-name  { font-size: clamp(2.2rem, 9vw, 4rem); }
}


/* ── AI LAB PROJECT CARD ── */
.ai-lab-card {
    border-color: rgba(0,255,231,0.2) !important;
    opacity: 1 !important;
}
.ai-lab-card:hover {
    border-color: rgba(0,255,231,0.5) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,231,0.12) !important;
}
.ai-lab-card-banner {
    width: 100%;
    height: 180px;
    background: #020810;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-lab-card-banner canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.ai-lab-banner-text {
    font-family: 'Major Mono Display', monospace;
    font-size: 1rem;
    color: rgba(0,255,231,0.7);
    letter-spacing: 0.18em;
    position: relative;
    z-index: 2;
}

/* ── AI LAB FEATURED SECTION ── */
.ai-lab-featured {
    padding: 5rem 0;
    position: relative;
}
.alf-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid rgba(0,255,231,0.15);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.alf-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(0,255,231,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.alf-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(0,255,231,0.7);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}
.alf-title {
    font-family: 'Major Mono Display', monospace;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--text);
}
.alf-title span { color: #00ffe7; }
.alf-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.8rem;
    max-width: 380px;
}
.alf-experiments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.alf-exp {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.alf-exp.live     { color: #4ade80; }
.alf-exp.building { color: var(--text-muted); }
.alf-exp.planned  { color: #475569; }
.alf-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: #00ffe7;
    border: 1px solid rgba(0,255,231,0.4);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.alf-btn:hover {
    background: rgba(0,255,231,0.08);
    border-color: rgba(0,255,231,0.7);
    box-shadow: 0 0 24px rgba(0,255,231,0.15);
}
.alf-right {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #020810;
    border: 1px solid rgba(0,255,231,0.1);
}
.alf-right canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.alf-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(0,255,231,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.alf-tag {
    position: absolute;
    top: 12px; right: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: #00ffe7;
    border: 1px solid rgba(0,255,231,0.3);
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(0,255,231,0.06);
}
@media (max-width: 768px) {
    .alf-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .alf-right { height: 200px; }
    .alf-title { font-size: 2rem; }
}