/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0066CC;
    --deep-ocean: #003D82;
    --aqua-light: #00A8E8;
    --water-gradient: linear-gradient(135deg, #0066CC 0%, #00A8E8 100%);
    --bg-light: #F0F8FF;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--deep-ocean); /* Keeping font color blue */
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--deep-ocean);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--primary-blue);
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Navigation */
header {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--deep-ocean);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: var(--water-gradient);
    color: var(--white);
    padding: 6rem 5%;
    text-align: center;
}

.hero h1, .hero p {
    color: var(--white); /* White for contrast on gradient */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Layouts & Cards */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card h3 {
    color: var(--primary-blue);
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-ocean);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

button[type="submit"] {
    background: var(--water-gradient);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Footer */
footer {
    background: var(--deep-ocean);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
}

footer p, footer h4 {
    color: var(--white);
}

/* --- NEW RESPONSIVE MOBILE MENU --- */

/* Hide the hamburger icon on desktop */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

/* Style the three lines of the hamburger */
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Mobile Screens (Tablets and Phones) */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Appears right below the header */
        left: -100%; /* Hides the menu off-screen to the left */
        width: 100%;
        background-color: var(--white);
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0, 102, 204, 0.1);
        transition: left 0.4s ease; /* Smooth sliding animation */
    }

    /* This class is added by JavaScript when the button is clicked */
    .nav-links.active {
        left: 0; 
    }

    .nav-links li {
        margin: 1.5rem 0; /* Space out the links more on mobile */
    }

    /* Animate the hamburger icon into an "X" when open */
    .hamburger.toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Fix layout for other elements on mobile */
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
