/* =========================
   GLOBAL THEME
========================= */
:root {
    --bg1: #05070f;
    --bg2: #0b1020;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);
    --gold: #ffcc33;
    --cyan: #3dd6ff;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, var(--bg2), var(--bg1));
    color: var(--text);
    overflow-x: hidden;
}

/* =========================
   NAVBAR GLASS
========================= */
.navbar {
    background: var(--glass) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar .nav-link {
    color: var(--muted) !important;
    transition: 0.3s;
}

.navbar .nav-link:hover {
    color: var(--gold) !important;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Swiper hero slide visuals */
.hero-swiper { width: 100%; }
.hero-slide {
    min-height: 72vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide .overlay { 
    width: 100%; 
    padding: 60px 15px; 
    background: linear-gradient(135deg, rgba(5,7,15,0.65), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide h1, .hero-slide h2 { 
    color: #fff; 
    text-shadow: 0 6px 20px rgba(0,0,0,0.8);
    font-weight: 800;
}
.hero-slide p { color: rgba(255,255,255,0.9); }
.swiper-button-next, .swiper-button-prev { color: var(--gold); }


.hero-section p {
    color: var(--muted);
    margin-top: 10px;
}

/* =========================
   GLASS CARD SYSTEM
========================= */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 204, 51, 0.4);
}

.card img {
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.card:hover img {
    transform: scale(1.06);
}

/* =========================
   BUTTONS
========================= */
.btn-warning {
    background: linear-gradient(135deg, var(--gold), #ffb300);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-warning:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 204, 51, 0.3);
}

/* =========================
   STATS BOXES
========================= */
.stats-box {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.stats-box:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 214, 255, 0.4);
}

/* =========================
   MODALS (VERY IMPORTANT)
========================= */
.modal-content {
    background: rgba(10, 12, 25, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* =========================
   TEXT
========================= */
.text-muted {
    color: var(--muted) !important;
}

/* =========================
   BADGES (CATEGORIES)
========================= */
.badge {
    background: var(--glass-strong);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 20px;
    transition: 0.3s;
}

.badge:hover {
    background: rgba(255, 204, 51, 0.15);
    border-color: var(--gold);
    cursor: pointer;
}

/* =========================
   SECTIONS SPACING
========================= */
section {
    padding: 60px 0;
}

/* =========================
   SCROLL SMOOTH
========================= */
html {
    scroll-behavior: smooth;
}

/* =========================
   FOOTER
========================= */
footer {
    background: transparent;
    padding: 30px;
    text-align: center;
    color: var(--muted);
}

/* =========================
   RESPONSIVE FIXES
========================= */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .card img {
        height: 180px;
    }

    /* Make navbar search smaller on small screens */
    #searchInput { width: 100% !important; margin-top: 8px; }

    .hero-slide { min-height: 55vh; }
    .hero-slide .overlay { padding: 30px 12px; }
}

@media (max-width:480px){
    .badge { padding: 8px 10px; font-size: 13px; }
    .stats-box { padding: 14px; }
    .modal-content img { max-height: 45vh; object-fit: cover; }
}

/* Ensure modals and cards scale smoothly */
.modal-content img { width: 100%; height: auto; max-height: 60vh; }

/* Testimonial swiper basic styling */
.testi-card { padding: 20px; min-height: 160px; display:flex; flex-direction:column; justify-content:space-between; }

/* Utility: keep hero CTA grouped on small screens */
.hero-slide .btn { white-space: nowrap; }

/* =========================
   UI HELPERS
   Small styles for toggle, badge states and micro-animations
========================= */
#themeToggle {
    border-radius: 8px;
    padding: 6px 8px;
}

.badge.active {
    background: linear-gradient(90deg, rgba(255,204,51,0.18), rgba(61,214,255,0.08));
    border-color: rgba(255,204,51,0.35);
    color: #fff;
}

.btn-outline-light {
    color: var(--text);
    border-color: rgba(255,255,255,0.08);
}

/* small floating CTA (kept non-obtrusive) */
.floating-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}