/* ========================================
   KAILAASA - Main Stylesheet
   ========================================
   Organization:
   1. CSS Variables & Base Styles
   2. Header & Navigation
   3. Character Showcase Section
   4. Feature Showcase Section
   5. Start/Connect Section
   6. Responsive Design
   7. Utility Classes
   ======================================== */

/* ========================================
   1. CSS VARIABLES & BASE STYLES
   ======================================== */

/* Start/Connect Section */
.start-connect {
    padding: 120px 5vw 140px;
    color: #f5f5f5;
}

.start-connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.start-card,
.connect-card {
    background: rgba(12, 12, 12, 0.7);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.connect-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: #ff79a8;
    margin-bottom: 6px;
}

.section-heading h3 {
    font-size: 2rem;
    color: white;
}

.section-heading .subtext {
    color: #c9d2dc;
    margin-top: 8px;
}

.start-step {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 30px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.step-content h4 {
    color: white;
    margin-bottom: 4px;
}

.step-content p {
    color: #bac1cc;
}

.step-cta {
    margin-left: auto;
    background: #ff2966;
    color: white;
    border-radius: 999px;
    padding: 10px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.step-cta.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
}

.questions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: #dfe5ee;
}

.questions-row a {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.social-tile {
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-tile.icon {
    padding: 30px;
}

.social-tile.icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.social-tile.discord { background: linear-gradient(135deg, #23272a, #5865f2); }
.social-tile.youtube { background: linear-gradient(135deg, #8b0000, #ff1e1e); }
.social-tile.instagram { background: linear-gradient(135deg, #f46f30, #833ab4); }

.social-tile:hover {
    transform: translateY(-4px);
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .start-connect-grid {
        grid-template-columns: 1fr;
    }

    .start-card,
    .connect-card {
        padding: 32px;
    }
}
/* Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3dc;
    --text-color: #333;
    --light-text: #f8f9fa;
    --background: #ffffff;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Header & Navigation */
:root {
    --primary-color: #e91e63;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --bg-dark: #1a1a1a;
    --bg-darker: #121212;
    --transition: all 0.3s ease;
}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Section-specific backgrounds */
.character-showcase .section-background,
.feature-showcase .section-background,
.start-connect .section-background,
.cfx-connect .section-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    opacity: 1;
    z-index: -1;
    transition: background-image 0.8s ease-in-out;
}

/* Ensure sections have proper positioning for backgrounds */
.character-showcase,
.feature-showcase,
.start-connect,
.cfx-connect {
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
.header {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    overflow: visible;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px; /* Adjusted for smaller logo */
    
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 140px; /* Reduced by 30% from 200px */
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain; /* Ensure the logo maintains aspect ratio */
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0 auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.25), rgba(147, 51, 234, 0.2));
    border-color: rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.nav-link::after {
    display: none;
}

.community-counter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem 1.2rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.community-counter:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 30, 99, 0.5);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(147, 51, 234, 0.15));
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.community-counter:hover .counter-value {
    color: #ff8cb8;
}

.counter-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #f06292);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.counter-icon svg {
    width: 20px;
    height: 20px;
}

.counter-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.counter-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.counter-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.language-selector:hover {
    color: var(--text-color);
}

.globe-icon {
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.donate-btn {
    display: none; /* Hidden */
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}

.donate-btn:hover {
    background-color: #d81b60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-muted);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-btn:hover span {
    background-color: var(--text-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .language-selector,
    .donate-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Character Showcase Section */
.character-showcase {
    position: relative;
    padding: 0 5vw 60px 5vw;
    margin-top: 0;
    min-height: 100vh;
    overflow: hidden;
}

.character-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.character-showcase .container {
    position: relative;
    z-index: 1;
    margin-top: 40px; /* Vertical gap between header and container */
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: stretch;
}

.character-tile {
    position: relative;
    height: 572px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.character-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    z-index: 1; /* Background layer */
}

.character-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 140, 184, 0) 0%, rgba(147, 51, 234, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.character-img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 90%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    z-index: 3; /* Front layer */
}

/* SVG Configuration System */
.character-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Middle layer - between background and character */
    pointer-events: none;
    overflow: hidden;
}

.character-svg-element {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.character-svg-element svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.3);
    transition: fill 0.3s ease;
}

/* Middle tile adjustments */
.middle-tile .character-svg-container {
    z-index: 1; /* Behind text content in middle tile */
}

/* Ensure middle tile content is on top */
.middle-tile .middle-content {
    position: relative;
    z-index: 2; /* Above SVG in middle tile */
}

.character-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 4; /* Top layer - above character image */
}

.role-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Middle Tile */
.middle-tile {
    grid-column: 4;
    background: url('../images/character-showcase/center-bg-bw.webp');
    background-size: cover;
    background-position: center;
    position: relative; /* Add position relative for absolute positioning of SVGs */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: filter 0.3s ease;
    height: 572px; /* Match regular tiles base height */
    /* Force exact same width behavior as regular tiles */
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 1; /* Allow shrinking */
    flex-grow: 0; /* Don't grow */
    flex-basis: auto; /* Let grid control */
}

/* Middle tile content positioning */
.middle-tile .middle-content {
    position: relative;
    z-index: 2; /* Above SVG in middle tile */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Move content to bottom */
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: filter 0.3s ease;
    height: 572px; /* Match regular tiles base height */
    /* Force exact same width behavior as regular tiles */
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 1; /* Allow shrinking */
    flex-grow: 0; /* Don't grow */
    flex-basis: auto; /* Let grid control */
}

.middle-tile:hover {
    filter: grayscale(0%); 
}

.middle-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.middle-content p {
    color: #aaa;
    margin-bottom: 20px;
}

.start-now-btn {
    background: #e91e63;
    color: white;
    border: none;
    padding: 10px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 135px;
}

.start-now-btn:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Hover Effects */
/* Individual tile hover - only affects the hovered tile */
.character-tile:not(.middle-tile):hover .character-img,
.character-tile:not(.middle-tile):hover .character-bg {
    filter: grayscale(0%) !important;
    transform: scale(1.05) !important;
}

.character-tile:not(.middle-tile):hover .character-bg::after {
    opacity: 1;
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.2) 0%,
        rgba(255, 140, 184, 0.4) 30%,
        rgba(147, 51, 234, 0.5) 60%,
        rgba(219, 39, 119, 0.6) 100%);
}

.character-tile:not(.middle-tile):hover .character-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Middle tile hover colors every tile via .all-colored class */
.character-tile.all-colored .character-img,
.character-tile.all-colored .character-bg {
    filter: grayscale(0%);
    transform: none;
}

/* CFX Connect Section */
.cfx-connect {
    padding: 60px 5vw;
    position: relative;
    color: #f4f4f4;
    min-height: 50vh;
}

.cfx-connect .container {
    position: relative;
    z-index: 1;
}

.cfx-connect-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cfx-connect-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cfx-connect-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd0d8;
}

