/* ==========================================================================
   RAFAL Coming Soon Stylesheet
   Luxury Glassmorphism & Gold Theme
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --color-bg-deep: #060606;
    --color-bg-card: rgba(15, 15, 15, 0.6);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    
    /* Luxury Gold Palette */
    --color-gold-light: #f6e0a4;
    --color-gold-primary: #d4af37;
    --color-gold-dark: #aa7c11;
    --color-gold-deep: #775204;
    
    /* Styling Helpers */
    --glass-background: rgba(18, 18, 18, 0.65);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-border-focus: rgba(212, 175, 55, 0.4);
    --glow-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 20px 0 rgba(212, 175, 55, 0.05);
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Background Image */
    background-image: url('./assets/background.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background Overlays */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 6, 6, 0.65);
    z-index: 1;
    pointer-events: none;
}

.bg-gradient-radial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.06) 0%, rgba(6, 6, 6, 0.92) 80%);
    z-index: 2;
    pointer-events: none;
}

/* Layout Container */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.6em;
    text-indent: 0.6em; /* Offsets letter-spacing to center text correctly */
    background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 50%, var(--color-gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-subtext {
    font-size: 0.65rem;
    letter-spacing: 0.85em;
    text-indent: 0.85em;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Main Content Wrapper */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.gradient-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-primary) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 620px;
    font-weight: 300;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold-primary);
    animation: pulse-glow 2s infinite ease-in-out;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-gold-light);
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: var(--glow-shadow);
    transition: var(--transition-premium);
}

/* Countdown Timer Section */
.timer-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto repeat(3, auto); /* fallback structure handled by flex below */
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 620px;
    padding: 2rem 1.5rem;
}

.countdown-container:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.7), 0 0 25px 0 rgba(212, 175, 55, 0.08);
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
    transition: var(--transition-premium);
}

.timer-block:hover {
    transform: translateY(-4px);
}

.timer-block:hover .timer-value {
    color: var(--color-gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.timer-value {
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    line-height: 1.1;
    transition: var(--transition-premium);
}

.timer-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.timer-divider {
    font-size: 2.2rem;
    font-weight: 300;
    color: rgba(212, 175, 55, 0.35);
    align-self: center;
    margin-top: -15px; /* Offset for label text alignment */
    animation: blink 2.5s infinite ease-in-out;
}

/* Subscription Form Section */
.subscription-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}

.form-container:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 60%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Form Styles */
.subscribe-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

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

.email-input {
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    color: var(--color-text-primary);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition-premium);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.email-input:focus {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
}

.submit-button {
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #0c0c0c;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: var(--transition-premium);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-primary) 100%);
}

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

.btn-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

/* Form Error Message */
.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    text-align: left;
    margin-top: 0.6rem;
    height: 1rem;
    font-weight: 400;
    opacity: 0;
    transition: var(--transition-premium);
}

.error-message.show {
    opacity: 1;
}

/* Footer Section */
.footer {
    width: 100%;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-location,
.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.loc-icon,
.phone-icon {
    color: var(--color-gold-primary);
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-premium);
}

.contact-link:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.footer-divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    transition: var(--transition-premium);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--color-gold-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* Success Notification Modal */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-premium);
    padding: 2rem;
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.notification-card {
    max-width: 480px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: var(--transition-premium);
}

.notification-overlay.show .notification-card {
    transform: scale(1);
}

.notification-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.notification-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.notification-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.close-notification-btn {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: var(--color-gold-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-premium);
}

.close-notification-btn:hover {
    background: var(--color-gold-primary);
    color: #0c0c0c;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 8px var(--color-gold-primary);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px var(--color-gold-light);
    }
}

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

/* Animation triggers on load */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animation delays */
#main-header { animation-delay: 0.1s; }
#hero-intro { animation-delay: 0.3s; }
#timer-section { animation-delay: 0.5s; }
#subscribe-section { animation-delay: 0.7s; }
#main-footer { animation-delay: 0.9s; }

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

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 900px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 2rem 1.5rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .countdown-container {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }
    
    .timer-value {
        font-size: 2.4rem;
    }
    
    .timer-divider {
        font-size: 1.8rem;
        margin-top: -12px;
    }
    
    .timer-label {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .submit-button {
        padding: 1.1rem;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .footer-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .countdown-container {
        flex-wrap: nowrap;
    }
    
    .timer-value {
        font-size: 1.8rem;
    }
    
    .timer-divider {
        font-size: 1.2rem;
        margin-top: -8px;
    }
    
    .timer-label {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}
