:root {
    /* Color Palette - Cyber Editorial */
    --bg-color: #121212;
    /* Deep Charcoal */
    --text-color: #fdfcf0;
    /* Warm Off-white */
    --text-muted: #a3a3a3;
    --accent-color: #4FD1C5;
    /* Teal from Skills Heading */
    --accent-glow: rgba(79, 209, 197, 0.4);

    --glass-bg: rgba(24, 24, 24, 0.82);
    --glass-border: rgba(253, 252, 240, 0.1);
    --glass-blur: blur(14px);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --slide-padding: 8vw;

    --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    /* Slate-800 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
    /* Slate-700 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling, we handle it manully */
    height: 100vh;
    width: 100vw;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#app {
    height: 100%;
    width: 100%;
    position: relative;
}

#three-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #1a1a1a, #121212);
}

.slides-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--slide-padding);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Typography Defaults */
h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 60ch;
    font-weight: 300;
}

/* Navigation UI */
.navigation {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    mix-blend-mode: difference;
    /* Ensures visibility on both bg colors */
    color: #fff;
    /* Base for difference mode */
}

button {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 44px;
    /* A11y: Touch target */
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: var(--glass-blur);
}

button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    /* High contrast on cobalt */
    transform: scale(1.05);
}

.progress-indicator {
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    font-weight: 600;
    color: currentColor;
}

/* Inverted Theme Classes */
body.dark-mode {
    --bg-color: #000000;
    --text-color: #ffffff;
}

/* Slide Specific Styles */

/* Cover */
/* Cover */
/* --- INTRO SLIDE COMPOSITION --- */
#slide-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Introduction Header - Minimal & Appealing */
/* Introduction Header - Minimal & Appealing */
#slide-intro h2,
#slide-certs h2,
#slide-projects h2,
#slide-events h2,
#slide-hobbies h2,
#slide-contact h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    /* Light weight */
    letter-spacing: 0.15em;
    /* airy spacing */
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Slightly restrained max size */
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

#slide-intro h2::after,
#slide-certs h2::after,
#slide-projects h2::after,
#slide-events h2::after,
#slide-hobbies h2::after,
#slide-contact h2::after {
    /* Optional: Minimal decorative line */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

/* Year Badge ('26) */
.year-badge {
    position: absolute;
    top: 25%;
    right: 15%;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 4rem);
    color: #4FD1C5;
    /* Teal accent from screenshot */
    z-index: 10;
    transform: rotate(15deg);
}

/* Composition Container */
.composition-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Typography (PORT - FOLIO) */
.bg-typography {
    position: absolute;
    width: 100%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    padding-left: 12%;
    padding-right: 9%;
}

