* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5e20;      /* Darker, more professional Green */
    --primary-color-light: #4c8c4a;
    --secondary-color: #FFC107;   /* Vibrant Gold/Amber Accent */
    --text-dark: #1c1c1c;         
    --text-light: #f8f9fa;
    --text-muted: #6c757d;        
    --bg-light: #fdfdfd;          
    --bg-white: #ffffff;          
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0; /* Initially hidden for loading transition */
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1rem 0;
    background-color: transparent;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--bg-white);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    transition: color 0.3s ease;
    line-height: 1.2;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

#header.scrolled .logo-text h1 { 
    color: var(--primary-color); 
}

#header.scrolled .logo-text p { 
    color: var(--text-muted); 
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

nav .nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

nav .nav-link:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.15);
}

nav .nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

#header.scrolled nav .nav-link { 
    color: var(--text-dark); 
}

#header.scrolled nav .nav-link:hover { 
    color: var(--primary-color); 
    background-color: rgba(26, 94, 32, 0.1); 
}

#header.scrolled nav .nav-link.active { 
    color: var(--primary-color); 
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

#header.scrolled .mobile-menu-btn { 
    color: var(--primary-color); 
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    background-color: #2c3e50;
}

.hero-bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 94, 32, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- General Section & Button Styling --- */
main section { 
    padding: 6rem 0; 
    position: relative;
}

main section:nth-of-type(odd) { 
    background-color: var(--bg-white); 
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(26, 94, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 94, 32, 0.4);
    background-color: var(--primary-color-light);
}

/* --- About Section --- */
.about-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.about-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--card-shadow-hover); 
}

.about-card .icon { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
}

.about-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-weight: 600; 
}

.about-card ul { 
    list-style: none; 
    padding: 0; 
    text-align: left; 
}

.about-card p, .about-card li { 
    color: var(--text-muted); 
}

.about-card li { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    margin-bottom: 0.5rem; 
}

.about-card li i { 
    color: var(--primary-color); 
    margin-top: 5px; 
}

/* --- Products Section --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.product-card .icon { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    min-height: 50px;
    font-weight: 500;
}

/* --- Factory Section --- */
.factory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.factory-image-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}

.factory-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.factory-image-container img:hover { 
    transform: scale(1.05); 
}

.factory-description h3 { 
    font-size: 1.8rem; 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
}

.factory-description p { 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
}

/* --- Certification Section --- */
.certification .section-header h2::after {
    background: var(--secondary-color);
}

.certification-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.cert-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.cert-image-wrapper {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image-wrapper img {
    transform: scale(1.1);
}

.cert-image-wrapper .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(26, 94, 32, 0.8);
    color: var(--bg-white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.cert-card:hover .cert-image-wrapper .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cert-details {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-details .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-details h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.cert-details p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.cert-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Project Reference Section (NEW STYLES) --- */
.project-cta-card {
    background: var(--bg-white);
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.project-cta-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.project-cta-card .cta-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-cta-card h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-cta-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Partners Section --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* --- Contact Section --- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info .contact-item { 
    display: flex; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
    align-items: flex-start; 
}

.contact-icon { 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    width: 40px; 
    text-align: center; 
    margin-top: 5px; 
}

.contact-info a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.contact-info a:hover { 
    text-decoration: underline; 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 94, 32, 0.1);
}

/* --- Footer --- */
footer { 
    background: var(--text-dark); 
    color: var(--bg-light); 
    padding: 5rem 0 2rem; 
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 3rem; 
    margin-bottom: 3rem; 
}

footer h3 { 
    font-size: 1.2rem; 
    color: var(--bg-white); 
    margin-bottom: 1rem; 
    position: relative; 
    padding-bottom: 0.5rem; 
}

footer h3::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 30px; 
    height: 2px; 
    background: var(--secondary-color); 
}

footer p { 
    color: var(--text-muted); 
}

footer ul { 
    list-style: none;
    padding: 0;
}

footer ul li { 
    margin-bottom: 0.5rem; 
}

footer a { 
    color: var(--text-muted); 
    text-decoration: none; 
    transition: color 0.3s ease, padding-left 0.3s ease; 
}

footer a:hover { 
    color: var(--secondary-color); 
    padding-left: 5px; 
}

.footer-contact ul li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.footer-bottom { 
    border-top: 1px solid #495057; 
    padding-top: 2rem; 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

/* --- Utility & Animation Classes --- */
.fade-in { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
    transition-delay: var(--delay, 0s); 
}

.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-content, .factory-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-content { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .footer-about { 
        grid-column: 1 / -1; 
    }
}

@media (max-width: 768px) {
    main section { 
        padding: 4rem 0; 
    }
    
    .mobile-menu-btn { 
        display: block; 
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 300px);
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        gap: 1.5rem;
        z-index: 1000;
    }
    
    nav ul.active { 
        display: flex; 
        right: 0; 
    }
    
    nav .nav-link { 
        color: var(--text-dark); 
        width: 100%;
        text-align: left;
    }
    
    nav .nav-link:hover, nav .nav-link.active { 
        color: var(--primary-color); 
        background: rgba(26, 94, 32, 0.1); 
    }

    .cert-card, .cert-card:nth-child(even) {
        flex-direction: column;
    }

    .cert-image-wrapper {
        flex-basis: 250px;
    }

    .cert-details {
        padding: 2rem;
    }

    .cert-details h3 {
        font-size: 1.4rem;
    }
    
    .project-cta-card {
        padding: 2rem;
    }
    
    .project-cta-card h3 {
        font-size: 1.6rem;
    }
    
    .footer-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    footer h3::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}