/* ========================================
   FRONTEND CSS - Home page and public-facing styles
   ========================================

   This file contains:
   - Hero section styles for different pages
   - Responsive design for mobile and tablet
   - Navigation and navbar styling
   - Brand color utilities
   - Section dividers and animations
   - News and content styling
   ======================================== */

/* ========================================
   HERO SECTION STYLES
   ========================================

   Main hero section with gradient background and overlay
   Used on home page and other landing pages
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Gradient background */
    min-height: 60vh;                      /* Minimum height for hero */
    display: flex;                         /* Flexbox layout */
    align-items: center;                   /* Center content vertically */
    position: relative;                    /* For overlay positioning */
    overflow: hidden;                      /* Hide overflow */
    color: white;                         /* White text */
}

.hero-section::before {
    content: '';                          /* Pseudo-element for overlay */
    position: absolute;                   /* Absolute positioning */
    top: 0;                              /* Top edge */
    left: 0;                             /* Left edge */
    right: 0;                            /* Right edge */
    bottom: 0;                           /* Bottom edge */
    background: rgba(0, 0, 0, 0.3);     /* Semi-transparent overlay */
    z-index: 1;                          /* Behind content */
}

.hero-content {
    position: relative;                   /* Above overlay */
    z-index: 2;                          /* Higher z-index */
    color: white;                        /* White text */
}

/* ========================================
   RESPONSIVE HERO SECTIONS - COMPREHENSIVE
   ========================================

   Mobile-first responsive design for all hero sections
   Ensures proper display across all device sizes
   ======================================== */

/* ========================================
   HOME PAGE HERO SECTION WITH SLIDER
   ========================================

   Responsive styles for carousel-based hero sections
   ======================================== */
@media (max-width: 768px) {
    .carousel-item section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .carousel-item .display-3 {
        font-size: 2rem !important;       /* Smaller title on mobile */
    }

    .carousel-item .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }

    .carousel-item img {
        max-height: 250px !important;     /* Limit image height */
    }

    .carousel-item .col-lg-6:first-child {
        order: 2;                         /* Reorder content */
        margin-top: 1rem;                 /* Add top margin */
    }

    .carousel-item .col-lg-6:last-child {
        order: 1;                         /* Image first on mobile */
    }
}

@media (max-width: 576px) {
    .carousel-item section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .carousel-item .display-3 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .carousel-item .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }

    .carousel-item img {
        max-height: 200px !important;     /* Smaller image */
    }
}

/* ========================================
   FALLBACK HERO SECTION (HOME PAGE)
   ========================================

   Alternative hero styles for non-carousel home pages
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .hero-section .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .hero-section .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }

    .hero-section .btn-lg {
        padding: 0.5rem 1rem !important;  /* Smaller button */
        font-size: 0.9rem !important;     /* Smaller button text */
    }

    .hero-section .col-md-6:first-child {
        order: 2;                         /* Content second */
        margin-top: 1rem;                 /* Add margin */
    }

    .hero-section .col-md-6:last-child {
        order: 1;                         /* Image first */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .hero-section .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .hero-section .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }

    .hero-section .btn-lg {
        padding: 0.4rem 0.8rem !important; /* Smaller button */
        font-size: 0.8rem !important;     /* Smaller button text */
    }

    .hero-section .fa-8x {
        font-size: 4rem !important;       /* Smaller icon */
    }
}

/* ========================================
   GAME PAGE HERO SECTION
   ========================================

   Specific responsive styles for game listing pages
   ======================================== */
@media (max-width: 768px) {
    .game-hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .game-hero-section .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .game-hero-section .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }

    .game-hero-section .btn-lg {
        padding: 0.5rem 1rem !important;  /* Smaller button */
        font-size: 0.9rem !important;     /* Smaller button text */
    }

    .game-hero-section .d-flex.gap-3 {
        gap: 0.5rem !important;           /* Reduced gap */
        flex-direction: column;           /* Stack vertically */
        align-items: center;              /* Center items */
    }
}

@media (max-width: 576px) {
    .game-hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .game-hero-section .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .game-hero-section .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }

    .game-hero-section .btn-lg {
        padding: 0.4rem 0.8rem !important; /* Smaller button */
        font-size: 0.8rem !important;     /* Smaller button text */
    }
}

