@font-face {
    font-family: 'nType-82';
    src: url('NType82-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lettera Mono';
    src: url('LetteraMonoLL-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NStyle-04';
    src: url('NStyle-04.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-black: #050505;
    --color-white: #e6e6e6;
    --color-red: #d71920;
    --color-yellow: #C8A005;
    --accent-color: var(--color-red);

    --color-gray: #808080;
    --font-heading: 'nType-82', sans-serif;
    --font-body: 'Geist Mono', monospace;
    --font-dot: var(--font-body);
    --font-n-serif: 'IBM Plex Serif', serif;
    --spacing-unit: 1rem;

    --glass-bg: rgba(20, 20, 20, 0.4);

    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: 30px;

    --noise-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");

    --bg-color: #050505;
    --text-color: #e6e6e6;
    --card-bg: rgba(0, 0, 0, 0.4);
    --card-border: rgba(255, 255, 255, 0.1);
    --spotlight-color: rgba(215, 25, 32, 0.15);
    --dot-color: var(--color-gray);
}

[data-theme="light"] {
    --bg-color: #e0e0e0;
    --text-color: #0e0e0e;
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(0, 0, 0, 0.1);
    --spotlight-color: rgba(215, 25, 32, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --dot-color: #000000;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    /* background-image moved to .spotlight-overlay */
    background-attachment: fixed;
    transition: background-color 0.3s, color 0.3s;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--noise-url);
    pointer-events: none;
    z-index: 9997;
    opacity: 0.3;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10005;
    box-shadow: 0 0 10px var(--accent-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10004;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s, backdrop-filter 0.2s;
    backdrop-filter: blur(2px);
}

.cursor-outline.cursor-hover {
    width: 80px;
    height: 80px;
    backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.5);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--dot-color) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 10;
    /* Raised above sections */
    opacity: 0.15;
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% -20%, var(--spotlight-color), transparent 70%);
    pointer-events: none;
    z-index: 9;
    /* Raised above sections but below dots */
    opacity: 1;
}

h1,
h2,
h3,
.logo,
.section-header {
    font-family: var(--font-heading);
    text-transform: none;
    font-weight: normal;
    letter-spacing: -0.5px;
}

.subtitle,
.scroll-indicator,
.nav-link,
.btn,
.widget-title,
.widget-version,
.widget-footer,
.link-card,
.contributor-pill,
.settings-header,
.setting-item label,
.toggle-btn,
.marquee-content span,
.spec-item .label {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.n-serif {
    font-family: var(--font-n-serif);
}

a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s;
}

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

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    scroll-snap-align: start;
}

h1.glitch {
    font-size: 4rem;
    letter-spacing: -2px;
    position: relative;
    line-height: 1.1;
    text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 2rem;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(10px);
    transition: color 0.3s, border-color 0.3s;
}

