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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #1d1c0a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* Star Background for Main Content */
.star-background {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 100vh);
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Enhanced Star Background */
.enhanced-star-background {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Dynamic Star Background for Sections */
.section-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 20, 34, 0.7), rgba(25, 30, 44, 0.9));
    z-index: -2;
    animation: gentleFlow 15s infinite linear;
}

/* Header with Video */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header.sticky {
    background: rgba(10, 15, 29, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 150px;
    height: 70px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FFC107;
}

.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #fff;
    padding: 0;
    transition: color 0.3s ease;
}

.dropdown .dropdown-toggle:hover {
    color: #FFC107;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(10, 15, 29, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1001;
    top: 100%;
    right: 0;
    padding: 0.5rem 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s ease 0.3s;
}

.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
    padding: 0.5rem 1rem;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    color: #03A9F4;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-control {
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #9C27B0;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.btn-control:hover {
    background: #9C27B0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.btn-control i {
    margin-left: 0.5rem;
}

/* Video Container */
.video-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 1.5rem;
    z-index: 0;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    z-index: 0;
}

.video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    z-index: 100;
    width: 90%;
    max-width: 800px;
    padding: 0 20px;
}

.video-text h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-out;
    line-height: 1.2;
}

.video-text p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.4;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: #0a0f1d;
    flex: 1;
    overflow: hidden;
}

/* About FabLab Section */
.about-fablab-section {
    padding: 1.5rem 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.about-fablab-container {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
}

.about-fablab-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.about-fablab-section .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
}

.about-fablab-section .section-line {
    width: 80px;
    height: 4px;
    background: #9C27B0;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.about-fablab-section .section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.about-fablab-section .section-content .typing-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.9;
    font-weight: 400;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: opacity 0.3s ease;
}

.about-fablab-section .section-content .typing-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: subtleShimmer 3s infinite;
    z-index: -1;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2rem;
    background-color: #FFC107;
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

/* Enhanced Cards Grid */
.about-fablab-section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.about-fablab-section .card {
    background: rgba(20, 25, 40, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 150px;
}

.about-fablab-section .card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-fablab-section .card i {
    font-size: 2rem;
    color: #03A9F4;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.about-fablab-section .card:hover i {
    transform: scale(1.1);
    color: #FFC107;
}

/* Vision Section (Interactive Reveal Design) */
.vision-section {
    padding: 1.5rem 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.vision-container {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
}

.vision-section .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
    text-align: center;
}

.vision-section .section-line {
    width: 80px;
    height: 4px;
    background: #9C27B0;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.vision-boxes {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.vision-box {
    flex: 1;
    min-width: 300px;
    min-height: 250px;
    padding: 1.5rem;
    background: linear-gradient(45deg, #073245, #106c94);
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vision-box .box-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

.vision-box .box-label i {
    font-size: 2rem;
}

.vision-box .box-label span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.hidden-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
    padding: 1rem;
    text-align: center;
    width: 90%;
}

.vision-box:hover .hidden-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.vision-box:hover .box-label {
    opacity: 0;
}

.vision-box:hover {
    animation: glitch 0.5s ease-out 1;
}

@keyframes glitch {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1) translate(0, 0);
    }
    20% {
        clip-path: polygon(10% 0, 90% 0, 90% 100%, 10% 100%);
        transform: scale(1.02) translate(-5px, 5px);
    }
    40% {
        clip-path: polygon(0 10%, 100% 10%, 100% 90%, 0 90%);
        transform: scale(0.98) translate(5px, -5px);
    }
    60% {
        clip-path: polygon(5% 5%, 95% 5%, 95% 95%, 5% 95%);
        transform: scale(1.01) translate(3px, 3px);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1) translate(0, 0);
    }
}

/* Workshops Section */
.workshops-section {
    padding: 1.5rem 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.workshops-container {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
}

.workshops-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.workshops-section .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
}

.workshops-section .section-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Workshops Carousel Container */
.workshops-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(156, 39, 176, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: #9C27B0;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    right: 0;
}

.next-btn {
    left: 0;
}

/* Workshops Carousel */
.workshops-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 20px);
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.workshops-carousel::-webkit-scrollbar {
    display: none;
}

/* Workshop Item */
.workshop-item {
    scroll-snap-align: start;
    min-width: 0;
}

