/* ============================================
   WORLD'S COLLIDE - UNIFIED STYLESHEET
   Dark Theme | Mobile-First Design
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --accent-red: #e63946;
    --accent-red-glow: rgba(230, 57, 70, 0.3);
    --accent-purple: #7b2cbf;
    --accent-purple-glow: rgba(123, 44, 191, 0.3);
    --accent-cyan: #00b4d8;
    --accent-cyan-glow: rgba(0, 180, 216, 0.3);
    --accent-green: #2dc653;
    --accent-orange: #ff9f1c;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6c6c80;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(123, 44, 191, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 180, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY - Mobile-First Font Sizing
   ============================================ */
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p, span, div { font-size: 1rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px var(--accent-red-glow));
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ============================================
   HERO BRAND IMAGE
   ============================================ */
.hero-brand {
    text-align: center;
    padding: 5rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-brand img {
    max-width: 420px;
    width: 70vw;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(123, 44, 191, 0.3));
    transition: all 0.5s ease;
}

.hero-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(123, 44, 191, 0.5));
}

/* ============================================
   CAROUSEL
   ============================================ */
#myCarousel {
    margin-top: 56px !important;
    position: relative;
    z-index: 1;
}

.carousel-item img {
    height: 520px;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.2);
}

/* Background images for carousel */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.2);
    z-index: 0;
}

/* Slide content overlay */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 80%;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.88), rgba(26, 26, 46, 0.85));
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.slide-content h1 {
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.slide-content h2 {
    color: var(--text-secondary);
    font-weight: 400;
}

.slide-content .btn {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.slide-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: var(--accent-cyan);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* ============================================
   QUICK LINKS BAR
   ============================================ */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 0;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.quick-link i {
    font-size: 1rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   FEATURETTE CARDS
   ============================================ */
.featurette-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.featurette-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featurette-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(123, 44, 191, 0.05);
}

.featurette-card:hover::before {
    opacity: 1;
}

.featurette-heading {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.featurette-heading .icon {
    margin-right: 0.5rem;
}

.featurette-card p.lead {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Feature images */
.feature-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    pointer-events: none;
}

.feature-image-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.9) saturate(1.1);
}

.feature-image-wrapper:hover img {
    transform: scale(1.03);
    filter: brightness(1) saturate(1.2);
}

/* ============================================
   BUTTONS - Gradient & Glow
   ============================================ */
.btn-gradient {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-red-glow);
    color: #fff;
}

.btn-outline-cyan {
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background: transparent;
}

.btn-outline-cyan:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 8px 25px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.btn-outline-green {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background: transparent;
}

.btn-outline-green:hover {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 8px 25px rgba(45, 198, 83, 0.3);
    transform: translateY(-2px);
}

.btn-outline-orange {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background: transparent;
}

.btn-outline-orange:hover {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 159, 28, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   MEMBERS / TEAM SECTION
   ============================================ */
.members-section {
    padding: 4rem 0;
}

.member-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.member-card.owner::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.member-card.admin::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.member-card.gamer::before {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

.member-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.member-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--glass-border);
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.member-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.owner .member-role { color: var(--accent-orange); }
.admin .member-role { color: var(--accent-purple); }
.gamer .member-role { color: var(--accent-green); }

.member-quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.member-quote i {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
    font-style: normal;
}

.member-actions .btn {
    border-radius: 10px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Modal avatar */
.modal-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto;
    display: block;
    border: 2px solid var(--glass-border);
}

.modal-social i {
    transition: all 0.3s ease;
}

.modal-social:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(230, 57, 70, 0.5));
}

/* ============================================
   DISCORD WIDGET - Dark themed
   ============================================ */
.discord-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.discord-section h2 {
    font-weight: 700;
    color: #5865F2;
    margin-bottom: 0.5rem;
}

.discord-widget-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER - Sleek dark
   ============================================ */
footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0 !important;
    margin-top: 3rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* ============================================
   VISITOR COUNTER - Styled
   ============================================ */
.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.counter-badge .count {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

/* ============================================
   DIVIDERS
   ============================================ */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 3rem 0;
}

/* ============================================
   UTILITY CLASSES (replaces inline styles)
   ============================================ */

