/* assets/css/style.css — JPS Engineering Industrial Theme */



/* ====== CSS Variables ====== */
:root {
    --primary: #FFB703;
    /* Industrial Amber/Gold */
    --primary-dark: #E09A00;
    --secondary: #023047;
    /* Deep Gunmetal Navy */
    --accent: #219EBC;
    /* Steel Blue */

    --dark-bg: #F4F6F8;
    --card-bg: #FFFFFF;
    --text-main: #1A2B3C;
    --text-muted: #5A7184;
    --border: rgba(26, 43, 60, 0.1);

    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(26, 43, 60, 0.1);
    --glow-primary: 0 0 25px rgba(255, 183, 3, 0.35);

    --container: 1200px;
    --nav-height: 80px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ====== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ====== Typography ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: 5rem;
    line-height: 1.0;
}

h2 {
    font-size: 2.8rem;
    color: var(--text-main);
}

/* ====== Utilities ====== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.35);
}

.btn-primary:hover {
    background: #fff;
    color: var(--secondary);
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    color: var(--secondary);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ====== Preloader ====== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 183, 3, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 43, 60, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(255, 183, 3, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 56px;
    width: auto;
    /* Show natural logo on light background */
    filter: drop-shadow(0 0 4px rgba(255, 183, 3, 0.2));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.5));
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    color: rgba(26, 43, 60, 0.85);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: calc(100% - 28px);
}

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

.nav-link.active::after {
    width: calc(100% - 28px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    min-width: 200px;
    border: 1px solid rgba(26, 43, 60, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-main);
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(255, 183, 3, 0.08);
    color: var(--primary);
    padding-left: 26px;
}

/* Nav CTA */
.nav-cta {
    background: var(--primary);
    color: var(--secondary) !important;
    padding: 10px 22px !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== Hero Section ====== */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.45) saturate(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(1, 13, 24, 0.80) 40%, rgba(1, 13, 24, 0.35) 100%);
    z-index: 1;
}

/* Blueprint grid overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 183, 3, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 183, 3, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
    padding-top: var(--nav-height);
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.1s ease forwards;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 0.8s 0.25s ease forwards;
}

.hero-title .outline-text {
    -webkit-text-stroke: 2px var(--primary);
    color: transparent;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 44px;
    max-width: 580px;
    line-height: 1.7;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 0.55s ease forwards;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s 1s ease forwards;
}

.scroll-indicator span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ====== Animations ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }

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

/* ====== Section Global ====== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header p::before,
.section-header p::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--primary);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    text-transform: uppercase;
}

.section-header h2::after {
    display: none;
}

/* ====== Client Marquee ====== */
.clients-section {
    background: #fff;
    padding: 60px 0;
    overflow: hidden;
}

.clients-section .section-header p {
    color: rgba(2, 48, 71, 0.5);
}

.clients-section .section-header p::before,
.clients-section .section-header p::after {
    background: rgba(2, 48, 71, 0.3);
}

.clients-section .section-header h2 {
    color: var(--secondary);
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 70px;
    padding: 10px 24px;
    border: 1px solid rgba(2, 48, 71, 0.1);
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-logo-box img {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.client-logo-box:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.15);
    transform: translateY(-3px);
}

/* ====== About Snippet ====== */
.about-snippet {
    background: var(--card-bg);
}

/* ====== Featured Products Section ====== */
.featured-products {
    background: var(--dark-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card-home {
    background: var(--card-bg);
    border: 1px solid rgba(26, 43, 60, 0.1);
    border-radius: 4px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}

.product-card-home:hover::before {
    transform: scaleX(1);
}

.product-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 183, 3, 0.35);
}

.product-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s var(--ease-out);
}

