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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #e8f4f8;
    --blue-bg: #e3f2fd;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    --shadow-hover: 0 8px 30px rgba(74, 144, 226, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--blue-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(74, 144, 226, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transition: var(--transition);
    border-radius: 2px;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/8.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.85) 0%, rgba(53, 122, 189, 0.85) 50%, rgba(44, 95, 141, 0.85) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 1s ease;
}

.hero-image {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.8;
}

.hero-text .btn-primary {
    display: inline-block;
}

.hero-text .btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    backdrop-filter: blur(10px);
}

.hero-text .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: var(--white) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Mini Game Section */
.mini-game-section {
    padding: 4rem 2rem;
    background: transparent;
}

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

.mini-game-container {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
    animation: cardFloat 3s ease-in-out infinite;
}

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

.mini-game-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.game-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.sudoku-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    background: var(--text-color);
    padding: 2px;
    border-radius: 5px;
}

.sudoku-cell {
    background: var(--white);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.sudoku-cell:hover:not(.fixed) {
    background: #e8f4f8;
}

.sudoku-cell.fixed {
    background: #f0f0f0;
    cursor: not-allowed;
    color: var(--secondary-color);
}

.sudoku-cell.selected {
    background: #b3d9ff;
}

.sudoku-cell.error {
    background: #ffcccc;
}

.game-controls {
    text-align: center;
    margin-top: 1.5rem;
}

.game-score {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2c5f8d 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Popular Games Section */
.popular-games {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

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

.game-card {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(74, 144, 226, 0.2);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.game-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.game-card-content {
    padding: 1.5rem;
    background: transparent;
}

.game-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    transition: var(--transition);
}

.game-card:hover h3 {
    color: var(--primary-color);
}

/* Platform Description */
.platform-description {
    padding: 4rem 2rem;
    background: transparent;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.description-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.benefit-item {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(74, 144, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.benefit-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover::after {
    opacity: 1;
}

.benefit-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
}

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

.accordion-item {
    background: var(--card-gradient);
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.3);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.accordion-header:hover {
    background: rgba(74, 144, 226, 0.05);
    padding-left: 2rem;
}

.accordion-header h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.accordion-icon {
    transition: var(--transition);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    border-top: 3px solid rgba(74, 144, 226, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}


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

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Page Content Styles */
.page-content {
    padding: 4rem 2rem;
    min-height: 60vh;
    background: transparent;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

/* Games Page */
.games-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-category {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(74, 144, 226, 0.2);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.game-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.game-category img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.game-category:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.game-category > div {
    width: 100%;
    height: 250px;
    transition: var(--transition);
}

.game-category-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.game-category p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.difficulty {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    transition: var(--transition);
}

.difficulty:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(74, 144, 226, 0.2);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.service-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.service-card > div {
    width: 100%;
    height: 200px;
    transition: var(--transition);
}

.service-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Research Page */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research-item {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.research-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.research-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.research-item > div {
    width: 100%;
    height: 200px;
    transition: var(--transition);
}

.research-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content p,
.research-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    font-size: 1.1rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(74, 144, 226, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Merci Page */
.merci-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2c5f8d 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.merci-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite;
}

.merci-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.merci-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.merci-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Merci Page Accordion Styles */
.merci-page .accordion-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.merci-page .accordion-header {
    color: white;
}

.merci-page .accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* Additional animations for cards */
.game-card,
.service-card,
.research-item,
.game-category,
.contact-card {
    animation: scaleIn 0.5s ease both;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

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

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
    }

    .hero-text .btn-primary,
    .hero-text .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-text > div[style*="display: flex"] {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .games-grid,
    .games-categories,
    .services-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 2rem auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--white);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.modal-body table th,
.modal-body table td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid #ddd;
}

.modal-body table th {
    background: var(--light-bg);
    font-weight: bold;
    color: var(--secondary-color);
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body table {
        font-size: 0.9rem;
    }

    .modal-body table th,
    .modal-body table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .hero p {
        text-align: center;
    }

    .hero-text .btn-primary,
    .hero-text .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-text > div[style*="display: flex"] {
        flex-direction: column;
    }

    .page-content {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after,
    .page-title::after {
        width: 60px;
    }
    
    .section-title::after,
    .page-title::after {
        width: 60px;
    }

    .modal-container {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Statistics Cards Animation */
section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
}

/* Timeline Section Styles */
section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="display: flex"] > div[style*="min-width: 60px"] {
    transition: var(--transition);
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="display: flex"]:hover > div[style*="min-width: 60px"] {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="display: flex"]:hover > div[style*="flex: 1"] {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

/* Pricing Cards Animation */
section[style*="margin-top: 4rem"] > div[style*="background: var(--card-gradient)"] > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25);
    border-color: rgba(74, 144, 226, 0.5);
}

/* Research Timeline Cards */
section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div {
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div:nth-child(1) {
    animation-delay: 0.1s;
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div:nth-child(2) {
    animation-delay: 0.2s;
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div:nth-child(3) {
    animation-delay: 0.3s;
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div:nth-child(4) {
    animation-delay: 0.4s;
}

section[style*="margin-top: 4rem"] > div[style*="position: relative"] > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* Research Partners Cards */
section[style*="margin-top: 4rem"] > div[style*="background: var(--card-gradient)"] > div[style*="grid-template-columns"] > div {
    transition: var(--transition);
}

section[style*="margin-top: 4rem"] > div[style*="background: var(--card-gradient)"] > div[style*="grid-template-columns"] > div:hover {
    transform: translateX(5px);
    border-left-width: 6px;
    box-shadow: var(--shadow-hover);
}

/* Benefits Cards Animation */
section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"] {
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"]:nth-child(1) {
    animation-delay: 0.1s;
}

section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"]:nth-child(2) {
    animation-delay: 0.2s;
}

section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"]:nth-child(3) {
    animation-delay: 0.3s;
}

section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"]:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.4);
}

section[style*="margin-top: 4rem"] > div[style*="grid-template-columns"] > div[style*="background: linear-gradient"]:hover > div[style*="position: absolute"] {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Service Benefits Cards */
section[style*="margin-top: 4rem"] > div[style*="background: var(--card-gradient)"] > div[style*="grid-template-columns"] > div[style*="border-left: 4px solid"] {
    transition: var(--transition);
}

section[style*="margin-top: 4rem"] > div[style*="background: var(--card-gradient)"] > div[style*="grid-template-columns"] > div[style*="border-left: 4px solid"]:hover {
    transform: translateX(8px) translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-width: 6px;
}

