:root {
    --bg-dark: #030508;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-cyan: #00f0ff;
    --accent-purple: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-cyan: rgba(0, 240, 255, 0.5);
    --glow-purple: rgba(189, 0, 255, 0.5);
    --font-main: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Neural Network Background Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.card {
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.music-btn svg {
    width: 16px;
    height: 16px;
}

.music-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px var(--glow-cyan);
    color: #fff;
    transform: scale(1.1);
}

.music-btn.active-music {
    background: rgba(189, 0, 255, 0.2);
    box-shadow: 0 0 15px var(--glow-purple);
    border-color: var(--accent-purple);
    color: #fff;
    animation: slow-pulse 3s infinite ease-in-out;
}

@keyframes slow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(189, 0, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
    letter-spacing: 2px;
    text-decoration: none;
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

/* Navbar Language Toggle */
.lang-toggle {
    display: flex;
    gap: 4px;
    margin-left: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.lang-btn.active {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    text-shadow: 0 0 8px var(--glow-purple);
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.2);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--glow-cyan);
}

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

/* Typography & General */
.section-padding {
    padding: 8rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.accent {
    color: var(--accent-purple);
    font-size: 1.2rem;
    opacity: 0.8;
}

.blink {
    animation: blink 1s step-end infinite;
    background: linear-gradient(90deg, #A7F3FF 0%, #7DD3FC 50%, #C4A1FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(125, 211, 252, 0.12);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.primary-btn {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px var(--glow-cyan);
    text-shadow: 0 0 5px var(--glow-cyan);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.subtitle {
    font-size: 1rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(90deg, #A7F3FF 0%, #7DD3FC 50%, #C4A1FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(125, 211, 252, 0.12);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Hologram Visual */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-ring {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.outer {
    width: 300px;
    height: 300px;
    animation: spin 10s linear infinite;
    border-left-color: var(--accent-purple);
    border-right-color: transparent;
}

.inner {
    width: 200px;
    height: 200px;
    animation: spin-reverse 8s linear infinite;
    border-bottom-color: var(--accent-cyan);
    border-top-color: transparent;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 50px 20px rgba(0, 240, 255, 0.6);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Reacting to music */
body.music-active .outer {
    animation: spin 4s linear infinite, glow-pulse 3s ease-in-out infinite alternate;
    border-left-color: var(--accent-cyan);
}

body.music-active .inner {
    animation: spin-reverse 2.5s linear infinite, glow-pulse 2s ease-in-out infinite alternate;
    border-bottom-color: var(--accent-purple);
}

body.music-active .core {
    animation: beat 0.5s ease-in-out infinite alternate;
    background: var(--accent-purple);
    box-shadow: 0 0 30px 20px rgba(189, 0, 255, 0.3), 0 0 50px 10px rgba(0, 240, 255, 0.2);
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 0 2px var(--accent-cyan));
    }

    100% {
        filter: drop-shadow(0 0 10px var(--accent-purple));
    }
}

@keyframes beat {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

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

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.skill-category .icon {
    font-size: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    margin-left: 60px;
    padding: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: -48px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.timeline-content .company {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--glow-cyan);
    color: #fff;
    border-color: var(--accent-cyan);
}

.prev-btn {
    left: -24px;
}

.next-btn {
    right: -24px;
}

/* Projects Section */
.project-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    width: 100%;
}

.project-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Mesh Gradient Placeholders for Projects */
.mesh-gradient {
    width: 100%;
    height: 100%;
    background-color: #0d1117;
    background-image: radial-gradient(at 40% 20%, hsla(280, 100%, 74%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0) 0px, transparent 50%);
    transition: transform 0.5s ease;
}

.project-image-custom {
    transition: transform 0.5s ease;
}

.project-card:hover .mesh-gradient,
.project-card:hover .mini-collage {
    transform: scale(1.05);
}

.project-card:hover .project-image-custom {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--accent-cyan);
}

.view-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    transition: text-shadow 0.3s ease;
}

.view-link:hover {
    text-shadow: 0 0 8px var(--glow-purple);
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper p {
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 550px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    text-align: left;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    transition: 0.3s ease all;
    background: var(--bg-dark);
    padding: 0 0.4rem;
    pointer-events: none;
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.contact-form button {
    align-self: center;
    margin-top: 1rem;
}

/* ===== CHANGELOG SECTION ===== */

/* Changelog overlay content */
.changelog-viewer-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.changelog-viewer-content .changelog-entries {
    overflow-y: auto;
    max-height: calc(85vh - 100px);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) transparent;
}

.changelog-viewer-content .changelog-entries::-webkit-scrollbar {
    width: 6px;
}

.changelog-viewer-content .changelog-entries::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

.changelog-close-btn {
    margin-left: auto;
}

/* Version tab inside changelog overlay */
.changelog-version-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08) 0%, rgba(189, 0, 255, 0.06) 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
}

.cl-tab-label {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.cl-tab-separator {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.cl-tab-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    font-style: italic;
}

/* Hero CTA changelog button */
.changelog-cta-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: var(--accent-purple) !important;
    border: 1px solid var(--accent-purple) !important;
    background: transparent !important;
}

.changelog-cta-btn:hover {
    background: rgba(189, 0, 255, 0.1) !important;
    box-shadow: 0 0 20px var(--glow-purple);
    text-shadow: 0 0 5px var(--glow-purple);
}

.changelog-cta-btn svg {
    stroke: var(--accent-purple);
    transition: all 0.3s ease;
}

.changelog-cta-btn:hover svg {
    filter: drop-shadow(0 0 4px var(--glow-purple));
}

.changelog-section {
    padding-bottom: 4rem;
}

.changelog-terminal {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Mac-style title bar */
.changelog-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1.4rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-dot.red {
    background: #ff5f57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.6);
}

.terminal-dot.yellow {
    background: #febc2e;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.6);
}

.terminal-dot.green {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: 'Space Grotesk', monospace;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Entries container */
.changelog-entries {
    padding: 0.5rem 0;
    font-family: 'Space Grotesk', monospace;
}

/* Individual version entry */
.cl-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cl-entry:last-child {
    border-bottom: none;
}

/* Clickable header row */
.cl-header {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.6rem;
    font-family: 'Space Grotesk', monospace;
    transition: background 0.2s ease;
}

.cl-header:hover {
    background: rgba(0, 240, 255, 0.04);
}

.cl-version {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--glow-cyan);
    min-width: 44px;
}

.cl-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.cl-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.cl-badge.latest {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.cl-badge.init {
    background: rgba(189, 0, 255, 0.12);
    border: 1px solid rgba(189, 0, 255, 0.4);
    color: var(--accent-purple);
}

.cl-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-left: auto;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.cl-header:hover .cl-chevron {
    color: var(--accent-cyan);
}

/* Rotate chevron when open */
.cl-body.open~button .cl-chevron,
.cl-header.is-open .cl-chevron {
    transform: rotate(180deg);
}

/* Collapsible body */
.cl-body {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.6rem 1.4rem 2.8rem;
    animation: cl-expand 0.25s ease;
}

.cl-body.open {
    display: flex;
}

@keyframes cl-expand {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

/* Group: tag + list */
.cl-group {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.cl-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 2px;
}

.cl-tag.added {
    background: rgba(40, 200, 64, 0.12);
    border: 1px solid rgba(40, 200, 64, 0.3);
    color: #28c840;
}

.cl-tag.changed {
    background: rgba(254, 188, 46, 0.12);
    border: 1px solid rgba(254, 188, 46, 0.3);
    color: #febc2e;
}

.cl-tag.fixed {
    background: rgba(0, 240, 255, 0.10);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-cyan);
}

.cl-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cl-group ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
}

.cl-group ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}

.cl-group ul li code {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Footer prompt line */
.changelog-footer {
    padding: 0.9rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.cl-prompt {
    color: var(--accent-cyan);
    font-weight: 700;
}

.cl-prompt-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

/* Footer */
.glass-footer {

    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Triggered via JS Observer */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Template Viewer Styles */
.template-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s;
    visibility: visible;
}

.template-viewer-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.viewer-content {
    width: 90vw;
    height: 90vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.template-viewer-overlay.hidden .viewer-content {
    transform: scale(0.95);
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.viewer-header h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 0;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    color: var(--accent-purple);
    background: rgba(189, 0, 255, 0.1);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Template Gallery Grid */
.template-gallery {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) transparent;
}

.template-gallery::-webkit-scrollbar {
    width: 8px;
}

.template-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

.template-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.template-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.template-card-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.template-card-item .item-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-card-item h4 {
    color: var(--text-main);
    margin: 0;
    font-size: 1.1rem;
}

.template-card-item .tag {
    font-size: 0.7rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px 12px 0 0;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    gap: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active {
    color: var(--accent-cyan);
}

.mobile-bottom-nav .nav-item:hover svg,
.mobile-bottom-nav .nav-item:active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px var(--glow-cyan));
}

.mobile-bottom-nav .nav-item.active {
    color: var(--accent-purple);
}

.mobile-bottom-nav .nav-item.active svg {
    filter: drop-shadow(0 0 5px var(--glow-purple));
}

/* Responsive constraints */
@media (max-width: 900px) {
    body {
        padding-bottom: 70px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-visual {
        margin-top: 3rem;
        width: 300px;
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .project-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .nav-links {
        display: none;
        /* simplified for brevity */
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .project-card {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }

    .project-grid {
        padding: 1.5rem 10px;
    }
}