.workshop-card {
    background: rgba(20, 25, 40, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(156, 39, 176, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* Disable card interaction when registration closed */
.workshop-card.disabled {
    opacity: 0.75;
    cursor: default;
}
.workshop-card.disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.workshop-card.disabled .register-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

.workshop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(156, 39, 176, 0.4);
    border-color: #9C27B0;
}

/* Workshop Image */
.workshop-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.workshop-status-pill{
    position:absolute;
    top:12px;
    right:12px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(0,0,0,0.55);
    border:1px solid rgba(255,255,255,0.2);
    color:#fff;
    font-size:0.85rem;
    font-weight:700;
    backdrop-filter: blur(6px);
}
.workshop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.workshop-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(255, 193, 7, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workshop-card:hover .workshop-image::after {
    opacity: 1;
}

/* Workshop Content */
.workshop-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.workshop-content h3 {
    color: #9C27B0;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.workshop-card:hover .workshop-content h3 {
    color: #FFC107;
}

.workshop-content p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.workshop-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #03A9F4;
    font-size: 0.9rem;
    margin-top: auto;
}

.workshop-duration i {
    font-size: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #9C27B0;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(156, 39, 176, 0.7);
}

/* Achievements Section */
.achievements-section {
    padding: 1.5rem 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.achievements-container {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
}

.achievements-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.achievements-section .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
}

.achievements-section .section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.achievements-section .achievement-text {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.achievement-card {
    background: rgba(20, 25, 40, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    color: #03A9F4;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    color: #FFC107;
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.achievement-card p {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 0;
}

/* Partners Section - COMPLETELY REDESIGNED FOR MOBILE */
.partners-section {
    padding: 1.5rem 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.partners-container {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
}

.partners-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.partners-section .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #9C27B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
}

.partners-section .section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.partners-section .partners-text {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.partners-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

/* Mobile Partners Grid - NEW DESIGN */
.mobile-partners-grid {
    display: block;
    width: 100%;
    padding: 1rem 0;
}

.mobile-partners-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-partner-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(156, 39, 176, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 140px;
}

.mobile-partner-item:hover {
    transform: translateY(-5px);
    border-color: #9C27B0;
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.partner-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* إزالة الفلتر الذي كان يحول الصور إلى اللون الأبيض */
    transition: all 0.3s ease;
}

.mobile-partner-item:hover .partner-logo img {
    transform: scale(1.1);
}

.mobile-partner-item span {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.5rem;
}

/* Desktop 3D Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 30s infinite forwards linear;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel__face {
    position: absolute;
    width: 200px;
    height: 120px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    backface-visibility: hidden;
}

.carousel__face span {
    margin: auto;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: #ffffff;
    text-align: center;
    padding: 0 10px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Position faces in 3D space */
.carousel__face:nth-child(1) {
    background-image: url("/static/users/images/kfu.jpg");
    transform: rotateY(0deg) translateZ(280px);
}
.carousel__face:nth-child(2) {
    background-image: url("/static/users/images/ALahsa.jpg");
    transform: rotateY(40deg) translateZ(280px);
}
.carousel__face:nth-child(3) {
    background-image: url("/static/users/images/moe.png");
    transform: rotateY(80deg) translateZ(280px);
}
.carousel__face:nth-child(4) {
    background-image: url("/static/users/images/safip.avif");
    transform: rotateY(120deg) translateZ(280px);
}
.carousel__face:nth-child(5) {
    background-image: url("/static/users/images/kaahcffgac.png");
    transform: rotateY(160deg) translateZ(280px);
}
.carousel__face:nth-child(6) {
    background-image: url("/static/users/images/sffcpd.png");
    transform: rotateY(200deg) translateZ(280px);
}
.carousel__face:nth-child(7) {
    background-image: url("/static/users/images/ta.jpg");
    transform: rotateY(240deg) translateZ(280px);
}
.carousel__face:nth-child(8) {
    background-image: url("/static/users/images/tavtc.jpg");
    transform: rotateY(280deg) translateZ(280px);
}
.carousel__face:nth-child(9) {
    background-image: url("/static/users/images/dow.webp");
    transform: rotateY(320deg) translateZ(280px);
}

@keyframes rotate360 {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(-360deg);
    }
}

/* Chat Bot */
.chat-bot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #9C27B0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
    transition: all 0.4s ease;
    z-index: 1000;
}

.chat-bot:hover {
    transform: scale(1.2);
}

.chat-bot i {
    font-size: 1.5rem;
    color: #fff;
}

.chat-box {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 2rem;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.chat-box.active {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    background: #9C27B0;
    color: #fff;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #9C27B0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-input button {
    padding: 0.5rem 1rem;
    background: #03A9F4;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.chat-input button:hover {
    background: #FFC107;
}

/* X Platform Button Fix */
.example-2 .icon-content a[data-social="x"] .filled,
.example-2 .icon-content a[data-social="x"] ~ .tooltip {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .filled {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .x-icon {
    color: #ffffff;
}

.example-2 .icon-content a[data-social="x"]:hover {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"] {
    background-color: #ffffff;
}

.example-2 .icon-content a[data-social="x"] .x-icon {
    color: #000000;
    transition: color 0.3s ease-in-out;
}

.example-2 .icon-content a[data-social="x"]:hover ~ .tooltip {
    background-color: #000000;
    color: #ffffff;
}

/* Social Media Buttons Styles */
.example-2 {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content {
    margin: 0 5px;
    position: relative;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    color: #4d4d4d;
    background-color: #ffff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 50%);
}

.example-2 .icon-content a i {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-2 .icon-content a:hover {
    color: white;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background-color: #E4405F;
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #CD201F;
}

.example-2 .icon-content a[data-social="snapchat"] .filled,
.example-2 .icon-content a[data-social="snapchat"] ~ .tooltip {
    background-color: #FFFC00;
}

.example-2 .icon-content a[data-social="x"] ~ .filled {
    background-color: #FFFC00;
}

/* X Icon Custom Styles */
.x-icon {
    font-size: 1.3rem;
    font-weight: bold;
    color: #292424;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a[data-social="x"]:hover .x-icon {
    color: #fff;
}

/* Programmers Section */
.programmers-section {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.programmers-section h4 {
    color: #9C27B0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.programmers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.programmer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.programmer-link:hover {
    background: #9C27B0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.programmer-link i {
    font-size: 1.1rem;
    color: #25D366;
}

/* Contact Information Section */
.contact-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-section i {
    color: #9C27B0;
    width: 20px;
}

/* Contact Form Section */
.contact-form-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-form label {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.6rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
    font-size: 0.85rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: rgba(20, 25, 40, 0.95);
    color: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .submit-btn {
    padding: 0.6rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    align-self: flex-start;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.contact-form .submit-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Map Section */
.map-section .map-embed {
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.9), rgba(25, 30, 44, 0.7));
    color: #fff;
    padding: 2rem 0 0 0;
    position: relative;
    width: 100%;
    margin-top: auto;
    box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    z-index: 10;
    text-align: right;
    direction: rtl;
}

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

.footer-section {
    padding: 1rem;
    text-align: right;
    direction: rtl;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #9C27B0;
}

/* Logo and Social Media Section */
.logo-social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: right;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    width: 150px;
    height: auto;
}

.footer-logo:hover img {
    filter: brightness(0.8) invert(0.9);
}

/* Social Media Buttons */
.example-2 {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content {
    margin: 0 5px;
    position: relative;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 50%);
}

.example-2 .icon-content a i,
.example-2 .icon-content a .x-icon {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-2 .icon-content a:hover {
    color: white;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="x"] .filled,
.example-2 .icon-content a[data-social="x"] ~ .tooltip {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .filled {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"]:hover .x-icon {
    color: #ffffff;
}

.example-2 .icon-content a[data-social="x"]:hover {
    background-color: #000000;
}

.example-2 .icon-content a[data-social="x"] {
    background-color: #ffffff;
}

.example-2 .icon-content a[data-social="x"] .x-icon {
    color: #000000;
    transition: color 0.3s ease-in-out;
}

.example-2 .icon-content a[data-social="x"]:hover ~ .tooltip {
    background-color: #000000;
    color: #ffffff;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background-color: #E4405F;
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #CD201F;
}

.example-2 .icon-content a[data-social="snapchat"] .filled,
.example-2 .icon-content a[data-social="snapchat"] ~ .tooltip {
    background-color: #FFFC00;
}

/* Programmers Section */
.programmers-section {
    margin-top: 1rem;
    text-align: right;
}

.programmers-section h4 {
    font-size: 1.2rem;
    color: #9C27B0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.programmers-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9C27B0, transparent);
}

.programmers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.programmer-link {
    color: #FFC107;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.programmer-link:hover {
    color: #03A9F4;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Information Section */
.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

.contact-info i {
    color: #9C27B0;
}

/* Contact Form Section */
.contact-form-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .submit-btn {
    padding: 0.8rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

/* Footer Copyright */
.footer-copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    direction: rtl;
}

/* Working Hours Section */
.working-hours {
    margin-top: 1rem;
}

.working-hours .section-heading {
    color: #9C27B0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-top: 2px solid #9C27B0;
    padding-top: 0.5rem;
    display: inline-block;
}

.working-hours p {
    color: #e8ecef;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: right;
}

.working-hours i {
    color: #03A9F4;
    width: 20px;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 15, 29, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 2000;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cairo', sans-serif;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
}

.chatbot-message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-message.user {
    background: #9C27B0;
    color: #fff;
    align-self: flex-end;
    border: 1px solid rgba(156, 39, 176, 0.5);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #9C27B0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: #FFC107;
    background: rgba(255, 255, 255, 0.15);
}

.chatbot-input input::placeholder {
    color: #ccc;
}

.chatbot-input button {
    padding: 0.8rem 1.2rem;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.chatbot-input button:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* Scrollbar styling for chatbot messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #9C27B0;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #7B1FA2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gentleFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: rgba(10, 15, 29, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    margin-top: 3rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #FFC107;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-dropdown-menu {
    padding-right: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: none;
}

.mobile-controls {
    margin-top: 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-controls .btn-control {
    justify-content: center;
    text-align: center;
}

/* Enhanced User Greeting Styles */
.user-greeting {
    color: #FFC107 !important;
    margin-left: 1rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(255, 193, 7, 0.2));
    border-radius: 25px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.user-greeting::before {
    content: "👋";
    font-size: 1.1rem;
}

.user-greeting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(255, 193, 7, 0.3));
}

/* Enhanced Controls Layout */
.controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================= */
/* Mobile Responsive Styles - PARTNERS FIX */
/* ========================= */

/* Media Queries */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 3%;
    }
    
    .workshops-carousel {
        grid-auto-columns: calc(50% - 15px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel__face {
        width: 180px;
        height: 110px;
        transform: rotateY(var(--angle)) translateZ(250px) !important;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .controls {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .workshops-carousel {
        grid-auto-columns: calc(50% - 15px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-wrapper {
        height: 220px;
    }
    
    .carousel__face {
        width: 160px;
        height: 100px;
        transform: rotateY(var(--angle)) translateZ(220px) !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
        justify-content: space-between;
    }
    
    .logo {
        width: 120px;
        height: 60px;
        order: 1;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .controls {
        display: none;
    }
    
    .about-fablab-container,
    .vision-container,
    .workshops-container,
    .achievements-container,
    .partners-container {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .about-fablab-section .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-boxes {
        flex-direction: column;
    }
    
    .vision-box {
        min-width: 100%;
    }
    
    .workshops-carousel-container {
        padding: 0 40px;
    }
    
    .workshops-carousel {
        grid-auto-columns: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Show mobile grid and hide desktop carousel */
    .mobile-partners-grid {
        display: block;
    }
    
    .carousel-wrapper {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 70px;
        max-height: 450px;
    }
    
    .chatbot-header {
        font-size: 0.8rem !important;
        padding: 0.7rem 0.9rem;
        min-height: 45px;
    }
    
    .chatbot-messages {
        padding: 0.7rem;
        max-height: 250px;
    }
    
    .chatbot-message {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem;
    }
    
    .chatbot-input {
        padding: 0.7rem;
    }
    
    .chatbot-input input {
        font-size: 0.8rem !important;
        height: 40px;
        padding: 0.6rem 0.8rem;
    }
    
    .chatbot-input button {
        font-size: 0.8rem !important;
        height: 40px;
        padding: 0.6rem 1rem;
        min-width: 65px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .user-greeting {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin-left: 0.5rem;
    }
    
    .partners-grid {
        padding: 10px 0;
    }

    /* Mobile Partners Grid Adjustments */
    .mobile-partners-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .mobile-partner-item {
        min-height: 130px;
        padding: 1rem;
    }
    
    .partner-logo {
        width: 60px;
        height: 60px;
    }
    
    .mobile-partner-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.8rem 3%;
    }
    
    .logo {
        width: 100px;
        height: 50px;
    }
    
    .about-fablab-container,
    .vision-container,
    .workshops-container,
    .achievements-container,
    .partners-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .workshops-carousel-container {
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .workshop-image {
        height: 160px;
    }
    
    .workshop-content {
        padding: 1rem;
    }
    
    .workshop-content h3 {
        font-size: 1.1rem;
    }
    
    .workshop-content p {
        font-size: 0.85rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-partners-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .mobile-partner-item {
        min-height: 120px;
        padding: 0.8rem;
    }
    
    .partner-logo {
        width: 50px;
        height: 50px;
        padding: 5px;
    }
    
    .mobile-partner-item span {
        font-size: 0.75rem;
    }
    
    .mobile-menu {
        width: 90%;
    }
    
    .chatbot-container {
        width: 95%;
        right: 2.5%;
        bottom: 60px;
        max-height: 400px;
    }
    
    .chatbot-header {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.8rem;
        min-height: 40px;
    }
    
    .chatbot-messages {
        padding: 0.6rem;
        max-height: 220px;
    }
    
    .chatbot-message {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.7rem;
    }
    
    .chatbot-input {
        padding: 0.6rem;
    }
    
    .chatbot-input input {
        font-size: 0.75rem !important;
        height: 38px;
        padding: 0.5rem 0.7rem;
    }
    
    .chatbot-input input::placeholder {
        font-size: 0.7rem !important;
    }
    
    .chatbot-input button {
        font-size: 0.75rem !important;
        height: 38px;
        padding: 0.5rem 0.9rem;
        min-width: 60px;
    }
    
    .chatbot-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 10px;
        right: 10px;
    }
    
    .user-greeting {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .partners-grid {
        padding: 5px 0;
    }
}

@media (max-width: 400px) {
    .mobile-partners-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 280px;
    }
    
    .mobile-partner-item {
        min-height: 110px;
        padding: 0.8rem;
    }
    
    .partner-logo {
        width: 45px;
        height: 45px;
    }
    
    .mobile-partner-item span {
        font-size: 0.7rem;
    }
    
    .workshops-carousel-container {
        padding: 0 15px;
    }
    
    .about-fablab-container,
    .vision-container,
    .workshops-container,
    .achievements-container,
    .partners-container {
        margin: 0 0.25rem;
        padding: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes subtleShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes gentleFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* RTL and LTR Support */
[dir="rtl"] .nav ul {
    margin-right: 0;
}

[dir="ltr"] .nav ul {
    margin-left: 0;
}

[dir="ltr"] .facility-description {
    text-align: left;
}

[dir="ltr"] .facility-content {
    text-align: left;
}

[dir="ltr"] .feature {
    justify-content: flex-start;
}

[dir="ltr"] .footer-section {
    text-align: left;
}

[dir="ltr"] .contact-info p {
    justify-content: flex-start;
}

[dir="ltr"] .programmer-link {
    justify-content: flex-start;
}

/* Responsive adjustments for LTR */
@media (max-width: 768px) {
    [dir="ltr"] .nav ul {
        text-align: left;
    }
    
    [dir="ltr"] .facility-features {
        justify-items: flex-start;
    }
}

/* Fix for mobile viewport and scrolling */
@media (max-width: 768px) {
    body {
        position: relative;
        overflow-x: hidden;
        width: 100%;
    }
    
    .main-content {
        overflow-x: hidden;
    }
    
    .section {
        position: relative;
        overflow: hidden;
    }
    
    /* Prevent horizontal scroll on mobile */
    .workshops-carousel {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .workshops-carousel::-webkit-scrollbar {
        display: none;
    }
}

/* Enhanced touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-control:hover,
    .workshop-card:hover,
    .achievement-card:hover,
    .vision-box:hover {
        transform: none;
    }
    
    .btn-control:active,
    .workshop-card:active,
    .achievement-card:active {
        transform: scale(0.98);
    }
}

/* Enhanced Partner Images Styling for Mobile - FIXED */
.mobile-partner-item .partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* إزالة الفلتر الذي كان يحول الصور إلى اللون الأبيض */
    transition: all 0.3s ease;
}

.mobile-partner-item:hover .partner-logo img {
    transform: scale(1.1);
}

/* Ensure partner logos have proper background and padding */
.partner-logo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for missing images */
.partner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9C27B0, #03A9F4);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

/* Debug styles for image loading */
.partner-logo img:not([src]) {
    opacity: 0;
}

.partner-logo img {
    transition: opacity 0.3s ease;
}

/* Specific image optimizations for mobile */
@media (max-width: 768px) {
    .partner-logo img {
        max-width: 90%;
        max-height: 90%;
    }
    
    .mobile-partner-item {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .mobile-partner-item:hover {
        background: rgba(255, 255, 255, 0.12);
    }
}

/* إضافة خاصية لضمان ظهور الصور بشكل صحيح في الجوالات */
@media (max-width: 768px) {
    .mobile-partners-grid {
        display: block !important;
    }
    
    .carousel-wrapper {
        display: none !important;
    }
    
    .partner-logo img {
        filter: none !important;
        -webkit-filter: none !important;
    }
}

/* إصلاح نهائي للصور في الجوالات */
.partner-logo img {
    filter: none;
    -webkit-filter: none;
}

/* تأكد من أن الصور تظهر بشكل طبيعي في جميع الأجهزة */
.mobile-partner-item .partner-logo img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ========== ADDED: MACHINE GAME POPUP STYLES ========== */

/* Game Toggle Button */
.game-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF5722, #E64A19);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-toggle:hover {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* Machine Game Popup */
.machine-game-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.machine-game-popup.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(25, 30, 44, 0.95));
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FF5722, #E64A19);
    border-radius: 15px 15px 0 0;
    color: #fff;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-body {
    padding: 2rem;
}

/* Game Intro */
.game-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.game-intro p {
    font-size: 1.2rem;
    color: #e0e0e0;
    background: rgba(255, 87, 34, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

/* Game Stats */
.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(20, 25, 40, 0.9);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #FF5722;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timer, .score, .high-score {
    font-size: 2rem;
    font-weight: 700;
    color: #FFC107;
}

.timer.warning {
    color: #FF5722;
    animation: pulse 0.5s infinite;
}

/* Game Area */
.game-area {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    position: relative;
    margin-bottom: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.machine-target {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FF5722, #E64A19);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #FFC107;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.5);
    z-index: 10;
}

.machine-target:hover {
    transform: scale(1.05);
}

.machine-target:active {
    transform: scale(0.95);
}

.machine-target.active {
    display: flex;
    animation: popIn 0.3s ease;
}

.machine-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.machine-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.game-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.start-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
}

.reset-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Game Instructions */
.game-instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-instructions h4 {
    color: #FF5722;
    margin-bottom: 1rem;
    text-align: center;
}

.game-instructions ul {
    list-style: none;
    padding: 0;
}

.game-instructions li {
    padding: 0.5rem 0;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Leaderboard */
.leaderboard {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.leaderboard h4 {
    color: #FFC107;
    text-align: center;
    margin-bottom: 1rem;
}

.leaderboard-list {
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateX(5px);
}

.leaderboard-rank {
    background: #FF5722;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.leaderboard-name {
    flex: 1;
    text-align: right;
    margin: 0 1rem;
    color: #e0e0e0;
}

.leaderboard-score {
    color: #FFC107;
    font-weight: 700;
}

.no-scores {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
}

/* Game Message */
.game-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    z-index: 4000;
    border: 2px solid #FFC107;
    animation: popIn 0.5s ease;
}

.game-message h3 {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Animations */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Game Popup */
@media (max-width: 768px) {
    .popup-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .game-area {
        height: 250px;
    }
    
    .machine-target {
        width: 80px;
        height: 80px;
    }
    
    .machine-icon {
        font-size: 2rem;
    }
    
    .machine-name {
        font-size: 0.7rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        width: 100%;
        justify-content: center;
    }
    
    .game-toggle {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .popup-body {
        padding: 1rem;
    }
    
    .game-area {
        height: 200px;
    }
    
    .machine-target {
        width: 70px;
        height: 70px;
    }
    
    .machine-icon {
        font-size: 1.5rem;
    }
    
    .timer, .score, .high-score {
        font-size: 1.5rem;
    }
    
    .game-toggle {
        bottom: 70px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}