/* Infinity Landing Page Styles */

.infinity-landing {
    height: 100vh;
    background-color: #000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: sans-serif;
}

/* Top Navigation */
.landing-nav {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    z-index: 50;
    display: none;
    align-items: center;
    gap: 2.5rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .landing-nav {
        display: flex;
    }
}

.landing-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.landing-nav a:hover {
    color: #9ca3af;
}

/* Main Content Card */
.landing-main {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.landing-bg {
    position: absolute;
    inset: 0;
}

.landing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo Tab */
.logo-tab {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 40;
    background-color: #000;
    border-bottom-right-radius: 3rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 0 10px #000;
}

.logo-tab img {
    height: 6rem;
    width: 20rem;
    object-fit: contain;
}

/* Lamp Toggle */
.lamp-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 9px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.lamp-toggle.lights-on {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.lamp-toggle.lights-off {
    background: rgba(255, 185, 30, 0.15);
    border-color: rgba(255, 185, 30, 0.45);
    color: #ffbf1e;
    box-shadow: 0 0 20px rgba(255, 175, 20, 0.25);
}

/* Bottom Left Info Block */
.info-block {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 40;
    background-color: #000;
    color: #fff;
    padding: 2.5rem 4rem 2rem 2.5rem;
    border-top-right-radius: 3rem;
}

.branding-container {
    margin-bottom: 1.5rem;
}

.presents-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.kumsc-logo-mini {
    height: 1.5rem;
    width: auto;
    filter: invert(1);
    opacity: 0.8;
}

.presents-line span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
}

.powered-by-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.powered-by-line span {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 300;
}

.tekbay-logo-mini {
    height: 1.25rem;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tekbay-logo-mini:hover {
    opacity: 1;
}

.info-title {
    font-size: 3.75rem;
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .info-title {
        font-size: 4.5rem;
    }
}

.info-title span {
    font-weight: 300;
}

.info-desc {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.625;
}

/* Video Controls Mockup */
.video-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.control-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.time-stamp {
    font-size: 0.75rem;
    font-family: monospace;
    color: #9ca3af;
}

.progress-bar {
    width: 12rem;
    height: 2px;
    background-color: #1f2937;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 33.333333%;
    background-color: #fff;
    border-radius: 9999px;
}

/* Canvas Layers */
.canvas-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#infinity-canvas {
    z-index: 2;
    opacity: 0.8;
    mix-blend-mode: multiply;
    filter: blur(0.2px);
}

#lamp-canvas {
    z-index: 3;
}

#scratch-canvas {
    position: fixed;
    inset: 0;
    z-index: 100;
    cursor: crosshair;
    touch-action: none;
}

/* Reveal Animation */
@keyframes infinityContentReveal {
    0%   { transform: scale(1); filter: brightness(0.98) contrast(1.06) saturate(1.05); }
    35%  { transform: scale(1); filter: brightness(1.12) contrast(1.08) saturate(1.18); }
    100% { transform: scale(1); filter: brightness(1) contrast(1) saturate(1); }
}

.revealing {
    animation: infinityContentReveal 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Event Calendar */
.landing-calendar {
    position: absolute;
    bottom: 2.5rem;
    left: 35rem;
    right: auto;
    z-index: 40;
    background-color: #000;
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: #fff;
    width: 320px;
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.day-name {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.day {
    font-size: 12px;
    padding: 6px 0;
    border-radius: 50%;
    cursor: default;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.day.empty {
    visibility: hidden;
}

.day.has-event {
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.day.has-event:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* Removed theme-inverted overrides for calendar so it matches branding dark theme always */

.mobile-calendar-btn {
    display: none;
    position: absolute;
    top: 6.5rem;
    right: 1.5rem;
    z-index: 45;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

body.theme-inverted .mobile-calendar-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
}

.calendar-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

body.theme-inverted .calendar-close-btn {
    color: #000;
}

@media (max-width: 768px) {
    .logo-tab {
        padding: 1rem 1.25rem;
        border-bottom-right-radius: 1.5rem;
        box-shadow: 0 0 0 6px #000;
    }

    .logo-tab img {
        height: 3.5rem;
        width: 12rem;
    }

    .mobile-calendar-btn {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .landing-calendar {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        z-index: 2000;
        bottom: auto;
        right: auto;
    }

    .landing-calendar.show-modal {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .calendar-close-btn {
        display: block;
    }

    .calendar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 1999;
        backdrop-filter: blur(3px);
    }

    .calendar-overlay.show-modal {
        display: block;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    background: rgba(192, 192, 192, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #000000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top svg,
.back-to-top i {
    color: #000000 !important;
    stroke: #000000 !important;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background: rgba(220, 220, 220, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

