/* digitaltelomere.com — Light-Academia Digital Biology
   Palette: #F4EDE0 #EDE4D4 #C8BCA8 #8A7A60 #A09880 #E8D8B8 #3A3430 #7A7068
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F4EDE0;
    color: #3A3430;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navigation */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #F4EDE0;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 48px;
    border-bottom: 1px solid #C8BCA8;
}

.nav-brand {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #8A7A60;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #7A7068;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #8A7A60;
    border-bottom-color: #8A7A60;
}

/* Persistent Vertical Divider */
#vertical-divider {
    position: fixed;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100vh;
    background: #C8BCA8;
    z-index: 10;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s ease;
}

#vertical-divider.visible {
    transform: scaleY(1);
}

/* Split Section Layout */
.split-section {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.split-left {
    width: 50%;
    background: #F4EDE0;
    position: relative;
    overflow: hidden;
}

.split-right {
    width: 50%;
    background: #EDE4D4;
    position: relative;
    overflow: hidden;
}

.split-content {
    position: relative;
    z-index: 2;
    padding: 120px 48px 60px;
}

.left-content {
    padding-right: 60px;
}

.right-content {
    padding-left: 60px;
}

/* Hero Split */
.hero-split {
    padding-top: 60px;
}

.hero-split .split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

.hero-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #8A7A60;
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero-intro {
    color: #3A3430;
    max-width: 440px;
}

/* Bokeh Circles */
.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(232, 216, 184, 0.18) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bokeh-circle.visible {
    opacity: 1;
}

/* Section Content */
.section-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #8A7A60;
    margin-bottom: 24px;
}

.section-body {
    color: #3A3430;
    margin-bottom: 16px;
}

.section-body:last-child {
    margin-bottom: 0;
}

.section-meta {
    color: #7A7068;
    font-size: 14px;
}

/* Data Blocks */
.data-block {
    margin-bottom: 32px;
}

.data-label {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #8A7A60;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.data-code {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #3A3430;
    line-height: 1.7;
    background: rgba(232, 216, 184, 0.15);
    padding: 20px 24px;
    border-radius: 4px;
    border-left: 2px solid #C8BCA8;
    overflow-x: auto;
    white-space: pre;
}

/* Infrastructure Icons */
.infra-icon {
    margin-top: 24px;
    opacity: 0.4;
}

/* Contact */
.contact-email {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #8A7A60;
    margin-top: 20px;
}

/* Entry Animation */
.entry-panel {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.entry-panel.visible {
    opacity: 1;
    transform: scale(1);
}

/* Footer */
#footer {
    background: #F4EDE0;
    text-align: center;
    padding: 40px 24px 60px;
    position: relative;
}

.dna-helix {
    width: 100%;
    height: 40px;
    display: block;
    margin-bottom: 24px;
}

.footer-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #7A7068;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        width: 100%;
    }

    .split-content {
        padding: 80px 24px 40px;
    }

    .left-content {
        padding-right: 24px;
    }

    .right-content {
        padding-left: 24px;
    }

    #vertical-divider {
        display: none;
    }

    .hero-split .split-content {
        min-height: auto;
    }

    .split-section {
        min-height: auto;
    }

    #top-nav {
        padding: 12px 20px;
        gap: 24px;
        flex-wrap: wrap;
    }
}
