/*
 * Full Responsive CSS for Hero Content and Countdown
 * Includes fixes for hero text overflow on small devices.
 */

/* ------------------------------------- */
/* ⏰ Countdown Container Styles */
/* ------------------------------------- */

.countdown-container {
    background: rgba(25, 45, 120, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.countdown-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-box {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 16px;
    padding: 18px 8px;
    min-width: 85px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.countdown-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.countdown-label {
    color: white;
    font-size: 1rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.promo-message {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ------------------------------------- */
/* 🖼️ Hero Section Styles (Base) */
/* ------------------------------------- */

.hero {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&auto=format');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 160px 0 80px; /* Base padding */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Crucial padding for horizontal containment */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    
    /* FIX: Prevent overflow from single long words */
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #dbeafe;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #bfdbfe;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

/* ------------------------------------- */
/* ✨ Button Styles */
/* ------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e40af;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ------------------------------------- */
/* Other Section Styles (for completeness) */
/* ------------------------------------- */

.features {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2563eb;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: #1e40af;
    font-weight: 600;
}

.testimonial-author span {
    color: #64748b;
    font-size: 0.875rem;
}


/* ------------------------------------- */
/* 📱 Responsive Media Queries (Enhanced) */
/* ------------------------------------- */

/* Countdown specific small screen adjustments */
@media (max-width: 600px) {
    .countdown-value { font-size: 2.1rem; }
    .countdown-box { min-width: 70px; padding: 14px 5px; }
    .countdown-title { font-size: 1.8rem; }
}

/* Tablets/Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 140px 0 70px; 
    }
    
    .hero-title {
        font-size: 3rem; 
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section Adjustments */
    .hero {
        padding: 120px 0 60px; 
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem; 
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%; /* Ensure buttons take full available width */
        max-width: 300px; 
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column; /* Stack stats vertically */
        gap: 1.5rem;
        justify-content: center;
    }

    /* Countdown Adjustments */
    .countdown-container {
        max-width: 90%; 
        padding: 25px;
    }

    /* Other section adjustments */
    .section-header h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px; 
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem; 
    }

    /* Countdown Adjustments */
    .countdown {
        gap: 8px; /* Reduce gap between boxes */
    }
    
    .countdown-container {
        padding: 20px 15px;
    }

    /* General Padding/Sections */
    .features,
    .testimonials {
        padding: 60px 0;
    }
    
    /* Ensure content is well-spaced from screen edges */
    .hero-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ------------------------------------- */
/* 💫 Animations */
/* ------------------------------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}