/* ========================================
   GAME DETAIL PAGE HERO SECTION
   ========================================

   Responsive styles for individual game detail pages
   ======================================== */
@media (max-width: 768px) {
    .game-header {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .game-header .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .game-header .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }

    .game-header img {
        max-height: 200px !important;     /* Limit image height */
    }
}

@media (max-width: 576px) {
    .game-header {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .game-header .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .game-header .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }

    .game-header img {
        max-height: 150px !important;     /* Smaller image */
    }
}

/* ========================================
   MERCH PAGE HERO SECTION
   ========================================

   Responsive styles for merchandise listing pages
   ======================================== */
@media (max-width: 768px) {
    .merch-hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .merch-hero-section .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .merch-hero-section .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }

    .merch-hero-section .btn-lg {
        padding: 0.5rem 1rem !important;  /* Smaller button */
        font-size: 0.9rem !important;     /* Smaller button text */
    }

    .merch-hero-section .d-flex.gap-3 {
        gap: 0.5rem !important;           /* Reduced gap */
        flex-direction: column;           /* Stack vertically */
        align-items: center;              /* Center items */
    }
}

@media (max-width: 576px) {
    .merch-hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .merch-hero-section .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .merch-hero-section .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }

    .merch-hero-section .btn-lg {
        padding: 0.4rem 0.8rem !important; /* Smaller button */
        font-size: 0.8rem !important;     /* Smaller button text */
    }
}

/* ========================================
   MERCH DETAIL PAGE HERO SECTION
   ========================================

   Responsive styles for individual merchandise detail pages
   ======================================== */
@media (max-width: 768px) {
    .merch-hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .merch-hero-section .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .merch-hero-section img {
        max-height: 250px !important;     /* Limit image height */
    }

    .merch-hero-section .d-flex.justify-content-between {
        flex-direction: column;           /* Stack vertically */
        gap: 1rem;                        /* Add gap */
        align-items: center;              /* Center items */
    }

    .merch-hero-section .h3 {
        font-size: 1.5rem !important;     /* Smaller heading */
    }
}

@media (max-width: 576px) {
    .merch-hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .merch-hero-section .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .merch-hero-section img {
        max-height: 200px !important;     /* Smaller image */
    }

    .merch-hero-section .h3 {
        font-size: 1.25rem !important;    /* Smaller heading */
    }
}

/* ========================================
   NEWS PAGE HERO SECTION
   ========================================

   Responsive styles for news listing pages
   ======================================== */
@media (max-width: 768px) {
    .news-hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .news-hero-section .display-4 {
        font-size: 2rem !important;       /* Smaller title */
    }

    .news-hero-section .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }
}

@media (max-width: 576px) {
    .news-hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .news-hero-section .display-4 {
        font-size: 1.5rem !important;     /* Even smaller title */
    }

    .news-hero-section .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }
}

/* ========================================
   NEWS DETAIL PAGE HERO SECTION
   ========================================

   Responsive styles for individual news detail pages
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;      /* Auto height on mobile */
        height: auto !important;          /* Auto height */
        padding: 2rem 0 !important;       /* Reduced padding */
    }

    .hero-section .lead {
        font-size: 1rem !important;       /* Smaller subtitle */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto !important;      /* Auto height on small mobile */
        height: auto !important;          /* Auto height */
        padding: 1.5rem 0 !important;     /* Further reduced padding */
    }

    .hero-section .lead {
        font-size: 0.9rem !important;     /* Smaller subtitle */
    }
}

/* ========================================
   PLATFORM BADGES RESPONSIVE
   ========================================

   Responsive styles for game platform badges
   ======================================== */
@media (max-width: 576px) {
    .platform-badge {
        font-size: 0.7rem !important;     /* Smaller badge text */
        padding: 0.3rem 0.6rem !important; /* Smaller padding */
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;           /* Reduced gap */
    }
}

/* ========================================
   HERO TITLE BASE STYLES
   ========================================

   Base styling for hero section titles
   ======================================== */
