html { 
    scroll-behavior: smooth; 
}

body {
    background: #000c24;
    color: #fff;
    overflow-x: hidden;
}
/* Video */
#heroVideo {
    transform: scale(1.01);
    will-change: transform;
    backface-visibility: hidden;
}

/* Blend Into Theme */
.hero-bottom-blend {
    background: linear-gradient(
        to bottom,
        rgba(0,12,36,0) 0%,
        rgba(0,12,36,0.15) 20%,
        rgba(0,12,36,0.35) 40%,
        rgba(0,12,36,0.65) 65%,
        rgba(0,12,36,0.90) 85%,
        #000c24 100%
    );
}

/* Explore More Text */
.explore-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .45em;
    color: rgba(255,255,255,.95);
    text-transform: uppercase;
    transition: all .35s ease;
    text-shadow: 0 0 15px rgba(255,255,255,.15);
    user-select: none;
}

/* Hover */
.scrolltodiv:hover .explore-text {
    color: #facc15;
    text-shadow:
        0 0 8px rgba(250,204,21,.6),
        0 0 18px rgba(250,204,21,.35);
    transform: translateY(-2px);
}

.scrolltodiv:hover .arrow {
    color: #facc15;
    text-shadow:
        0 0 8px rgba(250,204,21,.6),
        0 0 18px rgba(250,204,21,.35);
}

.scrolltodiv {
    cursor: default;
}

/* Arrow Animation */
.arrow-animate {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Mobile */
@media (max-width: 768px) {
    .scrolltodiv {
        bottom: 5rem;
    }
    .hero-bottom-blend {
        height: 140px;
    }
    .explore-text {
        font-size: 11px;
        letter-spacing: .3em;
    }
}
/* Image protection - scoped to avoid breaking content pages with many images */
img.protected,
img.no-drag,
.logo img,
.hero img,
#navy-chat-button img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Fallback for very important images only (logos, heroes) - do NOT use on organization/content images */
img[alt*="logo" i],
img[alt*="Logo" i] {
    pointer-events: none;
    -webkit-user-drag: none;
}

.section {
    position: relative;
    margin-bottom: 0rem;
}

.section:after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, #facc15, transparent);
    opacity: 0.6;
}

.section:last-child:after { 
    display: none; 
}

/* ========== ACCESSIBILITY BUTTON ========== */
#accessBtn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: #2563eb;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 4px 0 15px rgba(0,0,0,.4);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#accessBtn:hover {
    background: #1e40af;
    transform: translateY(-50%) scale(1.08);
}

#accessBtn i {
    font-size: 24px;
    color: #fff;
}
#accessBtn i{
    animation: accessPulse 2.5s infinite;
}

@keyframes accessPulse{
    0%,100%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.12);
    }
}
.tool-grid button,
.tool-bottom button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-grid i,
.tool-bottom i {
    font-size: 20px;
    color: #60a5fa;
}

/* ========== ACCESSIBILITY PANEL ========== */
#accessPanel {
    position: fixed;
    left: 68px;
    top: 50%;

    width: 340px;
    background: #04142d;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 20px;
    z-index: 99998;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Hidden position */
    transform: translateX(-40px) translateY(-50%) scale(.96);

    transition:
        transform .38s cubic-bezier(.22,.61,.36,1),
        opacity .28s ease,
        visibility .28s ease;

    box-shadow:
        0 20px 40px rgba(0,0,0,.35),
        0 0 25px rgba(59,130,246,.10);
}

#accessPanel.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    /* Final position */
    transform: translateX(0) translateY(-50%) scale(1);
}

