/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --text-gray: #4b5563;
    --success: #10b981;
    --error: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
h1, h2, h3 { font-weight: 700; margin-bottom: 20px; }
p { margin-bottom: 15px; color: var(--text-gray); }

/* --- NAVIGATION --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo { font-size: 24px; font-weight: 700; color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--dark); }
.nav-links a:hover { color: var(--primary); }

/* Login Link Specific Style */
.login-link {
    color: var(--primary) !important;
    font-weight: 600;
}
.login-link:hover { color: var(--secondary) !important; }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.btn-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}
.btn-cta:hover { background-color: var(--secondary); color: var(--white); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { color: #e5e7eb; font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

/* --- SERVICES --- */
.services-bg { background-color: var(--light); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); }
.section-title span { color: var(--primary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; }

/* --- PRICING --- */
/* Toggle Switch Container */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: 0.3s;
}

.toggle-label.active { color: var(--primary); }

/* The Switch Box */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }

/* The Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px; width: 26px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    position: relative;
    background: #fff;
    transition: 0.3s;
}
.pricing-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price { font-size: 3rem; font-weight: 700; color: var(--dark); margin: 20px 0; }
.price span { font-size: 1rem; color: var(--text-gray); font-weight: 400; }
.features-list { margin: 30px 0; text-align: left; }
.features-list li { margin-bottom: 10px; color: var(--text-gray); }
.features-list li i { color: var(--primary); margin-right: 10px; }

/* --- REVIEWS SECTION --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.client-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* --- ABOUT & CONTACT --- */
.about-content { text-align: center; max-width: 800px; margin: 0 auto; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}
.submit-btn:hover { background: var(--secondary); }

/* Feedback Messages */
.message-success { background: #d1fae5; color: #065f46; padding: 10px; border-radius: 5px; margin-bottom: 20px; text-align: center;}
.message-error { background: #fee2e2; color: #991b1b; padding: 10px; border-radius: 5px; margin-bottom: 20px; text-align: center;}

/* --- FOOTER & LEGAL --- */
footer { background: var(--dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; }
.footer-col ul li a:hover { color: var(--white); }

.legal-text { 
    background: #f9fafb; 
    padding: 60px 0; 
    border-top: 1px solid #e5e7eb;
}
.legal-text h3 { margin-top: 30px; color: var(--dark); }

.copyright {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 20px;
    color: #9ca3af;
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    /* Nav Links Slide Down */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li { margin: 15px 0; }
    
    .nav-actions .btn-cta { display: none; } /* Hide Get Started button on mobile nav if tight */

    .hero-content h1 { font-size: 2.5rem; }
    .pricing-card.popular { transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}