body {
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    width: 100%;
    min-height: 100vh;
}
main {
    width: 100%;
}

.bg-tech-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(30, 41, 59, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 41, 59, 0.3) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.section-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 100vh;
    width: 100%;
    padding-top: 5rem;
    display: none;
    /* Initially hidden */
}

.section-container.active {
    display: block;
    animation: fadeInSection 0.8s forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    /* rounded-xl equivalent */
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(34, 211, 238, 0.5);
    /* Stack shadows instead of replacing to maintain depth */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.2);
    transform: translateY(-8px);
    z-index: 10;
}

/* Stability Fix: Invisible "skirt" extends hit area downwards when hovered to prevent jitter */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    z-index: -1;
    pointer-events: auto;
    /* Ensures it captures hover */
}

.nav-link.active {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 60%;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
}
.scroll-indicator-anim {
    animation: scroll-bounce 2s ease-in-out infinite;
}

.sponsor-chip svg text {
    dominant-baseline: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
    border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Utilities */
.text-glow {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}



/* Map Styles - Tech Theme */
.leaflet-tile {
    /* Subtle Cyan Tint on top of Dark Matter tiles for branding coherence */
    filter: brightness(1.1) contrast(1.1) sepia(20%) hue-rotate(170deg) saturate(1.5);
}

.leaflet-container {
    background: #020617;
    font-family: 'Space Mono', monospace;
}

/* Custom Zoom Controls - Override Defaults */
.leaflet-left .leaflet-control {
    margin-left: 0;
}

.leaflet-bottom .leaflet-control {
    margin-bottom: 0;
}

/* Reticle / HUD Elements Overlay */
#map::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(34, 211, 238, 0.3);
    pointer-events: none;
    z-index: 400;
    border-radius: 4px;
}

/* Force override of white buttons */
.leaflet-bar {
    border: none !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: rgba(2, 6, 23, 0.9) !important;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
    color: #22d3ee !important;
    border-radius: 0 !important;
    /* Tech look: sharp corners */
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-weight: bold !important;
    transition: all 0.2s ease;
}

.leaflet-bar a:hover {
    background-color: #22d3ee !important;
    color: #020617 !important;
    text-shadow: none;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2) !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

/* Popup Styling - Tech Card */
.leaflet-popup-content-wrapper {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid #22d3ee;
    border-radius: 2px;
    color: #94a3b8;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.leaflet-popup-tip {
    background: #020617;
    border: 1px solid #22d3ee;
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #475569;
    padding: 5px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #22d3ee;
}

/* ── HERO SLIDER ─────────────────────────────────────────── */
.slider-img {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot {
    transition: all 0.35s ease;
    cursor: pointer;
}

@keyframes slideTextIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-text-anim {
    animation: slideTextIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── SERVICES WITH IMAGE ──────────────────────────────────── */
.service-card-img {
    transition: transform 0.7s ease, opacity 0.4s ease;
}
.glass-panel:hover .service-card-img {
    transform: scale(1.05);
    opacity: 1;
}

/* ── DEPARTMENT SELECT ────────────────────────────────────── */
#dept-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
#dept-select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}
#dept-select option {
    background-color: #020617;
    color: #e2e8f0;
}

/* ── NEWS FILTER BUTTONS ─────────────────────────────────── */
.active-filter {
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #22d3ee !important;
    background: rgba(34, 211, 238, 0.05);
}

/* ── NEWS CARDS ─────────────────────────────────────────────  */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News card hover glow */
#noticies-grid article:hover {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.08);
}