#accessPanel h3 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.tool-grid button,
.tool-bottom button {
    background: rgba(255,255,255,.08);
    border: none;
    color: #fff;
    text-align: left;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.tool-grid button:hover,
.tool-bottom button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.tool-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ACCESSIBILITY MODES */
body.gray-mode main,
body.gray-mode footer,
body.gray-mode section,
body.gray-mode header {
    filter: grayscale(1);
}

body.high-contrast { 
    background: #000 !important; 
    color: #fff !important; 
    filter: contrast(1.35); 
}

body.negative-mode { 
    filter: invert(1) hue-rotate(180deg); 
}

body.light-mode { 
    background: #fff !important; 
    color: #111 !important; 
}

body.readable-font { 
    font-family: Verdana, Arial, sans-serif !important; 
}

body.underline-links a { 
    text-decoration: underline !important; 
}

/* SCROLL TO TOP */
#topBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

@media (max-width: 768px) {

    /* Wrapper */
    .opsStatsSwiper {
        width: 100%;
        padding: 0 8px 40px 8px;
        overflow: hidden;
    }

    /* Slide width */
    .opsStatsSwiper .swiper-slide {
        width: 100% !important;
        height: auto;
        display: flex;
        justify-content: center;
    }

    /* Card full width */
    .opsStatsSwiper .swiper-slide a {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1.25rem;
    }

    /* Numbers smaller */
    .opsStatsSwiper h2 {
        font-size: 4rem !important;
        line-height: 1;
    }

    /* Label fix */
    .opsStatsSwiper p {
        word-break: normal;
    }

    /* Pagination */
    .ops-stats-pagination {
        position: relative !important;
        margin-top: 18px;
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }

    .ops-stats-pagination .swiper-pagination-bullet {
        background: #3b82f6 !important;
        opacity: 0.5;
    }

    .ops-stats-pagination .swiper-pagination-bullet-active {
        opacity: 1;
    }
}

.cookie-content {
    position: relative;
    z-index: 999999;
}
/* COOKIE NOTICE ALWAYS ON TOP */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999 !important;
    max-width: 600px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-radius: 18px;
    background: rgba(2,18,45,.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(56,189,248,.15);
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    border: none;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}
.cookie-link{
    color:#60a5fa !important;
    text-decoration:none;
    font-weight:600;
    margin-left:4px;
    display:inline;
}
.cookie-text{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1;
    color:#ffffff;
    font-size:14px;
    line-height:1.6;
}

.cookie-text i{
    color:#facc15;
    font-size:18px;
    flex-shrink:0;
}

.cookie-text span{
    display:block;
    color:#ffffff;
}
.cookie-link:hover{
    color:#93c5fd;
    text-decoration:underline;
}
.cookie-accept {
    background: linear-gradient(135deg,#0ea5e9,#2563eb);
    color: #fff;
}

.cookie-cancel {
    background: rgba(255,255,255,.08);
    color: #d1d5db;
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
   #accessPanel {
    left: 50%;
    top: auto;
    bottom: 85px;

    width: 92vw;
    max-width: 300px;

    padding: 14px;
    border-radius: 18px;

    max-height: 70vh;
    overflow-y: auto;

    /* hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(25px) scale(.96);

    transition:
        transform .35s cubic-bezier(.22,.61,.36,1),
        opacity .28s ease;
}

#accessPanel.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0) scale(1);
}
    
    #accessPanel h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tool-grid button {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tool-bottom {
        gap: 8px;
        padding-top: 12px;
    }
    
    .tool-bottom button {
        padding: 10px;
        font-size: 13px;
    }
    
    .tool-grid i,
    .tool-bottom i {
        font-size: 18px;
        min-width: 18px;
    }
    
    /* ACCESSIBILITY BUTTON - Bottom on Mobile */
    #accessBtn {
        left: 15px;
        right: auto;
        top: auto;
        bottom: 67px;
        width: 56px;
        height: 56px;
        border-radius: 9999px;
        z-index: 9990;
        font-size: 24px;
        box-shadow: 0 4px 15px rgba(0,0,0,.4);
        transition: all .3s ease;
    }
    
    #accessBtn:hover {
        transform: scale(1.1);
    }
    
    #accessBtn i {
        font-size: 26px;
        color: #fff;
    }
    
    .cookie-popup { 
        width: 95%; 
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-actions button {
        flex: 1;
        text-align: center;
    }
}
.gallery-header h1 {
    padding-right: 10px;
}

.gallery-header .text-gradient {
    display: inline-block;
    padding-right: 4px;
}
.mobile-menu-open #accessBtn,
.mobile-menu-open #topBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#navbarMobileMenu {
    z-index: 100000;
}

#navbarMobileMenuOverlay {
    z-index: 99999;
}

#accessBtn,
#topBtn {
    z-index: 9990;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
}

.online-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    position: relative;
}

.online-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: onlinePulse 1.8s ease-out infinite;
}

@keyframes onlinePulse {
    0% {
        transform: scale(1);
        opacity: .20;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}