/* --- Professional Landing Page Styles --- */

/* 1. Enhanced Variables & Global Styles
 * - Added a subtle background gradient for depth.
 * - Added variables for border-radius and transition speed for consistency.
 * - Added accessibility and rendering improvements.
*/
:root {
    --primary-color: #4a90e2;
    --primary-color-dark: #357abd;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --heading-color: #2c3e50;
    --white: #fff;
    
    /* More sophisticated shadow */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(74, 144, 226, 0.2);

    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition-speed: 0.3s;
}

/* Smooth scrolling and better text rendering */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-image: linear-gradient(to top, #f3f5f8 0%, #eef1f5 100%);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scroll during animations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Page Load Animations
 * - A keyframe for a "fade in and slide up" effect.
 * - Staggered animation delays for a more dynamic entrance.
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General animation class */
.animated {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

/* Stagger the animations */
.landing-header { animation-delay: 0.2s; }
.stats-section { animation-delay: 0.4s; }
.cta-section { animation-delay: 0.6s; }


/* 3. Landing Page Structure & Typography
 * - Using clamp() for fluid typography on the main heading.
*/
.landing-container {
    max-width: 960px;
    margin: 2rem;
    padding: 2rem;
    text-align: center;
}

.landing-header h1 {
    /* Fluid Typography: Scales from 2.5rem to 4rem based on viewport width */
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.landing-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto; /* Center the paragraph if it's not full-width */
}

/* 4. Interactive Stat Cards
 * - Softer initial shadow.
 * - Hover effect to "lift" the card with a colored glow.
*/
.stats-section {
    display: flex;
    justify-content: center; /* Use center for better alignment with gaps */
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.stat-card {
    flex: 1;
    min-width: 220px; /* Prevent cards from getting too squished */
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* 5. Upgraded Call-to-Action Button
 * - Gradient background for a modern look.
 * - Interactive hover effect with lift and shadow.
*/
.cta-section .btn {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 45px;
    border: none;
    border-radius: 50px; /* Pill-shaped button */
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #63a4ff 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-image var(--transition-speed) ease;
    display: inline-block; /* Needed for transform */
}

.cta-section .btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-hover);
    background-image: linear-gradient(45deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
}


/* 6. Responsive Design for Mobile
 * - Stacks stat cards vertically on smaller screens.
 * - Adjusts padding and font sizes for better readability.
*/
@media (max-width: 768px) {
    .landing-container {
        padding: 1rem;
        margin: 1rem;
    }

    .landing-header h1 {
        font-size: 2.2rem; /* A fixed size can be better on small mobiles */
    }

    .landing-header p {
        font-size: 1.1rem;
    }

    .stats-section {
        flex-direction: column;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .cta-section .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}
