 :root {
     --color-primary: #2dd4bf;
     --color-primary-dark: #14b8a6;
     --color-secondary: #38bdf8;
     --color-text: #374151;
     --color-text-light: #6b7280;
     --color-bg: #ffffff;
     --color-bg-light: #f8fafc;
     --color-border: #e5e7eb;
     --color-error: #ef4444;

     --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     --font-weight-normal: 400;
     --font-weight-bold: 700;

     --container-width: 1140px;
     --header-height: 80px;
     --border-radius: 8px;
     --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 }

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

 html {
     scroll-behavior: smooth;
     font-size: 16px;
 }

 body {
     font-family: var(--font-family-sans);
     color: var(--color-text);
     background-color: var(--color-bg);
     line-height: 1.6;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }

 body.no-scroll {
     overflow: hidden;
 }

 .container {
     max-width: var(--container-width);
     margin-left: auto;
     margin-right: auto;
     padding: 0 1rem;
 }

 .section {
     padding: 4rem 0;
 }

 .section:nth-of-type(even) {
     background-color: var(--color-bg-light);
 }

 .section-title {
     font-size: 2.5rem;
     font-weight: var(--font-weight-bold);
     margin-bottom: 1rem;
     text-align: center;
 }

 .section-subtitle {
     font-size: 1.1rem;
     color: var(--color-text-light);
     text-align: center;
     max-width: 700px;
     margin: 0 auto 3rem auto;
 }

 .btn {
     display: inline-block;
     padding: 0.75rem 1.5rem;
     border-radius: var(--border-radius);
     text-decoration: none;
     font-weight: var(--font-weight-bold);
     cursor: pointer;
     border: 2px solid transparent;
     transition: all 0.2s ease-in-out;
 }

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

 .btn-primary:hover,
 .btn-primary:focus-visible {
     background-color: var(--color-primary-dark);
     box-shadow: var(--shadow);
 }

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

 .btn-secondary:hover,
 .btn-secondary:focus-visible {
     background-color: var(--color-primary);
     color: #fff;
 }

 .hidden {
     position: absolute;
     width: 1px;
     height: 1px;
     margin: -1px;
     padding: 0;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     border: 0;
 }


 .header {
     background-color: var(--color-bg);
     padding: 0 1rem;
     height: var(--header-height);
     display: flex;
     align-items: center;
     justify-content: center;
     position: sticky;
     top: 0;
     z-index: 1000;
     box-shadow: var(--shadow);
 }

 .header-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     width: 100%;
     max-width: var(--container-width);
 }

 .logo {
     font-size: 1.5rem;
     font-weight: var(--font-weight-bold);
     color: var(--color-text);
     text-decoration: none;
 }

 .logo i {
     color: var(--color-secondary);
 }

 .nav-links {
     list-style: none;
     display: flex;
     align-items: center;
     gap: 1.5rem;
 }

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

 .nav-links a:hover,
 .nav-links a:focus-visible {
     color: var(--color-primary);
 }

 .burger-menu {
     display: none;
     background: none;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
 }

 .hero {
     background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero.png') center/cover no-repeat;
     background-color: var(--color-bg-light);
     padding: 6rem 0;
     text-align: center;
 }

 .hero h1 {
     font-size: 3.5rem;
     margin-bottom: 1rem; 
     color: white;
 }

 .hero p {
     font-size: 1.25rem;
 color: white;
     margin-bottom: 2rem;
 }

 .hero .btn-group {
     display: flex;
     justify-content: center;
     gap: 1rem;
 }

 .hero-features {
     margin-top: 3rem;
     display: flex;
     justify-content: center;
     gap: 2rem;
      color: white;
 }

 .hero-feature {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .hero-feature i {
     color: var(--color-primary);
 }

 .about-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 3rem;
     align-items: center;
 }

 .about-grid img,
 .contact-grid img {
     width: 100%;
     border-radius: var(--border-radius);
     box-shadow: var(--shadow);
 }

 .about-list {
     list-style: none;
     margin-top: 1.5rem;
 }

 .about-list li {
     display: flex;
     align-items: start;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .about-list i {
     color: var(--color-secondary);
     font-size: 1.5rem;
     margin-top: 0.25rem;
 }

 .how-it-works-steps {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 2rem;
     text-align: center;
 }

 .step {
     padding: 2rem;
     border: 1px solid var(--color-border);
     border-radius: var(--border-radius);
     background-color: var(--color-bg);
 }

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

 .step h3 {
     margin-bottom: 0.5rem;
 }

 .step p {
     color: var(--color-text-light);
 }

 .game-gallery {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
     gap: 1.5rem;
 }

 .game-card {
     border: 1px solid var(--color-border);
     border-radius: var(--border-radius);
     overflow: hidden;
     background-color: var(--color-bg);
     box-shadow: var(--shadow);
     text-align: center;
     cursor: pointer;
     transition: transform 0.2s, box-shadow 0.2s;
 }

 .game-card:hover,
 .game-card:focus-within {
     transform: translateY(-5px);
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 }

 .game-card img {
     width: 100%;
     height: 410px;
     object-fit: cover;
     display: block;
 }

 .game-card h3 {
     margin: 1rem 0;
 }

 .game-card .btn {
     margin: 0 1.5rem 1.5rem 1.5rem;
 }

 .modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 2000;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .modal[hidden] {
     display: none;
 }

 .modal-backdrop {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.7);
 }

 .modal-dialog {
     position: relative;
     background-color: var(--color-bg);
     border-radius: var(--border-radius);
     width: 90%;
     max-width: 900px;
     height: 90%;
     max-height: 700px;
     display: flex;
     flex-direction: column;
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
 }

 .modal-close {
     position: absolute;
     top: 1rem;
     right: 1rem;
     background: none;
     border: none;
     font-size: 1.5rem;
     color: var(--color-text-light);
     cursor: pointer;
     z-index: 10;
 }

 .modal-dialog h2 {
     padding: 1rem 1.5rem;
     border-bottom: 1px solid var(--color-border);
     font-size: 1.2rem;
 }

 .modal-body {
     flex-grow: 1;
     padding: 0;
     overflow: hidden;
     position: relative;
 }

 #gameFrame {
     width: 100%;
     height: 100%;
     border: none;
 }

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

 .feature-card {
     display: flex;
     align-items: start;
     gap: 1rem;
     padding: 1.5rem;
     background-color: var(--color-bg);
     border-radius: var(--border-radius);
     border: 1px solid var(--color-border);
 }

 .feature-card i {
     font-size: 1.75rem;
     color: var(--color-primary);
 }

 .responsible-play {
     max-width: 800px;
     margin: 0 auto;
     text-align: center;
     background-color: var(--color-bg-light);
     border: 2px solid var(--color-secondary);
     border-radius: var(--border-radius);
     padding: 2rem;
 }

 .responsible-play p {
     margin-bottom: 1rem;
 }

 .responsible-play a {
     color: var(--color-primary);
     font-weight: 500;
 }

 .faq-container {
     max-width: 800px;
     margin: 0 auto;
 }

 .faq-item {
     border-bottom: 1px solid var(--color-border);
 }

 .faq-question {
     width: 100%;
     background: none;
     border: none;
     text-align: left;
     padding: 1.5rem 1rem;
     font-size: 1.1rem;
     font-weight: 500;
     cursor: pointer;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .faq-question::after {
     content: '\f078';
     font-family: 'Font Awesome 6 Free';
     font-weight: 900;
     transition: transform 0.2s;
 }

 .faq-question[aria-expanded="true"]::after {
     transform: rotate(180deg);
 }

 .faq-answer {
     overflow: hidden;
     max-height: 0;
     transition: max-height 0.3s ease-out;
 }

 .faq-answer p {
     padding: 0 1rem 1.5rem 1rem;
     color: var(--color-text-light);
 }

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

 .testimonial-card {
     background-color: var(--color-bg);
     padding: 2rem;
     border-radius: var(--border-radius);
     border: 1px solid var(--color-border);
 }

 .testimonial-author {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-top: 1.5rem;
 }

 .testimonial-author img {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     object-fit: cover;
 }

 .testimonial-author span {
     color: var(--color-text-light);
 }

 .contact-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 3rem;
     align-items: start;
 }

 .form-group {
     margin-bottom: 1.5rem;
 }

 .form-group label {
     display: block;
     margin-bottom: 0.5rem;
     font-weight: 500;
 }

 .form-group input,
 .form-group textarea {
     width: 100%;
     padding: 0.75rem;
     border: 1px solid var(--color-border);
     border-radius: var(--border-radius);
     font-family: inherit;
     font-size: 1rem;
 }

 .form-group input:focus-visible,
 .form-group textarea:focus-visible {
     outline: 2px solid var(--color-primary);
     border-color: transparent;
 }

 .error {
     color: var(--color-error);
     font-size: 0.875rem;
     margin-top: 0.25rem;
 }

 .form-note {
     font-size: 0.875rem;
     color: var(--color-text-light);
     margin-top: 1rem;
 }

 .address-info h3 {
     margin-bottom: 1rem;
 }

 .address-info p {
     margin-bottom: 1.5rem;
 }

 .address-info ul {
     list-style: none;
 }

 .address-info li {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .address-info i {
     color: var(--color-primary);
     width: 20px;
     text-align: center;
 }

 .footer {
     background-color: var(--color-text);
     color: #e5e7eb;
     padding: 3rem 0;
 }

 .footer-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 2rem;
 }

 .footer-grid h4 {
     color: #fff;
     margin-bottom: 1rem;
 }

 .footer-links {
     list-style: none;
 }

 .footer-links li {
     margin-bottom: 0.5rem;
 }

 .footer-links a {
     color: #e5e7eb;
     text-decoration: none;
     transition: color 0.2s;
 }

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

 .footer-bottom {
     margin-top: 3rem;
     padding-top: 2rem;
     border-top: 1px solid #4b5563;
     text-align: center;
     font-size: 0.875rem;
     color: #9ca3af;
 }

 .legal-page {
     padding: 4rem 0;
     min-height: calc(100vh - var(--header-height) - 200px);
 }

 .legal-page .container {
     max-width: 800px;
 }

 .legal-page h1 {
     font-size: 2.5rem;
     margin-bottom: 2rem;
 }

 .legal-page h2 {
     font-size: 1.75rem;
     margin-top: 2.5rem;
     margin-bottom: 1rem;
     border-bottom: 2px solid var(--color-primary);
     padding-bottom: 0.5rem;
 }

 .legal-page p,
 .legal-page ul {
     margin-bottom: 1rem;
 }

 .legal-page ul {
     padding-left: 1.5rem;
 }

 @media (max-width: 992px) {

     .about-grid,
     .contact-grid {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 768px) {
     .header-container {
         position: relative;
     }

     .nav-links {
         position: absolute;
         top: var(--header-height);
         left: 0;
         width: 100%;
         background-color: var(--color-bg);
         flex-direction: column;
         align-items: center;
         gap: 0;
         max-height: 0;
         overflow: hidden;
         transition: max-height 0.3s ease-in-out;
         box-shadow: var(--shadow);
     }

     .nav-links.active {
         max-height: 500px;
         padding: 1rem 0;
     }

     .nav-links li {
         width: 100%;
         text-align: center;
     }

     .nav-links a {
         display: block;
         padding: 1rem;
     }

     .nav-cta {
         display: none;
     }

     .burger-menu {
         display: block;
         z-index: 10;
     }

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

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

     .hero-features {
         flex-direction: column;
         gap: 1rem;
         align-items: center;
     }

     .modal-dialog {
         width: 100%;
         height: 100%;
         border-radius: 0;
         max-height: none;
     }
 }