/* COLOR DNA: Option 1 (Modern Glass & Glow) */
:root {
    --bg-gradient: linear-gradient(to top, #5a006d 0%, #2a003d 100%);
    --primary-accent: #2a003d;
    --glass-border: rgba(255, 255, 255, .15);
    --threshold: 0.5; /* Lightness threshold */
}

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

body {
    font-family: 'Roboto Slab', sans-serif;
    background: var(--bg-gradient);
}

/* LAYOUT DNA: Design 1 (The Foundation) */
header {
    padding-top: 6rem;
    padding-bottom: 6rem; /* top spacing moved to bottom - consolidated from top+bottom */
    text-align: center;
}

h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 300;
    letter-spacing: -4px;
    margin-bottom: 0.5rem;
    line-height: 0.9;
}

h3 {
    background: linear-gradient(135deg, #333 5%, #aaa 50%, #333 95%);
    color: #4a005d;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, .35);
    margin-bottom: 1rem;
}

.tagline {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.2rem;
    display: block;
}

.scripture-text {
    color: #aaa;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scripture-ref {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: block;
}

.subject-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
    padding-BOTTOM: 4rem;
    margin-right: 1rem;
}
.subject-date {
    font-weight: bold;
    color: #aaa;
    margin-bottom: 0.5rem;
}
.subject-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Sticky Navigation */
nav {
    padding: 1.2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: linear-gradient(to bottom, rgba(153, 153, 153, .9), rgba(85, 85, 85, 0.7));
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-item {
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-item > a {
    color: #4a005d;
    text-decoration: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-item:hover > a {
    background: #2a003d;
    color: #fff;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, rgba(153, 153, 153, .9), rgba(85, 85, 85, 1));
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    color: #4a005d;
    text-decoration: bold;
    font-size: 1.25rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.submenu a:hover {
    background: linear-gradient(135deg, #2a003d 0%, #4a005d 50%, #2a003d 100%);
    color: #fff;
    padding: .25rem;
    border-radius: 100px;
}

/* Kinetic Container Wrapper */
.kinetic-container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.scroll-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 4rem; /* bottom spacing only */
}

.btn-primary {
    background: linear-gradient(135deg, #2a003d 0%, #4a005d 50%, #2a003d 100%);
    color: #fff;
    padding: .25rem 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #333 10%, #aaa 50%, #333 90%);
    color: #4a005d;
    font-weight: 700;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(67, 26, 108, 0.9);
}

/* Content section with left border to match scripture block */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #ccc;
    border-left: 2px solid rgba(255, 255, 255, .15);
    padding-left: 2rem;
}

.kinetic-text {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 500;
    line-height: 0.8;
    text-align: center;
    /* background: linear-gradient(to bottom, #2a0b3d 0%, #552b55 50%, #aaa 100%);*/
    background: linear-gradient( #ddf 0%, #7a008d 35%, #7a008d 80%, #ddf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.timer {
    background: linear-gradient(135deg, #333 10%, #aaa 50%, #333 90%);
    color: #4a005d;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, .35);
    padding: 5px;
    max-width: fit-content;
    margin: 0 auto;
}

.timer .time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
}

.timer span.unit {
    display: block;
    font-size: 0.45em;
    color: #4a005d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 3px;
}


.section-box {
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 30px;
    max-width: 100%;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 30px;
    max-width: 100%;
}

div#dv a {
    background: linear-gradient(135deg, #2a005d 0%, #4a005d 50%, #2a005d 100%);
    color: #fff;
    padding: .5rem .5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

div#dv a:hover {
    background: linear-gradient(135deg, #333 10%, #aaa 50%, #333 90%);
    color: #4a005d;
    font-weight: 700;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(67, 26, 108, 0.9);
}


@media (max-width: 768px) {
    .three-column-grid {
        grid-template-columns: 1fr;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 4rem;
    }

    .scripture-text {
        display: none;
    }

    .scripture-ref {
        display: none;
    }

    /* Mobile nav - horizontal at top, compact */
    nav {
        position: sticky;
        top: 0;
        left: auto;
        right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.6rem;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        white-space: nowrap;
    }

    .nav-item > a {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .submenu {
        position: static;
        display: none;
        flex-direction: column;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 0.4rem;
        min-width: auto;
        backdrop-filter: none;
        margin-top: 5rem; /* Space below parent nav item */
    }

    .nav-item:hover .submenu {
        display: flex;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    .timer .time-box {
        font-size: 1em;
    }

    /* Small mobile nav - horizontal, more compact */
    nav {
        gap: 1rem;
        padding: 0.5rem 0.3rem;
    }

    .nav-item > a {
        font-size: 0.65rem;
    }

    .submenu {
        min-width: 120px;
    }
}
