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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
    color: #333;
    background: #f8f9fa;
    color: #333;
    background: #f8f9fa;
    direction: rtl;
    overflow-x: hidden;
    overflow-y: auto;
}

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

/* Top Tab Navigation */
.tab-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

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

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Dot Navigation */
.dot-navigation {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dot-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot-btn::before {
    content: attr(aria-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dot-btn:hover::before {
    opacity: 1;
}

.dot-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

.dot-btn.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
}

/* Scroll Container */
.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide scrollbar but keep functionality */
.scroll-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Window Sections */
/* Window Sections */
.window-section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Removed to allow background to cover full height */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.download-main-btn {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    margin-top: 1.5rem;
    text-shadow: none;
}

.download-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Home Section */
.home-section {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('assets/images/home-background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Added padding here */
}

.home-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    overflow-y: hidden;
}

.home-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    max-width: 1200px;
    padding: 20px;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    animation: gradientShift 3s ease-in-out infinite;
}

.main-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.chat-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.chat-option {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.chat-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 0.5rem;
}

.chat-icon-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transform: scale(1);
    transition: transform 0.3s ease;
}

.chat-option:hover .chat-icon-emoji {
    transform: scale(1.2);
}

.chat-option h3 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.chat-option p {
    margin-bottom: 0;
    opacity: 0.95;
    font-size: 0.7rem;
}

.option-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.85rem;
    pointer-events: none;
}

.video-btn {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
}

.voice-btn {
    background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%);
}

.text-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Rooms Section */
.rooms-section {
    padding: 70px 0 1rem 0; /* Added top padding */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.4;
}

