﻿/* ==========================================
   Perfect Biogas - Modern Website Stylesheet
   ========================================== */

/* Variables */
:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #d6ad2d;
    --accent-dark: #b98e13;
    --dark: #13261b;
    --dark-light: #1d3528;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --off-white: #f8fbf7;
    --light-bg: #edf4ee;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: flex-end;
    gap: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-right: -8px;
    margin-bottom: 0px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.6));
}

.navbar.scrolled .logo-img {
    filter: none;
}

.footer-logo {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-right: -25px;
    margin-bottom: 0px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.7)) drop-shadow(0 0 20px rgba(255,255,255,.35));
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding-bottom: 0;
    align-self: flex-end;
    margin-bottom: -8px;
}

.logo-main {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    letter-spacing: 1.5px;
    font-variant: small-caps;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.navbar.scrolled .logo-main { color: var(--dark); }
.navbar.scrolled .logo-sub { color: rgba(0,0,0,0.55); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
}

.btn-nav:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    display: flex;
    align-items: center;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    padding: 0;
}
.dropdown-menu a {
    display: block;
    padding: 9px 20px !important;
    color: var(--text) !important;
    font-size: 0.82rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: #f0f7f0;
    color: var(--primary) !important;
}
.dropdown-menu a::after {
    display: none !important;
}

.btn-nav::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1a3a1a 0%, #0d2818 50%, #1a2a1a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://img1.wsimg.com/isteam/ip/66fd23ec-2f7b-424e-9420-8fb21bf1e6df/IMG-20201220-WA0001%5B1%5D.jpg/:/rs=w:1600,h:900') center/cover no-repeat;
    opacity: 0.3;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 0.8s both;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 25px 40px;
    display: inline-flex;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light .section-title { color: var(--white); }
.section-header.light .section-tag { color: var(--accent); border-color: var(--accent); }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================
   VISION
   ========================================== */
.vision {
    padding: 80px 0;
    background: var(--light-bg);
}

