/*
=============== 
Root Variables
===============
*/
:root {
    --primary-color: #3b82f6; --primary-hover: #2563eb; --secondary-color: #ffffff;
    --bg-light: #f8fafc; --bg-light-theme: #eff6ff; --bg-light-red: #fef2f2;
    --text-dark: #1e293b; --text-light: #ffffff; --text-muted: #64748b;
    --accent-red: #ef4444; --accent-red-dark: #dc2626; --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --border-radius: 12px; --font-family: 'Poppins', sans-serif; --navbar-height: 86px;
}

/*
=============== 
Base & Typography
===============
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2.section-title { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 2rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }

/*
=============== 
Layout & Containers
===============
*/
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.grid-3-col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.text-center { text-align: center; }
.bg-light-theme { background-color: var(--bg-light-theme); }
.bg-light-red { background-color: var(--bg-light-red); }
.text-red { color: var(--accent-red-dark); }

/*
=============== 
Navigation Bar
===============
*/
.navbar {
    background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm); padding: 1rem 0; position: sticky;
    top: 0; z-index: 1000; width: 100%; height: var(--navbar-height);
}
.navbar-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.navbar-logo img { height: 60px; /* Increased logo size */ display: block; }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; width: 40px; height: 40px;
}
.hamburger {
    width: 25px; height: 3px; background-color: var(--text-dark);
    position: relative; transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 25px; height: 3px;
    background-color: var(--text-dark); transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }
.nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: calc(var(--navbar-height) + 5px); right: 0; background-color: var(--secondary-color);
    width: 100%; padding: 1rem 1.5rem 2rem; box-shadow: var(--shadow);
    text-align: center; gap: 1.5rem;
}

/*
=============== 
Buttons
===============
*/
.btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 600; text-align: center; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--secondary-color); color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-primary:hover {
    background-color: var(--primary-hover); color: var(--secondary-color);
    transform: translateY(-4px); box-shadow: var(--shadow-sm);
}
.btn-secondary {
    background: linear-gradient(45deg, var(--primary-color), #60a5fa);
    color: var(--text-light); border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-secondary:hover {
    transform: translateY(-4px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-full { width: 100%; }

/*
=============== 
Animations
===============
*/
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-entry-1 { animation: fadeInUp 0.8s 0.2s both; }
.anim-entry-2 { animation: fadeInUp 0.8s 0.4s both; }
.anim-entry-3 { animation: fadeInUp 0.8s 0.6s both; }
.anim-entry-4 { animation: fadeInUp 0.8s 0.8s both; }

.anim-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes mobile-slide-in-left { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mobile-slide-in-right { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mobile-scale-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/*
=============== 
Component Styles
===============
*/
.hero {
    color: var(--text-dark); background: url('https://images.unsplash.com/photo-1606761568499-6e5f89a6a7f4') no-repeat center center/cover;
    position: relative; margin-top: calc(-1 * var(--navbar-height));
}
.hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), var(--bg-light-theme));
    padding: calc(var(--navbar-height) + 4rem) 0 4rem 0;
}
.hero-content { max-width: 800px; text-align: center; }
.hero-title { margin-bottom: 1rem; font-weight: 700; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin-top: 3rem; font-size: 0.9rem; color: #475569; }
.hero-stats .icon { margin-right: 0.5rem; }

.card {
    background-color: var(--secondary-color); padding: 2rem; border-radius: var(--border-radius);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.step-card { padding: 0.5rem; }
.step-number { font-size: 3rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.testimonial { max-width: 700px; position: relative; }
.testimonial blockquote { font-size: 1.25rem; font-style: italic; color: var(--text-muted); border-left: 4px solid var(--primary-color); padding-left: 1.5rem; margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--text-dark); }
.quotes { width: 50px; opacity: 0.08; position: absolute; top: -20px; left: 0; }

.countdown-wrapper { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; }
.countdown {
    display: inline-block; background-color: var(--accent-red); color: var(--text-light);
    padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 1.5rem;
    font-weight: 700; margin-left: 0.5rem; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.form-container { max-width: 600px; }
.form-card { background: var(--secondary-color); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select {
    width: 100%; padding: 1rem; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 1rem; font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-footer { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; margin-bottom: 0; }

/*
=============== 
Footer
===============
*/
.footer { background-color: var(--text-dark); color: #cbd5e1; padding: 3rem 0; }
.footer-container { display: flex; flex-direction: column; gap: 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--secondary-color); font-weight: 500; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; }
.copyright { font-size: 0.9rem; margin-bottom: 1rem; }
.disclaimer { font-size: 0.8rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.5; }

/*
=============== 
Responsive Design
===============
*/
@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .section { padding: 5rem 0; }
    .hero-overlay { padding: calc(var(--navbar-height) + 6rem) 0 6rem 0; }
    .menu-toggle { display: none; }
    .nav-links { display: flex; }
}

@media (max-width: 767px) {
    .navbar-container { flex-wrap: wrap; justify-content: center; }
    .navbar-logo { width: 100%; text-align: center; margin-bottom: 1rem; }
    .menu-toggle { position: absolute; top: 1.3rem; /* Adjusted for larger logo */ right: 1.5rem; }
    .hero-stats { gap: 0.5rem 1rem; flex-direction: column; align-items: center; }
    .form-card { padding: 1.5rem; }
    .footer-top { flex-direction: column; align-items: center; }
    body.nav-active { overflow: hidden; }

    /* --- UNIQUE MOBILE ANIMATIONS --- */
    .anim-entry-1 { animation: mobile-slide-in-left 0.8s 0.2s both ease-out; }
    .anim-entry-2 { animation: mobile-slide-in-right 0.8s 0.4s both ease-out; }
    .anim-entry-3 { animation: mobile-scale-in 0.7s 0.6s both ease-out; }
    .anim-entry-4 { animation: mobile-scale-in 0.7s 0.8s both ease-out; }

    .anim-fade-up.is-visible { animation: mobile-scale-in 0.8s forwards ease-out; }
    .anim-fade-up.is-visible .card, 
    .anim-fade-up.is-visible .step-card {
        opacity: 0;
        animation: fadeInUp 0.7s forwards ease-out;
    }
    .grid-3-col.is-visible .card:nth-of-type(2),
    .grid-3-col.is-visible .step-card:nth-of-type(2) { animation-delay: 0.2s; }
    .grid-3-col.is-visible .card:nth-of-type(3),
    .grid-3-col.is-visible .step-card:nth-of-type(3) { animation-delay: 0.4s; }
}
