/* Color Palette based on Yes Ocea Logo */
:root {
    --primary-color: #155A96; /* Yes Ocea Blue */
    --primary-light: #1A6CAE;
    --secondary-color: #2C3034; /* Dark Charcoal Text from Logo */
    --text-color: #4A4A4A;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --header-height: 90px;
}

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

body {
    color: var(--text-color);
    background-color: var(--light-bg);
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.logo-container .site-logo {
    height: 55px; /* Adjust based on your logo's proportion */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Content Pages SPA Logic */
.content-wrapper { flex: 1; }
.page-section { display: none; animation: fadeIn 0.4s ease-in; }
.page-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Home Page - Hero */
.hero {
    /* Using a linear gradient based on brand colors for a clean corporate look */
    background: linear-gradient(135deg, rgba(21,90,150,0.9) 0%, rgba(44,48,52,0.9) 100%), url('images/image_4.jpeg') center/cover;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
    padding: 60px 20px;
    margin-top: 40px;
    border-radius: 8px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
}

.testimonial-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--secondary-color);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text p {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Products Page */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-img-container {
    width: 100%;
    height: 220px;
    background-color: #fff; /* In case of transparent PNGs */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 25px 20px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
    line-height: 2.5;
    font-size: 1.1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Fixed Footer */
.fixed-footer {
    background-color: var(--secondary-color);
    color: #e0e0e0;
    padding: 60px 5% 20px;
    margin-top: auto;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1); /* Makes the logo white for dark bg if transparent */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

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

.footer-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #aaa;
}

/* =========================================
   Product Modal (Popup)
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-img-wrapper {
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid #eee;
}

.modal-img-wrapper img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.modal-details {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.modal-details .modal-desc {
    line-height: 1.7;
    margin-bottom: 35px;
    color: #555;
    font-size: 1.05rem;
}

/* =========================================
   Mobile Responsiveness & Hamburger Menu
   ========================================= */

/* Hide hamburger and overlay on desktop by default */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Must be higher than the sidebar */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.4s ease;
    border-radius: 3px;
}

/* Bring back the Dark Overlay with a classy blur */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); /* Gently blurs the website behind the menu */
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Mobile Layout Overrides --- */
@media screen and (max-width: 768px) {
    .fixed-header {
        padding: 0 20px;
    }

    /* Force the hamburger menu to show */
    .menu-toggle {
        display: flex !important;
    }

    /* The Classy Sidebar Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        left: auto;
        width: 75%;
        max-width: 320px; /* Restricts the width so it's a true sidebar */
        height: 100vh;
        /* Elegant Brand Gradient with transparency */
        background: linear-gradient(135deg, rgba(21,90,150,0.98) 0%, rgba(44,48,52,0.98) 100%); 
        backdrop-filter: blur(15px); /* Classy frosted glass effect */
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Aligns items to the top instead of center */
        padding-top: 120px; /* Pushes the links down so they aren't hidden behind the X */
        z-index: 1000;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        margin: 0;
        gap: 35px; /* Space between links */
        box-shadow: -10px 0 30px rgba(0,0,0,0.2); /* Soft shadow on the left edge */
    }

    /* Active class slides the menu in */
    .nav-links.nav-active {
        right: 0;
    }

    /* Set up the links for a staggered slide-in effect */
    .nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease forwards;
        width: 100%; /* Makes the list item full width for better clicking */
        text-align: center;
    }

    /* Staggered slide-in animations */
    .nav-links.nav-active li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
    .nav-links.nav-active li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
    .nav-links.nav-active li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
    .nav-links.nav-active li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }

    .nav-links a {
        font-family: 'Playfair Display', serif; /* Elegant font for the menu */
        font-size: 1.8rem; /* Slightly smaller to fit the sidebar */
        color: var(--white);
        text-transform: capitalize;
        letter-spacing: 1.5px;
        display: block;
        padding: 10px 0;
    }

    /* Hamburger to X Animation - turns white so it pops on the dark sidebar */
    .toggle-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--white); 
    }
    .toggle-active .bar:nth-child(2) {
        opacity: 0;
    }
    .toggle-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--white); 
    }

    /* Fix Layouts for Small Screens */
    .hero-content h1 { font-size: 2.2rem; }
    .about-content, .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .contact-info h2 { text-align: center !important; }
    .section-title { font-size: 2rem; }

    /* Modal Layout Adjustments for Mobile */
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-img-wrapper {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .modal-img-wrapper img {
        height: 200px;
    }
    .modal-details {
        padding: 30px 20px;
    }
    .modal-details h3 {
        font-size: 1.6rem;
    }
    .close-modal {
        color: var(--primary-color);
        background: var(--white);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
}