.product-card-home:hover .product-icon {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.product-card-home h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-home p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link-home {
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.product-link-home:hover {
    gap: 14px;
    color: #fff;
}

/* ====== Statistics Section ====== */
.stats-section {
    background: var(--secondary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 183, 3, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 3rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ====== Why Choose Us ====== */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-card {
    background: #FFFFFF;
    border: 1px solid rgba(26, 43, 60, 0.1);
    border-radius: 4px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    background: #FFFDF0;
    transform: translateY(-6px);
    border-color: rgba(255, 183, 3, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.why-card h4 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====== Testimonials ====== */
.testimonials-section {
    background: var(--dark-bg);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid rgba(26, 43, 60, 0.1);
    border-radius: 4px;
    padding: 36px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    border-color: rgba(255, 183, 3, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author h5 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ====== CTA Section ====== */
.cta-section {
    background: var(--secondary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 183, 3, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 183, 3, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== Footer ====== */
footer {
    background: #010d18;
    padding: 70px 0 24px;
    border-top: 1px solid rgba(255, 183, 3, 0.1);
}

/* ====== WhatsApp Float ====== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20ba56;
    transform: translateY(-4px);
}

/* Callback Float */
.callback-float {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(255, 183, 3, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
}

.callback-float:hover {
    transform: translateY(-4px);
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.6);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(255, 183, 3, 0);
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 183, 3, 0.35);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 183, 3, 0.5);
}

/* ====== Infrastructure Section ====== */
.infrastructure-section {
    background: var(--secondary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.infrastructure-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 183, 3, 0.06) 1px, transparent 0);
    background-size: 40px 40px;
}

.infra-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.infra-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 4px;
    padding: 36px;
    transition: all 0.3s ease;
}

.infra-stat-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
    border-color: rgba(255, 183, 3, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.infra-stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.infra-stat-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.infra-stat-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* Machine Table */
.machine-table-wrapper {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 183, 3, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.machine-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.machine-table thead tr {
    background: rgba(255, 183, 3, 0.08);
    border-bottom: 1px solid rgba(255, 183, 3, 0.2);
}

.machine-table th {
    padding: 16px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.machine-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.machine-table tbody tr:hover {
    background: rgba(255, 183, 3, 0.04);
}

.machine-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.machine-table td:first-child {
    color: #fff;
    font-weight: 600;
}

.machine-table td:last-child {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid rgba(255, 183, 3, 0.2);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        max-height: 600px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(26, 43, 60, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin: 12px 24px;
        display: block;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(26, 43, 60, 0.04);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.open .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        padding-left: 40px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        text-align: center;
    }

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

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}

/* ====== Factory Masonry Gallery ====== */
.factory-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 8px;
    padding: 0 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.factory-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    background: var(--card-bg);
}

.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.factory-item:hover img {
    transform: scale(1.06);
}

.factory-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 13, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factory-overlay i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(255, 183, 3, 0.6));
}

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

.factory-item.span-col-2 {
    grid-column: span 2;
}

.factory-item.span-row-2 {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .factory-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 540px) {
    .factory-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .factory-item.span-col-2,
    .factory-item.span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* R&D Team Photo Card Styles */
.team-photo-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-photo-card img {
    will-change: transform;
}

.team-photo-card:hover img {
    transform: scale(1.08);
}

.team-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.team-photo-card:hover .team-photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Match masonry grid responsiveness for max-width: 900px */
@media (max-width: 900px) {
    .team-photo-card.span-col-2 {
        grid-column: span 1 !important;
    }
}

/* ======================================================================= */
/* GLOBAL THEME FIX: PREVENT INVISIBLE WHITE TEXT ON NEW LIGHT BACKGROUNDS */
/* ======================================================================= */

/* 1. Global override for any hardcoded inline white text to use dark text instead */
[style*="color: white"],
[style*="color:white"],
[style*="color: #fff"],
[style*="color:#fff"],
[style*="color: #FFF"],
[style*="color:#FFF"] {
    color: var(--text-main) !important;
}

/* 2. Revert the fix for elements that sit inside *genuinely dark* sections */
.hero [style*="color:"],
.page-header [style*="color:"],
.team-photo-overlay [style*="color:"],
.cta-section [style*="color:"],
[data-bs-theme="dark"] [style*="color:"],
.footer-dark [style*="color:"] {
    color: #fff !important;
}

/* 3. Fix remaining dark-theme CSS classes that still used white text properties */
.feature-card h3,
.feature-card p,
.feature-card i,
.stat-item h3,
.stat-item p,
.stat-item .counter,
.process-step h3,
.process-step p,
.footer-heading,
.footer-text,
footer p,
footer li,
footer a,
.footer-contact li,
.footer-contact i,
.footer-links a,
footer .social-links a,
.footer-bottom p {
    color: var(--text-main) !important;
}

footer i {
    color: var(--primary) !important;
}

/* Navbar enforcement (to absolutely ensure it remains White Glassmorphic everywhere) */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(26, 43, 60, 0.1) !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

.nav-link {
    color: var(--text-main) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* ====== Light Footer Updates ====== */
.site-footer {
    background: #FFFFFF;
    /* Light theme background */
    padding: 60px 0 20px;
    border-top: 1px solid rgba(26, 43, 60, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9em;
}

.footer-heading {
    color: var(--secondary);
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(26, 43, 60, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8em;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 43, 60, 0.1);
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-bottom i {
    color: var(--primary);
    margin-right: 6px;
}

.footer-bottom strong {
    color: var(--secondary);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--secondary) !important;
}

/* ====== Hero Video Brightness and Grid Removal ====== */
.hero-video {
    filter: brightness(0.85) saturate(1) !important;
}

.hero-overlay {
    background: linear-gradient(105deg, rgba(1, 13, 24, 0.4) 40%, rgba(1, 13, 24, 0.1) 100%) !important;
}

.hero::after {
    display: none !important;
}

/* ====== Preloader Removal (Fast Loading) ====== */
.preloader {
    display: none !important;
}

/* ====== Global Responsive Grid Fallbacks ====== */
@media (max-width: 768px) {

    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(auto-fit,"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}