* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #121212;
  }
  
  h1, h2, h3, .logo {
    font-family: 'Cinzel Decorative', serif;
  }
  

.contact-section a,
.about-section a {
    color: #e0e0e0; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-section a:hover,
.about-section a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 6px rgba(255, 87, 51, 0.6);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    position: relative; 
  }

:root {
    --primary-color: #f0f0f0;
    --secondary-color: #ff5733;
    --bg-color: #121212;
    --accent-color: #ff5733;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.site-header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.site-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav {
    position: relative; 
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    margin-left: auto; 
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: background-color 0.3s ease;
  }
  

  @media (max-width: 768px) {
    .hamburger {
      display: flex; 
    }
  
    .main-nav ul {
      display: none;             
      flex-direction: column;
      gap: 10px;
      position: absolute;
      top: 40px;                
      right: 0;                 
      background-color: #121212;
      padding: 10px 20px;
      border: 1px solid #333;
      z-index: 999;
    }
  
    .main-nav.nav-open ul {
      display: flex;
    }
  }
  
  
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

#hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 2;
    filter: brightness(0.5);
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
    padding: 20px 30px;
    border-radius: 8px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out 0.5s, transform 1s ease-in-out 0.5s;
  }
  
  .hero-text.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .hero-text h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
  }
  
  .hero-text p {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #f0f0f0;
    margin: 0;
    opacity: 0.9;
  }

  .hero-text .cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  .hero-text .cta-button:hover {
    background-color: #cc4629;
  }
  
.games-section,
.shop-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.games-section h2,
.shop-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.card {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card2 {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 16px; 
    box-sizing: border-box; 
  }
  
  .card2 h3, .card2 p {
    margin: 0;
    padding: 8px 12px;
  }

.cards.single-card {
    display: flex; 
    justify-content: center;
  }
  
  .cards.single-card .card {
    padding-top: 0 !important;
    aspect-ratio: 16 / 9;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }

.card-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
    z-index: 1;
    filter: grayscale(40%) brightness(0.9);
}

.card-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.card-text-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;       
    text-align: center;
    pointer-events: none;
    z-index: 3;
    transition: all 0.3s ease; 
}

.card-title {
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow:
      1px 1px 0 #000,
      -1px 1px 0 #000,
      1px -1px 0 #000,
      -1px -1px 0 #000,
      0 0 6px rgba(255,255,255,0.6);
}

.card-description {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #fff;
    opacity: 0;  
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .card {
      padding-top: 75%; 
    }
  
    .card-title {
      font-size: 1.2rem;  
      line-height: 1.2;  
    }
  
    .card-text-container {
      top: 50%; 
      transform: translate(-50%, -50%);
      width: 90%;
    }
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.video-card:hover .card-video {
    opacity: 1;
}
.video-card:hover .card-image {
    opacity: 0;
}

.video-card:hover .card-text-container {
    top: 70%;
    transform: translate(-50%, -50%);
}

.video-card:hover .card-title {
    font-size: 1.3rem;
}

.video-card:hover .card-description {
    opacity: 1; 
}

@media (hover: none) {
    .video-card:hover .card-video {
      opacity: 0;
    }
    .video-card:hover .card-image {
      opacity: 1;
    }
    .video-card:hover .card-text-container {
      top: 50%;
      transform: translate(-50%, -50%);
    }
    .video-card:hover .card-title {
      font-size: 2rem;
    }
    .video-card:hover .card-description {
      opacity: 0;
    }
}

.site-footer {
    background-color: var(--bg-color);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.site-footer p {
    font-size: 0.9rem;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

@media (max-width: 768px) {
    .hero-section {
      height: 40vh;
    }
    .hero-text h2 {
      font-size: 1.8rem;
    }
    .hero-text p {
      font-size: 1rem;
    }
    .container {
      padding: 0 10px;
    }
}
