/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: rgba(29, 29, 29, 1);
    color: #ffffff;
    overflow-x: hidden;
}

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

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.cookie-content {
    background: #333333;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
    margin: 20px;
}

.cookie-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.cookie-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cccccc;
}

.cookie-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-accept {
    background: rgba(78, 227, 198, 1);
    color: rgba(29, 29, 29, 1);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refuse {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: #45b8b0;
    transform: translateY(-2px);
}

.btn-refuse:hover {
    background: #ffffff;
    color: rgba(29, 29, 29, 1);
    transform: translateY(-2px);
}

.cookie-notice.hidden {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(29, 29, 29, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 8px 0;
    line-height: 1.2;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: unset;
}

.logo {
    width: 50px;
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(78, 227, 198, 1);
    color: rgba(29, 29, 29, 1);
}

.btn-play {
    background: rgba(78, 227, 198, 1);
    color: rgba(29, 29, 29, 1);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: #45b8b0;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
}


/* Hero Section */
.hero {
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
}

.hero-title {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title img {
    width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-content p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 242px;
    width: 100%;
}

.btn-games {
    background: rgba(78, 227, 198, 1);
    color: rgba(29, 29, 29, 1);
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.1;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-games:hover {
    background: #45b8b0;
    transform: translateY(-2px);
}

.hero-character {
  position: absolute;
  bottom: 0;
  max-width: 616px;
  width: 100%;
  max-height: 80vh;
}

.hero-character img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;

}

/* About Section */
.about {
    padding: 30px 0;
    background: rgba(41, 40, 46, 1);
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
}

.about-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    align-items: center;
    text-align: center;
}

.star-decoration img {
    width: 200px;
    height: 200px;
    animation: float 3s ease-in-out infinite;
}

.star-decoration.right img {
    animation-delay: -1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.game-icons-strip {
  width: 100%;
  height: auto;
  z-index: 3;
  position: relative;

}

.game-icons-strip img {
  height: 100%;
  width: 100%;
    max-height: 200px;
  object-fit: cover;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Section */
.why-choose {
    padding: 40px 0;
     background: rgba(41, 40, 46, 1);
}

.why-choose h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.feature {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}
@media (min-width:767.9px){
   
.feature:nth-child(1){
  transform: rotate(-4deg) !important;
}

.feature:nth-child(3){
  transform: rotate(4deg) !important;
} 
}

.feature-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature:hover .feature-image img {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    padding-left: 20px;
    padding-right: 20px;
}

.feature h3:last-child {
  padding-bottom: 20px;
}

.feature p {
    line-height: 1.6;
     padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

/* Games Section */
.games-section {
    padding: 40px 0;
    background: rgba(41, 40, 46, 1);
}

.games-section h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    line-height: 1;
    margin-bottom: 32px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.genre {
    background:rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.genre:hover {
    transform: translateY(-10px);
}

.genre-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.genre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.genre:hover .genre-image img {
    transform: scale(1.1);
}

.genre h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    padding: 20px 20px 10px;
}

.genre p {
    line-height: 1.6;
    padding: 0 20px 20px;
}

/* Footer */
.footer {
    background: rgba(41, 40, 46, 1);
    padding: 24px 0 ;
    position: relative;
    overflow: hidden;
}

.footer .container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  padding-bottom: 180px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: unset;
}

.footer-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer .game-icons-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.contact-item .icon {
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #fff;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(78, 227, 198, 1);
}

.footer-star img {
    width: 140px;
    height: 140px;
    animation: float 3s ease-in-out infinite;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-link.twitter {
    background: #1DA1F2;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-play {
        display: none;
    }
    .header .container {
      flex-direction: column;
    }

    .hero-content {
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }
    
    .nav-menu {
      gap: 8px;
    }
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
      padding-top: 40px;
    }

    .hero-content p{
      max-width: 100%;
    }

    .hero-character {
      position: relative;
      margin-top: -80px;
        }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content h2,
    .why-choose h2,
    .games-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-content {
        padding: 30px 20px;
    }
    
    .cookie-content h2 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

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

    
    .hero-character img {
      object-position: center;
        max-height: 500px;

    }

    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .genres-grid {
        grid-template-columns: 1fr;
    }
    .footer .container {
      padding-bottom: 80px;
    }
    .contact-info {
      text-align: center;
      align-items: center;
    }
}

.game-title {
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.game .hero-character {
  max-width: 300px;
  bottom: -80%;
}

.game.hero {
  min-height: max-content;
  padding-bottom: 240px;
}

@media (max-width:768px){
    .game-title {
      font-size: 48px;
      padding-top: 40px;
    }

    .game .hero-character {
      margin-top: 0;
    }
}

#games-collection {
  scroll-margin-top: 80px;
}

.policy {
  margin-top: 80px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.policy h1 {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

@media (min-width:768px){
   .policy h1 {
    font-size: 40px;
   } 
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.4;
}

.policy-content li {
  list-style-position: inside;
}

.policy-content a {
  color: inherit;
  text-decoration: none;
}

#id {
  scroll-margin-top: 80px;
}