/* 
========================================================================
   ALLIED POWER SOLUTIONS - PREMIUM CORPORATE STYLESHEET
   Author: Antigravity AI
   Aesthetics: Modern Industrial, Engineering Excellence, Clean B2B
========================================================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* CSS variables for global Design Tokens */
:root {
    /* Color Palette */
    --primary-red: #D32F2F;
    --primary-red-hover: #B71C1C;
    --primary-red-alpha: rgba(211, 47, 47, 0.1);
    --primary-dark: #121316;
    --primary-grey: #1C1E22;
    --light-grey: #F4F6F9;
    --steel-silver: #E0E4E8;
    --steel-silver-hover: #D1D6DC;
    --body-text: #4A505A;
    --body-text-light: #7E8695;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Spacing */
    --max-width: 1280px;
    --header-height: 80px;
    --topbar-height: 40px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 8px 20px rgba(211, 47, 47, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--body-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-grey);
}
::-webkit-scrollbar-thumb {
    background: var(--steel-silver-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--body-text-light);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-bg-grey {
    background-color: var(--light-grey);
}

.section-bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.section-bg-dark h2 {
    color: var(--white);
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.section-bg-dark .section-title::after {
    background-color: var(--white);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--body-text-light);
}

.section-bg-dark .section-desc {
    color: var(--steel-silver);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #24262b;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--steel-silver);
}

.btn-outline:hover {
    background-color: var(--light-grey);
    border-color: var(--body-text-light);
    transform: translateY(-2px);
}

/* Top Information Bar */
.topbar {
    height: var(--topbar-height);
    background-color: var(--primary-dark);
    color: var(--steel-silver);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-item i {
    color: var(--primary-red);
}

/* Header & Navigation */
.header {
    height: var(--header-height);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-red);
    font-weight: 600;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height) - var(--topbar-height));
    min-height: 600px;
    background-color: var(--primary-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45; /* Dark overlay for text readability */
    transform: scale(1.05);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 19, 22, 0.95) 30%, rgba(18, 19, 22, 0.4) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s forwards 0.2s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    background-color: var(--primary-red-alpha);
    border: 1px solid var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-red);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--steel-silver);
    font-weight: 350;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Key Stats / Banner Highlights */
.stats-bar {
    background-color: var(--primary-grey);
    border-top: 4px solid var(--primary-red);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--steel-silver);
    font-weight: 600;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-red);
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--body-text);
}

.about-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-feature-item i {
    color: var(--primary-red);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.about-feature-item div h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.about-feature-item div p {
    font-size: 0.85rem;
    color: var(--body-text-light);
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 480px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(18, 19, 22, 0.9);
    border-top: 3px solid var(--primary-red);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.about-visual-overlay i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.about-visual-text h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.about-visual-text p {
    font-size: 0.85rem;
    color: var(--steel-silver);
    margin-bottom: 0;
}

/* Products Section & Tabs */
.product-tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--steel-silver);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--body-text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    border-radius: var(--border-radius-sm);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-red);
    background-color: var(--light-grey);
}

.tab-btn.active {
    color: var(--primary-red);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.product-tab-content {
    display: none;
    animation: fadeInTab 0.5s ease-in-out forwards;
}

.product-tab-content.active {
    display: block;
}

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

/* Generator Products Sub-layout */
.generator-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
}

.generator-sidebar {
    background-color: var(--light-grey);
    border: 1px solid var(--steel-silver);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    align-self: flex-start;
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--steel-silver);
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.range-radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.range-radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.range-radio-item input {
    accent-color: var(--primary-red);
    width: 16px;
    height: 16px;
}

.spec-highlights {
    background-color: var(--white);
    border: 1px dashed var(--steel-silver);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-top: 2rem;
}

.spec-highlight-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.spec-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--body-text);
}

.spec-highlight-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-highlight-list li i {
    color: var(--primary-red);
}

/* Generator Cards/Grid */
.generator-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.generator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--steel-silver);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red-alpha);
}

.product-card-header {
    position: relative;
    background-color: var(--light-grey);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--steel-silver);
}

.brand-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.brand-eicher {
    background-color: #ECEFF1;
    color: #455A64;
    border: 1px solid #CFD8DC;
}

.brand-tmtl {
    background-color: var(--primary-red-alpha);
    color: var(--primary-red);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.product-kva {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.1;
}

.product-kva span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--body-text-light);
}

.product-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 0.85rem;
    color: var(--body-text-light);
    margin-bottom: 1.5rem;
}

.spec-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-grey);
    font-size: 0.88rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-name {
    color: var(--body-text-light);
}

.spec-val {
    font-weight: 600;
    color: var(--primary-dark);
}

.product-card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light-grey);
}

.product-card-footer .btn {
    width: 100%;
}

/* Brand disclaimer banner */
.brand-disclaimer {
    background-color: var(--light-grey);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-size: 0.95rem;
    color: var(--body-text);
}

.brand-disclaimer strong {
    color: var(--primary-dark);
}

/* Industrial Engines sub-layout */
.engines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.engines-showcase {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 440px;
}

.engines-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.engines-details h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.engines-desc {
    font-size: 1.05rem;
    color: var(--body-text);
    margin-bottom: 2rem;
}

.engine-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.engine-spec-box {
    background-color: var(--light-grey);
    border: 1px solid var(--steel-silver);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.engine-spec-val {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-red);
}