.hero-title {
    font-size: 3rem;                      /* Large title size */
    font-weight: bold;                    /* Bold font weight */
    color: white;                         /* White text */
    margin-bottom: 1rem;                  /* Bottom margin */
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;     /* Smaller on tablet */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;       /* Smaller on mobile */
    }
}

/* ========================================
   NEWS CATEGORY BADGE
   ========================================

   Styling for news category badges
   ======================================== */
.news-category {
    background-color: var(--primary-color); /* Primary color background */
    color: white;                         /* White text */
    font-size: 0.9rem;                   /* Small font size */
    padding: 0.5rem 1rem;                /* Padding */
    border-radius: 20px;                 /* Rounded corners */
}

.category-badge {
    display: inline-block;                /* Inline block display */
}

@media (max-width: 576px) {
    .news-category {
        font-size: 0.8rem !important;     /* Smaller on mobile */
        padding: 0.4rem 0.8rem !important; /* Smaller padding */
    }
}

/* ========================================
   POSTED BY TEXT
   ========================================

   Styling for "posted by" information
   ======================================== */
.posted-by {
    font-size: 1rem;                      /* Base font size */
    color: rgba(255, 255, 255, 0.8);     /* Semi-transparent white */
    margin-bottom: 1rem;                  /* Bottom margin */
}

@media (max-width: 768px) {
    .posted-by {
        font-size: 0.9rem !important;     /* Smaller on tablet */
    }
}

@media (max-width: 576px) {
    .posted-by {
        font-size: 0.8rem !important;     /* Smaller on mobile */
    }
}

/* ========================================
   SECTION DIVIDERS
   ========================================

   Animated section dividers with shimmer effect
   ======================================== */
.section-divider {
    height: 8px;                          /* Divider height */
    width: 100%;                          /* Full width */
    position: relative;                   /* For pseudo-element */
    overflow: hidden;                     /* Hide overflow */
}

.section-divider::before {
    content: '';                          /* Pseudo-element */
    position: absolute;                   /* Absolute positioning */
    top: 0;                              /* Top edge */
    left: 0;                             /* Left edge */
    right: 0;                            /* Right edge */
    bottom: 0;                           /* Bottom edge */
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%); /* Gradient */
    animation: shimmer 3s ease-in-out infinite; /* Shimmer animation */
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;                     /* Low opacity */
    }
    50% {
        opacity: 1;                       /* Full opacity */
    }
}

/* ========================================
   BRAND COLOR CLASSES
   ========================================

   Utility classes for brand colors
   ======================================== */
.sunset-orange {
    background-color: var(--sunset-orange); /* Sunset orange background */
    color: var(--sunset-orange);          /* Sunset orange text */
}

.saffron {
    background-color: var(--saffron);     /* Saffron background */
    color: var(--saffron);                /* Saffron text */
}

.tan-hide {
    background-color: var(--tan-hide);    /* Tan hide background */
    color: var(--tan-hide);               /* Tan hide text */
}

.tonys-pink {
    background-color: var(--tonys-pink);  /* Tony's pink background */
    color: var(--tonys-pink);             /* Tony's pink text */
}

.roman {
    background-color: var(--roman);       /* Roman background */
    color: var(--roman);                  /* Roman text */
}

/* ========================================
   NAVBAR STYLING
   ========================================

   Navigation bar styling with theme support
   ======================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: var(--bg-primary);  /* Primary background */
    transition: all 0.3s ease;            /* Smooth transitions */
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Dark theme shadow */
}

.navbar-brand {
    font-weight: 700;                     /* Bold brand text */
    color: var(--primary-color) !important; /* Primary color */
}

.navbar-nav .nav-link {
    color: var(--text-primary);           /* Primary text color */
    font-weight: 500;                     /* Medium font weight */
    transition: color 0.3s ease;          /* Smooth color transition */
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);          /* Primary color on hover */
}

/* ========================================
   ACTIVE MENU HIGHLIGHTING WITH BADGE
   ========================================

   Enhanced active menu item styling with animated badge
   ======================================== */