.bg-text-left,
.bg-text-right {
    font-family: var(--font-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.8;
    color: var(--text-color);
}

.bg-text-left {
    margin-right: auto;
}

.bg-text-right {
    margin-left: auto;
}

/* Centered Character */
.character-wrapper {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    height: 110%;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.character-sketch {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

body.dark-mode .character-sketch {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    /* Stronger glow in dark */
}

.character-sketch:hover {
    transform: scale(1.02);
}


.author-name {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Reduced size */
    color: #4FD1C5;
    /* Teal Accent */
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-weight: 700;
}

/* Typing Animation Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    /* Or wider block if preferred */
    height: 1em;
    background-color: var(--accent-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Role Text - Re-added as explicitly horizontal */
/* Role Text - Re-added as explicitly horizontal */
.role-text {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    opacity: 1;
    font-weight: 700;
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.role-text span {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
    animation: blurInUp 0.8s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes blurInUp {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.cover-details {
    z-index: 3;
    position: relative;
    margin-top: 22rem;
    /* Moved lower as requested */
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .bg-typography {
        flex-direction: row;
        /* Keep row but tighter */
        padding: 0;
        justify-content: center;
        gap: 1rem;
    }

    .bg-text-left,
    .bg-text-right {
        font-size: 18vw;
        /* Maximize on mobile */
    }

    .character-sketch {
        height: 80%;
    }

    .role-text {
        font-size: 0.75rem;
        padding: 0 1rem;
        white-space: normal;
        /* Allow wrapping on mobile */
        line-height: 1.4;
    }



    .year-badge {
        top: 10%;
        right: 5%;
        font-size: 2.5rem;
    }
}

/* Index */
.index-list {
    list-style: none;
}

.index-list li {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
    line-height: 1.2;
}

.index-list li:hover {
    opacity: 1;
    transform: translateX(20px);
}

/* Slide 3: Intro */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
    max-width: 1200px;
    width: 100%;
}

.intro-text-col {
    flex: 1;
}

#slide-intro .intro-text {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 100%;
}

.intro-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SKILLS GRID */
.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
    /* Center items */
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
    /* Consistent width */
    text-align: center;
}

.skill-item img,
.skill-item i {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.skill-item:hover img,
.skill-item:hover i {
    transform: scale(1.1);
}

.skill-item span {
    font-family: var(--font-main);
    font-size: 0.85rem;
    opacity: 0.9;
    color: #ffffff;
    /* User requested white */
}

/* Light Theme overrides */
[data-theme="light"] .skill-item span {
    color: #ffffff;
    /* Force white even in light theme */
}

/* Magic UI Highlighter Support */
.magic-highlight {
    background: linear-gradient(to right, var(--highlight-color, #87CEFA) 50%, transparent 50%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0;
    display: inline;
    transition: background-position 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
    padding: 0 2px;
}

.magic-highlight.visible {
    background-position: 0 0 !important;
}

.magic-underline {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(to right, var(--underline-color, #FF9800) 0%, var(--underline-color, #FF9800) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 2px;
}

.magic-underline.visible {
    background-size: 100% 2px;
}

.image-swapper {
    position: relative;
    width: 320px;
    height: 320px;
    /* Square container */
    cursor: pointer;
}

.p-img {
    position: absolute;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Initial State: Main on top-left, Secondary on bottom-right smaller */
.main-img {
    z-index: 2;
    top: 0;
    left: 0;
    transform: scale(1);
    filter: brightness(1);
}

.sec-img {
    z-index: 1;
    bottom: 0;
    right: 0;
    transform: scale(0.85);
    /* Resize a bit */
    filter: brightness(0.6) grayscale(100%);
    /* Dimmed */
    opacity: 0.8;
}

/* Hover effect to suggest interactivity */
.image-swapper:hover .sec-img {
    filter: brightness(0.8) grayscale(50%);
    transform: scale(0.9) translate(-10px, -10px);
    /* Peek out */
}

/* Swapped State (toggled via JS) */
.image-swapper.swapped .main-img {
    z-index: 1;
    transform: translate(40px, 40px) scale(0.85);
    /* Move to secondary position */
    filter: brightness(0.6) grayscale(100%);
    opacity: 0.8;
}

.image-swapper.swapped .sec-img {
    z-index: 2;
    transform: translate(-40px, -40px) scale(1);
    /* Move to main position */
    filter: brightness(1) grayscale(0%);
    opacity: 1;
    bottom: auto;
    right: auto;
    top: 40px;
    left: 40px;
    /* Adjust coordinate reference via transform mostly, but here keeping simple */
}

/* Better Swap Logic: Just toggle classes? No, let's use transform on the container or images based on state */
/* Let's refine the swap logic to be cleaner.
   We will move them to specific coordinates.
*/

.p-img.main-img {
    top: 0;
    left: 0;
}

.p-img.sec-img {
    top: 40px;
    left: 40px;
    /* Offset position */
}

/* Reset for clean transition logic */
.image-swapper .main-img {
    z-index: 10;
    transform: translate(0, 0) scale(1);
    filter: brightness(1);
}

.image-swapper .sec-img {
    z-index: 5;
    transform: translate(40px, 40px) scale(0.8);
    filter: brightness(0.5);
}

/* When swapped */
.image-swapper.swapped .main-img {
    z-index: 5;
    transform: translate(40px, 40px) scale(0.8);
    filter: brightness(0.5);
}

.image-swapper.swapped .sec-img {
    z-index: 10;
    transform: translate(0, 0) scale(1);
    filter: brightness(1);
}

@media (max-width: 900px) {
    .intro-content {
        flex-direction: column-reverse;
        /* Text below images on mobile? Or images below? */
        gap: 2rem;
        text-align: center;
    }

    .image-swapper {
        width: 250px;
        height: 250px;
    }

    .p-img {
        width: 200px;
        height: 200px;
    }
}

/* Slide 4: Resume */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.resume-grid h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resume-list,
.skill-list {
    list-style: none;
}

.resume-list li,
.skill-list li {
    margin-bottom: 2rem;
}

.resume-list strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.resume-list .date {
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.skill-list li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 2px solid currentColor;
    padding-left: 1rem;
}

/* Slide 5: Architecture */
.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.node-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.node {
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    z-index: 1;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.node:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

.connector-line {
    height: 2px;
    width: 3rem;
    background: currentColor;
}

.vertical {
    height: 3rem;
}

.connector-vertical {
    width: 2px;
    height: 100%;
    background: currentColor;
    margin-left: 50%;
    /* Center it roughly? No, need precision layout. */
    /* This vertical connector logic is a bit weak with flexbox, but sufficient for minimalist vibe */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .node-row {
        flex-direction: column;
    }

    .connector-line {
        width: 2px;
        height: 2rem;
    }
}

/* Resume Header & Image */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.profile-img-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img-placeholder::after {
    content: 'IMG';
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.5;
}

/* Adjust grid gap since header takes space */

/* Slide: Certifications (Interactive Folder Grid) */
.certs-container,
.hobbies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Changed from center */
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
}

#slide-events .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.break-line {
    flex-basis: 100%;
    height: 0;
}

#three-hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.composition-container {
    z-index: 2;
    position: relative;
}

.cover-details {
    z-index: 3;
    position: relative;
}

.folder-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

/* --- Closed State (Default) --- */
.folder-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-align: center;
}

.folder-trigger:hover {
    transform: scale(1.05);
}

.folder-icon {
    width: 80px;
    height: 80px;
    color: currentColor;
    margin-bottom: 0.5rem;
}

.folder-icon svg {
    width: 100%;
    height: 100%;
}

.folder-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* --- Open State (Modal Behavior) --- */
.folder-content {
    display: none;
    position: fixed !important;
    /* Force viewport centering */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 600px;
    max-width: 90vw;
    height: 500px;
    max-height: 85vh;
    border: 2px solid currentColor;
    border-radius: 0 8px 8px 8px;
    padding: 2rem;
    flex-direction: column;
    background: var(--bg-color);
    z-index: 99999 !important;
    /* Ensure it's on top of everything */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* When Wrapper has 'open' class */
.folder-wrapper.open .folder-trigger {
    opacity: 0;
    pointer-events: none;
    /* Hidden to avoid overlap with modal */
}

.folder-wrapper.open .folder-content {
    display: flex;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ensure the open wrapper is on top */
.folder-wrapper.open {
    z-index: 10000;
}

/* The Tab */
.folder-content::before {
    content: '';
    position: absolute;
    top: -42px;
    left: -2px;
    width: 220px;
    /* Increased from 150px to fit Wells Fargo */
    height: 40px;
    background: var(--bg-color);
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

.folder-tab {
    position: absolute;
    top: -36px;
    left: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    padding: 0 1rem;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Fix border overlap for Tab? */
/* A common trick is using background color to cover the bottom border of the tab, but we have transparency maybe?
   Let's just position the title. The pseudo-element ::before makes the shape. */

.folder-inner-body {
    flex: 1;
    overflow-y: auto;
    /* Scroll if too many items */
    padding-top: 1rem;
    position: relative;
}

.close-folder-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 20;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.close-folder-btn::before {
    content: "\00D7";
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.close-folder-btn:hover {
    transform: rotate(90deg) scale(1.1);
    opacity: 1;
    color: currentColor;
    background: rgba(128, 128, 128, 0.1);
}

.folder-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.folder-list li a {
    text-decoration: none;
    font-size: 1.1rem;
    color: currentColor;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.folder-list li a:hover {
    text-decoration: underline;
    transform: translateX(10px);
}

.folder-list li a::before {
    content: '📄';
    /* Document icon */
    font-size: 1rem;
    opacity: 0.7;
}

/* Scrollbar styling for folder */
.folder-body::-webkit-scrollbar {
    width: 6px;
}

.folder-body::-webkit-scrollbar-thumb {
    background-color: currentColor;
    border-radius: 3px;
}

.folder-body::-webkit-scrollbar-track {
    background: transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Retro Cassette Music Player --- */
.cassette-player-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    height: 350px;
}

/* -- Cassette (Left) -- */
.cassette {
    flex: 0 0 50%;
    background: #333;
    /* Charcoal-ish */
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 4px solid #444;
}

.cassette::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #555;
    border-radius: 8px;
    pointer-events: none;
}

.cassette-label-area {
    background: #e6b800;
    /* Amber */
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tape-window {
    width: 180px;
    height: 60px;
    background: #111;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 10px;
    position: relative;
    border: 2px solid #666;
}

.reel {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #fff 20%, #888 21%, #111 22%, #eee 60%, #111 61%);
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
}

.reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 4px;
    background: #000;
    transform: translate(-50%, -50%);
}

.reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 10px;
    background: #000;
    transform: translate(-50%, -50%);
}

.tape-bridge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.cassette-title {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #111;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    transform: rotate(-2deg);
    margin-top: 5px;
}

.cassette-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    z-index: 10;
}

.control-btn {
    background: #222;
    color: #0f0;
    /* Neon Green */
    border: 2px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.control-btn:hover {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

/* Animation State */
.playing .reel {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -- Lyrics Panel (Right) -- */
.lyrics-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphism start */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    color: #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    padding-right: 5px;
    /* Space for scrollbar */
    scroll-behavior: smooth;
}

.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lyric-line {
    opacity: 0.5;
    transition: all 0.3s;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 4px;
}

.lyric-line.active {
    opacity: 1;
    color: var(--accent-color);
    font-weight: bold;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* --- Resume Redesign (3-Column Grid) --- */
.resume-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.3fr;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    text-align: left;
    height: 90%;
    /* Occupy fuller height */
    overflow-y: auto;
    padding-right: 10px;
}

.resume-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    /* Ensure full height for justification */
}

/* Push the second section (and subsequent) to the bottom */
.resume-column .resume-section:first-child {
    flex-grow: 1;
}

.resume-section h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Items */
.resume-item {
    margin-bottom: 1.5rem;
}

.resume-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.resume-degree,
.resume-header {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.resume-meta,
.resume-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #444;
    width: 100%;
}

.resume-school,
.resume-company {
    font-weight: 500;
    font-style: italic;
}

.resume-date {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #888;
}

.resume-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    margin-top: 0.5rem;
}

/* Languages */
.language-list {
    list-style: none;
    padding: 0;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 0.2rem;
    font-size: 0.9rem;
}

.lang-level {
    color: #666;
    font-size: 0.8rem;
}

/* Software Icons */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.software-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.software-icon:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    color: #000;
}

.software-icon svg {
    width: 28px;
    height: 28px;
}

/* Skills Layout */
.skills-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.skill-category {
    flex: 1;
    min-width: 100px;
}

.skill-category h4 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

.skill-category ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.skill-category li {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #555;
}

/* Hobbies */
.hobbies-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #444;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.contact-grid a {
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-grid a:hover {
    text-decoration: underline;
    color: #000;
}

/* Scrollbar for resume grid */
.resume-grid::-webkit-scrollbar {
    width: 6px;
}

.resume-grid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* --- Interactive Intro Images --- */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
    max-width: 1200px;
    width: 100%;
}

.intro-text-col {
    flex: 1;
}

#slide-intro .intro-text {
    /* Existing font-size is good, just ensure width */
    max-width: 100%;
    font-family: "Crimson Text", serif;
    font-size: 1.25rem;
    /* Slightly larger for the serif font */
    line-height: 1.6;
}

/* Optional: Use Playwrite for signature or emphasis if needed later */
.handwritten {
    font-family: "Playwrite US Modern", cursive;
}

.intro-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* From Uiverse.io by Ashon-G */
/* From Uiverse.io by Ashon-G */
.macbook {
    width: 150px;
    height: 96px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -85px 0 0 -78px;
    perspective: 500px;
    transform: scale(2);
}

@media (max-width: 768px) {
    .macbook {
        transform: scale(1.4);
    }
}

.macbook {
    cursor: grab;
}

.macbook:active {
    cursor: grabbing;
}

.inner.manual {
    animation: none;
}

.shadow {
    position: absolute;
    width: 60px;
    height: 0px;
    left: 40px;
    top: 160px;
    transform: rotateX(80deg) rotateY(0deg) rotateZ(0deg);
    box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.3);
    animation: shadow infinite 7s ease;
}

.inner {
    z-index: 20;
    position: absolute;
    width: 150px;
    height: 96px;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(0deg) rotateZ(0deg);
    animation: rotate infinite 7s ease;
}

.screen {
    width: 150px;
    height: 96px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 7px;
    background: #1a1a1a;
    transform-style: preserve-3d;
    transform-origin: 50% 93px;
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    animation: lid-screen infinite 7s ease;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 100%);
    background-position: left bottom;
    background-size: 300px 300px;
    box-shadow: inset 0 3px 7px rgba(255, 255, 255, 0.5);
}

.screen .logo {
    position: absolute;
    width: 20px;
    height: 24px;
    left: 50%;
    top: 50%;
    margin: -12px 0 0 -10px;
    transform: rotateY(180deg) translateZ(0.1px);
}

.screen .face-one {
    width: 150px;
    height: 96px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 7px;
    background: #222;
    transform: translateZ(2px);
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%);
}

.screen .face-one .camera {
    width: 3px;
    height: 3px;
    border-radius: 100%;
    background: #444;
    position: absolute;
    left: 50%;
    top: 4px;
    margin-left: -1.5px;
}

.screen .face-one .display {
    width: 130px;
    height: 74px;
    margin: 10px;
    background-color: #000;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('images/ROG X EVANGELION-02.jpg');
    background-position: center;
    border-radius: 1px;
    position: relative;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 1);
}

.screen .face-one .display .shade {
    position: absolute;
    left: 0;
    top: 0;
    width: 130px;
    height: 74px;
    background: linear-gradient(-135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 47%, rgba(255, 255, 255, 0) 48%);
    animation: screen-shade infinite 7s ease;
    background-size: 300px 200px;
    background-position: 0px 0px;
}

.screen .face-one span {
    position: absolute;
    top: 85px;
    left: 57px;
    font-size: 6px;
    color: #ccc
}

.macbody {
    width: 150px;
    height: 96px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 7px;
    background: #111;
    transform-style: preserve-3d;
    transform-origin: 50% bottom;
    transform: rotateX(-90deg);
    animation: lid-macbody infinite 7s ease;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%);
}

.macbody .face-one {
    width: 150px;
    height: 96px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 7px;
    transform-style: preserve-3d;
    background: #1a1a1a;
    animation: lid-keyboard-area infinite 7s ease;
    transform: translateZ(-2px);
    background-image: linear-gradient(30deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%);
}

.macbody .touchpad {
    width: 40px;
    height: 31px;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 4px;
    margin: -44px 0 0 -18px;
    background: #222;
    background-image: linear-gradient(30deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: inset 0 0 3px #888;
}

.macbody .keyboard {
    width: 130px;
    height: 45px;
    position: absolute;
    left: 7px;
    top: 41px;
    border-radius: 4px;
    transform-style: preserve-3d;
    background: #222;
    background-image: linear-gradient(30deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: inset 0 0 3px #777;
    padding: 0 0 0 2px;
}

.keyboard .key {
    width: 6px;
    height: 6px;
    background: #111;
    float: left;
    margin: 1px;
    transform: translateZ(-2px);
    border-radius: 2px;
    box-shadow: 0 -2px 0 #222;
    animation: keys infinite 7s ease;
}

.key.space {
    width: 45px;
}

.key.f {
    height: 3px;
}

.macbody .pad {
    width: 5px;
    height: 5px;
    background: #000;
    border-radius: 100%;
    position: absolute;
}

.pad.one {
    left: 20px;
    top: 20px;
}

.pad.two {
    right: 20px;
    top: 20px;
}

.pad.three {
    right: 20px;
    bottom: 20px;
}

.pad.four {
    left: 20px;
    bottom: 20px;
}

@keyframes rotate {
    0% {
        transform: rotateX(-20deg) rotateY(0deg) rotateZ(0deg);
    }

    5% {
        transform: rotateX(-20deg) rotateY(-20deg) rotateZ(0deg);
    }

    20% {
        transform: rotateX(30deg) rotateY(200deg) rotateZ(0deg);
    }

    25% {
        transform: rotateX(-60deg) rotateY(150deg) rotateZ(0deg);
    }

    60% {
        transform: rotateX(-20deg) rotateY(130deg) rotateZ(0deg);
    }

    65% {
        transform: rotateX(-20deg) rotateY(120deg) rotateZ(0deg);
    }

    80% {
        transform: rotateX(-20deg) rotateY(375deg) rotateZ(0deg);
    }

    85% {
        transform: rotateX(-20deg) rotateY(357deg) rotateZ(0deg);
    }

    87% {
        transform: rotateX(-20deg) rotateY(360deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(-20deg) rotateY(360deg) rotateZ(0deg);
    }
}

@keyframes lid-screen {
    0% {
        transform: rotateX(0deg);
        background-position: left bottom;
    }

    5% {
        transform: rotateX(50deg);
        background-position: left bottom;
    }

    20% {
        transform: rotateX(-90deg);
        background-position: -150px top;
    }

    25% {
        transform: rotateX(15deg);
        background-position: left bottom;
    }

    30% {
        transform: rotateX(-5deg);
        background-position: right top;
    }

    38% {
        transform: rotateX(5deg);
        background-position: right top;
    }

    48% {
        transform: rotateX(0deg);
        background-position: right top;
    }

    90% {
        transform: rotateX(0deg);
        background-position: right top;
    }

    100% {
        transform: rotateX(0deg);
        background-position: right center;
    }
}

@keyframes lid-macbody {
    0% {
        transform: rotateX(-90deg);
    }

    50% {
        transform: rotateX(-90deg);
    }

    100% {
        transform: rotateX(-90deg);
    }
}

@keyframes lid-keyboard-area {
    0% {
        background-color: #1a1a1a;
    }

    50% {
        background-color: #1a1a1a;
    }

    100% {
        background-color: #1a1a1a;
    }
}

@keyframes screen-shade {
    0% {
        background-position: -20px 0px;
    }

    5% {
        background-position: -40px 0px;
    }

    20% {
        background-position: 200px 0;
    }

    50% {
        background-position: -200px 0;
    }

    80% {
        background-position: 0px 0px;
    }

    85% {
        background-position: -30px 0;
    }

    90% {
        background-position: -20px 0;
    }

    100% {
        background-position: -20px 0px;
    }
}

@keyframes keys {
    0% {
        box-shadow: 0 -2px 0 #222;
    }

    5% {
        box-shadow: 1 -1px 0 #222;
    }

    20% {
        box-shadow: -1px 1px 0 #222;
    }

    25% {
        box-shadow: -1px 1px 0 #222;
    }

    60% {
        box-shadow: -1px 1px 0 #222;
    }

    80% {
        box-shadow: 0 -2px 0 #222;
    }

    85% {
        box-shadow: 0 -2px 0 #222;
    }

    87% {
        box-shadow: 0 -2px 0 #222;
    }

    100% {
        box-shadow: 0 -2px 0 #222;
    }
}

@keyframes shadow {
    0% {
        transform: rotateX(80deg) rotateY(0deg) rotateZ(0deg);
        box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.3);
    }

    5% {
        transform: rotateX(80deg) rotateY(10deg) rotateZ(0deg);
        box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.3);
    }

    20% {
        transform: rotateX(30deg) rotateY(-20deg) rotateZ(-20deg);
        box-shadow: 0 0 50px 30px rgba(0, 0, 0, 0.3);
    }

    25% {
        transform: rotateX(80deg) rotateY(-20deg) rotateZ(50deg);
        box-shadow: 0 0 35px 15px rgba(0, 0, 0, 0.1);
    }

    60% {
        transform: rotateX(80deg) rotateY(0deg) rotateZ(-50deg) translateX(30px);
        box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 900px) {
    .intro-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
}

/* --- Projects Slide Styles --- */
/* --- Projects Slide Styles --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 2rem;
    /* Spacing for scroll */
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 0.5rem;
    /* Sharper industrial corners */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    height: 100%;
    min-height: 250px;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: currentColor;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-links a:hover {
    color: #666;
    /* Or accent color */
    transform: scale(1.1);
}

.project-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.project-tech-stack span {
    background: rgba(128, 128, 128, 0.1);
    /* Subtle background */
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Education Logos */
.school-logo-container {
    margin-top: 8px;
    background: #fff;
    display: inline-block;
    padding: 4px;
    border-radius: 4px;
}

.edu-logo {
    height: 40px;
    /* Adjust size as needed */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #666;
    /* Or your accent color */
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Technical Skills Section */
.tech-skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-skill-item {
    font-size: 0.95rem;
    /* Slightly larger for readability */
    line-height: 1.5;
}

.tech-category {
    font-weight: 600;
    margin-right: 0.4rem;
}

.tech-items {
    opacity: 0.9;
}

/* Software Images */
.soft-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.software-icon:hover .soft-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Align "Languages", "Softwares", "Contact" by fixing height of top sections */
.resume-column .resume-section:first-child {
    min-height: 380px;
    /* Adjust this value based on content length of "Technical Skills" or "Experience" */
    display: flex;
    flex-direction: column;
}


.theme-icons {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Bat Animation Container */
.bat-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

/* Calendar UI Styles */
.calendar-container {
    width: 100%;
    max-width: 900px;
    /* Wider container for side-by-side layout */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle bg */
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

body.dark-mode .calendar-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.calendar-header h3 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.calendar-layout {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    /* Responsive wrap */
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.day-name {
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: default;
}

body.dark-mode .day {
    border-color: rgba(255, 255, 255, 0.15);
}

.day.padding {
    border: none;
    background: transparent;
}

/* Highlighted Event Dates */
.day.event-date {
    background-color: #000;
    color: #fff;
    border-color: #000;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

body.dark-mode .day.event-date {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.day.event-date:hover {
    transform: scale(1.1);
}

/* Events List Side Panel */
.events-list {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.event-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-left: 3px solid currentColor;
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .event-item {
    background: rgba(255, 255, 255, 0.05);
}

.event-date-badge {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0.8;
}

.event-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.theme-toggle-label .icon-sun,
.theme-toggle-label .icon-moon {
    width: 18px;
    height: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.theme-toggle-label svg {
    width: 100%;
    height: 100%;
}

/* Calendar Navigation */
.calendar-container {
    position: relative;
    /* Context for absolute nav */
}

.calendar-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: currentColor;
}

body.dark-mode .cal-nav-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

.cal-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

body.dark-mode .cal-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.cal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.cal-nav-btn svg {
    width: 16px;
    height: 16px;
}

/* Calendar Views */
.calendar-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.calendar-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Dark Mode State */
body.dark-mode .theme-toggle-label {
    background-color: #fff;
    border: 1px solid #333;
}

body.dark-mode .theme-toggle-label .icon-sun,
body.dark-mode .theme-toggle-label .icon-moon {
    color: #333;
}

body.dark-mode .toggle-ball {
    background-color: #000;
    transform: translateX(30px);
}

/* Ensure visibility logic matches existing theme */
body.dark-mode .theme-toggle-wrapper {
    mix-blend-mode: normal;
}

/* Gallery Styles */
.folder-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.gallery-link {
    display: block;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 0.2s ease;
}

.gallery-link:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Direct Link Override */
a.folder-wrapper.direct-link {
    text-decoration: none;
    color: inherit;
    display: block;
    /* maintain layout */
}

a.folder-wrapper.direct-link .folder-trigger {
    /* Ensure it looks interactive */
    cursor: pointer;
}

.gallery-photo {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    /* Ensure whole image is seen */
}

.photo-caption {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    text-align: center;
}

/* Music Art Right Side */
.music-art-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-drawing {
    max-height: 250px;
    width: auto;
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}

.music-drawing:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Adjust container to handle both items nicely */
.cassette-player-container {
    gap: 4rem;
}

/* --- Mobile Responsiveness --- */
/* --- Mobile Responsiveness --- */
/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Critical Global Reset for Mobile */
    html,
    body,
    #app,
    main {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 1. Slide Layout - Force Stretch */
    .slide {
        height: auto !important;
        min-height: 100vh;
        width: 100% !important;
        padding: 60px 15px 30px 15px !important;
        /* Reduced padding to minimize "free areas" */
        display: flex;
        flex-direction: column;
        align-items: center !important;
        /* Force center alignment global on mobile */
        justify-content: flex-start !important;
        /* Start from top for scrollable content */
        overflow-y: visible;
        box-sizing: border-box;
    }

    .content {
        align-items: center !important;
        /* Force center */
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .slides-container {
        overflow-y: auto;
        height: 100vh;
        width: 100% !important;
    }

    /* 2. Intro Section - Force Centered */
    .intro-content {
        display: flex;
        flex-direction: column;
        text-align: center !important;
        align-items: center !important;
        gap: 1.5rem;
        width: 100% !important;
        margin-top: 0.5rem;
    }

    .intro-text-col {
        width: 100%;
    }

    /* Fix Image Overlap: Reset absolute positioning */
    .image-swapper {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        position: relative !important;
        margin-bottom: 2rem !important;
    }

    .p-img.main-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 250px !important;
        max-width: 80% !important;
        height: auto !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .p-img.sec-img {
        display: none !important;
    }

    .intro-image-col {
        order: -1;
        width: 100% !important;
        display: flex;
        justify-content: center !important;
        margin-bottom: 2rem;
    }

    /* Let's actually center the image but keep text left, it usually looks better. If user hates it we move left. */
    .intro-image-col {
        justify-content: center !important;
    }

    .p-img {
        max-width: 250px;
        height: auto;
        width: 100%;
        box-shadow: none !important;
        /* Remove heavy shadow on mobile if it causes overflow */
    }

    /* 3. Grids - Force Full Width */
    .resume-grid,
    .projects-grid,
    .hobbies-list-grid,
    .card-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
        /* Force items to fill width */
    }

    /* Reset spacing for stacked cards */
    .magic-bento-card {
        min-height: auto !important;
        height: auto !important;
        /* Allow content to decide height */
    }

    /* 4. Navigation */
    .navigation {
        bottom: 20px;
        right: 20px;
        flex-direction: row;
        z-index: 999;
    }

    /* 5. Typography */
    .content h1 {
        font-size: 3rem !important;
        /* Increased from 2rem */
        text-align: left !important;
        width: 100%;
        margin: 0 0 1rem 0 !important;
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem !important;
        /* Increased from 1.5rem */
        text-align: left !important;
        width: 100%;
        margin: 0 0 1.5rem 0 !important;
    }

    p {
        font-size: 0.95rem !important;
        text-align: left !important;
        width: 100% !important;
        max-width: none !important;
        line-height: 1.6;
    }

    .subtitle {
        text-align: left !important;
        padding: 0 !important;
        margin: 0 0 1rem 0 !important;
    }

    /* 6. Calendar/Folders */
    .folder-content {
        width: 90vw !important;
        max-width: 90vw !important;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        padding: 15px;
        position: fixed;
        top: 50%;
        z-index: 1002;
    }

    /* --- Page 1: Cover Mobile Fixes --- */
    #slide-cover {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding-top: 0 !important;
    }

    #slide-cover .content {
        align-items: center !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    #slide-cover h1 {
        font-size: 15vw !important;
        /* Responsive scaling */
        margin-bottom: 0.5rem;
    }

    .cover-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 2rem;
        width: 100%;
        justify-content: center !important;
        height: auto !important;
    }

    .cover-year {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 0.9rem !important;
        width: 90% !important;
    }

    .author-name {
        text-align: center !important;
        margin-top: 1rem !important;
    }

    /* --- Page 2: Index Mobile Fixes --- */
    .index-list li {
        font-size: 2.5rem !important;
        /* Manageable size */
        margin-bottom: 1rem;
        text-align: left;
        /* Keep index aligned left for structure? or center? User said "Fix". Standard is usually left. */
    }

    /* --- Page 5: Certifications Mobile Fixes --- */
    .certs-container {
        justify-content: center !important;
        /* Center folders grid */
        gap: 1.5rem !important;
    }

    .folder-wrapper {
        width: 40% !important;
        /* 2 per row approx */
        min-width: 100px;
    }

    /* --- Page 7: Events Mobile Fixes --- */
    .calendar-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .calendar-grid {
        min-width: unset !important;
        width: 100% !important;
    }


    .events-list {
        min-width: unset !important;
        width: 100% !important;
    }
}

/* Ensure no fixed width interference */
.project-card,
.p-img {
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Text Animations (BlurInUp) --- */
.char-wrapper {
    display: inline-block;
    opacity: 0;
    /* Start hidden */
    white-space: pre;
    /* Preserve spaces */
    will-change: transform, opacity, filter;
}

.animate-blur-in {
    animation: blurInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes blurInUp {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}



/* Ensure Events layout sits on top */
.events-layout {
    position: relative;
    z-index: 1;
    width: 100%;
}

.events-header,
.calendar-wrapper {
    position: relative;
    z-index: 2;

}

/* --- Animated Theme Toggler --- */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex !important;
    /* Force visibility */
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    /* Max Z-Index */
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
    opacity: 1 !important;
    visibility: visible !important;
}

.theme-toggle-btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.6);
}

.theme-icons {
    position: relative;
    width: 24px;
    height: 24px;
}

.volume {
    display: flex;
    align-items: center;
    width: 100px;
    margin: 0 0 0 1rem;
}

.volume input[type=range] {
    display: none;
}

.volume .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: var(--text-color);
}

.volume .icon-size {
    width: 18px;
    height: 18px;
}

.volume .bar-hoverbox {
    padding: 10px 0;
    opacity: 0.7;
    transition: opacity .2s;
    cursor: pointer;
    flex-grow: 1;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.volume .bar-hoverbox:hover {
    opacity: 1;
}

.volume .bar {
    background: rgba(128, 128, 128, 0.3);
    height: 4px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    pointer-events: none;
    position: relative;
}

.volume .bar .bar-fill {
    background: var(--text-color);
    width: 50%;
    height: 100%;
    border-radius: 15px;
    pointer-events: none;
    transition: width 0.1s ease-out;
}

.contact-link {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

.resume-company {
    font-weight: 700;
}

.resume-date {
    font-weight: 500;
}

.hobbies-list-grid span {
    font-weight: 700 !important;
    border: none !important;
    padding: 2px 0;
    display: inline-block;
    margin-bottom: 5px;
}

.contact-link {
    font-weight: 500;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
    opacity: 0.8 !important;
}

/* --- Adjust Resume Spacing --- */
.resume-section {
    margin-bottom: 1rem !important;
    /* Reduced from default/implicit */
}

.resume-section h3 {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

/* --- HyperText Animation --- */
.hyper-text {
    display: inline-block;
    white-space: pre-wrap;
    cursor: default;
    position: relative;
    font-weight: inherit;
    /* Inherit bold from parent headers */
}

/* --- Consistent Fonts (Intro, Overview, Projects) --- */
.resume-section,
.resume-desc,
.project-desc,
.resume-role,
.resume-degree,
.resume-meta,
.tech-items {
    font-family: "Crimson Text", serif;
}

.resume-desc,
.project-desc {
    font-size: 1.1rem;
    /* Slightly larger for readability */
    line-height: 1.5;
}

/* --- Ripple Effect (Music Folder) --- */
.music-folder-wrapper {
    position: relative;
    /* Ensure ripple is contained relative to folder */
    overflow: visible;
    /* Let ripples expand */
}

.ripple-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center behind icon */
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind trigger */
    pointer-events: none;
    /* Don't block clicks */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure trigger is above ripple */
.music-folder-wrapper .folder-trigger {
    position: relative;
    z-index: 1;
}

.ripple-circle {
    position: absolute;
    width: 200px;
    /* Base size */
    height: 200px;
    border-radius: 50%;
    background-color: rgba(128, 128, 128, 0.1);
    /* Increased visibility */
    border: 1px solid rgba(100, 100, 100, 0.5);
    /* Stronger rim */
    opacity: 0;
    animation: ripple-effect 4s linear infinite;
    /* Faster */
}

@keyframes ripple-effect {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
        /* Start highly visible */
    }

    100% {
        transform: scale(3);
        /* Expand outwards */
        opacity: 0;
    }
}

/* --- Music Player Card (New Design) --- */
.music-player-card {
    position: relative;
    width: 350px;
    max-width: 100%;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
    z-index: 10;
}

/* Card Header */
.music-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.music-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.music-card-desc {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
    font-family: var(--font-main);
}

/* Card Content */
.music-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Cover Art Container */
.music-cover-container {
    width: 12rem;
    height: 12rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f3f4f6;
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.music-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar */
.music-progress-bar {
    width: 100%;
    height: 0.25rem;
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.music-progress-fill {
    width: 33.333%;
    height: 100%;
    background-color: var(--text-color);
    border-radius: 9999px;
}

/* Time Display */
.music-time-display {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 0.875rem;
    font-family: monospace;
    opacity: 0.7;
}

/* Footer Controls */
.music-card-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.music-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    padding: 0;
}

.music-ctrl-btn.outline {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.music-ctrl-btn.outline:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.music-ctrl-btn.primary {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
}

.music-ctrl-btn.primary:hover {
    opacity: 0.9;
}

.music-ctrl-btn svg {
    width: 1rem;
    height: 1rem;
}

/* --- Border Beam Animation --- */
.border-beam {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

.border-beam::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    padding: 2px;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;

    background: conic-gradient(from 0deg, transparent 0deg, transparent 50deg, var(--beam-color) 100deg, transparent 150deg);
    animation: beam-rotate 6s linear infinite;
}

/* Beam 1: Red */
.beam-1 {
    --beam-color: #ef4444;
}

.beam-1::after {
    animation-delay: 0s;
}

/* Beam 2: Blue */
.beam-2 {
    --beam-color: #3b82f6;
}

.beam-2::after {
    animation-delay: 3s;
}

@keyframes beam-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Magic Bento Grid Styles --- */
:root {
    /* Default (Light Mode) */
    --bento-bg: #ffffff;
    --bento-border: #e2e2e2;
    --bento-text: #1a1a1a;
    --bento-desc: #666666;
    --bento-card-hover: rgba(0, 0, 0, 0.05);
    --purple-glow: rgba(132, 0, 255, 0.2);
}

body.dark-mode {
    --bento-bg: #0d0d12;
    --bento-border: #392e4e;
    --bento-text: #ffffff;
    --bento-desc: rgba(255, 255, 255, 0.8);
    --bento-card-hover: rgba(255, 255, 255, 0.05);
}

.bento-section {
    position: relative;
    user-select: none;
    padding: 2rem 0;
}

.card-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    grid-auto-rows: min-content;
}

/* Responsive Grid */
@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Removed fixed span for 3rd child as user requested reduced size */
}

.magic-bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 120px;
    padding: 1rem;
    border-radius: 20px;
    /* rounded-xl/2xl */
    border: 1px solid var(--bento-border);
    background: var(--bento-bg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;

    /* Dynamic Props for Glow */
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 300px;
}

.magic-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    /* softer shadow */
    border-color: rgba(132, 0, 255, 0.5);
    background-color: var(--bento-card-hover);
    /* Optional: slight tint */
    z-index: 2;
}

/* Header & Content */
.magic-bento-card__header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.magic-bento-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bento-desc);
    border: 1px solid var(--bento-border);
    padding: 2px 8px;
    border-radius: 99px;
    display: inline-block;
}

.magic-bento-card__content {
    color: var(--bento-text);
    z-index: 2;
    /* Above particles */
    position: relative;
}

.magic-bento-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
    /* Override defaults */
    color: var(--bento-text);
}

.magic-bento-card__description {
    font-size: 0.9rem;
    color: var(--bento-desc);
    /* Use desc color var */
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Border Glow Mask Effect */
.magic-bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    /* Border Glow Width */
    border-radius: inherit;
    background: radial-gradient(var(--glow-radius) circle at var(--glow-x) var(--glow-y),
            rgba(132, 0, 255, calc(var(--glow-intensity) * 1)) 0%,
            transparent 100%);

    /* Show only border */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;

    pointer-events: none;
    opacity: 0;
    /* Hidden by default, shown by JS logic or simplified hover */
    transition: opacity 0.2s ease;
    z-index: 10;
}

.magic-bento-card:hover::after {
    opacity: 1;
}


/* Particles */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(132, 0, 255, 1);
    box-shadow: 0 0 6px rgba(132, 0, 255, 0.6);
    pointer-events: none;
    z-index: 1;
    /* Below text */
}

/* Global Spotlight */
.global-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(132, 0, 255, 0.1) 0%,
            transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Click Ripple */
.bento-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132, 0, 255, 0.4) 0%, transparent 70%);
    transform: scale(0);
    pointer-events: none;
    z-index: 5;
}

/* --- Logo Loop Styles --- */
.logoloop {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    margin-top: 2rem;
    --logoloop-gap: 40px;
    --logoloop-logoHeight: 32px;
    --logoloop-fadeColorAuto: #ffffff;
}

body.dark-mode .logoloop {
    --logoloop-fadeColorAuto: #0d0d12;
}

.logoloop--fade::before,
.logoloop--fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(30px, 10%, 150px);
    pointer-events: none;
    z-index: 10;
}