.engine-spec-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--body-text-light);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.engine-applications-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.engine-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.app-tag {
    background-color: var(--light-grey);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--steel-silver);
}

/* Earthing section sub-layout */
.earthing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.earthing-details h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.earthing-desc {
    font-size: 1.05rem;
    color: var(--body-text);
    margin-bottom: 2.5rem;
}

.earthing-types-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.earthing-type-card {
    border: 1px solid var(--steel-silver);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
}

.earthing-type-card:hover {
    border-color: var(--primary-red);
    background-color: var(--light-grey);
    transform: translateY(-3px);
}

.earthing-icon-wrapper {
    font-size: 1.75rem;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

.earthing-type-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.earthing-type-card p {
    font-size: 0.85rem;
    color: var(--body-text-light);
    margin-bottom: 0;
}

.earthing-showcase {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 440px;
}

.earthing-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--primary-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 3rem 2rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
    background-color: #24262b;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.75rem;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--steel-silver);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Power Finder / Calculator Widgets */
.calculator-section {
    background-color: var(--light-grey);
    border-top: 1px solid var(--steel-silver);
    border-bottom: 1px solid var(--steel-silver);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.calc-details h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.calc-details p {
    color: var(--body-text-light);
    margin-bottom: 2rem;
}

.calc-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.calc-feature i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.calc-box {
    background-color: var(--white);
    border: 1px solid var(--steel-silver);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.calc-row {
    margin-bottom: 2.5rem;
}

.calc-row:last-child {
    margin-bottom: 0;
}

.calc-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.load-slider-wrapper {
    position: relative;
    padding-bottom: 1.5rem;
}

.load-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--steel-silver);
    outline: none;
    accent-color: var(--primary-red);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--body-text-light);
    margin-top: 0.5rem;
}

.calc-output-box {
    background-color: var(--light-grey);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    border-top: 3px solid var(--primary-red);
    text-align: center;
}

.calc-rec-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--body-text-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.calc-rec-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.calc-rec-brand {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Industries We Serve */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--white);
    border: 1px solid var(--steel-silver);
    border-radius: var(--border-radius-md);
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.industry-icon {
    font-size: 2.25rem;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
}

.industry-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Why Choose Us Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background-color: var(--white);
    border-top: 4px solid var(--steel-silver);
    padding: 2.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    transition: var(--transition-normal);
}

.why-card:hover {
    border-top-color: var(--primary-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.why-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
}

.why-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--body-text-light);
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.gallery-filter-btn {
    background: none;
    border: 1px solid var(--steel-silver);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--body-text);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.gallery-filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.gallery-filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 19, 22, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    font-size: 1.75rem;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
    transform: scale(0.5);
    transition: var(--transition-normal) 0.1s;
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

.gallery-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-item p {
    font-size: 0.8rem;
    color: var(--steel-silver);
    margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 19, 22, 0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

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

/* Testimonials Section */
.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeInSlide 0.5s ease-in-out forwards;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-stars {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--steel-silver);
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary-red);
    width: 24px;
    border-radius: 5px;
}

/* Contact Section & Form System */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    gap: 1.25rem;
    background-color: var(--light-grey);
    padding: 1.75rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--steel-silver);
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--white);
    background-color: var(--primary-red);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-detail-text p {
    font-size: 0.95rem;
    color: var(--body-text);
    margin-bottom: 0;
    white-space: pre-line;
}

.contact-map-wrapper {
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--steel-silver);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Container & Tabs */
.form-box {
    background-color: var(--white);
    border: 1px solid var(--steel-silver);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--light-grey);
    border-bottom: 1px solid var(--steel-silver);
}

.form-tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--body-text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.form-tab-btn:hover {
    color: var(--primary-red);
}

.form-tab-btn.active {
    background-color: var(--white);
    color: var(--primary-red);
    position: relative;
}

.form-tab-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
}

.form-body {
    padding: 3rem 2.5rem;
}

.contact-form-content {
    display: none;
}

.contact-form-content.active {
    display: block;
    animation: fadeInForm 0.5s ease-in-out forwards;
}

@keyframes fadeInForm {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background-color: var(--light-grey);
    border: 1px solid var(--steel-silver);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-red);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Success Modal after Submission */
.form-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 19, 22, 0.8);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.form-success-box {
    background-color: var(--white);
    border-top: 6px solid var(--primary-red);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.form-success-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.form-success-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-success-box p {
    color: var(--body-text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Footer Section */
.footer {
    background-color: var(--primary-dark);
    color: var(--steel-silver);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4.5rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list li a {
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links-list li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-item i {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.seo-keywords-wrapper {
    margin-top: 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--body-text-light);
}

/* Floating Utility Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

.floating-whatsapp {
    background-color: #25D366;
}

.floating-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.floating-call {
    background-color: var(--primary-red);
}

.floating-call:hover {
    box-shadow: var(--shadow-red);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .section {
        padding: 5rem 0;
    }
    
    .about-grid, .engines-grid, .earthing-grid, .calc-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual, .engines-showcase, .earthing-showcase {
        height: 380px;
    }
    
    .generator-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .generator-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .topbar {
        display: none; /* Hide top bar on mobile to save space */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-grey);
    }
    
    .nav-cta {
        display: none; /* Hide CTA button in menu header on mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        border-right: none;
    }
    
    .stat-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-filter-bar {
        flex-wrap: wrap;
    }
    
    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-body {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
    }
    
    .stat-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tabs-header {
        flex-direction: column;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--steel-silver);
    }
}