.navbar-nav .nav-link {
    position: relative;                   /* For pseudo-elements */
    color: var(--text-primary);           /* Primary text color */
    font-weight: 500;                     /* Medium font weight */
    transition: all 0.3s ease;            /* Smooth transitions */
    padding: 0.5rem 1rem;                /* Padding */
    border-radius: 6px;                  /* Rounded corners */
    margin: 0 0.25rem;                   /* Margin */
}

.navbar-nav .nav-link.active {
    color: white;                         /* White text */
    background-color: #ff4747;           /* Active background */
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3); /* Active shadow */
    transform: translateY(-1px);          /* Lift effect */
}

.navbar-nav .nav-link.active::after {
    content: '';                          /* Pseudo-element for badge */
    position: absolute;                   /* Absolute positioning */
    top: -2px;                           /* Position above */
    right: -2px;                         /* Position right */
    width: 8px;                          /* Badge width */
    height: 8px;                         /* Badge height */
    background-color: #ff4747;           /* Badge color */
    border-radius: 50%;                  /* Circular badge */
    border: 2px solid white;             /* White border */
    box-shadow: 0 0 8px rgba(255, 71, 71, 0.6); /* Badge glow */
    animation: pulse 2s infinite;        /* Pulse animation */
}

.navbar-nav .nav-link.active::before {
    content: '';                          /* Pseudo-element for background */
    position: absolute;                   /* Absolute positioning */
    top: 0;                              /* Top edge */
    left: 0;                             /* Left edge */
    right: 0;                            /* Right edge */
    bottom: 0;                           /* Bottom edge */
    background: linear-gradient(135deg, #ff4747 0%, rgba(255, 71, 71, 0.9) 100%); /* Gradient background */
    border-radius: 6px;                  /* Rounded corners */
    z-index: -1;                         /* Behind content */
    opacity: 0.9;                        /* Semi-transparent */
}

/* ========================================
   PULSE ANIMATION FOR ACTIVE BADGE
   ========================================

   Keyframe animation for pulsing badge effect
   ======================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.7); /* Initial glow */
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 71, 71, 0); /* Expanding glow */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 71, 0); /* Fade out */
    }
}

/* ========================================
   HOVER EFFECT FOR ACTIVE ITEMS
   ========================================

   Enhanced hover effects for active navigation items
   ======================================== */
.navbar-nav .nav-link.active:hover {
    background-color: #ff4747;           /* Maintain active color */
    transform: translateY(-2px);          /* Enhanced lift */
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.4); /* Enhanced shadow */
}

/* ========================================
   SMOOTH SCROLL OFFSET FOR NAVBAR
   ========================================

   Offset for smooth scrolling to account for fixed navbar
   ======================================== */
#about,
#contact {
    scroll-margin-top: 80px;
}

/* ========================================
   GAME SLIDER STYLING
   ========================================

   Styles for the carousel component
   ======================================== */
