/* CSS Reset and Global Styles */
:root {
    --primary-blue: #4A89F2;
    --dark-blue: #3E74D4;
    --light-blue-bg: #F7FAFF;
    --text-dark: #2D3748;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
    --star-color: #FFC107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    /* Fluid Typography: scales from 32px to 48px */
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
}
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--dark-blue);
}
.btn-outline {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--border-color);
}
.btn-outline:hover {
    background-color: var(--light-blue-bg);
    border-color: var(--primary-blue);
}
.hero-image {
    flex: 1;
    text-align: center;
}

/* Common Section Styles */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.section-alt-bg {
    background-color: var(--light-blue-bg);
}
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.25rem); /* Fluid font size */
    font-weight: 700;
    margin-bottom: 48px;
}

/* Offer Section */
.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.offer-card {
    background-color: var(--light-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}
.offer-card .icon {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 16px;
    background-color: #e3effd;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    display: inline-block;
}
.offer-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.offer-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}
.offer-card .btn {
    width: 100%;
}

/* Preview Section */
.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.preview-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.preview-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f9f9f9;
}
.preview-card p {
    padding: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Why Choose Us Section */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.why-us-title {
    text-align: left;
}
.features-list {
    list-style: none;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
}
.features-list .icon {
    color: var(--primary-blue);
    font-size: 24px;
    flex-shrink: 0;
}
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.testimonial-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}
.testimonial-text .stars {
    color: var(--star-color);
    margin-bottom: 8px;
}
.testimonial-text p {
    color: var(--text-light);
}

/* Footer */
.footer {
    padding: 32px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.social-icons a {
    font-size: 20px;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--primary-blue);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-content img {
    max-width: 100%;
    max-height: calc(90vh - 80px); /* Adjust for padding and close button */
    display: block;
    margin: auto;
}
.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.modal-close:hover {
    transform: rotate(90deg);
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Media Queries for Full Responsiveness */
/* For Tablets and below */
@media (max-width: 992px) {
    .why-us-content {
        grid-template-columns: 1fr;
    }
    .why-us-title {
        text-align: center;
    }
}
/* For larger mobile devices and tablets in portrait */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        gap: 20px; /* Reduce gap on smaller screens */
    }
}
/* For small mobile devices */
@media (max-width: 576px) {
    .header {
        flex-direction: column;
        gap: 16px;
    }
    .footer-content {
        flex-direction: column;
    }
    .hero-text p {
        font-size: 16px;
    }
    .features-list {
        font-size: 15px;
    }
}