:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-color: #333333;
    --accent-color: #113768;
    --border-color: #e9ecef;
    --navbar-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-bg: #1a1a1a;
    --transparent-bg: transparent;
    --secondary-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #4da6ff;
    --border-color: #404040;
    --navbar-bg: #2d2d2d;
    --card-bg: #333333;
    --shadow: rgba(0, 0, 0, 0); /* No shadows in dark mode */
}

html {
    color-scheme: light only;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: none;
}


body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    overflow-x: hidden;

  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 99.9,
    "GRAD" 0,
    "XOPQ" 100,
    "XTRA" 468,
    "YOPQ" 79,
    "YTAS" 750,
    "YTDE" -203,
    "YTFI" 738,
    "YTLC" 514,
    "YTUC" 712;
}

/* Class to disable body scrolling */
body.no-scroll {
    overflow: hidden;
}

/* Loading Screen - Windows 11 Style */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color, #f4f4f4); /* Adjust to match your page background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9; /* Lower than under-construction-overlay, higher than content */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.show {
    opacity: 1;
    visibility: visible;
}
#loadingScreen.hidden { /* Or fade-out */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    color: var(--text-color);
}

.loading-spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid var(--accent-color, #113768); /* Accent color */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

.loading-text {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Initial Overlay (for blur before theme choice) */
.initial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Blur effect */
    z-index: 8; /* Below theme popup, above navbar */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.initial-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 100; /* Should be on top of initial-overlay too if it's there */
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

/* Theme Popup */
.theme-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 9; /* Above initial-overlay */
    display: none;
}

.theme-popup.show {
    display: block;
}

.theme-popup h3 {
    margin-bottom: 20px;
    text-align: center;
}

.theme-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.theme-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-btn.light {
    background: #ffffff;
    color: #333333;
    border: 2px solid #333333;
}

.theme-btn.dark {
    background: #333333;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* Navbar - Initially hidden, shown after theme selection */
.navbar {
    position: sticky;
    top: 0;
    background: var(--navbar-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 900;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.navbar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-container {
    max-width: 1600px;
    width: 95vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: 2rem; /* MODIFIED */
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
        transform: scale(1);
}
.logo:hover {
    transform: scale(1.05);
}
.nav-left {
    display: flex;
    align-items: center; /* Align items vertically in nav-left */
}
.nav-menu {
    display: flex;
    gap: 20px;
    padding-left: 1rem;
    align-self: flex-start;
}
.nav-btn {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
    width: auto;
    min-width: 120px;
    padding: 12px 20px;
    justify-content: flex-start;

}

.nav-btn i {
    color: var(--accent-color);
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.5s ease-in-out;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn:hover i {
    color: white;
    position: static;
    transform: none;
    min-width: 20px;
}

.nav-btn span {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn:hover span {
    opacity: 1;
    visibility: visible;
    max-width: 100px;
    transition: all 0.5s ease;
}

/* Desktop Contact & Flags */
.nav-contact {
    display: flex; /* Always flex for desktop */
    gap: 20px;
    align-items: flex-end;
    margin-left: 2rem;
}

/* New wrapper for desktop contact items */
.contact-info-desktop {
    display: flex;
    flex-direction: row; /* Default: side-by-side */
    gap: 15px; /* Spacing between phone and email */
    flex-wrap: nowrap; /* Prevent wrapping of the entire contact block */
    align-self: flex-start !important;
}

.contact-item {
    display: flex;
    align-items: center;
    align-self: flex-start; /* Align items to the top */
    gap: 8px;
    white-space: nowrap; /* Prevent text inside contact-item from wrapping */
}

.contact-item i {
    color: var(--accent-color);
}

.language-selector-desktop {
    display: flex; /* Visible on desktop */
    gap: 10px;
    align-items: center;
}

.lang-flag img {
    width: 30px; /* Desired flag width */
    height: 20px; /* Desired flag height */
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid var(--border-color); /* Subtle border */
    transition: transform 0.2s ease-in-out;
}

.lang-flag img:hover {
    transform: scale(1.1);
}

/* Mobile Menu Toggle (Hamburger Icon) - Default hidden on desktop */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop, shown by media query */
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1000;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex; /* This will be overridden in mobile media query */
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: relative;
}

.mobile-menu-toggle .icon-wrapper i {
    font-size: 24px;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect for the hamburger icon */
.mobile-menu-toggle:hover .icon-wrapper {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle background on hover */
}
/* Hover effect for the 'X' button */
.mobile-menu-toggle.active:hover .icon-wrapper {
    background-color: var(--accent-color); /* Accent color on hover for X */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Mobile Right Section (Hidden on desktop by default) */
.nav-mobile-right {
    display: none; /* Hidden on desktop, shown by media query */
    align-items: center;
    gap: 10px; /* Space between flag and toggle */
}

/* Mobile Centered Contact Info (Hidden on desktop by default) */
.nav-contact-mobile-centered {
    display: none; /* Hidden on desktop, shown by media query */
}


/* Contact info inside the mobile slide-out menu (nav-menu) */
.nav-contact-mobile-menu {
    display: none; /* Hidden by default, shown when nav-menu is active */
}


/* Playground */
.playground {
    margin: auto;
    width: 100vw;
    max-width: 1600px;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    backdrop-filter: blur(5px);
    position: relative; 
    z-index: 3;
    padding: 2rem 0;
    margin-bottom: 4rem;
    box-shadow: 0 8px 25px var(--shadow);
    border-radius: 15px;
}

#neurolink {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: none;
}
.card-title h2{
    text-align: center;
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 40px;
    color: var(--accent-color);
}
.playground-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 40px;
    z-index: 2;
    position: relative;
    width: 90%;
    min-height: 450px;
    text-align: center;
}

.card {
    background: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    flex-direction: column;
    transform: scale(1);
    z-index: 2;
}

.card:hover:not(.expanded) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow);
    z-index: 3;
}

.card.expanded {
    position: fixed;
    margin: auto;
    top: 5rem;
    left: 5vw;
    right: 5vw;
    bottom: 5vh;
    max-height: 90vh;
    flex-direction: row;
    overflow: hidden;
    z-index: 1000;
}

.card-image {
    height: 50%;
    background: linear-gradient(45deg, var(--accent-color), #6c757d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(24px, 5vw, 48px);
    position: relative;
    overflow: hidden;
}

.card-icon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(45deg, var(--accent-color), #6c757d);
}

.card-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.card-hover-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.card-hover-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card:not(.expanded):hover .card-icon-wrapper {
    transform: translateX(-100%);
}

.card:not(.expanded):hover .card-hover-image-wrapper {
    transform: translateX(0);
}

.card.expanded .card-image {
    display: none; 
}

.card-image-expanded {
    display: none;
    background: linear-gradient(135deg, var(--accent-color), #007bff);
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    transition: all 0.5s ease;
    overflow: hidden; 
}

.card.expanded .card-image-expanded {
    display: flex;
    width: 40%;
    height: 100%;
}

.card.expanded .card-image-expanded img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}


.card-content {
    padding: 15px;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
}

.card.expanded .card-content {
    width: 60%;
    height: 100%;
    padding: 40px;
    justify-content: flex-start;
    overflow-y: auto; /* Allows scrolling if content overflows */
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: clamp(10px, 1.8vw, 24px);
    transition: all 0.5s ease;
    flex-wrap: nowrap;
    white-space: nowrap;
    @media screen and (max-width: 768px) {
        font-size: 1.2rem; /* Adjusted for smaller screens */
        
    }
    }

.card.expanded .card-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--accent-color);
}

.card-description {
    display: none;
    transition: all 0.5s ease;
}

.card.expanded .card-description {
    display: block;
    margin-top: 15px;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1.6;
}

.card.expanded .card-description p {
    margin-bottom: 15px;
}

.partner-slider {
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    --gap: 40px;
    background: transparent;
    border-radius: 15px;
    z-index: 2;
    /* Corrected box-shadow for top and bottom only */
    box-shadow: 15px 15px 15px -15px var(--shadow), -15px -15px 15px -15px var(--shadow);
    backdrop-filter: blur(5px);
}
.partner-slider::before,
.partner-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px; /* Adjust the width of the fade effect if needed */
    z-index: 3;   /* This ensures the gradient is on top of the sliding logos */
    pointer-events: none; /* This allows you to click "through" the gradient */
}

.partner-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg), transparent);
}

