/* --- Variables & Configuration --- */
:root {
    /* Colors */
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --bg-main: #f7f9fc;
    --bg-alt: #dfedf8;
    --white: #ffffff;

    /* Text Colors */
    --text-darkest: #111111;
    --text-dark: #222222;
    --text-base: #333333;
    --text-light: #444444;
    --text-muted: #666666;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 12px rgba(33, 150, 243, 0.3);
    --shadow-primary-hover: 0 6px 16px rgba(33, 150, 243, 0.4);

    /* Transitions & Radii */
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
}

/* --- Scrollbar --- */
/* 1. Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-main);
}

/* 2. Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-base);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Shared Components --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: center;
    display: inline-block;
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    box-shadow: var(--shadow-md);
    background-color: #f8fbff;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-primary-hover);
}

/* --- Navbar Section --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
    z-index: 1000;
    background-color: transparent;
    padding: 25px 40px;
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    width: 246px;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-darkest);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-base);
    font-size: 15px;
    transition: color var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.auth-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.transparent-btn {
    text-decoration: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.transparent-btn:hover {
    color: var(--primary-dark);
}

.login-btn {
    text-decoration: none;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #aee2ff 0%, #e8f4f8 50%, #f4f7f9 100%);
    padding: 160px 40px 100px 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 46px;
    color: var(--text-darkest);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-base);
    line-height: 1.5;
    margin-bottom: 60px;
    max-width: 320px;
}

.hero-text {
    font-size: 16px;
    color: var(--text-base);
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 100px;
    bottom: 0;
    width: 60%;
    display: flex;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* --- Features Section --- */
.features-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-left: 10px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.header-title {
    font-size: 26px;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center;
    gap: 40px;
}

.card {
    min-width: 240px;
    max-width: 240px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card .image {
    height: 120px;
    background-color: #d8dbe2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content {
    font-size: 16px;
    padding: 12px 8px;
    flex-grow: 1;
}

.card .button-container {
    width: fit-content;
    margin: auto auto 12px auto;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-main);
    padding: 80px 20px;
    width: 100%;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.stats-column {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.stats-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

.stat-blue {
    background-color: #e3f2fd;
    color: var(--primary);
}

.stat-green {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stat-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.carousel-arrow {
    font-size: 24px;
    color: var(--text-base);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 10px;
}

.carousel-arrow:hover {
    color: var(--primary);
}

.carousel-cards {
    display: flex;
    gap: 20px;
    overflow: hidden;
    flex: 1;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 0;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: var(--primary);
    font-size: 18px;
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.user-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

/* --- Packages Section --- */
.packages-section {
    background-color: var(--bg-alt);
    margin: 60px auto;
    padding: 40px 20px;
    width: 100%;
}

.packages-section .btn-primary {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    text-align: center;
}

.packages-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 40px;
    justify-content: center;
    padding-top: 20px;
}

.card-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.packages-container .card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: none;
}

.packages-container .card .card-header {
    margin: 12px 8px;
}

.packages-container .card-content {
    margin: 8px 8px 0 6px;
    flex-grow: 1;
}

.popular {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.3);
    z-index: 10;
    white-space: nowrap;
}

.popular .text {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.content-row .checkmark {
    color: #00a650;
    font-weight: bold;
    font-size: 16px;
}

/* --- Services Section --- */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center;
    gap: 40px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 60px 20px;
    background-color: var(--bg-main);
}

.contact-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.contact-header .header-icon i {
    color: var(--primary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.message-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 16px;
}

/* --- Call to Action (CTA) Section --- */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-main);
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Footer Section --- */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 40px 40px 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-brand h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 60px;
}

.footer-brand .copyright {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-col ul a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* =========================================================================
   MEDIA QUERIES - THE RESPONSIVE FIXES
   ========================================================================= */

@media (max-width: 1024px) {
    .hero-section {
        padding: 0;
        padding-top: 120px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        margin-top: 40px;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        flex-wrap: wrap;
    }
    .nav-links, .auth-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
        padding-top: 15px;
    }
    .nav-links {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    .nav-links.active, .auth-actions.active {
        display: flex;
    }
    .testimonials-container {
        flex-direction: column;
        gap: 40px;
    }
    .stats-column {
        flex: none;
        width: 100%;
        align-items: center;
    }
    .stats-header h2 {
        justify-content: center;
    }
    .stats-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-brand p {
        margin-bottom: 30px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .carousel-cards {
        flex-direction: column;
    }
    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    nav {
        padding-top: 16px;
    }

    .logo {
        text-align: left;
        width: 120px;
    }

    .features-section, .packages-section, .services-section {
        padding-left: 0px;
        padding-right: 0px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-grid,
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card {
        max-width: 100%;
    }

    .stats-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .feature-grid, .service-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }

    .carousel-container .carousel-arrow {
        display: none !important;
    }
}