/* Touch scrolling for horizontal elements */
.touch-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Carousel featured images */
.carousel-featured-img {
    max-height: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Section dividers with proper spacing */
.section-divider-spaced {
    margin: 1.5rem 0;
}

/* Navbar brand icons */
.navbar-brand-icon {
    font-size: 36px;
    color: crimson;
}

/* Discord icon in navbar */
.discord-nav-icon {
    font-size: xx-large;
}

/* Welcome message text */
.welcome-text {
    color: cyan;
}

/* Error message text */
.error-text {
    color: red;
}

/* Success message text */
.success-text {
    color: lime;
}

/* Logged-in user label */
.logged-in-label {
    color: cyan;
    text-transform: uppercase;
}

/* Modal social icons */
.modal-social-icon {
    font-size: 28px;
    color: crimson;
}

/* ============================================
   MODALS - Glassmorphism Dark Theme
   ============================================ */

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* Modal container */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Modal header */
.modal-header {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(230, 57, 70, 0.1));
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    justify-content: center;
}

.modal-title {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent-cyan), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Modal close button */
.btn-close {
    opacity: 0.6;
    filter: invert(1) grayscale(100%) brightness(200%);
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Modal body */
.modal-body {
    padding: 2rem !important;
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Modal footer */
.modal-footer {
    background: rgba(18, 18, 26, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 2rem !important;
    justify-content: center;
}

/* Modal social icons */
.modal-social-icon {
    color: var(--text-secondary);
    font-size: 1.3rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-social-icon:hover {
    color: var(--accent-cyan);
    background: rgba(0, 180, 216, 0.1);
    transform: translateY(-2px);
}

/* Modal avatar */
.modal-avatar {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 1rem auto !important;
    display: block;
    border: 3px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-avatar:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px var(--accent-cyan-glow);
}

/* Modal form inputs */
.modal .form-control,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal .form-control:focus,
.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="password"]:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15) !important;
    background: var(--bg-card) !important;
}

.modal .form-control::placeholder,
.modal input[type="text"]::placeholder,
.modal input[type="email"]::placeholder,
.modal input[type="password"]::placeholder {
    color: var(--text-muted);
}

/* Modal form labels */
.modal label {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modal small text */
.modal small,
.modal .form-text {
    color: var(--text-muted) !important;
}

/* Modal success/error messages */
.modal .alert-success {
    background: rgba(45, 198, 83, 0.1);
    border: 1px solid rgba(45, 198, 83, 0.3);
    color: var(--accent-green);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.modal .alert-danger {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--accent-red);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

/* Modal responsive */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.25rem !important;
    }
    
    .modal-footer {
        padding: 0.75rem 1.25rem !important;
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* Modal border utilities */
.modal-border-bottom {
    border-bottom: 1px solid var(--border-subtle) !important;
}

.modal-border-top {
    border-top: 1px solid var(--border-subtle) !important;
}

.modal-border-none {
    border-top: none !important;
}

/* Horizontal rule spacing */
.hr-spaced {
    margin: 1.5rem 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featurette-card, .member-card, .discord-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   TABLET - Max Width 1200px
   ============================================ */
@media (max-width: 1200px) {
    .carousel-item img,
    .carousel-bg {
        height: 450px;
    }
    
    .slide-content {
        padding: 2rem 2.5rem;
        width: 85%;
    }
    
    .featurette-card {
        padding: 2rem;
    }
}

/* ============================================
   TABLET - Max Width 992px
   ============================================ */
@media (max-width: 992px) {
    .carousel-item img,
    .carousel-bg {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.1rem;
    }
    
    .hero-brand img {
        max-width: 300px;
        width: 75vw;
    }
    
    .featurette-heading {
        font-size: 1.5rem;
    }
    
    .discord-section {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   MOBILE - Max Width 768px
   ============================================ */
@media (max-width: 768px) {
    /* Hide body background gradient for performance */
    body::before {
        display: none;
    }
    
    /* Typography scaling */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    p, span, div { font-size: 1rem !important; }
    
    /* Navbar mobile */
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    /* Push hero brand below fixed navbar */
    .hero-brand {
        padding: 80px 0 1rem !important;
        margin-top: 0 !important;
    }
    
    .hero-brand img {
        max-width: none;
        width: 85vw;
    }
    
    /* Quick links - horizontal scroll */
    .quick-links {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 0.75rem 1rem !important;
        margin: 1rem -1rem !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .quick-links::-webkit-scrollbar {
        display: none !important;
    }
    
    .quick-link {
        flex-shrink: 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Carousel */
    #myCarousel {
        margin-top: 48px !important;
    }
    
    .carousel-item img,
    .carousel-bg {
        height: 350px;
        filter: brightness(0.3) saturate(1.1);
    }
    
    .slide-content {
        padding: 1.5rem 2rem;
        width: 90%;
        max-width: 95%;
        border-radius: 12px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem !important;
    }
    
    .slide-content h2 {
        font-size: 1rem !important;
    }
    
    .slide-content img {
        max-height: 150px !important;
    }
    
    .slide-content .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem !important;
    }
    
    .section-header .subtitle {
        font-size: 0.95rem;
    }
    
    /* Featurette cards */
    .featurette-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .featurette-heading {
        font-size: 1.4rem !important;
    }
    
    .featurette-card p.lead {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .feature-image-wrapper img {
        height: 250px;
    }
    
    /* Member cards */
    .member-card {
        padding: 1.5rem 1rem;
    }
    
    .member-avatar {
        width: 70px;
        height: 70px;
    }
    
    .member-name {
        font-size: 1rem !important;
    }
    
    .member-quote {
        font-size: 0.85rem !important;
    }
    
    /* Discord section */
    .discord-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .discord-section h2 {
        font-size: 1.3rem !important;
    }
    
    .discord-widget-frame iframe {
        height: 400px;
    }
}

/* ============================================
   SMALL MOBILE - Max Width 480px
   ============================================ */
@media (max-width: 480px) {
    /* Hero brand */
    .hero-brand {
        padding: 1.5rem 0 0.5rem;
        margin-top: 0.5rem;
    }
    
    .hero-brand img {
        max-width: none;
        width: 90vw;
    }
    
    /* Quick links tighter */
    .quick-links {
        padding: 0.5rem 0.75rem !important;
        margin: 0.75rem -0.75rem !important;
    }
    
    .quick-link {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Carousel */
    #myCarousel {
        margin-top: 44px !important;
    }
    
    .carousel-item img,
    .carousel-bg {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.25rem 1.5rem;
        width: 95%;
    }
    
    .slide-content h1 {
        font-size: 1.5rem !important;
    }
    
    .slide-content h2 {
        font-size: 0.9rem !important;
    }
    
    .slide-content img {
        max-height: 120px !important;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header .subtitle {
        font-size: 0.85rem;
    }
    
    /* Featurette cards compact */
    .featurette-card {
        padding: 1.25rem;
    }
    
    .featurette-heading {
        font-size: 1.25rem !important;
    }
    
    .featurette-card p.lead {
        font-size: 0.9rem !important;
    }
    
    .feature-image-wrapper img {
        height: 200px;
    }
    
    /* Buttons smaller */
    .btn-gradient,
    .btn-outline-cyan,
    .btn-outline-green,
    .btn-outline-orange {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    /* Member cards */
    .col-6.col-md-4.col-lg-3 {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .member-card {
        padding: 1.25rem 0.75rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
    }
    
    .member-name {
        font-size: 0.9rem !important;
    }
    
    .member-quote {
        font-size: 0.8rem !important;
    }
    
    /* Stack buttons vertically on very small screens */
    .member-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .member-actions .btn {
        width: 100% !important;
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }
    
    /* Discord section compact */
    .discord-section {
        padding: 1.25rem 0.75rem;
    }
    
    .discord-section h2 {
        font-size: 1.2rem !important;
    }
    
    .discord-widget-frame iframe {
        height: 350px;
    }
    
    /* Modal mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .modal-social i {
        font-size: 22px !important;
    }
    
    /* Counter badge compact */
    .counter-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .counter-badge .count {
        font-size: 1rem;
    }
}

/* ============================================
   EXTRA SMALL - Max Width 360px
   ============================================ */
@media (max-width: 360px) {
    .hero-brand img {
        max-width: 120px;
    }
    
    .quick-link {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
    
    .carousel-item img,
    .carousel-bg {
        height: 260px;
    }
    
    .slide-content {
        padding: 1rem 1.25rem;
    }
    
    .slide-content h1 {
        font-size: 1.3rem !important;
    }
    
    .section-header h2 {
        font-size: 1.3rem !important;
    }
}

/* ============================================
   LARGE SCREENS - Min Width 1400px
   ============================================ */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-brand img {
        max-width: 320px;
    }
}