.partner-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg), transparent);
}
.slider-track {
    position: relative;
    display: flex;
    animation: slide 20s linear infinite;
    gap: var(--gap);
    width: fit-content;
    z-index: 2;
    
}

.slider-track:hover {
    animation-play-state: paused; /* Pause the animation on hover */
}

.partner-logo {
    min-width: 150px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: transparent;
}
.partner-logo img:hover {
    transition: transform 0.3s ease;
    transform: scale(1.2) !important;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--gap) / 2))); }
}

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 4rem;
    padding: 60px 20px;
    position: relative;
    background: transparent;
    box-shadow: 0 8px 25px var(--shadow);
    border-radius: 15px;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 40px;
    color: var(--accent-color);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    z-index: 2;
}

.service-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 2;
}

.service-image img {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--accent-color), #6c757d);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.testimonials-section {
    padding: 30px 0;
    position: relative;
    --gap: 30px; 
}

.testimonials-container {
    max-width: 1600px;
    padding: 30px 0;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
    position: relative;
    box-shadow: 0 8px 25px var(--shadow);
    border-radius: 15px;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
}
.testimonials-container::before,
.testimonials-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* Adjust the width of the fade effect if needed */
    z-index: 3;   /* This ensures the gradient is on top of the sliding testimonials */
    pointer-events: none; /* This allows you to click "through" the gradient */
}

