@charset "utf-8";
/* CSS Document */

/* Base Reset */
* { box-sizing: border-box }
html, body { margin: 0; padding: 0;}
img { max-width: 100%; display: block; height: auto;}
:root{
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-contrast: #0b1220;
    --accent: #34d399;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    
}

html {scroll-behavior: smooth; }
body 
{
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
}

/* Utility */
.container
{
    width: min(1100px, 92%);
    margin-inline: auto;
}

.section { padding: 80px 0; }
h1, h2, h3 { line-height: 1.2; }

h1 
{ 
    font-size: clamp(2rem, 4vw, 3rem); 
    margin: 0 0 10px; 
}

h2 
{ 
    font-size: clamp(1.6rem, 3vw, 2.2rem); 
    margin: 0 0 20px; 
}

h3 
{ 
    font-size: 1.2rem;
    margin: 0 0 10px; 
    color: var(--primary); 
}

/* Header / Nav */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    
}

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: .2px;
}

.nav-desktop 
{ 
    display: none; 
    gap: 20px; 
}

.nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 6px 8px;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

/* underline glow effect*/
.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background: #ff6000;
    transition: width 0.3s ease;
}

.nav-desktop a:hover {
    color: #ff6000;
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-desktop a.active {
    color: #ff6000;
}

.nav-desktop a.active::after {
    width: 100%;
}
.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav-link:hover, nav-link.active {
    background: rgba(56,189,248,.12);
    color: white;
}

/* Hamburger */
.hamburger {
    width: 46px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: transparent; color: var(--text);
    display: grid; place-items: center;
    cursor: pointer;
}

.hamburger .bar {
    width: 22px; height: 2px; background: var(--text);
    display: block; position: relative;
}

.hamburger .bar + .bar { margin-top: 5px; }

.nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(17,24,39,.98);
    padding: 10px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile.open { display: flex;}
.mobile-link {
    color: var(--text);
    text-decoration: none;
    padding: 12px 6px; border-radius: 10px;
}

/* Desktop breakpoint */
@media (min-width: 995px) {
    .hamburger { display: none;}
    .nav-desktop { display: flex;}
    .nav-mobile { display: none !important;}
}

/* Hero / Parallax */
.hero {
    min-height: 78vh;
    display: grid; place-items: center;
    text-align: center;
}

.hero .overlay {
    background: linear-gradient(to bottom right, rgba(2,6,23,.55), rgba(2,6,23,.75));
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero p { color: var(--muted); margin: 6px 0 18px;}
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-contrast);
    font-weight: 700;
    text-decoration: none;
    border: none; cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover { filter: brightness(1.08);}

/* Parallax generic */
.parallax {
    position: relative;
    min-height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background behavior */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* desktop effect */
    margin: 40px auto;
    
    border-radius: 20px; /* rounded edges */
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.parallax-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #121A2C
}

.parallax-one {
    
}

.parallax-one img {
    background-size: contain;
}

.parallax-two {
    
}

.parallax-three {
    background-image: url("assets/Whatwedo.PNG");
}

.parallax-four {
    background-image: url("assets/District_logo2.png");
    background-size: cover;
}

.divider { min-height: 40vh; display: grid; place-items: center;}
.divider-overlay {
    background: rgba(2,6,23,.55);
    padding: 16px 24px; border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Mobile parallax fallback (ios) */
@media (max-width: 959px){
    .parallax { background-attachment: scroll;}
}

.content {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}
.features {
    margin-top: 24px;
    display: grid; gap: 16px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.feature-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    padding: 16px; border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Fullscreen splash */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("assets/splashscreenEdit.jpg") center center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* above everything else */
    opacity: 1;
    overflow: hidden;
    animation: splashZoom 10s ease-in-out forwards;
    
}

/* Dark overlay */
.splash-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box
}

/* content */
.splash-content {
    position: relative;
    text-align: center;
    color: #DA9B7D;
    max-width: 90%;
    z-index: 2;
    opacity: 1;
    transform: translateY(20px); 
    animation: splashFadeUp 1s ease-out forwards;
    animation-delay: 0.5s; /* wait a bit for background to settle */
}

/* Animations */
@keyframes splashZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes splashFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.splash-content p {
    font-size: clamp(1.8rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

/* Button */
.splash-content .enter-btn {
    display: inline-block;
    background: var(--primary, #ff6600);
    color: var(--primary-contrast, #fff);
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.enter-btn:hover {
    background: #ffaa00;
    transform: scale(1.05);
}

@media (max-width: 768px){
    .splash-screen {
        background-position: center top;
        background-size: cover;
        animation: splashZoom 12s ease-in-out forwards;
    }
    
    .splash-content h1 {
        font-size: 1.6rem;
    }
    
    .splash-content p {
        font-size: 1rem;
    }
    
    .splash-content .enter-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
@media (min-width: 720px) {
    .features { grid-template-columns: repeat(3, minmax(0, 1fr));}
}

/* Legislation */ 
.legislation-controls {
    margin: 16px 0 20px;
    display: flex; gap: 12px; flex-wrap: wrap;
}

.legislation-controls input[type="search"],
.legislation-controls select {
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
}

.legislation-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 16px;
}

.legis-item {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    padding: 16px; border-radius: 16px;
}

.tag {
    margin-top: 8px;
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(56,189,248,.15);
    color: #c8f1ff;
}

.tag .success {
    background: rgba(34,197,94,.18);
    color: #cff7d6;
}

/* Gallery */
.gallery {
    margin-top: 12px;
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    overflow: hidden; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
}

.gallery img { cursor: pointer; transition: transform .4s ease, box-shadow 0.4s ease;}
.gallery a:hover img { transform: scale(1.05); box-shadow:  0 8px 20px rgba(0,0,0,0.25)}

.gallery img:hover {
    
}

@media (min-width: 720px) {
    .gallery { grid-template-columns: repeat(4, 1fr);}
}

/* Contact */
form {
    margin-top: 10px;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    padding: 16px; border-radius: 16px;
}

.form-grid {
    display: grid; gap: 12px;
    grid-template-columns: 1fr;
}

#form-status {
    min-height: 1.4em;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#form-status.show {
  opacity: 1;  
}

#form-status.success {
    color: var(--success);
}

#form-status.error {
    color: var(--danger);
}

label { display: grid; gap: 6px; font-weight: 600;}
input, textarea {
    background: #0b1220;
    color: var(--text);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; 
    padding: 10px 12px;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56,189,248,.2);
}

label.full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px;}
#form-status { min-height: 1.4em; color: var(--muted); }

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #0b1220;
    padding: 24px 0;
}

.footer-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.back-to-top { color: var(--primary); text-decoration: none;}

/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