.logoloop--fade::before {
    left: 0;
    background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.logoloop--fade::after {
    right: 0;
    background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.logoloop__track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 1;
}

.logoloop__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap);
    display: flex;
    align-items: center;
}

.logoloop__item img {
    height: var(--logoloop-logoHeight);
    width: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logoloop__item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.15);
}

/* --- Meteors Effect --- */
.meteors-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.meteor {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    width: 2px;
    border-radius: 9999px;
    background-color: #64748b;
    box-shadow: 0 0 0 1px #ffffff10;
    transform: rotate(215deg);
    animation: meteor 5s linear infinite;
    pointer-events: none;
    opacity: 0;
}

body.dark-mode .meteor {
    background-color: #94a3b8;
}

.meteor::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, #64748b, transparent);
}

body.dark-mode .meteor::before {
    background: linear-gradient(to right, #94a3b8, transparent);
}

@keyframes meteor {
    0% {
        transform: rotate(215deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(215deg) translateX(-500px);
        opacity: 0;
    }
}

/* --- Particles Effect --- */
.particles-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Calendar Event Styling */
.day.event-date {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    cursor: help;
    border: 1px solid currentColor;
}

body.dark-mode .day.event-date {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Tooltip Styling */
.day.event-date[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--inverse-bg);
    color: var(--inverse-text);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    border: 1px solid var(--text-color);
}

/* Tooltip Arrow */
.day.event-date[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--inverse-bg) transparent transparent transparent;
    margin-bottom: -2px;
    /* Pull it down slightly to touch */
    z-index: 100;
}

/* =========================================
   MOBILE OPTIMIZATION (Max-Width: 768px)
   ========================================= */

@media (max-width: 768px) {

    /* --- Global Resets & Adjustments --- */
    * {
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    body {
        overflow-x: hidden;
    }

    /* Adjust Global Typography for Mobile */
    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* --- Slide Container Adjustments --- */
    .slide {
        padding: 4rem 1.5rem;
        /* Reduced side padding */
        height: 100svh;
        /* Better mobile height */
    }

    /* --- Slide 1: Hero / Landing Section --- */
    #slide-cover .content {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
    }

    #slide-cover h1 {
        font-size: clamp(3rem, 15vw, 5rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    #slide-cover .subtitle {
        font-size: 0.9rem;
        max-width: 100%;
        margin-top: 1rem;
        padding: 0 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .author-name {
        margin-top: 1rem;
        font-size: 1.1rem;
        order: 2;
        text-align: center;
    }

    /* Cover Header (Year) */
    .cover-header {
        top: 1rem;
        left: 1.5rem;
        right: 1.5rem;
        height: auto;
    }

    .cover-year {
        font-size: 0.9rem;
    }

    /* Scroll Indicator */
    .cover-arrow-container {
        bottom: 1.5rem;
    }

    .circle-arrow {
        width: 50px;
        height: 50px;
    }

    .circle-arrow svg {
        width: 20px;
        height: 20px;
    }

    /* --- Navigation Elements --- */
    .navigation {
        right: 1rem;
        bottom: 1rem;
        gap: 0.5rem;
    }

    .navigation button {
        width: 35px;
        height: 35px;
    }

    .theme-toggle-wrapper {
        top: 1rem;
        right: 1rem;
    }

    /* --- Slide 2: Index --- */
    .index-list li {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* --- Slide 3: Introduction --- */
    #slide-intro .intro-content {
        flex-direction: column-reverse;
        gap: 2rem;
        padding-top: 0;
        text-align: center;
        width: 100%;
    }

    .intro-text-col {
        text-align: center;
        width: 100%;
    }

    #slide-intro .intro-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .image-swapper {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .p-img {
        width: 200px;
        height: 200px;
    }

    /* Links container - center them */
    #slide-intro .intro-text-col>div {
        justify-content: center;
        gap: 1rem;
    }

    /* --- Slide 4: Overview (Bento) --- */
    #slide-resume .content {
        padding-top: 3rem;
        /* Ensure header doesn't overlap */
    }

    #bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 5rem;
        /* Space for scroll/nav */
        width: 100%;
    }

    .magic-bento-card {
        width: 100%;
        min-height: auto;
    }

    /* Adjust specific card heights if needed */
    .magic-bento-card[style*="grid-row: span 2"] {
        height: auto !important;
        /* Let them grow naturally */
    }

    .magic-bento-card__content {
        padding: 1rem 0;
        /* Add internal spacing */
    }

    .logoloop {
        margin: 2rem 0;
        width: 100%;
    }

    /* --- Slide 5: Certifications --- */
    #slide-certs .content {
        width: 100%;
        padding-top: 2rem;
    }

    .certs-container {
        justify-content: space-between;
        /* push to edges or evenly */
        gap: 1rem;
        padding-bottom: 5rem;
    }

    .folder-wrapper {
        width: 47%;
        /* 2 items per row with small gap */
        margin-bottom: 1.5rem;
    }

    .folder-trigger {
        transform: scale(0.9);
    }

    .folder-label {
        font-size: 0.8rem;
    }

    /* Modal Mobile */
    .folder-content {
        width: 95vw;
        height: 80vh;
        padding: 1.5rem 1rem;
        top: 55%;
        /* Offset slightly due to address bar maybe */
    }

    .folder-tab {
        font-size: 1rem;
        top: -30px;
        height: 32px;
        padding: 0 1rem;
    }

    .folder-list li a {
        font-size: 0.95rem;
    }

    /* --- Slide 6: Projects --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 6rem;
        /* Extra space for bottom nav */
    }

    .project-card {
        min-height: auto;
        margin-bottom: 0.5rem;
    }

    /* --- Slide 7: Events --- */
    #slide-events .content {
        padding-top: 2rem;
        justify-content: flex-start;
        overflow-y: auto;
    }





    /* Adjust modal for calendar if it's inside folder-content (it is) */
    .calendar-container {
        padding: 0.5rem;
        background: transparent;
        border: none;
    }

    .calendar-header h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .calendar-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calendar-grid {
        min-width: 100%;
        gap: 2px;
    }

    .day {
        font-size: 0.8rem;
        border-radius: 4px;
    }

    .events-list {
        margin-top: 1rem;
    }

    /* --- Slide 8: Hobbies --- */
    #slide-hobbies .content {
        padding-top: 3rem;
    }

    .hobbies-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
        padding-bottom: 6rem;
    }

    .music-folder-wrapper {
        width: 80%;
        /* Wider than other folders */
    }

    /* Cassette Player Responsive */
    .cassette-player-container {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        margin-top: 0;
    }

    .cassette {
        width: 100%;
        border-width: 2px;
    }

    .lyrics-panel {
        width: 100%;
        min-height: 200px;
    }
}

