/* ==========================================================================
   TWINS STORE - Coming Soon Landing Page Styles
   Theme: Ultra-Modern Premium Dark Mode (Obsidian, Crimson Fire & Silver Metallic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-dark: #08080a;
    --bg-card: rgba(18, 18, 24, 0.65);
    --bg-card-hover: rgba(28, 28, 38, 0.85);
    
    --primary-red: #ff2a4b;
    --primary-red-glow: rgba(255, 42, 75, 0.4);
    --crimson-dark: #d90429;
    --flame-orange: #ff7000;
    
    --silver-light: #e0e6ed;
    --silver-metallic: #94a3b8;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 42, 75, 0.3);
    
    /* Typography */
    --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-english: 'Outfit', 'Syncopate', sans-serif;
    --font-brand: 'Syncopate', 'Outfit', sans-serif;

    /* Transitions & Shadow */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-blur: blur(16px);
    --box-shadow-glow: 0 10px 30px -10px rgba(255, 42, 75, 0.35);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Background Canvas & Glowing Effects
   -------------------------------------------------------------------------- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    animation: orbPulse 8s ease-in-out infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-red) 0%, rgba(217, 4, 41, 0) 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--flame-orange) 0%, rgba(255, 112, 0, 0) 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

@keyframes orbPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
    100% { transform: scale(1.2) translate(30px, -20px); opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   3. Main Container Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 42, 75, 0.08);
    transition: var(--transition-smooth);
}

.container:hover {
    border-color: rgba(255, 42, 75, 0.25);
}

/* --------------------------------------------------------------------------
   4. Status Badge
   -------------------------------------------------------------------------- */
.badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 42, 75, 0.1);
    border: 1px solid rgba(255, 42, 75, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(255, 42, 75, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-red);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 75, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 42, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 75, 0); }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--silver-light);
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   5. Brand Header & Arabic Message
   -------------------------------------------------------------------------- */
.brand-section {
    margin-bottom: 2.5rem;
}

.brand-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.logo-icon-wrap {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 15px rgba(255, 42, 75, 0.5));
    animation: floatIcon 4s ease-in-out infinite alternate;
}

.brand-svg-logo {
    width: 100%;
    height: 100%;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* Brand Name Typography */
.brand-title {
    font-family: var(--font-brand);
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.brand-title .accent-text {
    background: linear-gradient(135deg, #ff4d6d 0%, var(--primary-red) 50%, var(--flame-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 42, 75, 0.4));
}

/* Requirement #2: Arabic Prominent Text */
.main-message {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.main-message::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0.6rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-red);
}

.sub-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   6. Requirement #4: Modern Loading & Progress Bar
   -------------------------------------------------------------------------- */
.progress-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2.5rem;
    background: rgba(10, 10, 14, 0.5);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.progress-status-text {
    color: var(--silver-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-status-text i {
    color: var(--primary-red);
}

.progress-percentage {
    font-family: var(--font-english);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-red);
    text-shadow: 0 0 8px rgba(255, 42, 75, 0.5);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* DynamicJS */
    background: linear-gradient(90deg, var(--crimson-dark), var(--primary-red), var(--flame-orange));
    border-radius: 10px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 15px var(--primary-red-glow);
}

.progress-glow-head {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30px;
    background: #ffffff;
    opacity: 0.6;
    filter: blur(4px);
    animation: shimmerGlow 2s infinite linear;
}

@keyframes shimmerGlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(600px); }
}

.loading-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.2rem;
    position: relative;
}

/* Orbit Spinner */
.orbit-spinner {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    perspective: 800px;
}

.orbit-spinner div {
    position: absolute;
    box-sizing: border-border;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.orbit-spinner div:nth-child(1) {
    left: 0%;
    top: 0%;
    animation: orbit-rotate-one 1s linear infinite;
    border-bottom: 3px solid var(--primary-red);
}

.orbit-spinner div:nth-child(2) {
    right: 0%;
    top: 0%;
    animation: orbit-rotate-two 1s linear infinite;
    border-right: 3px solid var(--flame-orange);
}

.orbit-spinner div:nth-child(3) {
    right: 0%;
    bottom: 0%;
    animation: orbit-rotate-three 1s linear infinite;
    border-top: 3px solid var(--silver-light);
}

@keyframes orbit-rotate-one {
    0% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); }
    100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); }
}

@keyframes orbit-rotate-two {
    0% { transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); }
    100% { transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); }
}

@keyframes orbit-rotate-three {
    0% { transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); }
    100% { transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); }
}

/* --------------------------------------------------------------------------
   7. Countdown Timer
   -------------------------------------------------------------------------- */
.countdown-section {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    width: 100%;
    justify-content: center;
    direction: ltr; /* Ensure numbers read correctly */
}

.countdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    background: rgba(255, 42, 75, 0.05);
}

.countdown-num {
    font-family: var(--font-english);
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 42, 75, 0.3);
}

.countdown-label {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Subscription Form
   -------------------------------------------------------------------------- */
.subscribe-section {
    width: 100%;
    max-width: 580px;
    margin-bottom: 3rem;
}

.subscribe-title {
    font-size: 0.95rem;
    color: var(--silver-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.subscribe-title i {
    color: var(--flame-orange);
    margin-left: 5px;
}

.subscribe-form {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.subscribe-form input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 42, 75, 0.25);
}

.subscribe-form input:focus + .input-icon {
    color: var(--primary-red);
}

.btn-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: var(--box-shadow-glow);
    white-space: nowrap;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -5px rgba(255, 42, 75, 0.5);
    background: linear-gradient(135deg, #ff4d6d 0%, var(--primary-red) 100%);
}

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

.form-feedback {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 20px;
}

.form-feedback.error {
    color: #ff4d6d;
}

.form-feedback.success {
    color: #2ec4b6;
}

/* --------------------------------------------------------------------------
   9. Features Highlight Grid
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 42, 75, 0.1);
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-item h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Footer & Social Links
   -------------------------------------------------------------------------- */
.footer-section {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

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

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--silver-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 42, 75, 0.4);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copyright strong {
    color: var(--silver-light);
    font-family: var(--font-english);
}

/* --------------------------------------------------------------------------
   11. Toast Notification
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    border: 1px solid var(--primary-red);
    border-radius: 16px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 42, 75, 0.3);
    z-index: 999;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast-icon {
    font-size: 1.5rem;
    color: #2ec4b6;
}

.toast-content strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
}

.toast-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 2.4rem;
    }

    .main-message {
        font-size: 1.7rem;
    }

    .sub-message {
        font-size: 0.95rem;
    }

    .countdown-section {
        gap: 0.6rem;
    }

    .countdown-card {
        min-width: 70px;
        padding: 0.9rem 0.6rem;
    }

    .countdown-num {
        font-size: 1.6rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .btn-submit {
        justify-content: center;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.9rem;
    }

    .main-message {
        font-size: 1.4rem;
    }

    .logo-icon-wrap {
        width: 65px;
        height: 65px;
    }
}
