/* ==========================================================================
   Design System - Ibada Hajj & Umrah Light Theme (Logo Matching)
   ========================================================================== */

:root {
    /* Logo Colors */
    --color-navy: #0A3D62;      /* Deep navy blue from "Ibada" text */
    --color-navy-dark: #061D36;
    --color-navy-light: #1A5480;
    
    --color-gold: #B4975A;      /* Matte gold from Arabic calligraphy */
    --color-gold-light: #F3E5AB;
    --color-gold-dark: #8F7236;
    
    --bg-center: #ffffff;
    --bg-edge: #eaeef2;         /* Soft light-grey vignette matching the logo background */
    
    --color-text-main: #0A3D62;
    --color-text-muted: #4A607A;
    --color-text-light: #7E93A8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-center);
    background: radial-gradient(circle at center, var(--bg-center) 0%, #f6f8fb 60%, var(--bg-edge) 100%);
    font-family: var(--font-body);
    color: var(--color-text-main);
    overflow-x: hidden;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Background Animation Layers (Floating Sparkles)
   ========================================================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(180, 151, 90, 0.4));
    transform-origin: center;
}

/* Individual coordinates and timings for logo-matching sparkles */
.sparkle-1 {
    left: 10%;
    top: 15%;
    width: 20px;
    height: 20px;
    animation: floatGlow 14s infinite ease-in-out;
}

.sparkle-2 {
    left: 85%;
    top: 22%;
    width: 26px;
    height: 26px;
    animation: floatGlow 18s infinite ease-in-out;
    animation-delay: 2s;
}

.sparkle-3 {
    left: 18%;
    top: 75%;
    width: 16px;
    height: 16px;
    animation: floatGlow 12s infinite ease-in-out;
    animation-delay: 4.5s;
}

.sparkle-4 {
    left: 82%;
    top: 68%;
    width: 22px;
    height: 22px;
    animation: floatGlow 15s infinite ease-in-out;
    animation-delay: 1.2s;
}

.sparkle-5 {
    left: 45%;
    top: 12%;
    width: 18px;
    height: 18px;
    animation: floatGlow 16s infinite ease-in-out;
    animation-delay: 5.5s;
}

/* This sparkle is sized and placed to align with the visual flow in the logo */
.sparkle-6 {
    left: 76%;
    top: 48%;
    width: 28px;
    height: 28px;
    animation: floatGlow 20s infinite ease-in-out;
    animation-delay: 3s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(0.85);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.15);
        opacity: 0.65;
    }
}

/* ==========================================================================
   Content Layout
   ========================================================================== */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3.5rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ==========================================================================
   Header & Logo Styling
   ========================================================================== */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Logo image blends perfectly into matching radial background */
.logo-img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 8px 24px rgba(10, 61, 98, 0.05));
    animation: logoEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, logoFloat 6s infinite ease-in-out;
}

@keyframes logoEntrance {
    from {
        transform: scale(0.96) translateY(5px);
        opacity: 0;
        filter: blur(4px) drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0) drop-shadow(0 8px 24px rgba(10, 61, 98, 0.05));
    }
}

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

/* Calligraphy & Brand Fallback styled exactly like the logo graphic */
.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: logoEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 3.8rem;
    color: var(--color-gold);
    line-height: 1.1;
    margin-bottom: 0.1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(180, 151, 90, 0.15);
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-navy);
    line-height: 1;
}

.brand-sub {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-top: 0.25rem;
    border-top: 1px solid var(--color-gold);
    padding-top: 0.3rem;
    width: 105%;
}

.bengali-tag {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-top: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 660px;
    margin: auto 0;
    padding: 1rem 0;
    width: 100%;
}

.status-badge-wrapper {
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.status-badge {
    background: rgba(180, 151, 90, 0.08);
    border: 1px solid rgba(180, 151, 90, 0.35);
    padding: 0.45rem 1.3rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold-dark);
    display: inline-block;
    animation: glowBadge 3s infinite ease-in-out;
}

@keyframes glowBadge {
    0%, 100% { border-color: rgba(180, 151, 90, 0.35); background: rgba(180, 151, 90, 0.08); }
    50% { border-color: rgba(180, 151, 90, 0.6); background: rgba(180, 151, 90, 0.12); }
}

.main-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--color-navy);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.tagline {
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* ==========================================================================
   Subscription Form (Minimalist Light Theme)
   ========================================================================== */
.subscription-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    display: flex;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(10, 61, 98, 0.12);
    border-radius: 50px;
    padding: 0.28rem 0.28rem 0.28rem 1.4rem;
    box-shadow: 0 8px 30px rgba(10, 61, 98, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(180, 151, 90, 0.15);
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-navy);
    font-size: 0.95rem;
    flex: 1;
    font-family: var(--font-body);
    padding: 0.75rem 0.5rem 0.75rem 0;
}

.input-group input::placeholder {
    color: rgba(10, 61, 98, 0.4);
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    border: none;
    outline: none;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.25);
}

.submit-btn:active {
    transform: scale(0.98);
}

.btn-arrow {
    transition: transform 0.25s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.form-feedback.success { color: #2ecc71; }
.form-feedback.error { color: #e74c3c; }
.form-feedback.info { color: var(--color-navy-light); }

/* ==========================================================================
   Footer & Social Icons
   ========================================================================== */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(10, 61, 98, 0.08);
    color: var(--color-navy);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s, border-color 0.3s, color 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.social-icon:hover {
    transform: translateY(-4px);
    background: rgba(180, 151, 90, 0.06);
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
    box-shadow: 0 6px 15px rgba(180, 151, 90, 0.1);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* ==========================================================================
   Global Keyframes For Fade-In Effects
   ========================================================================== */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 576px) {
    .content-wrapper {
        padding: 2rem 1.25rem;
    }
    
    .input-group {
        padding: 0.2rem 0.2rem 0.2rem 1.1rem;
    }
    
    .input-group input {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.88rem;
    }
    
    .logo-img {
        max-height: 140px;
    }

    .brand-name {
        font-size: 1.8rem;
    }
    
    .brand-sub {
        font-size: 0.75rem;
    }
    
    .bengali-tag {
        font-size: 0.85rem;
    }
}