/* ============================
   MOBILE OVERRIDE – FINAL
   ============================ */

@media (max-width: 768px) {

    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    section {
        min-height: auto !important;
        height: auto !important;
        padding: 3rem 1.5rem !important;
        margin: 0 !important;
    }

    /* HERO FIX */
    .hero,
    .landing,
    .home,
    #slide-cover {
        /* Added #slide-cover explicit ID selector match */
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero h1,
    #slide-cover h1 {
        font-size: 3rem !important;
    }

    .hero h2,
    .hero p,
    #slide-cover h2,
    #slide-cover p,
    .subtitle {
        max-width: 90%;
        font-size: 1.1rem;
    }

    /* SCROLL ICON */
    .scroll-indicator,
    .cover-arrow-container {
        position: relative !important;
        margin-top: 1.5rem;
        bottom: auto !important;
        /* Override absolute bottom */
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* IMAGE FIX */
    img {
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    /* REMOVE ABSOLUTE LAYOUTS */
    .absolute,
    [style*="absolute"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* Retain slide absolute positioning generally but allow flow inside */
    .slide {
        position: absolute !important;
        /* Keep slide mechanism */
        overflow-y: auto !important;
        /* Allow scrolling content if it exceeds viewport */
    }

    /* PROJECTS */
    .project-card,
    .magic-bento-card {
        width: 100% !important;
        margin: 0 !important;
        margin-bottom: 1rem !important;
    }

    /* CERTIFICATIONS */
    .folder-grid,
    .certs-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .folder-wrapper {
        width: 100% !important;
        /* Grid handles width */
        margin: 0 !important;
    }

}

/* ============================
   HERO – MOBILE FIX (FINAL)
   ============================ */

@media (max-width: 768px) {

    .hero,
    #slide-cover {
        /* Adapted selector */
        min-height: 100vh !important;
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
    }

    /* PORTFOLIO TITLE */
    .hero h1,
    #slide-cover h1 {
        font-size: 3.2rem !important;
        font-weight: 700;
        margin-bottom: 0.75rem !important;
    }

    /* TAGLINE */
    .hero p,
    .subtitle {
        /* Adapted selector */
        font-size: 1.05rem;
        max-width: 90%;
        opacity: 0.85;
        margin-bottom: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* NAME */
    .hero h2,
    .author-name {
        /* Adapted selector */
        font-size: 1.4rem;
        font-weight: 600;
        /* Preserve visual hierarchy */
        margin-bottom: 1.5rem !important;
        order: 2;
        /* Ensure order if flex column messes it up */
    }

    /* Override any specific author-name absolute positioning if it existed */
    #slide-cover .author-name {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
    }

    /* SCROLL ICON */
    .scroll-indicator,
    .cover-arrow-container {
        position: relative !important;
        margin-top: 0.5rem !important;
        font-size: 1.6rem;
        opacity: 0.8;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* Reset "Breakers" */
    #slide-cover * {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* Re-enable circle arrow specific styling inside the relative container */
    .circle-arrow {
        margin: 0 auto;
        /* Center it */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

}

/* ============================
   INTRO – MOBILE FIX (NO OVERLAP)
   ============================ */

@media (max-width: 768px) {

    .intro-content,
    #slide-intro .content {
        /* Adapted selector */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 1.5rem;
        padding: 3rem 1.5rem !important;
        margin: 0 !important;
    }

    /* IMAGE */
    .intro-image-col,
    .image-swapper {
        /* Adapted selector */
        position: relative !important;
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto !important;
        height: auto !important;
        /* Ensure generic constraint from previous block doesn't break aspect */
    }

    .intro-image-col img,
    .p-img,
    .image-swapper img {
        /* Adapted selector */
        width: 100% !important;
        height: auto !important;
        border-radius: 12px;
        position: relative !important;
        /* Fix stacking */
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    /* Disable swapper offset logic for mobile simplicity if needed, or keep it if it fits */
    .p-img.sec-img {
        display: none !important;
        /* Hide secondary image on mobile to simplify stack */
    }

    /* TEXT */
    .intro-text-col,
    .intro-text {
        /* Adapted selector */
        position: relative !important;
        width: 100% !important;
        text-align: center !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .intro-text p {
        margin-bottom: 0 !important;
    }

    /* Remove fake spacing */
    #slide-intro * {
        margin-top: 0 !important;
        /* Reset generic margins if they interfere, be careful with paragraph spacing though */
    }

    /* Restore paragraph spacing specifically */
    #slide-intro p {
        margin-bottom: 1rem !important;
    }

    /* Contact links container */
    .intro-text-col>div {
        margin-top: 2rem !important;
        /* Restore space above links */
        justify-content: center !important;
    }

}

/* Bat Animation Container - Top Left Corner */
.bat-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 9999;
    pointer-events: none;
    transform: scale(0.2);
}