section {
    padding: 8rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

h2 {
    font-size: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    display: block;
    width: 100%;
    position: relative;
    opacity: 0.8;
}

h2::before {
    content: '( )';
    position: absolute;
    right: 0;
    opacity: 0.3;
}

.lead {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    max-width: 800px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid var(--accent-color);
}

.spec-item .label {
    font-family: var(--font-dot);
    color: var(--color-gray);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spec-item .value {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.widget-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    height: 100%;
    min-height: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.widget-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.widget-title {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.widget-version {
    font-size: 0.7rem;
    color: var(--color-gray);
    font-family: var(--font-dot);
    border: 1px solid var(--glass-border);
    padding: 2px 6px;
    border-radius: 4px;
}

.widget-preview {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    min-height: 140px;
    font-size: 3rem;
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
}

.widget-desc {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
}

.widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.7rem;
    color: var(--color-gray);
    font-family: var(--font-dot);
    text-transform: uppercase;
}

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

.link-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    text-align: center;
    border-radius: 24px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(var(--glass-blur));
}

.link-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.link-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contributor-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-dot);
    font-size: 1.1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.contributor-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.fab:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    background: rgba(40, 40, 40, 0.8);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 24px;
    height: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.settings-menu.active~.fab .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.settings-menu.active~.fab .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.settings-menu.active~.fab .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.settings-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    width: 220px;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

[data-theme="light"] .settings-menu {
    background-color: rgba(240, 240, 240, 0.8);
}

.settings-menu.active {
    display: flex;
}

.settings-header {
    font-size: 0.8rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.setting-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-group {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px;
    font-family: var(--font-dot);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    opacity: 0.6;
}

.toggle-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

footer {
    padding: 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-color);
    overflow: hidden;
    scroll-snap-align: end;
}

.marquee-container {
    width: 100%;
    padding: 1.5rem 0;
    background: var(--accent-color);
    color: #fff;
    transition: background-color 0.3s;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-family: var(--font-dot);
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    font-weight: 700;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

@media (max-width: 768px) {
    h1.glitch {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .machine-header {
        margin-left: 0;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    /* Mobile Navigation */
    header {
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile Widgets */
    .widget-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .widget-preview {
        min-height: 100px;
    }

    .widget-info h3 {
        font-size: 1.1rem;
    }

    /* Mobile Modal */
    .modal-content {
        width: 95%;
        height: 90vh;
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        height: auto;
    }

    .modal-image-wrapper {
        flex: 1;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        max-height: 40vh;
    }

    .modal-image-wrapper img {
        max-height: 100%;
    }

    .modal-details {
        flex: 1;
        padding: 1.5rem;
        gap: 1rem;
    }

    .modal-details h2 {
        font-size: 1.8rem;
    }

    /* Contributors Mobile */
    .contributors-list {
        flex-direction: column;
        align-items: center;
    }

    .contributor-pill {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Performance Optimizations (Applied via JS detection) */
body.is-mobile .cursor-dot,
body.is-mobile .cursor-outline {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Global Mobile Glass Removal & Opaque Styling (Header excluded) */
body.is-mobile .subtitle,
body.is-mobile .widget-card,
body.is-mobile .link-card,
body.is-mobile .contributor-pill,
body.is-mobile .fab,
body.is-mobile .settings-menu,
body.is-mobile .modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(145deg, #0a0a0a, #000000) !important;
    border: 1px solid var(--glass-border);
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

/* Countdown Styles */
#countdown {
    height: 100vh;
    position: relative;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    padding: 0;
}

.countdown-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: auto;
}

/* Ensure other sections cover the countdown */
#hero,
#about,
#widgets,
#links,
#contributors,
footer {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: 'NStyle-04', sans-serif;
    font-size: 5rem;
    /* Reduced from 8rem */
    line-height: 1;
    color: var(--text-color);
    font-weight: normal;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-family: var(--font-dot);
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

.countdown-separator {
    font-family: 'NStyle-04', sans-serif;
    font-size: 4rem;
    /* Reduced from 6rem */
    color: var(--glass-border);
    margin-bottom: 1.5rem;
    animation: blink 1s infinite;
}

.countdown-target {
    margin-top: 3rem;
    font-family: var(--font-dot);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 1;
    border: 1px solid var(--color-yellow);
    background: rgba(200, 160, 5, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(200, 160, 5, 0.2);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

#countdown .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .countdown-fixed {
        background-size: 20px 20px;
        /* Smaller dots for mobile */
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-value {
        font-size: 2.5rem;
        /* Smaller for mobile */
        letter-spacing: -1px;
    }

    .countdown-separator {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .countdown-target {
        font-size: 0.8rem;
        padding: 0.6rem 1.5rem;
        margin-top: 2rem;
    }
}

/* Widget Accents for Mobile */
body.is-mobile .widget-card {
    border-color: rgba(255, 255, 255, 0.1);
}

body.is-mobile .widget-image-container {
    border-bottom: 1px solid var(--accent-color);
    background: radial-gradient(circle at center, var(--spotlight-color), transparent 70%);
}

/* Specific overrides */
/* Header removed to restore glass effect */

body.is-mobile .subtitle {
    background: #000 !important;
    border: 1px solid var(--accent-color);
}

body.is-mobile .fab {
    background: #111 !important;
    border: 1px solid var(--accent-color);
}

body.is-mobile .settings-menu {
    background: #0a0a0a !important;
    border: 1px solid var(--glass-border);
}

/* Opaque Modal Overlay */
body.is-mobile .modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

body.is-mobile .modal-content {
    background: #050505 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode Mobile Overrides */
[data-theme="light"] body.is-mobile .widget-card,
[data-theme="light"] body.is-mobile .link-card,
[data-theme="light"] body.is-mobile .contributor-pill,
[data-theme="light"] body.is-mobile .fab,
[data-theme="light"] body.is-mobile .settings-menu,
[data-theme="light"] body.is-mobile .modal-content {
    background: #f5f5f5 !important;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body.is-mobile .modal-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.modal-image-wrapper {
    flex: 1.5;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid var(--glass-border);
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-color);
}

.modal-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-action {
    margin-top: 2rem;
    align-self: flex-start;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-dot);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}


@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-image-wrapper {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .modal-details {
        padding: 2rem;
    }

    .modal-details h2 {
        font-size: 1.8rem;
    }
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-row {
    display: flex;
    gap: 2rem;
    width: max-content;
}

#marquee-row-1 {
    animation: scroll-left 48s linear infinite;
}

#marquee-row-2 {
    animation: scroll-right 48s linear infinite;
}

.marquee-row:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.widget-card {
    min-width: 300px;
    max-width: 300px;
    height: 350px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.widget-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.widget-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.widget-card:hover .widget-image-container img {
    transform: scale(1.1);
}

.widget-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: center;
}

.widget-info h3 {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: var(--text-color);
    margin: 0;
}

.widget-info p {
    font-size: 0.8rem;
    color: var(--color-gray);
    font-family: var(--font-body);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Developed by Naman Bhotika-Edited by gemini for fixing naming schemes and documentation. */