/* ========== VARIABLES ========== */
:root {
    --font-primary: 'Be Vietnam Pro', sans-serif;
    --color-text: #242d52;
    --color-text-light: #9095a7;
    --color-primary: #1d54d5;
    --color-bg-light: #fafafa;
    --color-bg-dark: #1d1e25;
    --color-white: #fff;
    --spacing-section: 5rem;
    --spacing-gap: 2rem;
    --radius-card: 5px;
    --transition: 0.3s ease-in-out;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== BASE ========== */
body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--color-text);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER ========== */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* space between nav links and button */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-pic {
    width: 25px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #242d52;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* CTA Button */
.cta-btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
    margin-left: auto;
    /* spacing between links and button */
}

.cta-btn:hover {
    opacity: 0.85;
}

/* ========== HERO ========== */
.hero {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: var(--spacing-section) 0;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 350px;
}

.hero-img {
    flex: 1;
    text-align: center;
}

.hero-img img {
    width: 100%;
    max-width: 500px;
}

/* ========== FEATURES ========== */
.features {
    padding: var(--spacing-section) 0;
    background: var(--color-bg-light);
}

.features-intro {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.features-intro h2 {
    font-size: 2.5rem;
}

.features-intro p {
    color: var(--color-text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-gap);
}

.feature-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    position: relative;
    padding-left: 5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-number {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: var(--spacing-section) 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.testimonial-cards {
    display: flex;
    gap: var(--spacing-gap);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--color-bg-light);
    padding: 2rem;
    position: relative;
    width: 300px;
    border-radius: var(--radius-card);
}

.testimonial-card img {
    width: 70px;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-card h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--color-text-light);
}

/* ========== CTA ========== */
.cta-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-gap);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--color-white);
    font-size: 1.5rem;
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--color-primary);
}

.footer-links h3 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b9b9b9;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    color: #b9b9b9;
}

/* ========== MOBILE NAV ========== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {

    /* Hide normal nav & CTA */
    .nav-links,
    .cta-btn {
        display: none;
    }

    /* Show hamburger icon */
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        position: fixed;
        top: 10;
        right: 10px;
    }

    /* Default hidden menu (off-screen) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem;
        gap: 2rem;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    /* Show menu when active */
    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #242d52;
        text-decoration: none;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    /* Hero section mobile layout */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        max-width: 100%;
    }

    /* Testimonials mobile layout */
    .testimonial-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    /* Container fix */
    .container {
        width: 100%;
        padding: 0 1rem;
        overflow-x: hidden;
    }

    /* Global body fix (to prevent any accidental overflow) */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
}