.testimonials-container::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg), transparent);
}

.testimonials-container::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg), transparent);
}
.testimonials-track {
    position: relative;
    display: flex;
    animation: slideTestimonials 30s linear infinite;
    gap: var(--gap);
    width: fit-content;
    z-index: 2;
}

.testimonial {
    position: relative;
    min-width: 400px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    background: var(--secondary-bg);
    box-shadow: 0 8px 25px var(--shadow);
    z-index: 2;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.testimonial-content h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

@keyframes slideTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--gap) / 2))); }
}

.offer-section {
    position: relative;
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    z-index: 2;
}
.offer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-group:nth-child(5),
.form-group:nth-child(6) {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--accent-color);
}

.form-group .required {
    color: #dc3545;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(17, 55, 104, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    grid-column: 1 / -1;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

[data-theme="light"] .submit-btn:hover {
    background-color: #0d2c55;
}

[data-theme="dark"] .submit-btn:hover {
    background-color: #3d8edc;
}

.footer {
    background: var(--navbar-bg);
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-map {
    flex: 2;
    min-width: 300px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}
.info-section li{
    list-style: none;
    padding: 0;
}
.info-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-section a:hover {
    color: var(--accent-color);
    font-weight: bold;
}

/* ====== Responsive Design ====== */
@media (max-width: 1024px) { /* Adjust breakpoint for contact stacking */
    .nav-contact .contact-info-desktop {
        flex-direction: column; /* Stack contact items vertically */
        gap: 5px; /* Smaller gap when stacked */
        align-items: flex-end; /* Align to the right in stacked view */
    }
}


@media (max-width: 768px) {
    .nav-container {
        /* Distribute space: left, center (contact), right (flags/toggle) */
        justify-content: space-between; /* Ensures space between items */
    }

    .nav-left {
        justify-content: flex-start;
        margin-right: 0; 
    }
    .logo {
        margin-right: 0; 
    }

    .logo img {
        width: 68px !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-bg);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out; 
        visibility: hidden; 
        padding-left: 0; 
    }

    .nav-menu.active {
        transform: translateY(0%); 
        visibility: visible; 
    }

    /* Hide desktop contact and flags on mobile */
    .nav-contact {
        display: none;
    }

    /* Show Mobile Right Section */
    .nav-mobile-right {
        display: flex; /* Make it visible */
        align-items: center;
        gap: 10px; /* Space between flag and toggle */
        flex-shrink: 0; /* Prevent it from shrinking */
    }
    
    /* Mobile Centered Contact Info */
    .nav-contact-mobile-centered {
        display: flex; /* Make it visible */
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center items horizontally within its space */
        flex-grow: 1; /* Allow it to take available space in the middle */
        font-size: 14px; /* Adjust font size for mobile */
        margin: 0; /* Remove auto margins to let flexbox distribute space */
        justify-self: center; /* Center text within its own container */
        padding: 0 10px; /* Add some horizontal padding to prevent touching edges */
        gap: 4px;
        margin-left: 1rem;
    }
    .nav-contact-mobile-centered .contact-item {
        margin: 0; /* Remove any default margins */
        justify-content: center; /* Center icon and text within each contact item */
    }
    .nav-contact-mobile-centered .contact-item i {
        font-size: 16px; /* Adjust icon size */
    }
    .nav-contact-mobile-centered .contact-item span {
        white-space: nowrap; /* Prevent text wrapping */
    }


    /* Mobile Inline Language Selector */
    .language-selector-mobile-inline {
        display: flex; /* Make it visible */
        gap: 8px; /* Space between flags */
        flex-shrink: 0; /* Prevent it from shrinking */
        margin-top: 3px;
    }

    /* Language-specific visibility for flags in mobile inline section */
    /* On Romanian page (index.html), hide RO flag, show US flag */
    .language-selector-mobile-inline .ro-flag-mobile {
        display: none; /* Hide Romanian flag on Romanian page */
    }
    .language-selector-mobile-inline .us-flag-mobile {
        display: block; /* Show US flag on Romanian page */
    }

    /* If this is the English page (e.g., body.english-page), apply inverse */
    body.english-page .language-selector-mobile-inline .ro-flag-mobile {
        display: block; /* Show Romanian flag on English page */
    }
    body.english-page .language-selector-mobile-inline .us-flag-mobile {
        display: none; /* Hide US flag on English page */
    }

    /* Mobile Menu Contact Info (inside the slide-out menu) */
    .nav-contact-mobile-menu {
        display: flex; /* Show when nav-menu is active */
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        align-items: flex-start;
        font-size: 18px;
    }
    /* Ensure the mobile menu contact items are styled correctly */
    .nav-contact-mobile-menu .contact-item {
        font-size: 18px;
    }
    .nav-contact-mobile-menu .contact-item i {
        font-size: 20px;
    }


    /* Styling for the 'X' button inside the mobile menu toggle */
    .mobile-menu-toggle.active .icon-wrapper {
        background-color: var(--accent-color); /* Background for the X circle */
        border-radius: 50%; /* Make it a circle */
        transform: rotate(90deg); /* Optional: Rotate the wrapper itself for effect */
    }
    .mobile-menu-toggle.active .icon-wrapper i {
        color: white; /* Color of the 'X' icon */
        transform: rotate(180deg); /* Rotate the X icon for smooth transition */
    }
    .mobile-menu-toggle.active:hover .icon-wrapper {
        background-color: var(--accent-color); /* Keep accent color on hover for X */
        transform: scale(1.1) rotate(90deg); /* Slightly enlarge and keep rotation */
    }


    #navMenu.active .nav-btn {
        width: 250px;
        height: 60px;
        justify-content: flex-start;
        padding: 0 25px;
        border-radius: 10px;
    }

    #navMenu.active .nav-btn:hover {
       width: 250px;
    }

    #navMenu.active .nav-btn i {
        color: var(--accent-color);
        position: static;
        transform: none;
        min-width: 20px;
        margin-right: 20px;
        font-size: 20px;
    }

    #navMenu.active .nav-btn:hover i {
        color: white;
    }

    #navMenu.active .nav-btn span {
        opacity: 1;
        visibility: visible;
        max-width: none;
        font-size: 18px;
    }

    .playground-cards {
        grid-template-columns: 1fr;
        width: 80vw;
    }
    .card {
        height: 30vh;
    }

    .card.expanded {
        width: 100vw;
        height: calc(100vh - 70px);
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
    }

    .card.expanded .card-image-expanded {
        height: 35%;
        width: 100%;
    }

    .card.expanded .card-content {
        height: 65%;
        width: 100%;
        font-size: 0.8em;
    }

    @keyframes card-image-slide {
        0% { transform: translateX(100%); }
        100% { transform: translateX(0); }
    }

    .card.slide-in-view .card-hover-image-wrapper {
        animation: card-image-slide 0.5s forwards;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        position: relative;
        margin: auto;
        width: 100vw;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        align-items: center;
    }

    .service-item.in-view {
        width: 100%;
        margin: auto;
        opacity: 1;
        transform: translateY(0);
    }

    .partner-slider {
        --gap: 20px;
    }

    .partner-logo {
        min-width: 100px;
    }

    .testimonials-track {
       --gap: 20px;
    }

    .testimonial {
        min-width: calc(100vw - 40px);
    }

    .offer-section,
    .footer-container {
        width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
    }

    .offer-form {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        margin: auto;
        width: 90vw;
    }
}
/* Apps Page Styling */
.apps-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.app-card {
    display: flex;
    flex-direction: row;
    background: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-media {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Placeholder color */
}

.app-media img,
.app-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--accent-color);
    margin-bottom: 15px;
}

.app-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.app-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4CAF50; /* Google Play green */
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.playstore-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.policy-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .app-card {
        flex-direction: column;
        align-items: center;
    }
    
    .app-media {
        width: 100%;
        height: 250px;
    }

    .app-content {
        text-align: center;
    }
    
    .app-links {
        justify-content: center;
    }
}