.vision-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.vision-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.vision-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.vision-card blockquote {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.feature i { color: var(--primary); }

.about-locations {
    background: var(--light-bg);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.about-locations h4 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.about-locations p {
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================
   BIOGAS INFO
   ========================================== */
.biogas-info {
    padding: 80px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Full-width horizontal rows for Generators & Consultancy */
.service-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.service-row {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.service-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-row-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.service-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-row-content {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-row-content p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.service-row-content .service-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.service-row-content .service-features li {
    font-size: 0.9rem;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.service-row-content .service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Vertical table layout for Generator & Consultancy modals */
.vtable {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.vtable-header {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtable-header .plant-acc-tag {
    margin-left: auto;
}

.vtable-body {
    background: #fff;
}

.vtable-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.vtable-row:last-child {
    border-bottom: none;
}

.vtable-row:hover {
    background: #f8fdf8;
}

.vtable-row-head {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

.vtable-row span {
    padding: 12px 18px;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.5;
}

.vtable-row span:first-child {
    flex: 0 0 45%;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtable-row span:first-child i {
    color: #2e7d32;
    width: 18px;
    text-align: center;
}

.vtable-row span:last-child {
    flex: 1;
}

.vtable-row-head span:first-child,
.vtable-row-head span:last-child {
    color: #333;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.generator-focus-card {
    cursor: pointer;
    border: 2px solid transparent;
}

.generator-focus-card:hover,
.generator-focus-card:focus-visible {
    border-color: var(--primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    position: relative;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    position: absolute;
    top: -28px;
    right: 25px;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.service-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.service-features li {
    font-size: 0.82rem;
    color: var(--text-light);
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.service-detail {
    display: none;
    margin-top: 26px;
    background: var(--white);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border-top: 4px solid var(--primary);
}

.service-detail.show {
    display: block;
    animation: slideDown 0.28s ease;
}

.generator-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #666;
    cursor: pointer;
}

.generator-view-close:hover {
    background: #e74c3c;
    color: #fff;
}

.generator-view-title {
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ece8;
    letter-spacing: 0.3px;
}

.generator-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.generator-view-card {
    background: #fafcfa;
    border: 1px solid #e4ece4;
    border-radius: 12px;
    padding: 14px;
}

.generator-view-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.generator-view-card h4 {
    font-size: 1.12rem;
    color: var(--dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.35;
    letter-spacing: 0.35px;
}

.generator-view-card ul {
    margin-left: 0;
    color: var(--text-light);
    list-style: none;
}

.generator-view-card ul li {
    margin-bottom: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    padding-left: 18px;
    position: relative;
}

.generator-view-card ul li::before {
    content: '\2022';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.generator-spec-table {
    border: 1px solid #dce6dc;
    border-radius: 10px;
    overflow: hidden;
}

.generator-spec-table > div,
.generator-spec-table details > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid #edf2ed;
    font-size: 0.92rem;
    color: #2e3a2e;
}

.generator-spec-table > div:nth-child(even) {
    background: #f8fbf8;
}

.generator-spec-table > div span:last-child,
.generator-spec-table details > div span:last-child {
    text-align: right;
}

.generator-spec-table .generator-spec-head {
    background: #eaf5ea;
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--primary-dark);
    letter-spacing: 0.4px;
}

/* ==========================================
   PRODUCTS / TECHNOLOGY SOLUTIONS
   ========================================== */
.products {
    padding: 100px 0;
    background: var(--off-white);
}

.section-desc {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Biogas Projects - Inside What is Biogas Section */
.projects-subsection {
    margin-top: 50px;
    text-align: center;
}

.projects-sub-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.projects-sub-title i {
    margin-right: 8px;
}

.projects-sub-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Project cards reuse .info-card + .info-icon styles */
.info-card.project-card {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 30px 20px;
}

.info-card.project-card:hover {
    border-color: var(--primary);
}

.info-card.project-card.active {
    border-color: var(--primary);
    background: #e8f5e9;
}

.info-card.project-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

.project-detail-box {
    display: none;
    margin-top: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    animation: slideDown 0.3s ease;
    border-left: 5px solid var(--primary);
    text-align: left;
}

.project-detail-box.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.project-close-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.project-detail-box h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-detail-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.project-detail-box ul {
    margin: 12px 0 12px 20px;
    color: var(--text-light);
}

.project-detail-box ul li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.project-detail-box .project-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.project-detail-box .spec-item {
    background: #f8fdf8;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e0e8e0;
}

.project-detail-box .spec-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.project-detail-box .spec-item span {
    font-size: 0.92rem;
    color: var(--text);
}

@media (max-width: 768px) {
    .project-detail-box {
        padding: 24px 18px;
    }
    .project-detail-box .project-specs {
        grid-template-columns: 1fr;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.product-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--white);
    font-size: 1.4rem;
}

.product-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

.products-applications {
    background: var(--white);
    padding: 30px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.products-applications h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 18px;
}

.products-applications h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.applications-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.app-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ==========================================
   SUCCESS PROJECTS
   ========================================== */
.projects-success {
    padding: 100px 0;
    background: var(--white);
}

.project-highlight {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
}

.project-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.badge-years {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-highlight-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-highlight-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.project-features {
    margin-top: 20px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.project-features li i {
    color: var(--primary);
    font-size: 1rem;
}

.project-highlight-visual {
    text-align: center;
}

.success-stat-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.stat-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: var(--white);
}

.stat-ring span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.success-stat-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.success-stat-card p {
    color: var(--text-light);
    font-size: 0.88rem;
}

.trust-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================
   WHY US
   ========================================== */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.why-card i {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 18px;
    display: block;
}

.why-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--off-white) 0%, #eef6ef 100%);
    overflow: hidden;
}

/* Horizontal marquee */
.marquee-gallery {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    position: relative;
}

.marquee-gallery::before,
.marquee-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-gallery::before {
    left: 0;
    background: linear-gradient(90deg, #eef6ef 0%, transparent 100%);
}

.marquee-gallery::after {
    right: 0;
    background: linear-gradient(270deg, #eef6ef 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 18px;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track img {
    height: 280px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
}

.marquee-track img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.6rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.25s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    color: rgba(255,255,255,0.85);
    margin-top: 16px;
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
}

/* ==========================================
   BLOG
   ========================================== */
.blog {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 15px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-date i { margin-right: 5px; }

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
}
.blog-modal.active { display: flex; align-items: flex-start; justify-content: center; }
.blog-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 750px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: blogModalIn 0.3s ease;
}
@keyframes blogModalIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.blog-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
}
.blog-modal-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}
.blog-modal-body { padding: 30px; }
.blog-modal-tag {
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.blog-modal-body h2 { font-size: 1.4rem; color: var(--dark); margin: 16px 0 8px; line-height: 1.4; }
.blog-modal-date { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 20px; }
.blog-modal-text { font-size: 0.95rem; color: var(--text); line-height: 1.8; }
.blog-modal-text p { margin-bottom: 16px; }
.blog-modal-text h1, .blog-modal-text h2, .blog-modal-text h3 { margin: 20px 0 10px; color: var(--dark); }
.blog-modal-text ul, .blog-modal-text ol { margin: 10px 0 16px 24px; }
.blog-modal-text li { margin-bottom: 6px; }
.blog-modal-text blockquote { border-left: 4px solid var(--primary); padding: 10px 16px; margin: 16px 0; background: var(--light-bg); font-style: italic; }
.blog-modal-text a { color: var(--primary); text-decoration: underline; }

@media (max-width: 480px) {
    .blog-modal { padding: 20px 10px; }
    .blog-modal-body { padding: 20px; }
    .blog-modal-img { max-height: 220px; }
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: 100px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 25px;
    white-space: nowrap;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--off-white);
    color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 18px;
}

.footer-logo-shine {
    width: 85px !important;
    height: 85px !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.15));
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.15)); }
    50% { filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.25)); }
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-links a,
.footer-contact a {
    display: block;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--primary-light); }

.footer-services li {
    font-size: 0.88rem;
    padding: 4px 0;
}

.footer-contact p {
    font-size: 0.88rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Big Branding */
.footer-brand-center {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 18px;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.footer-brand-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 550px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.footer-brand-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-badge i {
    color: #81c784;
    font-size: 0.9rem;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Trusted By Section */
.trusted-by-section {
    background: #f8fbf7;
    padding: 45px 0;
    border-top: 1px solid #e8f5e9;
    border-bottom: 1px solid #e8f5e9;
}

.trusted-by-header {
    text-align: center;
    margin-bottom: 30px;
}

.trusted-by-header span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    font-weight: 600;
}

.trusted-by-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trusted-by-item {
    text-align: center;
}

.trusted-logo {
    max-height: 55px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: all 0.3s;
}

.trusted-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trusted-logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.1rem;
}

.trusted-logo-fallback i {
    font-size: 2rem;
    color: #43a047;
}

.trusted-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-weight: 500;
}

.trusted-desc {
    font-size: 0.75rem;
    color: #43a047;
    font-weight: 600;
}

.mnre-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mnre-badge i {
    font-size: 1.8rem;
    color: #1b5e20;
}

.badge-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1b5e20;
}

.badge-sub {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* ==========================================
   WHATSAPP & BACK TO TOP
   ========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s ease infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image img { height: 350px; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .project-highlight { grid-template-columns: 1fr; }
    .applications-list { grid-template-columns: repeat(2, 1fr); }
    .generator-view-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .vtable-row {
        flex-direction: column;
    }
    .vtable-row span:first-child {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 6px;
    }
    .vtable-row span:last-child {
        padding-top: 6px;
    }
    .service-row {
        flex-direction: column;
    }
    .service-row-image {
        flex: none;
        max-width: 100%;
        height: 200px;
    }
    .service-row-content .service-features {
        grid-template-columns: 1fr;
    }
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        color: var(--text) !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8f8f8;
        border-radius: 0;
        padding: 0;
        display: none;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown-menu a {
        padding: 10px 20px !important;
        border-bottom: 1px solid #e8e8e8;
        font-size: 0.8rem;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .info-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .marquee-track img { height: 220px; }
    .blog-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .applications-list { grid-template-columns: 1fr 1fr; }
    .trusted-by-grid { gap: 30px; }
    .footer-brand-name { font-size: 1.25rem; }
    .footer-brand-logo { width: 70px; height: 70px; }
    .footer-brand-badges { gap: 12px; }

    .logo-img { width: 48px; height: 48px; }
    .logo-main { font-size: 0.8rem; letter-spacing: 1px; }
    .logo-sub { font-size: 0.5rem; }
    .contact-info h3 { white-space: normal; }

    .vision-card { padding: 30px 20px; }

    /* --- Mobile layout fixes --- */
    .hero-content { padding: 100px 0 60px; }
    .hero-stats { padding: 18px 20px; gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
    .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

    .about-grid { gap: 30px; }
    .about-image img { height: 280px; }

    .services-grid { gap: 20px; }
    .service-card .service-image img { height: 200px; }

    .contact-grid { gap: 30px; }
    .contact-form-wrap { padding: 24px 18px; }

    .project-highlight { gap: 30px; }
    .success-stat-card { padding: 25px; }
    .stat-ring { width: 90px; height: 90px; }
    .stat-ring span { font-size: 1.8rem; }

    .footer-logo-img { width: 60px !important; height: 60px !important; margin-right: -15px; }
    .footer-logo-text { font-size: 1.2rem; }

    .whatsapp-btn { width: 48px; height: 48px; font-size: 1.4rem; bottom: 20px; left: 20px; }
    .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }

    .section-header { margin-bottom: 35px; }
    .section-desc { font-size: 0.88rem; }

    .info-card { padding: 28px 20px; }
    .info-icon { width: 55px; height: 55px; font-size: 1.2rem; }

    .why-card { padding: 28px 18px; }

    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.3rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 12px; right: 16px; font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-stats { flex-direction: column; gap: 15px; padding: 16px; }
    .hero-stats .stat { display: flex; align-items: center; gap: 8px; }
    .hero-stats .stat-label { margin-top: 0; }
    .stat-number { font-size: 1.6rem; }
    .stat-plus { font-size: 1.2rem; }
    .marquee-track img { height: 180px; }
    .about-features { grid-template-columns: 1fr; }
    .about-image img { height: 220px; }
    .service-features { grid-template-columns: 1fr; }
    .applications-list { grid-template-columns: 1fr; }
    .trust-badges { flex-direction: column; align-items: center; }
    .logo-img { width: 42px; height: 42px; }
    .logo-main { font-size: 0.7rem; letter-spacing: 0.8px; }
    .logo-sub { font-size: 0.45rem; }
    .generator-view { padding: 16px; }
    .generator-view-title { font-size: 1.1rem; padding-right: 34px; }

    /* --- Additional 480px mobile fixes --- */
    .section-title { font-size: 1.6rem; }
    .section-tag { font-size: 0.7rem; padding: 4px 12px; letter-spacing: 1.5px; }
    .hero-content { padding: 90px 0 50px; }
    .hero-badge { font-size: 0.68rem; padding: 5px 12px; gap: 5px; }
    .hero-cta .btn { padding: 12px 24px; font-size: 0.88rem; }

    .contact-form-wrap { padding: 20px 14px; }
    .contact-form input,
    .contact-form select,
    .contact-form textarea { padding: 12px 14px; font-size: 0.85rem; }

    .info-card { padding: 24px 16px; }
    .info-card h3 { font-size: 1rem; }

    .footer-grid { gap: 25px; }
    .footer h4 { font-size: 0.92rem; }
    .footer-brand-badges .footer-badge { font-size: 0.72rem; padding: 6px 12px; }

    .blog-content { padding: 18px; }
    .blog-content h3 { font-size: 0.95rem; }
    .blog-image { height: 170px; }

    .why-card i { font-size: 1.6rem; }
    .why-card h3 { font-size: 0.95rem; }
    .why-card p { font-size: 0.82rem; }

    .project-highlight-content h3 { font-size: 1.15rem; }
    .success-stat-card { padding: 20px; }

    .social-links a { width: 38px; height: 38px; }
    .contact-item i { width: 40px; height: 40px; font-size: 0.9rem; }
}

/* ==========================================
   SERVICE SUBPAGES — MOBILE FIXES
   ========================================== */

/* Responsive tables — wrap in scroll container */
.content-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Service pages hero & content */
    .service-page { padding: 0 0 40px; }
    .service-hero { padding: 90px 0 30px; }
    .service-hero h1 { font-size: 1.7rem; line-height: 1.25; }
    .service-hero p { font-size: 0.92rem; padding: 0 10px; }
    .breadcrumb { font-size: 0.78rem; }

    .content-section { padding: 24px 18px; margin: 20px 0; border-radius: 10px; }
    .content-section:first-child { margin-top: 20px; }
    .content-section h2 { font-size: 1.35rem; margin-bottom: 16px; padding-bottom: 10px; }
    .content-section h3 { font-size: 1.1rem; margin: 22px 0 10px; }
    .content-section h4 { font-size: 1rem; }
    .content-section p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 12px; }
    .content-section ul { margin: 14px 0 14px 18px; }
    .content-section li { font-size: 0.92rem; line-height: 1.65; margin-bottom: 6px; }
    .content-section ol { margin: 14px 0 14px 18px; }
    .content-section ol li { font-size: 0.92rem; }

    /* Tables on mobile */
    .content-section table {
        font-size: 0.82rem;
        min-width: 500px;
    }
    .content-section table th,
    .content-section table td {
        padding: 8px 10px;
    }

    /* Service cards grid */
    .service-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card { padding: 20px; }
    .service-card h4 { font-size: 1rem; }
    .service-card p { font-size: 0.88rem; }
    .service-card li { font-size: 0.85rem; }

    /* CTA boxes */
    .cta-box { padding: 24px 16px; margin: 25px 0; }
    .cta-box h3 { font-size: 1.2rem; }
    .cta-box p { font-size: 0.9rem; }
    .cta-buttons { flex-direction: column; }
    .btn-cta, .btn-cta-primary, .btn-cta-outline { width: 100%; justify-content: center; font-size: 0.9rem; padding: 12px 20px; }

    /* Highlight boxes */
    .highlight-box { padding: 20px 16px; margin: 18px 0; }
    .highlight-box h4 { font-size: 1rem; }
    .highlight-box p { font-size: 0.88rem; }

    /* Subsidy tables */
    .subsidy-table { font-size: 0.82rem; display: block; overflow-x: auto; }
    .subsidy-table th { padding: 10px 12px; font-size: 0.78rem; }
    .subsidy-table td { padding: 10px 12px; font-size: 0.85rem; }

    /* Generator spec tables */
    .gen-table { font-size: 0.82rem; display: block; overflow-x: auto; }

    /* Footer on service pages */
    .service-page footer { padding: 24px 0; }
    .service-page footer p { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .service-hero { padding: 82px 0 24px; }
    .service-hero h1 { font-size: 1.4rem; }
    .service-hero p { font-size: 0.85rem; }
    .breadcrumb { font-size: 0.72rem; }

    .content-section { padding: 18px 14px; margin: 14px 0; }
    .content-section h2 { font-size: 1.15rem; }
    .content-section h3 { font-size: 0.98rem; margin: 18px 0 8px; }
    .content-section h4 { font-size: 0.92rem; }
    .content-section p { font-size: 0.88rem; line-height: 1.65; }
    .content-section li { font-size: 0.88rem; line-height: 1.6; }
    .content-section ul { margin-left: 14px; }
    .content-section ol { margin-left: 14px; }

    .content-section table { font-size: 0.78rem; }
    .content-section table th,
    .content-section table td { padding: 6px 8px; }

    .service-card { padding: 16px; }
    .service-card h4 { font-size: 0.92rem; }

    .cta-box { padding: 20px 14px; }
    .cta-box h3 { font-size: 1.05rem; }

    .highlight-box { padding: 16px 12px; }
}

/* Calculator styles are in index.html inline <style> block */
