/*! GLOBAL VARIABLES ==========================================================================*/
:root {
    --bg: #020b14;
    --accent: #48cae4;
    --deep-blue: #0b1e33;
    --gold: #ffcc00;
    --white: #e0f2f1;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/*! REVEAL ON SCROLL ==========================================================================*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*! DEPTH NAV ==================================================================================*/
.depth-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
}

.nav-track {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 35px;
    position: relative;
    padding-right: 5px;
}

.nav-track::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s ease;
    opacity: 0.5;
}

.nav-item:hover,
.nav-active-state {
    opacity: 1;
}

.nav-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 900;
    margin-right: 15px;
    color: white;
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s ease;
    pointer-events: none;
}

.nav-item:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--bg);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/*! 2026 DELTA PAGE ==================================================================================*/
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #0f2d4a 0%, var(--bg) 80%);
}

.hero-logo {
    width: 25%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--accent));
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

body:not(.roots-theme) #link-2026 .nav-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 50% 50% 0 50%;
}

.team-photo-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle, rgba(72, 202, 228, 0.05) 0%, transparent 70%);
}

.viewport-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.team-photo {
    width: 100%;
    display: block;
    filter: contrast(1.1) brightness(0.9) saturate(1.1);
    transition: 0.5s ease;
}

.viewport-frame:hover .team-photo {
    filter: contrast(1.2) brightness(1);
}

.corner-brackets {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    z-index: 10;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.photo-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(72, 202, 228, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
}

/*! ORGANIC WAVE BG =====================================*/

.wave-wrapper {
    position: relative;
    width: 85%;
    max-width: 1200px;
    height: 450px;
    margin: 200px auto;
    display: flex;
    align-items: center;
}

.wave-wrapper::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.05;
    z-index: 0;
}

.wave-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #051320 100%);
    z-index: 1;
    transition: 0.8s ease-in-out;
    clip-path: url(#wave-mask);
    border-radius: 50%;
    animation: underwater-sway 10s ease-in-out infinite;
    box-shadow: inset 0 0 80px rgba(72, 202, 228, 0.05);
    border: 1px solid rgba(72, 202, 228, 0.1);
    will-change: transform;
}

.wave-left {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    border-left: 4px solid var(--accent);
}

.wave-right {
    border-radius: 65% 35% 34% 66% / 41% 44% 56% 59%;
    border-right: 4px solid var(--accent);
    animation-delay: -3s;
}

@keyframes underwater-sway {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.02) rotate(1deg);
        border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
    }

    66% {
        transform: scale(0.98) rotate(-1deg);
        border-radius: 50% 50% 45% 55% / 50% 55% 45% 50%;
    }
}

/*! 2025 DOBSON PAGE ==================================================================================*/
.roots-theme {
    --bg: #0a0805;
    --accent: #ff8c00;
    --industrial-gray: #2a2a2a;
    --white: #f0f0f0;
}

.roots-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #1a140a, #0a0805);
}

.legacy-logo {
    width: 50%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.3));
}

.industrial-text {
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 4rem;
}

.blueprint-wrapper {
    position: relative;
    width: 85%;
    max-width: 1200px;
    height: 450px;
    margin: 150px auto;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.blueprint-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 140, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.roots-theme .nav-track::before {
    background: rgba(255, 140, 0, 0.2);
}

.roots-theme #link-2025 .nav-dot {
    background: #ff8c00;
    border-color: #ff8c00;
    box-shadow: 0 0 15px #ff8c00;
    transform: rotate(45deg);
    border-radius: 0;
}

/*! IMAGE CONTENT & POSITIONING ==========================================================================*/
.floating-img {
    position: absolute;
    top: -100px;
    height: 100%;
    z-index: 5;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    transition: transform 0.5s ease;
}

.img-left {
    left: -5%;
}

.img-right {
    right: -5%;
}

.roots-theme .floating-img {
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.2)) contrast(1.1);
}

.content {
    position: relative;
    z-index: 10;
    width: 50%;
    padding: 40px;
}

.content-right {
    margin-left: auto;
    text-align: right;
}

.content-left {
    margin-right: auto;
    text-align: left;
}

.caption {
    position: absolute;
    z-index: 20;
    background: var(--white);
    color: var(--bg);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.cap-left {
    left: 15%;
    top: -20px;
}

.cap-right {
    right: 15%;
    top: -20px;
}

.wave-wrapper:hover .caption,
.blueprint-wrapper:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

.wave-wrapper:hover .floating-img,
.blueprint-wrapper:hover .floating-img {
    transform: scale(1.05) rotate(2deg);
}

/*! TIMELINE ==================================================================================*/
.timeline-section {
    padding: 100px 0;
    text-align: center;
}

.timeline-container {
    display: flex;
    flex-wrap: nowrap;
    padding: 150px 10vw;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

.timeline-card {
    position: relative;
    min-width: 280px;
    margin: 0 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    backface-visibility: hidden;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    z-index: 10;
}

.timeline-card:nth-child(odd):hover {
    transform: translateY(-110px) scale(1.05);
}

.timeline-card:nth-child(even):hover {
    transform: translateY(110px) scale(1.05);
}

.timeline-card::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 112px;
    background: var(--accent);
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s ease, height 0.4s ease;
}

.timeline-card:nth-child(odd) {
    transform: translateY(-110px);
}

.timeline-card:nth-child(odd)::after {
    bottom: -112px;
}

.timeline-card:nth-child(even) {
    transform: translateY(110px);
}

.timeline-card:nth-child(even)::after {
    top: -112px;
}

.timeline-card:hover::after {
    height: 118px;
}

.timeline-card.highlighted {
    border-color: var(--gold) !important;
    background: rgba(255, 204, 0, 0.05);
}

.timeline-card.highlighted:hover {
    border-color: var(--gold) !important;
    background: rgba(255, 204, 0, 0.12); /* Slightly brighter gold bg on hover */
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.timeline-card.highlighted::after {
    background: var(--gold);
}

.timeline-card:last-child:not(.highlighted) {
    box-shadow: 0 0 15px rgba(72, 202, 228, 0.1);
    border-color: rgba(72, 202, 228, 0.4);
}

/*! FOOTERS ==================================================================================*/
.donate-footer,
.rebrand-footer {
    position: relative;
    padding: 100px 5% 120px 5%;
    text-align: center;
    z-index: 10;
}

.donate-btn,
.rebrand-btn {
    position: relative;
    z-index: 100;
    display: inline-block;
    margin-top: 20px;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.donate-btn {
    background: var(--accent);
    color: var(--bg);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(72, 202, 228, 0.3);
}

.donate-btn:hover {
    transform: scale(1.05);
    background: var(--white);
}

.rebrand-btn {
    border: 2px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
}

.rebrand-btn:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 15px var(--accent);
}

.bottom-bar {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/*! MISC ==================================================================================*/
.mono {
    font-family: 'Space Mono', monospace;
    color: var(--accent);
}

.orange-text {
    color: var(--accent);
    text-transform: uppercase;
}

.donate-btn,
.rebrand-btn,
.nav-item {
    user-select: none;
    -webkit-user-drag: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 3000;
    box-shadow: 0 0 10px var(--accent);
}