.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .carousel {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-item {
    min-height: 400px;
}

.carousel-item section {
    position: relative;
    overflow: hidden;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1rem;
}

/* ========================================
   FEATURE CARDS
   ========================================

   Styles for feature cards
   ======================================== */
.feature-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .feature-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ========================================
   TESTIMONIAL SECTION
   ========================================

   Styles for testimonial cards
   ======================================== */
.testimonial-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

[data-bs-theme="dark"] .testimonial-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

/* ========================================
   FOOTER
   ========================================

   Styles for the footer
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ========================================

   Responsive adjustments for different screen sizes
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }

    #about,
    #contact {
        scroll-margin-top: 60px;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .carousel-item {
        min-height: 300px;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }

    .carousel-item {
        min-height: 250px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ========================================
   ANIMATION CLASSES
   ========================================

   CSS classes for fade-in and loading animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   LOADING ANIMATION
   ========================================

   Spinner animation for loading states
   ======================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   CONTACT SECTION SPECIFIC STYLES
   ========================================

   Styles for the contact section
   ======================================== */
.contact-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .contact-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.left-title {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-bar {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin-bottom: 1rem;
}

.email-display {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.email-display a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

.email-display a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-color);
    filter: brightness(1.1);
    color: white;
    transform: translateY(-1px);
}

/* ========================================
   PLATFORM BADGES
   ========================================

   Styles for game platform badges
   ======================================== */
.platform-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .platform-badge:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* ========================================
   ADDITIONAL DARK MODE SUPPORT
   ========================================

   Dark mode specific overrides for text, cards, buttons, etc.
   ======================================== */
[data-bs-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .card-text.text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================
   ENSURE ALL TEXT ELEMENTS USE PROPER COLORS
   ========================================

   Dark mode overrides for all text elements
   ======================================== */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div {
    color: var(--text-primary);
}

/* ========================================
   OVERRIDE ANY REMAINING HARDCODED COLORS
   ========================================

   Specific overrides for dark mode hardcoded colors
   ======================================== */
[data-bs-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .text-light {
    color: var(--text-secondary) !important;
}

/* ========================================
   ENSURE PROPER BACKGROUND COLORS
   ========================================

   Dark mode overrides for background colors
   ======================================== */
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bg-primary) !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   SECTION SPECIFIC DARK MODE SUPPORT
   ========================================

   Dark mode overrides for specific sections
   ======================================== */
[data-bs-theme="dark"] #about,
[data-bs-theme="dark"] #contact {
    background-color: var(--bg-primary);
}

[data-bs-theme="dark"] .py-5 {
    background-color: var(--bg-primary);
}

/* ========================================
   ENSURE PROPER SPACING AND LAYOUT IN DARK MODE
   ========================================

   Dark mode overrides for container, row, column
   ======================================== */
[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] .row,
[data-bs-theme="dark"] .col-12,
[data-bs-theme="dark"] .col-md-4,
[data-bs-theme="dark"] .col-md-6,
[data-bs-theme="dark"] .col-lg-6 {
    background-color: transparent;
}

/* ========================================
   ADDITIONAL DARK MODE OVERRIDES FOR LANDING PAGE
   ========================================

   Dark mode overrides for landing page specific elements
   ======================================== */
[data-bs-theme="dark"] .display-4,
[data-bs-theme="dark"] .display-5,
[data-bs-theme="dark"] .display-3 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .lead {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .fw-bold,
[data-bs-theme="dark"] .fw-semibold {
    color: var(--text-primary);
}

/* ========================================
   ENSURE PROPER CONTRAST FOR ALL TEXT ELEMENTS
   ========================================

   Dark mode overrides for text centering
   ======================================== */
[data-bs-theme="dark"] .text-center {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .text-center h1,
[data-bs-theme="dark"] .text-center h2,
[data-bs-theme="dark"] .text-center h3,
[data-bs-theme="dark"] .text-center h4,
[data-bs-theme="dark"] .text-center h5,
[data-bs-theme="dark"] .text-center h6 {
    color: var(--text-primary);
}

/* ========================================
   FINAL DARK MODE OVERRIDES FOR LANDING PAGE
   ========================================

   Dark mode overrides for landing page specific elements
   ======================================== */
[data-bs-theme="dark"] .mb-3,
[data-bs-theme="dark"] .mb-4,
[data-bs-theme="dark"] .mb-5 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .mt-4,
[data-bs-theme="dark"] .mt-5 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .py-5 {
    background-color: var(--bg-primary);
}

[data-bs-theme="dark"] .bg-secondary {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   ENSURE ALL SECTIONS HAVE PROPER BACKGROUND
   ========================================

   Dark mode overrides for all sections
   ======================================== */
[data-bs-theme="dark"] section {
    background-color: var(--bg-primary);
}

[data-bs-theme="dark"] .row.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   ENSURE PROPER TEXT COLORS IN ALL SECTIONS
   ========================================

   Dark mode overrides for container headings
   ======================================== */
[data-bs-theme="dark"] .container h1,
[data-bs-theme="dark"] .container h2,
[data-bs-theme="dark"] .container h3,
[data-bs-theme="dark"] .container h4,
[data-bs-theme="dark"] .container h5,
[data-bs-theme="dark"] .container h6 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .container p {
    color: var(--text-secondary);
}

/* ========================================
   ENSURE PROPER CONTRAST FOR ALL ELEMENTS
   ========================================

   Dark mode overrides for text centering
   ======================================== */
[data-bs-theme="dark"] .text-center h1,
[data-bs-theme="dark"] .text-center h2,
[data-bs-theme="dark"] .text-center h3,
[data-bs-theme="dark"] .text-center h4,
[data-bs-theme="dark"] .text-center h5,
[data-bs-theme="dark"] .text-center h6 {
    color: var(--text-primary);
}

/* ========================================
   ENSURE ALL TEXT ELEMENTS USE PROPER COLORS IN DARK MODE
   ========================================

   Dark mode overrides for all text elements
   ======================================== */
[data-bs-theme="dark"] * {
    color: var(--text-primary);
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .card-text {
    color: var(--text-secondary) !important;
}

/* ========================================
   FINAL COMPREHENSIVE DARK MODE SUPPORT
   ========================================

   Dark mode overrides for all hero, carousel, and background elements
   ======================================== */
[data-bs-theme="dark"] .hero-section * {
    color: white !important;
}

[data-bs-theme="dark"] .carousel-item * {
    color: white !important;
}

[data-bs-theme="dark"] .bg-secondary {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .bg-primary {
    background-color: var(--bg-primary) !important;
}

/* ========================================
   ENSURE PROPER TEXT COLORS FOR ALL ELEMENTS
   ========================================

   Dark mode overrides for text centering
   ======================================== */
[data-bs-theme="dark"] .text-center h1,
[data-bs-theme="dark"] .text-center h2,
[data-bs-theme="dark"] .text-center h3,
[data-bs-theme="dark"] .text-center h4,
[data-bs-theme="dark"] .text-center h5,
[data-bs-theme="dark"] .text-center h6 {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .text-center p {
    color: var(--text-secondary) !important;
}

/* ========================================
   ENSURE PROPER BACKGROUND COLORS FOR SECTIONS
   ========================================

   Dark mode overrides for background colors
   ======================================== */
[data-bs-theme="dark"] .py-5 {
    background-color: var(--bg-primary) !important;
}

[data-bs-theme="dark"] .row.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   ENSURE ALL SECTIONS HAVE PROPER STYLING
   ========================================

   Dark mode overrides for all sections
   ======================================== */
[data-bs-theme="dark"] section {
    background-color: var(--bg-primary) !important;
}

[data-bs-theme="dark"] .container {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .row {
    background-color: transparent !important;
}

/* ========================================
   ENSURE PROPER TEXT COLORS FOR ALL HEADINGS
   ========================================

   Dark mode overrides for all headings
   ======================================== */
[data-bs-theme="dark"] .display-3,
[data-bs-theme="dark"] .display-4,
[data-bs-theme="dark"] .display-5 {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .lead {
    color: var(--text-secondary) !important;
}

/* ========================================
   ENSURE PROPER STYLING FOR ALL TEXT ELEMENTS
   ========================================

   Dark mode overrides for all text elements
   ======================================== */
[data-bs-theme="dark"] .fw-bold,
[data-bs-theme="dark"] .fw-semibold {
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* ========================================
   ENSURE PROPER STYLING FOR ALL BACKGROUND ELEMENTS
   ========================================

   Dark mode overrides for all background elements
   ======================================== */
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bg-primary) !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   NEWS SECTION LINKS
   ========================================

   Styles for news category links
   ======================================== */
.news-category-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-category-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   HERO SECTION TEXT COLORS
   ========================================

   Dark mode overrides for hero section text
   ======================================== */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span {
    color: white !important;
}

/* ========================================
   CAROUSEL TEXT COLORS
   ========================================

   Dark mode overrides for carousel text
   ======================================== */
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption h6,
.carousel-caption p,
.carousel-caption span {
    color: white !important;
}

/* ========================================
   SECTION BACKGROUNDS
   ========================================

   Dark mode overrides for section backgrounds
   ======================================== */
.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .bg-secondary {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   TEXT COLOR SUPPORT
   ========================================

   Dark mode overrides for text color support
   ======================================== */
.text-secondary {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* ========================================
   CARD TEXT COLORS
   ========================================

   Dark mode overrides for card text
   ======================================== */
.card-text {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .card-text {
    color: var(--text-secondary);
}

/* ========================================
   FORM LABELS
   ========================================

   Dark mode overrides for form labels
   ======================================== */
.form-label {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .form-label {
    color: var(--text-primary);
}

/* ========================================
   PLACEHOLDER ICONS
   ========================================

   Dark mode overrides for placeholder icons
   ======================================== */
.card-img-top .fas,
.card-img-top .bi {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .card-img-top .fas,
[data-bs-theme="dark"] .card-img-top .bi {
    color: var(--text-secondary);
}

/* ========================================
   HERO SECTION ICON
   ========================================

   Dark mode overrides for hero section icon
   ======================================== */
.hero-section .fas {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ENSURE ALL TEXT IN HERO SECTION IS WHITE
   ========================================

   Dark mode overrides for hero section text
   ======================================== */
.hero-section * {
    color: white !important;
}

/* ========================================
   OVERRIDE ANY CONFLICTING STYLES
   ========================================

   Specific overrides for conflicting styles
   ======================================== */
.hero-section .text-primary,
.hero-section .text-secondary,
.hero-section .text-muted {
    color: white !important;
}

/* ========================================
   CAROUSEL TEXT COLORS
   ========================================

   Dark mode overrides for carousel text
   ======================================== */
.carousel-item h1,
.carousel-item h2,
.carousel-item h3,
.carousel-item h4,
.carousel-item h5,
.carousel-item h6,
.carousel-item p,
.carousel-item span,
.carousel-item a,
.carousel-item .text-white,
.carousel-item .text-white-50 {
    color: white !important;
}

.carousel-item .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================
   ENSURE CAROUSEL TEXT IS ALWAYS WHITE
   ========================================

   Dark mode overrides for carousel text
   ======================================== */
.carousel-item * {
    color: white !important;
}

/* ========================================
   OVERRIDE ANY BOOTSTRAP TEXT UTILITIES IN CAROUSEL
   ========================================

   Dark mode overrides for carousel text utilities
   ======================================== */
.carousel-item .text-primary,
.carousel-item .text-secondary,
.carousel-item .text-muted,
.carousel-item .text-dark {
    color: white !important;
}

/* ========================================
   HERO SECTION BUTTON STYLES
   ========================================

   Dark mode overrides for hero section buttons
   ======================================== */
.hero-section .btn-light {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-section .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn-outline-light {
    color: white;
    border-color: white;
}

.hero-section .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ========================================
   ENSURE ALL TEXT IN SECTIONS IS PROPERLY COLORED
   ========================================

   Dark mode overrides for all sections
   ======================================== */
section h1, section h2, section h3, section h4, section h5, section h6 {
    color: var(--text-primary);
}

section p {
    color: var(--text-secondary);
}

/* ========================================
   DARK MODE SPECIFIC OVERRIDES
   ========================================

   Dark mode overrides for specific sections
   ======================================== */
[data-bs-theme="dark"] section h1,
[data-bs-theme="dark"] section h2,
[data-bs-theme="dark"] section h3,
[data-bs-theme="dark"] section h4,
[data-bs-theme="dark"] section h5,
[data-bs-theme="dark"] section h6 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] section p {
    color: var(--text-secondary);
}

/* ========================================
   ADDITIONAL DARK MODE SUPPORT FOR LANDING PAGE
   ========================================

   Dark mode overrides for landing page specific elements
   ======================================== */
[data-bs-theme="dark"] .container {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .row {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .col-12,
[data-bs-theme="dark"] .col-md-4,
[data-bs-theme="dark"] .col-md-6,
[data-bs-theme="dark"] .col-lg-6 {
    color: var(--text-primary);
}

/* ========================================
   ENSURE PROPER CONTRAST IN DARK MODE
   ========================================

   Dark mode overrides for card contrast
   ======================================== */
[data-bs-theme="dark"] .card {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .card-title {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .card-body {
    color: var(--text-primary);
}

/* ========================================
   FORM ELEMENTS IN DARK MODE
   ========================================

   Dark mode overrides for form elements
   ======================================== */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* ========================================
   BUTTON STYLES IN DARK MODE
   ========================================

   Dark mode overrides for buttons
   ======================================== */
[data-bs-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(1.1);
    border-color: var(--primary-color);
    color: white;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}
