
/* === Mobile Optimization Additions for Big Belly Trucking === */

/* Meta Theme Color (add this to your <head> tag):
<meta name="theme-color" content="#1a1a1d">
*/

    /* ===== Enhanced Dark Grey & Gold Theme ===== */
    :root {
      /* Dark Greys */
      --dark-bg: #1a1a1d;
      --darker-bg: #121214;
      --dark-card: #252529;
      --dark-border: #2e2e32;
      
      /* Gold Palette */
      --gold-primary: #d4af37;
      --gold-secondary: #b7950b;
      --gold-dark: #8a6d0b;
      --gold-light: #f1c40f;
      --gold-highlight: #ffd700;
      
      /* Text Colors */
      --text-primary: #e0e0e0;
      --text-secondary: #b0b0b0;
      --text-gold: #d4af37;
      --text-on-gold: #1a1a1d;
      
      /* Accents */
      --border-gold: rgba(212, 175, 55, 0.3);
      --shadow-gold: rgba(212, 175, 55, 0.2);
    }

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

    body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      background-color: var(--dark-bg);
      color: var(--text-primary);
      overflow-x: hidden;
    }

    /* ===== Enhanced Navigation ===== */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: var(--darker-bg);
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      border-bottom: 1px solid var(--border-gold);
    }

    .nav-right {
      display: flex;
      align-items: center;
      text-align: center;
      gap: 20px;
      padding: 10px 20px;
     
    }

    .logo-container {
      display: flex;
      padding: 10px 20px;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      color: var(--text-gold);
      font-weight: 700;
      font-size: 1.2rem;
      text-decoration: none;
    }

    .logo img {
      height: 40px;
      margin-right: 10px;
    }

    /* Right-aligned navigation */
    .nav-right {
      display: flex;
      align-items: center;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .nav-links a {
      color: var(--text-primary);
      font-weight: 500;
      transition: color 0.3s ease;
      text-decoration: none;
    }

    .nav-links a:hover {
      color: var(--gold-primary);
    }

    /* Enhanced Mobile Menu */
    .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      padding: 0;
      margin-left: auto; /* Push to far right */
      z-index: 1001;
    }

    .mobile-menu-toggle span {
      display: block;
      height: 3px;
      width: 100%;
      background-color: var(--gold-primary);
      transition: all 0.3s ease;
      transform-origin: right center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
      transform: rotate(-45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
      transform: rotate(45deg);
    }

    /* ===== Metallic Buttons ===== */
    .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 4px;
      font-weight: 600;
      transition: all 0.3s ease;
      text-align: center;
      position: relative;
      overflow: hidden;
      z-index: 1;
      border: none;
      text-decoration: none;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.1)
      );
      transform: rotate(30deg);
      z-index: -1;
      transition: all 0.3s ease;
    }

    .btn:hover::before {
      transform: rotate(30deg) translateX(10px);
    }

    .primary-btn {
      background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
      color: var(--text-on-gold);
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                  0 0 0 1px rgba(212, 175, 55, 0.3),
                  inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }

    .primary-btn:hover {
      background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
                  0 0 0 1px rgba(212, 175, 55, 0.4),
                  inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }

    

    /* ===== Responsive Styles ===== */
    @media (max-width: 992px) {
      .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--darker-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 15px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-gold);
      }

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

      .mobile-menu-toggle {
        display: flex;
      }

      .btn {
        width: 100%;
        margin-top: 10px;
      }
    }


    h1, h2, h3, h4 {
      font-family: 'Roboto Condensed', sans-serif;
      font-weight: 700;
      color: var(--text-gold);
    }

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

    /* Navigation */
    .navbar {
      background-color: var(--darker-bg);
      padding: 15px 0;
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      border-bottom: 1px solid var(--border-gold);
    }

    .logo {
      display: flex;
      align-items: center;
      color: var(--text-gold);
      font-weight: 700;
      font-size: 1.2rem;
    }

    .logo img {
      height: 40px;
      margin-right: 10px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .nav-links a {
      color: var(--text-primary);
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .nav-links a:hover {
      color: var(--gold-primary);
    }

    /* Buttons */
    .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 4px;
      font-weight: 600;
      transition: all 0.3s ease;
      text-align: center;
    }

    .btn i {
      margin-right: 8px;
    }

    .primary-btn {
      background-color: var(--gold-primary);
      color: var(--text-on-gold);
    }

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

    .secondary-btn {
      background-color: transparent;
      border: 1px solid var(--gold-primary);
      color: var(--gold-primary);
    }

    .secondary-btn:hover {
      background-color: rgba(212, 175, 55, 0.1);
    }

    .discord-btn {
      background-color: #5865F2;
      color: white;
    }

    .discord-btn:hover {
      background-color: #4752C4;
    }

    .support-btn {
      background-color: var(--gold-dark);
      color: white;
    }

    .support-btn:hover {
      background-color: var(--gold-secondary);
    }



    /* Hero Section */
    .hero {
      background: linear-gradient(rgba(26, 26, 29, 0.7), rgba(26, 26, 29, 0.7)), 
                  url('../images/BBT/F91BG.webp') no-repeat center center/cover;
      height: 100vh;
      min-height: 600px;
      color: white;
      display: flex;
      align-items: center;
      text-align: center;
      padding-top: 80px;
    }

    .hero h1 {
      font-size: 3.5rem;
      margin-bottom: 20px;
      color: var(--gold-primary);
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero .subtitle {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto 30px;
      color: var(--text-primary);
    }

    /* Sections */
    .section {
      padding: 80px 0;
    }

    .section-title {
      font-size: 2.5rem;
      margin-bottom: 20px;
      text-align: center;
      position: relative;
    }

    .section-title::after {
      content: '';
      display: block;
      width: 80px;
      height: 4px;
      background-color: var(--gold-primary);
      margin: 15px auto;
    }

    .section-subtitle {
      text-align: center;
      color: var(--text-secondary);
      max-width: 700px;
      margin: 0 auto 40px;
    }

    /* About Section */
    .about-section {
      background-color: var(--darker-bg);
	    text-align: center;
    }

    .about-section .content-box {
      background-color: var(--dark-card);
      padding: 30px;
      border-radius: 8px;
      max-width: 800px;
      margin: 0 auto;
      border: 1px solid var(--border-gold);
    }

    /* Features Section */
    .features-section {
      background-color: var(--dark-bg);
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .feature-card {
      background-color: var(--dark-card);
      border-radius: 8px;
      padding: 30px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
      border: 1px solid var(--border-gold);
    }

    .feature-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .feature-icon {
      font-size: 2.5rem;
      color: var(--gold-primary);
      margin-bottom: 20px;
    }

    .feature-card h3 {
      margin-bottom: 15px;
      color: var(--gold-primary);
    }

    /* Mod Section */
    .endorsed-mods-section{
      background: linear-gradient(rgba(26, 26, 29, 0.9), rgba(26, 26, 29, 0.9)), 
                  url('../images/BBT/mods.webp') no-repeat center center/cover;

    }
    .mods-card h3 {
      margin-bottom: 15px;
      color: var(--gold-primary);
    }
    
    .mods-card h3 {
      margin-bottom: 15px;
     
    }

    .mods-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .mods-card {
      background-color: var(--dark-card);
      border-radius: 8px;
      padding: 30px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
      border: 1px solid var(--border-gold);
    }

    .mods-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }


               
    

    /* Rules Section */
    .rules-section {
      background: linear-gradient(rgba(26, 26, 29, 0.9), rgba(26, 26, 29, 0.9)), 
                  url('../images/BBT/BBTRulesBG.webp') no-repeat center center/cover;
                  
    }

    .rules-container {
      background-color: var(--dark-card);
      border-radius: 8px;
      padding: 30px;
      max-width: 1000px;
      margin: 0 auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      border: 1px solid var(--border-gold);
    }

    .rules-content {
      column-count: 2;
      column-gap: 40px;
    }

    .rule-group {
      break-inside: avoid;
      margin-bottom: 25px;
      page-break-inside: avoid;
    }

    .rule-title {
      color: var(--gold-primary);
      font-size: 1.3rem;
      margin-bottom: 10px;
      font-family: 'Roboto Condensed', sans-serif;
      border-bottom: 2px solid var(--border-gold);
      padding-bottom: 5px;
    }

    .sub-rule-group {
      margin-left: 15px;
      margin-bottom: 10px;
    }

    .sub-rule-title {
      color: var(--gold-highlight);
      font-size: 1.1rem;
      margin: 8px 0;
      font-weight: 600;
    }

    .rule-list {
      list-style-type: none;
      margin-left: 5px;
    }

    .rule-list li {
      position: relative;
      padding-left: 20px;
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .rule-list li::before {
      content: "•";
      color: var(--gold-primary);
      font-weight: bold;
      position: absolute;
      left: 0;
    }

    .rules-footer {
      display: flex;
      align-items: center;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid var(--border-gold);
    }

    .rules-icon {
      margin-right: 20px;
    }

    .rules-icon img {
      width: 50%;
      height: 50%;
      border-radius: 50%;
      object-fit: cover;
    }

    .rules-disclaimer {
      font-style: italic;
      color: rgba(224, 224, 224, 0.7);
      font-size: 0.9rem;
    }

    /* Gallery Section */
    .gallery-section {
      background-color: var(--darker-bg);
    }
    .carousel { 
      position: relative; 
      width: 100%; 
      max-width: 1200px; 
      margin: auto; 
      overflow: hidden;
  }

    .carousel-images { 
      position: relative; 
    }

    .carousel-img { 
      display: none; 
      width: 100%; 
      height: 600px;
      object-fit: cover;
    }
    .carousel-img.active { display: block; }
    .carousel-btn {
      position: absolute; 
      top: 50%; 
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5); 
      color: #fff; 
      border: none; 
      font-size: 2rem; 
      padding: 0 10px; 
      cursor: pointer;
      z-index: 2;
    }
    .carousel-btn.prev { 
      left: 0; 
    }

    .carousel-btn.next { 
      right: 0; 
    }

    /* BBPD Section */
    .bbpd-section {
      background-color: var(--dark-card);
    }

    .bbpd-content {
      display: flex;
      align-items: center;
      gap: 40px;
    }

    .bbpd-text {
      flex: 1;
    }

    .bbpd-image {
      flex: 1;
    }

    .bbpd-image img {
      border-radius: 8px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border-gold);
    }

    /* Support Section */
    .support-section {
      background-color: var(--darker-bg);
      text-align: center;
    }

    .support-content {
      max-width: 700px;
      margin: 0 auto;
    }

    .support-content p {
      margin-bottom: 15px;
    }

   



/* Games Hero Section */
.games-hero {
  background-color: var(--dark-card);
  text-align: center;
  padding-top: 100px;
  height: 80vh;
  display: flex;
  align-items: center;
}
.games-hero h1{
  font-size: 3rem;
  left: 30%;
}




@media (max-width: 900px) {
  .donator-split {
    flex-direction: column;
    border-radius: 12px;
  }
  .vertical-bar {
    width: 100%;
    height: 2px;
    min-height: unset;
    background: linear-gradient(to right, #ffd700 0%, #ff9800 100%);
    margin: 24px 0;
  }
  .donator-list, .top-players {
    padding: 28px 10px;
    max-width: 100%;
  }
  .donator-cards {
    max-width: 100%;
  }
}



    /* Social Section */
    .social-section {
      background-color: var(--dark-card);
      color: white;
      text-align: center;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }

    .social-links a {
      font-size: 2rem;
      color: var(--text-primary);
      transition: color 0.3s ease, transform 0.3s ease;
    }

    .social-links a:hover {
      color: var(--gold-primary);
      transform: translateY(-5px);
    }

    /* Footer */
    .footer {
      background-color: var(--darker-bg);
      color: white;
      text-align: center;
      padding: 30px 0;
      border-top: 1px solid var(--border-gold);
    }

    .footer p {
      margin-bottom: 10px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      padding: 0;
    }

    .mobile-menu-toggle span {
      display: block;
      height: 3px;
      width: 100%;
      background-color: white;
      transition: all 0.3s ease;
    }

    /* Responsive Styles */
    @media(min-width:993px){
      .mobile-menu-toggle{
        visibility:hidden
      }
    }
    @media (max-width: 992px) {
      .rules-content {
        column-count: 1;
      }
      
      .bbpd-content {
        flex-direction: column;
      }
      
      .bbpd-image, .bbpd-text {
        flex: none;
        width: 100%;
      }
      
      .bbpd-image {
        margin-bottom: 30px;
      }
    }

    @media (max-width: 768px) {
      .mobile-menu-toggle {
        display: flex;
      }
      
      .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-gold);
      }
      
      .nav-links.active {
        transform: translateY(0);
      }
      
      .hero h1 {
        font-size: 2.5rem;
      }
      
      .section {
        padding: 60px 0;
      }
      
      .section-title {
        font-size: 2rem;
      }
    }

    @media (max-width: 576px) {
      .hero h1 {
        font-size: 2rem;
      }
      
      .hero .subtitle {
        font-size: 1rem;
      }
      
      .btn {
        padding: 10px 20px;
      }
      
      .features-grid {
        grid-template-columns: 1fr;
      }

      .rules-footer {
        flex-direction: column;
        text-align: center;
      }

      .rules-icon {
        margin-right: 0;
        margin-bottom: 15px;
      }
    }

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--darker-bg);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    transform: translateY(0);
  }

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

  .section {
    padding: 60px 10px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: auto;
    padding: 100px 10px 40px;
  }

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

  .hero .subtitle,
  .support-content p {
    padding: 0 10px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
  }

  .rules-container {
    padding: 20px;
  }

  .rule-title {
    font-size: 1.1rem;
  }

  .sub-rule-title {
    font-size: 1rem;
  }

  .rule-list li {
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  .rules-footer {
    flex-direction: column;
    text-align: center;
  }

  .rules-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
.mobile-menu-toggle {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 8px;
  z-index: 1001;
  margin-left: auto;
}

.mobile-menu-toggle span {
  background-color: var(--gold-primary);
  height: 3px;
  width: 100%;
  transition: all 0.3s ease;
}
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: left;
}

body {
  overflow-x: hidden;
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
}

.navbar {
  display: flex;
  align-items: left;
}
img {
  max-width: 100%;
  height: auto;
}


/* ===== Preloader Styles ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}
.preloader .loader {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary); 
}

.preloader img {
  width: 200px;
  height: 200px;
 
}




/* Optional ARIA and Accessibility Enhancements */
/* Add the following attributes to your HTML toggle button:
<button class="mobile-menu-toggle" aria-expanded="false" aria-controls="navigation">...</button>

Update your JavaScript to toggle aria-expanded accordingly */
