/* --- Global Variables & Reset --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Keeps footer at the bottom */
}

/* --- Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-green);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(46, 204, 113, 0.9)), 
                url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 5%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-green);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Services Section --- */
.services {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    /* This automatically creates a responsive grid that wraps on small screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto; /* Pushes footer to bottom if page content is short */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
* --- Global Variables & Reset --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Keeps footer at the bottom */
}

/* --- Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-green);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(46, 204, 113, 0.9)), 
                url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 5%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-green);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Services Section --- */
.services {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    /* This automatically creates a responsive grid that wraps on small screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto; /* Pushes footer to bottom if page content is short */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Video Hero Section --- */
.video-hero {
    position: relative;
    width: 100%;
    height: 80vh; /* Adjust this to make the banner taller or shorter */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Forces the video to act as a background cover */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
    object-fit: cover;
}

/* Adds a dark tint over the video so white text is readable */
.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.5); /* 50% opacity black tint */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* =========================================
   About Us Page Styles
   ========================================= */

/* Hero Section for Inner Pages */
.about-hero {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95), rgba(46, 204, 113, 0.85)), url('../images/about-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 6rem 5%;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* General Content Sections */
.content-section {
    padding: 5rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Story Grid (Text + Image Side-by-Side) */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mission & Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.mv-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-green);
    text-align: center;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: #f9fbfb;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Responsive Adjustments for About Page */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-hero {
        padding: 4rem 5%;
    }
    
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   Contact Us Page Styles
   ========================================= */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95), rgba(46, 204, 113, 0.85)), url('../images/contact-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 6rem 5%;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Two-Column Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Contact Info Cards */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

.info-icon {
    font-size: 2rem;
    line-height: 1;
}

/* Form Styling */
.form-box {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-green);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.half-width {
    flex: 1;
}

.custom-form label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.custom-form input,
.custom-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem;
}

.submit-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* Alert Messages (Success/Error) */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-box {
        padding: 2rem;
    }
}

/* =========================================
   Biodiesel Page Styles
   ========================================= */

/* Biodiesel Hero */
.biodiesel-hero {
    /* Uses a placeholder background - you can replace 'biodiesel-bg.jpg' with your own image later */
    background: url('https://placehold.co/1920x600/2c3e50/27ae60?text=Biodiesel+Production') center/cover no-repeat;
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay-dark {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.biodiesel-hero .hero-content {
    color: var(--white);
    max-width: 800px;
    z-index: 2;
}

.biodiesel-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.biodiesel-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Split Layout (Text + Image) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.timeline-step {
    text-align: center;
    padding: 2rem;
    background: #f9fbfb;
    border-radius: 8px;
    position: relative;
    border-top: 4px solid var(--primary-green);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.timeline-step h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.timeline-step p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .biodiesel-hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   Expanded Biodiesel Page Styles
   ========================================= */

/* Applications Grid (Images on Top) */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.app-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.app-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--primary-green);
}

.app-info {
    padding: 1.5rem;
}

.app-info h3 {
    color: var(--dark-green);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.app-info p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Technical Specifications Table */
.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't squish too much on mobile */
}

.tech-table th,
.tech-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.tech-table th {
    background-color: var(--dark-green);
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.tech-table tbody tr:hover {
    background-color: #f9fbfb;
}

.tech-table td {
    color: #444;
    font-size: 1rem;
}

.tech-table td strong {
    color: var(--dark-green);
}

/* Responsive fixes for the table */
@media (max-width: 768px) {
    .tech-table th, 
    .tech-table td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* =========================================
   Used Cooking Oil (UCO) Page Styles
   ========================================= */

/* UCO Hero Section */
.uco-hero {
    /* Uses a placeholder background - replace with your own image later */
    background: url('https://placehold.co/1920x600/e67e22/ffffff?text=UCO+Collection') center/cover no-repeat;
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uco-hero .hero-content {
    color: var(--white);
    max-width: 800px;
    z-index: 2;
}

.uco-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.uco-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* UCO Process Steps Grid */
.uco-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.uco-step-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    border: 1px solid #eaeaea;
}

.uco-step-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.step-info {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.step-info h3 {
    color: var(--dark-green);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.step-info p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uco-hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   The Challenge Before Us Section
   ========================================= */

.challenge-section {
    padding: 5rem 5%;
    background-color: #f9fbfb;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.challenge-header {
    text-align: center;
    margin-bottom: 3rem;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.challenge-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.challenge-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.challenge-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.challenge-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the 'Read More' link to the bottom evenly */
}

.challenge-card .read-more {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.challenge-card .read-more:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .challenge-section {
        padding: 4rem 5%;
    }
    .challenge-header h2 {
        font-size: 2rem;
    }
}