/* --- Nested Certificates Folder Styles --- */
/* Ensure nested modals appear above parent */
.folder-wrapper .folder-wrapper .folder-content {
    z-index: 1005 !important;
    width: 85vw !important;
    height: 80vh !important;
}

/* Sub-folders Grid Layout */
/* Sub-folders Vertical List Layout */
.sub-folders-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    max-height: 70vh;
    /* Limit height inside modal */
    overflow-y: auto;
    /* Enable vertical scroll */
}

/* Style folder items as wide rows in the list */
/* Style folder items as wide rows in the list */
.sub-folders-grid .folder-wrapper {
    width: 100% !important;
    margin-bottom: 0.5rem;
}

.sub-folders-grid .folder-trigger {
    display: flex !important;
    flex-direction: row !important;
    /* Force Horizontal alignment */
    align-items: center !important;
    justify-content: flex-start !important;
    /* Left align */
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    gap: 1.5rem !important;
    background: rgba(255, 255, 255, 0.05);
    /* Slight background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.sub-folders-grid .folder-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    /* Slide right slightly on hover */
}

.sub-folders-grid .folder-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    /* Override default vertical spacing */
    flex-shrink: 0;
    /* Don't shrink icon */
}

.sub-folders-grid .folder-label {
    font-size: 1.2rem !important;
    text-align: left !important;
    margin-top: 0 !important;
    width: auto !important;
}