.cfx-connect-btn {
    display: inline-block;
    background: #e91e63;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cfx-connect-btn:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

/* Feature Showcase Section */
.feature-showcase {
    padding: 120px 5vw;
    position: relative;
    color: #f4f4f4;
}

.feature-showcase .container {
    position: relative;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.feature-left,
.feature-right {
    border-radius: 28px;
    padding: 35px;
}

.feature-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    margin-bottom: 25px;
}

.feature-slide-media {
    width: 100%;
    height: 100%;
}

.feature-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.feature-slider:hover img {
    transform: scale(1.04);
}

.feature-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.feature-nav-btn:hover {
    background: rgba(233, 30, 99, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.feature-nav-btn.prev {
    left: 18px;
    z-index: 10;
}

.feature-nav-btn.next {
    right: 18px;
    z-index: 10;
}

.feature-slide-content .feature-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff799f;
    margin-bottom: 12px;
}

.feature-slide-content h3 {
    font-size: 2.1rem;
    margin-bottom: 12px;
    color: #fff;
}

.feature-slide-content p {
    color: #cbd0d8;
    margin-bottom: 20px;
    max-width: 90%;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.feature-cta::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.feature-cta:hover::after {
    transform: translateX(4px);
}

.feature-video-wrapper {
    margin-bottom: 25px;
}

.feature-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
}

.feature-video-info {
    margin-top: 20px;
    padding: 0 5px;
}

.feature-video-info .video-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.feature-video-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.video-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #ff8cb8;
}

.feature-right h4 {
    margin: 6px 0 0;
    font-size: 1.4rem;
}

.gallery-section {
    background: rgba(12, 12, 12, 0.65);
    border-radius: 24px;
    padding: 20px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.more-photos-btn {
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.gallery-grid button {
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: none;
}

.gallery-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid button:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 30px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.gallery-modal img {
    width: 100%;
    max-height: 80vh;
    border-radius: 18px;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: -10px;
    right: -10px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.4);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
}

.gallery-modal-nav.prev {
    left: -25px;
}

.gallery-modal-nav.next {
    right: -25px;
}

.donate-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 30px;
}

.donate-modal.open {
    display: flex;
}

.donate-modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: rgba(10,10,10,0.9);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.donate-modal-content img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.donate-close {
    position: absolute;
    top: -12px;
    right: -12px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
}


@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-left,
    .feature-right {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .feature-slider {
        min-height: 260px;
    }

    .feature-video-embed {
        border-radius: 16px;
    }

    .feature-video-embed iframe {
        border-radius: 16px;
    }

    .feature-video-info {
        margin-top: 15px;
    }

    .feature-video-info h4 {
        font-size: 1.25rem;
    }

    .feature-slide-content h3 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .gallery-modal-nav.prev {
        left: 5px;
    }

    .gallery-modal-nav.next {
        right: 5px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 16px;
        padding: 0;
    }
    
    /* Hide all SVG content on smaller screens */
    .character-svg-container,
    .character-svg-element {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Center middle tile content when SVGs are hidden */
    .middle-tile {
        justify-content: flex-end; /* Move content to bottom */
        align-items: center; /* Center content when no SVG */
    }
    
    .character-tile {
        width: 100%;
        height: 440px;
    }
    
    .middle-tile {
        grid-column: 2; /* Middle column in 3-column layout */
        grid-row: 1;
        margin-bottom: 20px;
        height: 440px; /* Match other tiles */
        padding: 30px;
        min-width: 0; /* Allow grid to control width */
        overflow: hidden; /* Match other tiles */
    }
    
    .nav,
    .character-showcase,
    .feature-showcase,
    .start-connect,
    .cfx-connect {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0;
    }
    
    .character-tile {
        height: 352px;
    }

    .character-showcase {
        padding: 0 20px 40px 20px;
    }
    
    .middle-tile {
        grid-column: 1; /* First column in 2-column layout */
        height: 352px; /* Match other tiles */
        padding: 20px;
        min-width: 0; /* Allow grid to control width */
        overflow: hidden; /* Match other tiles */
    }
    
    .nav,
    .feature-showcase,
    .start-connect,
    .cfx-connect {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .character-tile {
        height: 418px;
        width: 100%;
    }

    .character-showcase {
        padding: 0 16px 30px 16px;
    }
    
    .middle-tile {
        height: 418px; /* Match other tiles */
        padding: 20px;
    }
    
    .nav,
    .feature-showcase,
    .start-connect,
    .cfx-connect {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }
}
