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

:root {
    --primary-orange: #f35822;
    --primary-purple: #341869;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-lighter: #e0e0e0;
    --glow-orange: rgba(243, 88, 34, 0.4);
    --glow-purple: rgba(52, 24, 105, 0.4);
}

body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, var(--darker-bg) 50%, var(--dark-bg) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Use Montserrat font for English */
/* Exclude icons from font change */
html[lang="en"] body {
    font-family: 'Montserrat', sans-serif;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] p,
html[lang="en"] span:not([class*="fa"]):not([class*="icon"]):not(.countdown-number),
html[lang="en"] div:not([class*="fa"]):not([class*="icon"]):not(.countdown-number),
html[lang="en"] a:not([class*="fa"]):not([class*="icon"]),
html[lang="en"] button:not([class*="fa"]):not([class*="icon"]),
html[lang="en"] input:not([class*="fa"]):not([class*="icon"]),
html[lang="en"] label:not([class*="fa"]):not([class*="icon"]) {
    font-family: 'Montserrat', sans-serif;
}

/* Make title italic in English */
html[lang="en"] .title,
html[lang="en"] .title-text {
    font-style: italic;
}

/* Ensure Font Awesome icons keep their font */
html[lang="en"] [class*="fa"],
html[lang="en"] [class*="fas"],
html[lang="en"] [class*="fab"],
html[lang="en"] [class*="far"],
html[lang="en"] i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

[dir="rtl"] .language-switcher {
    left: auto;
    right: 2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-orange);
    color: var(--text-light);
}

.lang-btn i {
    font-size: 1.1rem;
}

.lang-btn span {
    font-weight: 700;
    letter-spacing: 1px;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Logo Section */
.logo-container {
    position: relative;
    display: inline-block;
    width: 220px;
    height: 220px;
    margin-left: auto;
    margin-right: auto;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--glow-orange) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.logo {
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 10px 40px var(--glow-orange));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
}

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

/* Title Section */
.title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.title-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.title-shine {
    display: none;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

/* Message Section */
.message {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.message-line {
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.message-line:nth-child(1) {
    animation-delay: 0.3s;
}

.message-line:nth-child(2) {
    animation-delay: 0.6s;
}

.message-highlight {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
    text-shadow: 0 0 20px var(--glow-orange);
}

/* Countdown Section */
.countdown-container {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-orange) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.countdown-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.countdown-title i {
    color: var(--primary-orange);
    animation: bounce 2s ease-in-out infinite;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
}

.countdown::-webkit-scrollbar {
    display: none;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    flex-shrink: 0;
}

.countdown-box {
    position: relative;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif !important;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-orange);
    line-height: 1;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(243, 88, 34, 0.3);
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(243, 88, 34, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient text effect - only apply transparent if gradient clipping works */
@supports (-webkit-background-clip: text) {
    .countdown-number {
        background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: blink 1s ease-in-out infinite;
}

.countdown-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Newsletter Section */
.newsletter-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.newsletter-title i {
    color: var(--primary-orange);
}

.newsletter-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    position: relative;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px var(--glow-orange);
    background: rgba(255, 255, 255, 0.08);
}

.input-group.input-error {
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-icon {
    color: var(--text-gray);
    margin: 0 1rem;
    font-size: 1.2rem;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    padding: 1rem;
    line-height: 1.5;
    height: auto;
}

/* Fix height for English to match Arabic */
html[lang="en"] .email-input {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    padding: 1rem;
}

.email-input::placeholder {
    color: var(--text-gray);
}

.email-input.input-invalid {
    color: #f44336;
}

.email-input.input-invalid::placeholder {
    color: rgba(244, 67, 54, 0.6);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    border: none;
    border-radius: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 88, 34, 0.3);
    white-space: nowrap;
    line-height: 1.5;
    height: auto;
}

/* Fix height for English to match Arabic */
html[lang="en"] .submit-btn {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    padding: 1rem 2rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-orange);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
    line-height: 1.5;
}

.form-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

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

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: var(--text-light);
    border-color: var(--primary-orange);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px var(--glow-orange);
}

/* Contact Info */
.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.email {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(243, 88, 34, 0.2);
    position: relative;
    overflow: hidden;
}

.email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 88, 34, 0.1), transparent);
    transition: left 0.5s ease;
}

.email:hover {
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-orange);
}

.email:hover::before {
    left: 100%;
}

.email i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.email:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 10;
    opacity: 0.6;
    animation: fadeIn 2s ease-out 1s forwards;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s ease;
    visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
    visibility: hidden;
    pointer-events: none;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    width: 12px;
    text-align: center;
    position: relative;
}

.arrow span {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--text-gray);
    animation: arrow-bounce 1.5s ease-in-out infinite;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
    opacity: 0;
}

.arrow span:nth-child(1) {
    animation-delay: 0s;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow-bounce {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.arrow span:nth-child(1) {
    animation-delay: 0s;
}

.arrow span:nth-child(2) {
    animation-delay: 0.15s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        top: 1rem;
        left: 1rem;
    }

    [dir="rtl"] .language-switcher {
        right: 1rem;
    }

    .lang-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo-container {
        width: 180px;
        height: 180px;
    }

    .logo {
        width: 180px;
        height: 180px;
    }

    .logo-glow {
        width: 240px;
        height: 240px;
    }

    .title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .message {
        font-size: 1.1rem;
    }

    .countdown {
        gap: 0.6rem;
        padding: 0 0.5rem;
        flex-wrap: nowrap;
    }

    .countdown-item {
        width: calc(25% - 0.45rem);
        flex-shrink: 0;
    }

    .countdown-number {
        font-size: 2rem;
        width: 100%;
        padding: 0.8rem;
        border-radius: 15px;
    }

    .countdown-separator {
        display: block;
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .countdown-label {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .countdown-container {
        padding: 2.5rem 1.5rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 0.75rem;
        left: 0.75rem;
    }

    [dir="rtl"] .language-switcher {
        right: 0.75rem;
    }

    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .lang-btn span {
        display: none;
    }

    .container {
        padding: 1rem;
    }

    .logo-container {
        width: 150px;
        height: 150px;
    }

    .logo {
        width: 150px;
        height: 150px;
    }

    .logo-glow {
        width: 200px;
        height: 200px;
    }

    .title {
        font-size: 2.2rem;
    }

    .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        overflow-x: visible;
        justify-items: center;
        padding: 0;
    }

    .countdown-separator {
        display: none;
    }

    .countdown-item {
        width: 100%;
        max-width: 160px;
    }

    .countdown-number {
        font-size: 2.2rem;
        width: 100%;
        padding: 1rem;
        border-radius: 15px;
    }

    .countdown-label {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }

    .countdown-container {
        padding: 2rem 1.5rem;
    }

    .newsletter-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0;
    }

    .countdown-separator {
        display: none;
    }

    .countdown-item {
        width: 100%;
        max-width: 140px;
    }

    .countdown-number {
        font-size: 1.6rem;
        width: 100%;
        padding: 0.8rem;
        border-radius: 12px;
    }

    .countdown-label {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .countdown-container {
        padding: 1.5rem 1rem;
    }
}
