*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-blue: #132f5a;
    --cyan-secondary: #3388d2;
    --accent-green: #fe901d;
    --bg-white: #ffffff;
    --text-dark: #333333;
}

body {
    /* Apply Lato to everything */
    font-family: 'Lato', sans-serif;
    margin: 0;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    /* Uses the 'Black' weight of Lato */
    letter-spacing: -0.5px;
    /* Tighten slightly for a modern feel */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Navbar */
.navbar {
    background-color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */

/*.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--bg-white);
}*/
/********* *********/
.hero {
    position: relative;
    /* Essential for positioning the wave */
    height: 70vh;
    background: linear-gradient(rgba(37, 69, 109, 0.7), rgba(37, 69, 109, 0.5)), url('img/bg2.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    padding-left: 15%;
    padding-right: 15%;
    /* Keeps the SVG from breaking layout */
}

/* Wrapper for the SVG */
.custom-shape-divider-bottom-1708453200 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    /* Flips it to sit at bottom */
}

.custom-shape-divider-bottom-1708453200 svg {
    position: relative;
    display: block;
    width: calc(137% + 1.3px);
    /* Ensures full width + overlap */
    height: 126px;
    /* Adjust height of the wave here */
}

.custom-shape-divider-bottom-1708453200 .shape-fill {
    fill: #FFFFFF;
    /* MUST match the background color of the next section */
}





/******** *******/

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-green);
}

.cta-buttons a {
    text-decoration: none;
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin: 0 0.5rem;
}

/*
.cta-primary {
    background-color: var(--primary-blue);
    border-radius: 50px;
}

.cta-secondary {
    border: 2px solid var(--cyan-secondary);
    border-radius: 50px;
}*/

/******Start Button Styles*******/
/* --- Shared Animation Base --- */
.cta-primary,
.cta-secondary {
    /* Critical for smooth animation */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: inline-block;
    /* Ensures transform works */
    text-decoration: none;
    /* Removes underline if using <a> tags */
    font-weight: 700;
}

/* --- Primary Button (Solid) --- */
.cta-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: 2px solid transparent;
    /* Keeps sizing consistent with secondary */
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(37, 69, 109, 0.2);
    /* Subtle initial shadow */
}

.cta-primary:hover {
    transform: translateY(-3px);
    /* Lifts button up */
    background-color: var(--cyan-secondary);
    /* Shifts to Ocean Cyan */
    box-shadow: 0 10px 20px rgba(55, 167, 185, 0.4);
    /* Glowy Cyan Shadow */
}

/* --- Secondary Button (Outline) --- */
.cta-secondary {
    background-color: transparent;
    color: var(--cyan-secondary);
    /* Text matches border */
    border: 2px solid var(--cyan-secondary);
    border-radius: 50px;
}

.cta-secondary:hover {
    background-color: var(--cyan-secondary);
    /* Fills with water color */
    color: #ffffff;
    /* Text turns white */
    transform: translateY(-3px);
    /* Lifts button up */
    box-shadow: 0 10px 20px rgba(55, 167, 185, 0.3);
    /* Soft Cyan Shadow */
}

/* --- Optional: Add a 'Click' effect for realism --- */
.cta-primary:active,
.cta-secondary:active {
    transform: translateY(-1px);
    /* Pushes down slightly */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /* Shadow shrinks */
}

/*******End Button Styles*******/


/* Our Company */
.company {
    padding: 4rem 0;
    align-items: center;
    background-color: #e7e7e7;
}

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

.company .container2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.company-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wrap-company-text {
    max-width: 1200px;
}

/* Products */
.products {
    padding: 4rem 0;
    background-color: #ffffff;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-blue);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card-content {
    padding: 1.5rem;
}

/* Contact Form */
.contact {
    background-color: #ffffff;
    color: var(--primary-blue);
    padding: 4rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-blue);
    border-radius: 5px;
}

/******** ********/
/* --- Wrapper to hold input + icon --- */
.input-group {
    position: relative;
    /* Establishes the coordinate system for the icon */
    margin-bottom: 16px;
    /* Space between fields */
    width: 100%;
}

/* --- The Icon Styling --- */
.input-group .icon {
    position: absolute;
    left: 15px;
    /* Distance from left edge */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Perfect vertical centering */
    color: var(--primary-blue);
    /* Brand color */
    font-size: 1.1rem;
    pointer-events: none;
    /* User clicks 'through' the icon to the input */
    transition: color 0.3s ease;
}

/* --- Special handling for Textarea Icon --- */
.input-group .textarea-icon {
    top: 20px;
    /* Stick to top instead of center */
    transform: none;
}

/* --- The Input Fields --- */
.input-group input,
.input-group textarea {
    width: 100%;
    /* BIG PADDING LEFT: Makes room for the icon so text doesn't overlap */
    padding: 12px 16px 12px 45px;

    border: 1px solid #ccc;
    /* Subtle default border */
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* --- Focus Effects --- */
/* When input is focused, change border AND icon color */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--cyan-secondary);
    box-shadow: 0 0 0 4px rgba(55, 167, 185, 0.1);
    /* Soft glow */
}

/* This is the pro move: Change icon color when input is active */
.input-group input:focus+.icon,
/* Note: this selector requires icon to be AFTER input in HTML, or use focus-within on parent */
.input-group:focus-within .icon {
    color: var(--cyan-secondary);
    /* Icon turns Cyan/Teal */
}





/********* **********/
/* --- Focus State (UX Best Practice) --- */
/* When the user clicks inside, we glow with the cyan accent */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cyan-secondary);
    box-shadow: 0 0 0 3px rgba(55, 167, 185, 0.2);
    /* Soft cyan glow */
}

/* --- Placeholder Text Styling --- */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    /* Lighter grey for placeholders */
    opacity: 1;
}



/********* **********/


.contact-form button {
    background-color: var(--accent-green);
    color: var(--bg-white);
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer Structure --- */
.site-footer {
    background-color: #25456d;
    /* Your Primary Deep Blue */
    color: #ffffff;
    padding: 80px 0 0 0;
    font-family: 'Lato', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Brand gets more space */
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

/* --- Typography & Branding --- */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    /* Black weight for impact */
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    /* Slightly dimmed for hierarchy */
    margin-bottom: 24px;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #37a7b9;
    /* Your Cyan/Teal accent for headers */
}

/* --- Links Styling --- */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: inline-block;
}

.footer-col a:hover {
    color: #6ebc7d;
    /* Your Eco Green on hover */
    opacity: 1;
    transform: translateX(5px);
    /* Nice little slide effect */
}

/* --- Contact Specifics --- */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-list .icon {
    font-size: 1.2rem;
}

/* --- Copyright Bar --- */
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .company .container {
        grid-template-columns: 1fr;
    }

    .company .container2 {
        display: flex;
        flex-direction: column-reverse;
        padding-left: 2%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack everything */
        gap: 40px;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
        /* Center align contact info on mobile */
    }

    .footer-col a:hover {
        transform: none;
        /* Disable slide on touch devices */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
}