/* --- Certifications Two-State View --- */

/* Utility */
.hidden {
    display: none !important;
}

/* Certs Container - Centered and Flexible */
.certs-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nested Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    width: 100%;
    justify-items: center;
}

/* Close View Button */
.close-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color, #fff);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Ensure it sits below the modal (z-index 1000+) but matches other controls */
    z-index: 10;
}

.close-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
    /* Nice interaction */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .certs-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 1.5rem;
        width: 100%;
    }

    .folder-wrapper {
        width: 100%;
        /* Full width folders on mobile */
        max-width: 300px;
        /* But don't get too wide */
    }
}

/* --- New Overview/Resume Redesign (Slide 4) --- */
#slide-resume .content {
    max-width: 100%;
    padding: 0;
    /* Remove padding to go full bleed if possible, or keeping minimal */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 45vh 55vh;
    /* Use viewport units directly */
    border: none;
    /* Remove outer box border */
    width: 100vw;
    /* Full width */
    max-width: 100%;
    height: 100vh;
    background: var(--bg-color);
    /* Theme adaptable */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.overview-card {
    padding: 2rem;
    position: relative;
    border-right: 1px solid var(--text-color);
    /* Use text color for borders for contrast */
    border-bottom: 1px solid var(--text-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    opacity: 1;
    /* Ensure opacity */
}

/* Grid Placement */
.oc-char {
    grid-column: span 2;
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding-bottom: 0;
}

.oc-bio {
    grid-column: span 5;
    grid-row: 1;
    justify-content: center;
    border-right: 1px solid var(--text-color);
}

.oc-skills {
    grid-column: span 5;
    grid-row: 1;
    border-right: none;
}

.oc-edu {
    grid-column: span 7;
    grid-row: 2;
    border-bottom: none;
}

.oc-exp {
    grid-column: span 5;
    grid-row: 2;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid var(--text-color);
    /* Add left border to separate from edu */
}

/* Typography & Elements */
.oc-header-serif {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1;
    color: var(--text-color);
}

/* Character Bubble */
.speech-bubble {
    position: absolute;
    top: 40px;
    left: 20px;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.4rem 1.0rem;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 800;
    font-family: var(--font-main);
    transform: rotate(-10deg);
    font-size: 0.9rem;
    box-shadow: 4px 4px 0px rgba(128, 128, 128, 0.5);
}

.char-img {
    height: 105%;
    width: auto;
    object-fit: contain;
    filter: none;
}

body.dark-mode .char-img {
    filter: none;
}

/* Bio Section */
.oc-bio .bio-pronouns {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color);
}