.screenshots-subtitle,
.features-subtitle,
.legal-subtitle {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: -1rem;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.app-screenshots {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Horizontal 2x4 grid layout for screenshots */
.app-screenshots-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.screenshot-item-horizontal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.screenshot-item-horizontal:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.screenshot-horizontal {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-horizontal:hover {
    transform: scale(1.05);
}

.screenshot-item-horizontal p {
    opacity: 0.9;
    font-size: 0.85rem;
    margin: 0;
    color: #fff;
    font-weight: 500;
}

/* Responsive for tablets */
@media (max-width: 1024px) {
    .screenshot-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .screenshot-horizontal {
        height: 150px;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .screenshot-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screenshot-horizontal {
        height: 200px;
    }
}

.screenshot-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex: 0 0 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
}

.screenshot-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.screenshot {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.screenshot-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #ffd700;
}

.screenshot-item p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 70px 0 1rem 0; /* Added top padding */
    background-image: url('../assets/images/features-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    overflow-y: auto;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 50, 0.3);
    z-index: 0;
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid .feature-card:nth-child(5),
.features-grid .feature-card:nth-child(6) {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
}

.features-grid .feature-card:nth-child(5) {
    justify-self: end;
}

.features-grid .feature-card:nth-child(6) {
    justify-self: start;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card p {
    opacity: 1;
    line-height: 1.4;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Download Section */
.download-section {
    padding: 70px 0 1rem 0; /* Added top padding */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

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

/* Installer Features Note */
.installer-features {
    margin: 1.5rem auto;
    max-width: 900px;
}

.installer-note {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.installer-note strong {
    color: #ffd700;
    font-weight: 700;
}

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

/* Download Platforms - Horizontal Layout */
.download-platforms-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.download-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    padding: 1.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    min-width: 140px;
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-platform-btn:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Standardized icon size for ALL platforms */
.download-platform-btn .platform-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.download-platform-btn:hover .platform-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Standardized dual-language text styling for ALL platforms */
.platform-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    gap: 2px;
    margin-top: auto;
}

.text-arabic {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-english {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.download-platform-btn.google-play {
    background: linear-gradient(45deg, #34a853 0%, #4285f4 100%);
}

.download-platform-btn.app-store {
    background: linear-gradient(45deg, #007aff 0%, #5856d6 100%);
}

.download-platform-btn.windows {
    background: linear-gradient(45deg, #0078d4 0%, #106ebe 100%);
}

.download-platform-btn.huawei {
    background: linear-gradient(45deg, #ff0000 0%, #cc0000 100%);
}

.download-platform-btn.direct-link {
    background: linear-gradient(45deg, #a4c639 0%, #8bc34a 100%);
}

/* Contact Section */
.contact-section {
    padding: 70px 0 3rem 0; /* Added top padding */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

.contact-subtitle {
    font-size: 2rem;
    color: #ffd700;
    text-align: center;
    margin: 0.5rem 0 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.contact-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    flex: 0 0 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}

.social-link:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: rotate(360deg);
}

.social-link span {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.social-link p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: right;
}

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

/* Legal Section */
.legal-section {
    padding: 70px 0 70px 0; /* Added top padding */
    background-image: url('../assets/images/legal-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    align-items: flex-start; /* Changed from center to allow scrolling from top */
    justify-content: center;
    overflow-y: auto;
    position: relative;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.legal-section .container {
    position: relative;
    z-index: 1;
}

.legal-content {
    max-width: 1400px;
    margin: 0 auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.legal-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.legal-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.legal-card p {
    line-height: 1.4;
    opacity: 0.95;
    font-size: 0.8rem;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
        gap: 1rem;
    }
    
    .tab-buttons {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .scroll-container {
        margin-top: 140px;
    }
    
    .window-section {
        height: calc(100vh - 140px);
    }
    
    .home-section,
    .home-overlay,
    .rooms-section,
    .features-section,
    .download-section,
    .contact-section,
    .legal-section {
        height: 100%; /* Reverted to 100% to fit viewport */
    }
    
    .dot-navigation {
        left: 15px;
    }
    
    .dot-btn {
        width: 10px;
        height: 10px;
    }
    
    .dot-btn::before {
        display: none;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .chat-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-screenshots {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .screenshot-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-platforms-horizontal {
        gap: 1.5rem;
    }
    
    .download-platform-btn {
        min-width: 140px;
        min-height: 180px;
        padding: 1.5rem 1rem;
    }
    
    .download-platform-btn .platform-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .social-link {
        flex: 1;
        max-width: 100%;
    }
    
    .contact-info {
        flex: 1;
        max-width: 100%;
    }
    
    .legal-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .chat-option,
    .legal-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .social-link {
        padding: 1rem;
    }
    
    .download-platform-btn {
        min-width: 120px;
        min-height: 160px;
        padding: 1rem 0.8rem;
    }
    
    .download-platform-btn .platform-icon {
        width: 60px;
        height: 60px;
    }
    
    .text-arabic {
        font-size: 14px;
    }
    
    .text-english {
        font-size: 11px;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Accessibility improvements */
.option-btn:focus,
.download-platform-btn:focus,
.social-link:focus,
.dot-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .dot-navigation,
    .fixed-logo {
        display: none;
    }
    
    .window-section {
        page-break-before: always;
    }
    
    .home-section,
    .rooms-section,
    .download-section,
    .contact-section {
        background: none;
        color: black;
    }
}


/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.5); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-close:hover,
.modal-close:focus {
    color: #ffd700;
    transform: scale(1.2);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    max-width: 80%;
}

/* Make screenshots clickable */
.screenshot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .modal-caption {
        font-size: 1.2rem;
        bottom: 20px;
        padding: 10px 20px;
    }
}


/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0;
    font-weight: 400;
}



/* 3D Icons Styling */
.chat-icon-3d {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.chat-option:hover .chat-icon-3d {
    transform: scale(1.1) translateY(-5px);
}

.feature-icon-3d {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-3d {
    transform: scale(1.1) rotate(5deg);
}

/* Download Platform Link */
.download-platform-link {
    text-decoration: none;
    display: inline-block;
}

.download-platform-link:hover {
    text-decoration: none;
}



/* Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    max-width: 80%;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 10px 20px;
        bottom: 15px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}




/* ===========================
   Sales Section Styles
   =========================== */

.sales-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 70px 1rem 1rem 1rem; /* Added top padding */
}

.sales-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.payment-logo-item {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-logo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.payment-description {
    text-align: center;
    color: #333;
}

.payment-description p {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #555;
}

.payment-description p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Sales Section */
@media (max-width: 768px) {
    .payment-logos {
        gap: 1.5rem;
    }
    
    .payment-logo-item {
        padding: 1rem 1.5rem;
    }
    
    .payment-logo {
        height: 60px;
    }
    
    .payment-info {
        padding: 2rem 1.5rem;
    }
    
    .payment-description p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .payment-logos {
        flex-direction: column;
        gap: 1rem;
    }
    
    .payment-logo {
        height: 50px;
    }
    
    .payment-description p {
        font-size: 1rem;
    }
}



/* Removed - using new grid layout instead */

.conduct-rules {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: right;
}

.conduct-rules li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-right: 4px solid #ffd700;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.conduct-rules li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.conduct-rules li::before {
    content: "⚠️ ";
    margin-left: 0.5rem;
}




/* Optimized Legal Section - Fit all 5 cards on one screen */
.legal-section .legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.legal-section .legal-card {
    padding: 15px 20px;
    min-height: auto;
}

.legal-section .legal-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.legal-section .legal-card p,
.legal-section .legal-card li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.legal-section .legal-card ul {
    margin-top: 8px;
}

.legal-section .legal-card li {
    padding: 8px 10px;
    margin-bottom: 6px;
}

/* Make conduct rules card span 2 columns but with limited height */
.legal-section .conduct-rules-card {
    grid-column: span 2;
    max-height: 400px;
    overflow-y: auto;
}

.legal-section .conduct-rules-card ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.legal-section .conduct-rules-card li {
    font-size: 0.8rem;
    padding: 6px 8px;
}

/* Adjust section spacing */
.legal-section .section-content {
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-section .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-section .conduct-rules-card {
        grid-column: span 1;
        max-height: none;
    }
    
    .legal-section .conduct-rules-card ul {
        grid-template-columns: 1fr;
    }
}

