/* --- CSS VARIABLES --- */
:root {
    --primary-blue: #00aced;
    --primary-red: #d31616;
    --accent-yellow: #ffcc00;
    --dark-blue: #093c5e;
    --white: #ffffff;
    --light-gray: #f4f8fb;
    --text-color: #333;
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.top-contact {
    display: flex;
    gap: 20px;
}

.contact-item i { margin-right: 5px; color: var(--accent-yellow); }
.top-email i { margin-right: 5px; color: var(--accent-yellow); }

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-blue);
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-blue);
}

/* --- HERO SLIDER (ACTIVE) --- */
.hero-container {
    position: relative;
    height: 500px; /* Slider height */
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    animation: slideUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--accent-yellow);
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    animation: slideUp 1s ease-out;
}

/* Slide Text Animation */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.btn {
    padding: 12px 30px;
    background: var(--primary-red);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover { background: #b00e0e; }

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover { background: var(--primary-red); }
.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

/* --- SECTIONS GENERAL --- */
section { padding: 60px 5%; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-blue);
    margin: 10px auto;
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    background: var(--white);
}

.about-text { flex: 1; min-width: 300px; }
.about-image { flex: 1; min-width: 300px; }

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 10px 10px 0px var(--primary-blue);
}

/* --- PRODUCTS SECTION --- */
.products-section { background: var(--light-gray); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.product-card:hover { transform: translateY(-10px); }

.product-img-box {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-box img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { color: var(--dark-blue); margin-bottom: 10px; font-size: 1.1rem; }

/* --- SERVICES SECTION --- */
.services-section { background: var(--white); }

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-box {
    flex-basis: 30%;
    text-align: center;
    padding: 30px;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    min-width: 250px;
    transition: 0.3s;
}

.service-box:hover { background: var(--light-gray); }

.service-box i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* --- TESTIMONIALS --- */
.testimonials-section { background: var(--dark-blue); color: white; }
.testimonials-section .section-title { color: white; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    font-style: italic;
}

.client-name {
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-yellow);
    font-style: normal;
}

/* --- PARTNERS --- */
.partners-section { background: var(--white); text-align: center; }
.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0.7;
}
.partner-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #ccc;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 5% 40px 5%;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary-blue); }

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-item i { color: var(--primary-red); margin-top: 5px; }

.copyright {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 10px; text-align: center; }
    .top-contact { flex-direction: column; gap: 5px; }
    
    .hamburger { display: block; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .nav-menu.active { display: block; }
    
    .nav-menu ul { flex-direction: column; padding: 20px 0; gap: 15px; }
    
    .hero-content h1 { font-size: 2rem; }
    .about-section { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
}

/* =========================================
   ABOUT PAGE STYLES (Add to bottom of style.css)
   ========================================= */

/* Active Link Styling */
.nav-menu a.active-link {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

/* Page Header Banner */
.page-header {
    background: linear-gradient(rgba(9, 60, 94, 0.8), rgba(9, 60, 94, 0.8)), url('products/roplant.jpg');
    background-size: cover;
    background-position: center;
    /* --- ADDED FOR FIXED/PARALLAX EFFECT --- */
    background-attachment: fixed; 
    /* ------------------------------------- */
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

/* About Grid Layout */
.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content { flex: 1; min-width: 300px; }
.about-img-wrapper { flex: 1; min-width: 300px; }

.about-img-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: -15px -15px 0px var(--light-gray), -15px -15px 0px 2px var(--primary-blue);
}

/* Mission Section */
.mission-section {
    background-color: var(--light-gray);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 4px solid var(--primary-blue);
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mission-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-red);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    background: #ffebeb;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.mission-card h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

/* Owner Section */
.owner-section {
    background: var(--white);
}

.owner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: #fff;
    flex-wrap: wrap-reverse; /* Text on left, Photo on right normally, but stack correctly on mobile */
}

.owner-text { flex: 1; }
.owner-photo { flex: 1; text-align: center; }

.owner-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid var(--light-gray);
    margin: 0 auto;
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px 0 25px 0;
}

.owner-text h2 { color: var(--dark-blue); }
.owner-text h3 { color: var(--primary-blue); font-size: 1.5rem; }

/* Responsive Adjustments for About Page */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; }
    .about-grid, .owner-container { flex-direction: column; }
    .about-img-wrapper { order: -1; } /* Puts image above text on mobile */
    .owner-photo { margin-bottom: 30px; }
}

/* =========================================
   PRODUCTS PAGE STYLES (Add to bottom of style.css)
   ========================================= */

/* General Category Section Styling */
.category-section {
    padding-bottom: 30px; /* Reduce padding slightly */
}

.category-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

.section-separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 173, 237, 0.7), rgba(0, 0, 0, 0));
    margin: 40px 5%;
}

/* Ensure product grid style is correctly applied to these new sections */
.category-section .products-grid {
    /* Reusing the grid structure from index.html */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* =========================================
   SERVICES PAGE STYLES (Add to bottom of style.css)
   ========================================= */

/* Detailed Service Grid */
.service-detail-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px 0;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.service-text {
    flex: 2;
    min-width: 300px;
}

.service-icon-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 40px 20px;
    border: 3px solid var(--primary-blue);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-icon-box i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.service-icon-box p {
    font-weight: bold;
    color: var(--dark-blue);
    margin-top: 10px;
}

.service-text h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-text ul {
    margin-top: 15px;
}

.service-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.service-text ul li i {
    color: var(--primary-red);
    margin-right: 10px;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-detail-grid {
        flex-direction: column;
    }
    .service-icon-box {
        order: -1; /* Puts the icon box above the text on mobile for better flow */
        margin-bottom: 30px;
    }
}

/* =========================================
   CONTACT PAGE STYLES (Add to bottom of style.css)
   ========================================= */

.contact-details-section {
    padding: 60px 5%;
    background: var(--light-gray);
}

.contact-grid {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-form-wrapper {
    flex: 2;
    min-width: 350px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info-wrapper {
    flex: 1;
    min-width: 280px;
}

.contact-form-wrapper h2, .contact-info-wrapper h2 {
    color: var(--primary-red);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 173, 237, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* Info Items */
.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 15px;
    background: #fcfcfc;
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-top: 5px;
}

.info-item h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
    }
    .contact-info-wrapper {
        margin-top: 30px;
    }
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 10px; text-align: center; }
    .top-contact { flex-direction: column; gap: 5px; }
    
    .hamburger { 
        display: block; 
        z-index: 1001; /* Keeps the 'X' icon above the menu */
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1000; /* Ensures menu is on top of hero images */
    }
    
    /* This is the critical fix: Added !important */
    .nav-menu.active { 
        display: block !important; 
    }
    
    .nav-menu ul { flex-direction: column; padding: 20px 0; gap: 15px; }
    
    .hero-content h1 { font-size: 2rem; }
    .about-section { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
    .logo img {
        height: 35px; /* Slightly smaller for mobile headers */
    }
}

/* --- LOGO STYLES (Updated for Image) --- */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%; /* Increased slightly from 40px for better desktop visibility */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05); /* Subtle zoom effect when hovering */
}