:root {
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --primary: #0052cc;
    --primary-light: #3b82f6;
    --accent: #00b4d8;
    --text-white: #0f172a;
    --text-muted: #334155;
    --text-dim: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: radial-gradient(circle at top, #ffffff 0%, #f4f9ff 50%, #eef6ff 100%);
    color: var(--text-white);
    font-family: var(--font-ar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Animated Blobs */
.bg-glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.glow-blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.glow-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: 5s;
}

.glow-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 40px) scale(0.95);
    }
}

/* Main Container Layout */
header {
    width: 100%;
    max-width: 1200px;
    padding: 1.25rem 2rem 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 82, 204, 0.08));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 6px 18px rgba(0, 82, 204, 0.18));
}

main {
    /* flex: 1; */
    width: 100%;
    max-width: 1200px;
    /* Increased to fit split layout on desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    text-align: center;
    z-index: 10;
}

.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 2.25rem 3rem;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 var(--glass-highlight);
    position: relative;
    overflow: hidden;
    animation: scaleUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accent top border gradient */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: 20px 20px 0 0;
}

/* Announcement Banner */
.announcement-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.announcement-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ff2e93 0%, #ff8a00 100%);
    /* Neon pink-orange eye-catching gradient */
    color: #ffffff;
    padding: 0.5rem 1.75rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(255, 46, 147, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: pulseBanner 2s infinite ease-in-out;
}

@keyframes pulseBanner {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 46, 147, 0.25);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 10px 28px rgba(255, 46, 147, 0.45);
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    animation: blinkDot 0.8s infinite alternate ease-in-out;
}

@keyframes blinkDot {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Split Grid Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    /* 1.15fr for text side, 0.85fr for form/countdown */
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.split-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.split-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Badge Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.02);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.03);
        border-color: rgba(59, 130, 246, 0.15);
    }

    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
    }
}

/* Main Typography */
h1 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, #001f54 15%, #0052cc 60%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 100%;
    margin-bottom: 1.25rem;
    font-weight: 400;
    text-align: right;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.03);
    border: 1px dashed rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    max-width: 100%;
    text-align: right;
}

.highlight-box svg {
    color: #2563eb;
    flex-shrink: 0;
}

/* Countdown Clock */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    direction: ltr;
    width: 100%;
}

.countdown-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    flex: 1;
    min-width: 72px;
    padding: 0.85rem 0.35rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    transition: var(--transition-smooth);
}

.countdown-box:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.01);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.05);
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.countdown-number {
    font-family: var(--font-en);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    display: block;
}

.countdown-label {
    font-family: var(--font-ar);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Form Styles */
.form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.form-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-input {
    width: 100%;
    padding: 0.95rem 2.85rem 0.95rem 1.15rem;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--text-white);
    transition: var(--transition-smooth);
    outline: none;
    font-size: 16px !important;
}

body[dir="ltr"] .form-input {
    padding: 0.95rem 1.15rem 0.95rem 2.85rem;
}

body[dir="ltr"] .input-icon {
    right: auto;
    left: 1.15rem;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), var(--glow-shadow);
    background: #ffffff;
}

.form-input:focus+.input-icon {
    color: var(--primary-light);
}

.submit-btn {
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    background-size: 200% auto;
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -4px rgba(59, 130, 246, 0.4), var(--glow-shadow);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(-4px);
}

/* Success Message Alert */
.success-msg {
    display: none;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 1rem;
    color: #065f46;
    font-weight: 600;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Footer & Social Media */
footer {
    width: 100%;
    max-width: 1200px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    color: var(--text-dim);
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

/* Brand Custom Hovering States */
.social-icon.linkedin:hover {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.06);
    border-color: #0077b5;
    box-shadow: 0 6px 15px rgba(0, 119, 181, 0.12);
}

.social-icon.whatsapp:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.06);
    border-color: #25d366;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.12);
}

.social-icon.instagram:hover {
    color: #e1306c;
    background: rgba(225, 48, 108, 0.06);
    border-color: #e1306c;
    box-shadow: 0 6px 15px rgba(225, 48, 108, 0.12);
}

.social-icon.youtube:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.06);
    border-color: #ff0000;
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.12);
}

.social-icon.tiktok:hover {
    color: #010101;
    background: rgba(1, 1, 1, 0.06);
    border-color: #010101;
    box-shadow: 0 6px 15px rgba(1, 1, 1, 0.12);
}

.social-icon.facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.06);
    border-color: #1877f2;
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.12);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: var(--font-en);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 840px) {
    main {
        max-width: 600px;
        padding: 1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .split-right {
        text-align: center;
        align-items: center;
    }

    .tagline {
        font-size: 14px;
        text-align: center;
        margin: 0 auto 1rem;
    }

    .highlight-box {
        justify-content: center;
        text-align: center;
        display: none;
    }

    .announcement-banner {
        font-size: 0.88rem;
        padding: 0.45rem 1.5rem;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem 1rem 0rem;
    }

    .logo-img {
        height: 90px;
    }

    .content-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 0.85rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .highlight-box {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    .countdown-container {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .countdown-box {
        min-width: 60px;
        padding: 0.65rem 0.25rem;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .form-input {
        font-size: 14px !important;
        padding: 6px 50px;
    }

    .submit-btn {
        font-size: 14px !important;
        padding: 6px 50px;
    }

    footer {
        padding: 15px;
        margin-top: 10px;
        gap: 0.75rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Form transition and disabled state */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading svg {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}