/* Color Variables */
:root {
    --cream-white: #FFFFFF;
    --black: #000000;
    --soft-blue: #8499FF;
    --primary-blue: #4466FF; 
    --text-gray: #D1D5DB; /* Lighter gray for dark background */
    --border-color: rgba(255, 255, 255, 0.2);
    --grid-color: rgba(255, 255, 255, 0.05); /* Subtle white grid */
}

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

body {
    background-color: #0A0F1A;
    color: var(--cream-white);
    font-family: 'Cairo', sans-serif;
    overflow: hidden; 
    height: 100vh;
    position: relative;
}

/* Background Image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 26, 0.4) 0%, rgba(10, 15, 26, 0.8) 100%);
    z-index: -2;
}

body.en-mode {
    font-family: 'Outfit', sans-serif;
}

.glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(132,153,255,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(80px);
    animation: float 10s infinite alternate ease-in-out;
}

.glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(68,102,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(100px);
    animation: float 12s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

/* Hero Content */
.hero-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-container.visible {
    opacity: 1;
    transform: translateY(0);
}

body.content-loaded {
    overflow: hidden; /* Force no scroll */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.custom-toggle {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    width: 160px;
}

.toggle-option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-gray);
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-option.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    background-color: var(--primary-blue);
    border-radius: 40px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body[dir="ltr"] .toggle-option#opt-en.active ~ .toggle-slider {
    transform: translateX(0);
}
body[dir="ltr"] .toggle-option#opt-ar.active ~ .toggle-slider {
    transform: translateX(100%);
}

body[dir="rtl"] .toggle-option#opt-ar.active ~ .toggle-slider {
    transform: translateX(0);
}
body[dir="rtl"] .toggle-option#opt-en.active ~ .toggle-slider {
    transform: translateX(100%);
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* We removed slogan-title but leaving the class just in case */
.slogan-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--cream-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.title {
    font-size: 2.4rem; 
    font-weight: 800;
    color: var(--cream-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.contact-section {
    margin: 1.2rem 0;
}

.waitlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(68, 102, 255, 0.4);
}

.waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 102, 255, 0.6);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: right;
}

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

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

body[dir="ltr"] .close-modal {
    right: auto;
    left: 15px;
}

.close-modal:hover {
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-blue);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #3b5bdb;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#form-message {
    display: none;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

#form-message.success-box {
    display: block;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.1);
}

#form-message.error-box {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.thank-you {
    font-size: 1.1rem;
    color: var(--cream-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Typewriter Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-blue);
    margin-left: 2px;
    margin-right: 2px;
}

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

.follow-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.follow-us p {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--cream-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-circle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slogan-title {
        font-size: 2.8rem;
    }
    .title {
        font-size: 2rem;
    }
    .description {
        font-size: 1.1rem;
    }
}
