html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: #6D001A;
    color: #FFFFFF;
}

.bg-polygon {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-underline {
    position: relative;
}
.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #6D001A;
    transition: width 0.3s ease;
}
.hover-underline:hover::after, .active-link::after {
    width: 100%;
}
.active-link {
    color: #6D001A;
    font-weight: 500;
}

.premium-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109, 0, 26, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.text-gradient {
    background: linear-gradient(135deg, #000000 0%, #6D001A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* macOS Dock Navigation */
.dock-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 1.5rem;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent;
}

.dock-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-8px) scale(1.05);
    color: #6D001A;
}

.dock-item.active-link {
    background: #6D001A;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(109, 0, 26, 0.25);
}

.dock-item.active-link:hover {
    transform: translateY(-8px) scale(1.05);
    color: #FFFFFF;
}

/* Dock Tooltips */
.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #000000;
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.dock-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Prevent footer overlap */
body {
    padding-bottom: 6rem;
}

/* Mobile Optimization - Master Fixes */
@media (max-width: 768px) {
    /* Prevent top dock from overlapping content */
    body {
        padding-top: 5rem; 
        padding-bottom: 2rem;
    }

    /* macOS Dock Mobile Fix */
    .dock-container {
        width: 95%;
        max-width: 400px;
        padding: 0.4rem;
        gap: 0.2rem;
        bottom: auto !important; 
        top: 1rem !important;    
    }
    .dock-item {
        padding: 0.6rem 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.5px;
        flex: 1; 
        text-align: center;
    }
    .dock-item:hover, .dock-item.active-link:hover {
        transform: translateY(4px) scale(1.02); 
    }
    .dock-item::before {
        display: none !important; 
    }

    /* Floating Timer Pill Mobile Fix */
    .timer-bar {
        position: fixed !important;
        top: auto !important; /* Kills the vertical stretching */
        bottom: 2rem !important;
        right: 1.5rem !important;
        width: max-content !important;
        height: auto !important; /* Forces bounding box to hug text */
        min-height: 0 !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 2rem !important;
        border: 2px solid #6D001A !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
        background: #FFFFFF !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
    }
    .timer-bar .max-w-7xl {
        padding: 0;
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    /* Hide non-essential text to form a compact pill */
    .timer-bar > div > span.font-sans,
    .timer-bar .text-xs {
        display: none !important; 
    }
    #timer-display {
        font-size: 1.5rem !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
}