.oc-bio h2 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    font-weight: 400;
}

.oc-bio p {
    font-size: 1.0rem;
    max-width: 95%;
    opacity: 0.9;
    line-height: 1.6;
    font-family: var(--font-main);
    font-weight: 300;
}

.oc-bio .highlight {
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Skills */
.skills-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    color: var(--accent-color);
    /* Teal */
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.skill-category p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* Timeline (Edu/Exp) */
.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    gap: 2rem;
    align-items: baseline;
}

.timeline-year {
    min-width: 90px;
    font-family: monospace;
    opacity: 0.7;
    font-size: 0.95rem;
    text-align: right;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-content .inst-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0.5rem;
    border-radius: 50%;
    background: #fff;
    /* Placeholder bg */
}

.timeline-content .subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0 !important;
    font-family: var(--font-main);
    font-weight: 300;
}

.timeline-content .role-highlight {
    font-weight: 600;
    color: var(--text-color);
}

/* Mobile Responsive Override */
@media (max-width: 1024px) {
    .overview-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        border: none;
    }

    .overview-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: var(--glass-blur);
        border-radius: 0.75rem;
        /* Sharper industrial corners */
        padding: 3rem 1.75rem;
        min-height: auto;
        transition: var(--transition-smooth);
    }

    .overview-card:hover {
        border-color: var(--accent-color);
        box-shadow: 0 0 15px var(--accent-glow);
    }

    .oc-char {
        height: 350px;
        order: 1;
    }

    .oc-bio {
        order: 2;
    }

    .oc-skills {
        order: 3;
    }

    .oc-edu {
        order: 4;
    }

    .oc-exp {
        order: 5;
    }

    .oc-header-serif {
        font-size: 3rem;
    }

    .oc-bio h2 {
        font-size: 3rem;
    }
}

/* --- UI/UX Enhancements (Senior Frontend / UI-UX-Pro-Max) --- */

/* 1. Interactive Cursors */
.magic-bento-card,
.folder-trigger,
.cal-nav-btn,
.music-ctrl-btn,
.volume-range,
.theme-toggle-btn,
.project-links-bento a {
    cursor: pointer;
}

/* 2. Mobile Typography & Touch Targets */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        /* Minimum legible size */
    }

    button,
    a,
    input[type='range'] {
        min-height: 44px;
        /* Minimum touch target */
        min-width: 44px;
    }

    /* Ensure no horizontal scroll */
    .slide {
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* 3. Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 4. Global Micro-Animations */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.01);
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-color);
}



/* --- Mobile Bottom Navigation (Native Style) --- */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Native tab bar height */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.3s ease;
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.1s;
    flex: 1;
    height: 100%;
}

.mb-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mb-item span {
    font-size: 10px;
    font-weight: 500;
}

.mb-item.active {
    opacity: 1;
    color: var(--accent-color);
}

.mb-item:active {
    transform: scale(0.95);
}

/* Hide default nav on mobile */
@media (max-width: 768px) {
    .navigation {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Adjust content padding for bottom bar */
    .slide .content {
        padding-bottom: 80px !important;
    }
}


/* --- FIXES FOR VISUAL REGRESSIONS --- */

/* 1. Ensure Character Sketch is Visible */
.character-sketch {
    z-index: 10;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    max-width: 80%;
    margin: 0 auto;
}

/* 2. Fix Duplicate Close Buttons */
/* The issue might be that we have a background image AND a pseudo-element, 
   or the buttons are just visually clashing. 
   We will force a simple style for the folder close button */
.close-folder-btn {
    background: none !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    cursor: pointer !important;
}

.close-folder-btn::before {
    content: "\00D7";
    /* Cross Symbol */
    font-size: 24px;
    color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-folder-btn::after {
    content: none !important;
    /* Remove any double cross */
}

/* 3. Intro Avatar Visibility */
.image-swapper img.sec-img {
    display: block !important;
    /* Ensure it's not hidden */
    opacity: 0;
    /* Default state for swapper */
    transition: opacity 0.3s ease;
}

.image-swapper:hover img.sec-img {
    opacity: 1 !important;
}



/* --- FINAL LAYOUT FIXES --- */

/* 1. Overview Card Sizing */
.overview-card {
    height: auto !important;
    min-height: min-content !important;
}

/* 2. Text Cutoff Prevention */
.overview-card p,
.overview-card h3,
.overview-card h4 {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

/* 3. Image Visibility Safeguard */
.character-sketch {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 4. Intro Image Size Fix */
.image-swapper {
    width: 280px !important;
    height: 280px !important;
    max-width: 80vw !important;
    margin: 0 auto 2rem auto !important;
}



/* --- FORCE OVERFLOW FIX (REPAIRED) --- */
html,
body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    min-height: 100% !important;
    touch-action: auto !important;
}

#app,
.slides-container {
    height: 100% !important;
    overflow: hidden !important;
}

.slide {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: 100dvh !important;
    padding-bottom: 120px !important;
    /* Safe area for nav */
}



/* --- FINAL TYPOGRAPHY & GRID FIXES --- */
@media (max-width: 768px) {

    /* 1. Fix LLM Text Wrapping */
    .role-line {
        font-size: 0.8rem !important;
        /* Reduction */
        padding: 0 10px !important;
        line-height: 1.4 !important;
        max-width: 95% !important;
    }

    /* 2. Fix Projects/Events Grid Stacking */
    .projects-grid,
    .events-grid,
    .overview-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* 3. Navigation Accessibility */
    .navigation {
        pointer-events: auto !important;
        z-index: 9999 !important;
    }

    /* 3. Ensure Bottom Padding for Nav */
    .slide .content {
        padding-bottom: 120px !important;
    }
}


/* --- CRITICAL MOBILE LAYOUT FIXES (Simplify & Stack) --- */
@media (max-width: 768px) {

    /* 1. Reset Cover Layout to Flex Column */
    #slide-cover {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 100px !important;
        /* Space for year badge */
        overflow: hidden !important;
    }

    .composition-container {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

    /* 2. Fix Typography (Stacking PORT / FOLIO) */
    .bg-typography {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically to fit width */
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .bg-text-left,
    .bg-text-right {
        font-size: 15vw !important;
        /* Scale to viewport width */
        line-height: 0.9 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    /* 3. Force Character Image Visibility */
    .character-wrapper {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        height: 35vh !important;
        /* Fixed visible height */
        width: 100% !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        order: 2 !important;
        /* Visual Order */
        z-index: 20 !important;
        /* Above text */
    }

    .character-sketch {
        height: 100% !important;
        width: auto !important;
        max-width: 80% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }


    .author-name {
        font-size: 2rem !important;
    }
}


/* --- REFINEMENT FIXES --- */

/* 1. Hide Scrollbars (But keep scrolling) */
.slide {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.slide::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* 2. Fix Vanasthali Logo Shape */
.inst-logo {
    border-radius: 0 !important;
    /* Remove circle crop if present */
    object-fit: contain !important;
    /* Ensure full logo is visible */
    background: transparent !important;
}

/* 3. Remove Mobile Bottom Nav Styles (Clean cleanup) */
.mobile-bottom-nav {
    display: none !important;
}

.slide .content {
    padding-bottom: 2rem !important;
    /* Reset safe area */
}


/* --- NEW BLOCKY COVER DESIGN --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1vw;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
    /* Behind character? User said animation on top. Character is z-20 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    /* Move up slightly */
}

.grid-letter {
    font-family: 'Inter', sans-serif;
    /* Blocky sans */
    font-weight: 900;
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--text-color);
    text-align: center;
    position: relative;
}


/* Mobile Specifics for Blocky Grid */
@media (max-width: 768px) {
    #slide-cover {
        justify-content: center !important;
        padding-top: 0 !important;
    }

    .composition-container {
        height: 60vh !important;
    }

    .portfolio-grid {
        width: 100%;
        gap: 0.5rem;
        transform: translate(-50%, -50%);
    }

    .grid-letter {
        font-size: 24vw !important;
        /* Massive on mobile */
    }

}

/* Fix LLM Wrapping */
.role-line {
    white-space: normal !important;
    word-wrap: break-word;
}

.role-line span.no-wrap {
    white-space: nowrap !important;
    display: inline-block;
}


/* --- GLOBAL SCROLLBAR HIDING (Aggressive) --- */
/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none !important;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

html,
body,
.slide,
#app,
.slides-container {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}


/* --- VISUAL REFINEMENTS (Experience Line Fix) --- */

/* 1. Remove Experience Line */
.timeline-item::before {
    display: none !important;
    content: none !important;
    border: none !important;
}

.timeline-item {
    padding-left: 0 !important;
    /* Remove indentation if line is gone */
    border-left: none !important;
}


/* --- COVER DETAILS ADJUSTMENT --- */
.cover-details {
    text-align: center;
    margin-top: -12rem !important;
    /* Shift higher */
    z-index: 100 !important;
    position: relative;
}


/* --- FORCE SHOW NAVIGATION ON MOBILE --- */
@media (max-width: 768px) {
    .navigation {
        display: flex !important;
        position: fixed !important;
        bottom: 110px !important;
        /* Above Dock */
        right: 20px !important;
        flex-direction: column !important;
        gap: 15px !important;
        z-index: 100000 !important;
        mix-blend-mode: difference !important;
        background: rgba(0, 0, 0, 0.2) !important;
        padding: 15px 10px !important;
        border-radius: 30px !important;
        backdrop-filter: blur(5px) !important;
    }

    .navigation button {
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    .progress-indicator {
        font-size: 0.8rem !important;
        margin: 5px 0 !important;
    }
}

/* --- Glassmorphism Revamp for Overview (Auto-Appended) --- */
.overview-card,
.skill-category,
.timeline-item,
.speech-bubble {
    background: transparent !important;
    /* Fully transparent */
    backdrop-filter: blur(12px) !important;
    /* Glass blur */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Beautification: Gradient Border & Glow */
.overview-card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Fallback */
    position: relative;
    overflow: hidden;
    /* For shine effects if added */
}

.overview-card:hover {
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3), inset 0 0 20px rgba(79, 209, 197, 0.1) !important;
    /* Teal glow */
    border-color: rgba(79, 209, 197, 0.5) !important;
    transform: translateY(-2px);
}

/* Remove nested box junk */
.skill-category,
.timeline-item {
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0.5rem 0;
    /* clean spacing */
}

/* Text Readability Enhancements */
.overview-card h2,
.overview-card h3,
.overview-card h4,
.overview-card p,
.overview-card li,
.overview-card span,
.speech-bubble {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    /* Stark contrast */
}

.overview-card .highlight {
    text-shadow: 0 0 10px rgba(79, 209, 197, 0.8) !important;
    /* Strong Teal glow */
    color: #4FD1C5 !important;
}

/* Teal glow for highlights */

/* --- ROBUST GRID LAYOUT (Final Fix) --- */

/* 1. Viewport Container - 12 Column Grid */
.overview-layout {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    /* Header, Body, Footer */
    width: 100%;
    height: 100vh;
    padding: 2rem 5%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    gap: 1rem;
    pointer-events: none;
    /* Let clicks pass through empty spaces */
}

/* 2. Left Zone (Cols 1-4): Bio & Character */
.oc-bio-container {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10vh;
    pointer-events: auto;
    z-index: 10;
}

.oc-bio {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    /* Reset absolute */
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.oc-bio h2 {
    font-size: clamp(3rem, 5vw, 5rem) !important;
    line-height: 1;
    color: #fff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.oc-char {
    grid-column: 1 / 5;
    grid-row: 2 / 4;
    position: relative !important;
    top: auto;
    left: -10%;
    /* Slight offset overlap */
    bottom: 0;
    width: 120%;
    /* Fill column width + bleed */
    max-width: none;
    z-index: 5;
    pointer-events: none;
    align-self: flex-end;
    /* Anchor to bottom */
}

.char-img {
    width: 100%;
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

/* 3. Center Zone (Cols 5-8): EMPTY VOID */
/* No rules needed, grid leaves it empty */

/* 4. Right Zone (Cols 9-12): Flex Stack for Details */
.oc-right-stack {
    grid-column: 8 / 13;
    /* Use 5 cols for better breathability */
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertical stack */
    align-items: flex-end;
    /* Right align text */
    gap: 3rem;
    /* Force spacing between sections */
    padding-right: 2rem;
    pointer-events: auto;
    z-index: 10;
    overflow-y: auto;
    /* Allow scroll if screen represents vertically short */
    max-height: 100vh;
}

/* Style Reset for Content Blocks */
.oc-skills,
.oc-edu,
.oc-exp {
    position: relative !important;
    /* Reset absolute */
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    text-align: right;
    background: transparent !important;
    border: none !important;
    padding: 0;
    margin: 0;
    display: block;
}

/* Specific Tweak: Order */
.oc-skills {
    order: 1;
}

.oc-edu {
    order: 2;
    margin-top: 1rem;
}

.oc-exp {
    order: 3;
    margin-top: 1rem;
}

/* Typography */
.oc-header-serif {
    font-size: 2rem !important;
    color: #fff !important;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.skill-category h4 {
    color: var(--accent-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(79, 209, 197, 0.4);
}

.overview-card p,
.timeline-item {
    color: #eee !important;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Hide Clutter */
.speech-bubble {
    display: none !important;
}

.bio-pronouns {
    display: none !important;
}

/* 5. Mobile Responsiveness */
@media (max-width: 1024px) {
    .overview-layout {
        display: flex !important;
        flex-direction: column;
        height: auto;
        overflow-y: auto;
        padding-bottom: 150px;
        gap: 2rem;
    }

    .oc-bio-container,
    .oc-right-stack {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        align-items: flex-start;
        text-align: left;
        padding: 0;
    }

    .oc-right-stack {
        align-items: flex-start;
        /* Align Left mobile */
        text-align: left;
        padding-left: 2rem;
    }

    .oc-skills,
    .oc-edu,
    .oc-exp {
        text-align: left;
        align-items: flex-start;
    }

    .oc-char {
        position: relative !important;
        width: 80%;
        margin: 0 auto;
        order: -1;
        /* Image top or bottom preference? Let's keep bottom anchor in flow */
        order: 4;
    }
}

/* New Music Player Styles */
/* MAIN MUSIC CARD - ensure it's visible on top of overlay */
.main-music-card {
    max-width: 420px;
    width: 90%;
    padding: 18px;
    border-radius: 35px;
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: -apple-system, system-ui, sans-serif;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5010;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-art {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.album-art:hover {
    transform: scale(1.05);
}

.track-details {
    flex-grow: 1;
    overflow: hidden;
}

.track-title {
    font-size: 1.3em;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.artist-name {
    font-size: 0.9em;
    color: #d1d1d6;
    margin-top: 2px;
}

.volume-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 38px;
    height: 32px;
}

.volume-bars .bar {
    width: 3px;
    background: linear-gradient(180deg, #00c6ff, #0072ff);
    border-radius: 2px;
    animation: bounce 0.8s infinite ease-in-out;
    animation-delay: var(--delay);
    animation-play-state: running;
}

@keyframes bounce {

    0%,
    100% {
        height: 6px;
    }

    50% {
        height: 26px;
    }
}

.playback-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #8e8e93;
}

/* We intentionally override content/animation for .current-time/.remaining-time via JS */
.current-time,
.remaining-time {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 2px;
    /* animation: progressAnim 45s linear infinite; */
    /* Disabled for JS */
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    /* JS will update this */
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.control-button {
    margin-top: 2%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    color: #fff;
}

.control-button.play-pause-button:hover,
.control-button.d:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.main-control-btns {
    justify-content: center;
    align-items: center;
    display: flex;
    margin-left: 10%;
    gap: 20%;
}

.play-pause-button .icon-pause {
    display: none;
}

/* User's logic: Checked = PAUSED, Unchecked = PLAYING */
/* When Checked (Paused) -> Bars Pause */
#play-toggle:checked~.track-info .volume-bars .bar {
    animation-play-state: paused;
}

/* Controls Visibility based on Checked State */
#play-toggle:checked~.playback-controls .play-pause-button .icon-play {
    display: block;
    /* Show Play Icon when Paused */
}

#play-toggle:checked~.playback-controls .play-pause-button .icon-pause {
    display: none;
}

#play-toggle:not(:checked)~.playback-controls .play-pause-button .icon-play {
    display: none;
}

#play-toggle:not(:checked)~.playback-controls .play-pause-button .icon-pause {
    display: block;
    /* Show Pause Icon when Playing */
}