/* --- VARIABLES & RESET --- */
:root {
    scroll-behavior: smooth;
    --primary-red: #d32f2f;
    --primary-hover: #b71c1c;
    --dark-blue: #1a2a3a;
    --dark-grey: #2c3e50;
    --light-grey: #f8f9fa;
    --border-color: #eee;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --section-padding: 80px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--dark-grey);
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-contact span {
    margin-right: 20px;
}

.top-bar-contact i {
    color: var(--primary-red);
    margin-right: 5px;
}

.section-padding {
    padding: var(--section-padding);
}

/* --- NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-text {
    color: var(--dark-grey);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-red);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

/* --- DROPDOWN --- */
.has-dropdown {
    position: relative;
}

.has-dropdown i {
    font-size: 10px;
    margin-left: 3px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid #0056b3;
}

.nav-links li {
    position: relative;
}

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

.has-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

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

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark-blue);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        pointer-events: auto;
    }

    .nav-links.active {
        right: 0;
    }
}

/* Mobile Nav Toggle State */
.nav-links.active {
    display: flex;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.cert-badge {
    background: rgba(211, 47, 47, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    animation: heroFadeIn 1s ease-out;
}

/* Animation for Hero Content Refresh */
.text-refresh {
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content p {
    animation: heroFadeIn 1s ease-out 0.2s backwards;
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: heroFadeIn 1s ease-out 0.4s backwards;
}

/* --- BUTTONS --- */
.btn-quote {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-quote:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* --- HIGHLIGHTS --- */
.highlights {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: -100px auto 30px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.highlight-item {
    flex: 1;
    min-width: 200px;
    padding: 30px;
    text-align: center;
    border-right: 1px solid #eee;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-10px);
    background-color: var(--light-grey);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.highlight-item:last-child {
    border-right: none;
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.highlight-item h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

/* --- ABOUT PREVIEW --- */
.about-preview {
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-flex.reverse {
    flex-direction: row-reverse;
}

.about-image,
.about-text {
    flex: 1;
    min-width: 350px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-red);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.about-text h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-features {
    list-style: none;
    margin-bottom: 35px;
}

.about-features li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features li i {
    color: var(--primary-red);
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--dark-grey);
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--dark-grey);
    color: white;
}

@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
    }

    .about-image img {
        box-shadow: none;
    }

    .experience-badge {
        right: 10px;
        bottom: 10px;
    }

    .director-content {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .director-image {
        flex: 0 0 auto; /* Allow it to shrink/grow based on content, but respect max-width */
        width: 100%; /* Take full width on small screens */
        max-width: 280px; /* Set a maximum width for the image */
        margin: 0 auto 30px;
    }

    .director-image::after {
        display: none;
    }
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #002147;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* --- Section 3: Clients --- */
.clients-section {
    background-color: #f9f9f9;
}

.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.client-logo {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Mobile Responsive - Client Logos */
@media (max-width: 768px) {
    .client-logo {
        width: 150px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .client-logo {
        width: 120px;
        height: 60px;
        padding: 10px;
    }
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Section 4: Infrastructure --- */
.infra-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.infra-content {
    flex: 1;
    min-width: 300px;
}

.infra-image {
    flex: 1;
    min-width: 300px;
}

.infra-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.infra-list {
    list-style: none;
    padding: 20px 0;
}

.infra-list li {
    margin-bottom: 10px;
    color: #333;
}

.infra-list i {
    color: #28a745;
    margin-right: 10px;
}

.future-roadmap {
    background: #eef4ff;
    padding: 20px;
    border-left: 5px solid #0056b3;
    margin-top: 20px;
}

.future-roadmap h4 {
    margin-top: 0;
    color: #0056b3;
}

.roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.roadmap-tags span {
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #0056b3;
    color: #0056b3;
}

@media (max-width: 768px) {
    .infra-flex {
        flex-direction: column;
    }
}

/* Container for the floating buttons */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Mobile Responsive - Floating Contact Buttons */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 15px;
        right: 10px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 10px;
        right: 8px;
        gap: 10px;
    }
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Mobile Responsive - Float Buttons */
@media (max-width: 480px) {
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

.float-btn:hover {
    transform: scale(1.1);
}

.chatbot-btn {
    background-color: #007bff;
}

.whatsapp {
    background-color: #25d366;
}

.phone-btn {
    background-color: #002147;
}

.chatbot-btn {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Machinery Page Header */
.machinery-page-header {
    background: linear-gradient(rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.8)), url('../images/machinery-hero.jpg');
    background-size: cover;
    background-position: center;
    background-color: #002147;
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Page Header Section */
.page-header {
    background: linear-gradient(rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.8)), url('../images/chakan-plant.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list i {
    color: #007bff;
    margin-right: 15px;
}

/* --- REVEAL SYSTEM --- */
/* --- ENHANCED REVEAL SYSTEM --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
}

/* Staggered Delay Utilities */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- PAGE SPECIFIC LAYOUTS --- */
/* Products: Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

/* Machinery: Technical Split Layout */
.machinery-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.machinery-row>div {
    flex: 1;
    min-width: 0;
}

.machinery-row .about-image,
.machinery-row .machinery-specs {
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.machinery-row .about-image.reveal,
.machinery-row .machinery-specs.reveal {
    opacity: 0;
}

.machinery-row .about-image.reveal.revealed,
.machinery-row .machinery-specs.reveal.revealed {
    opacity: 1;
}

.machinery-row.reverse {
    flex-direction: row-reverse;
}

.machine-image-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.machine-image-grid img {
    transition: var(--transition);
}

/* --- CHATBOT INTERFACE --- */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 450px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

/* Mobile Responsive - Chatbot Window */
@media (max-width: 768px) {
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: 320px;
        border-radius: 8px;
    }
}

.chatbot-window.active {
    display: flex;
    animation: heroFadeIn 0.3s ease-out;
}

.chatbot-header {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chatbot-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    background: #fdfdfd;
}

.chat-msg {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 10px;
    border-radius: 8px;
}

.msg-bot {
    background: #eef2f7;
    color: var(--dark-grey);
    align-self: flex-start;
    border-radius: 8px 8px 8px 0;
}

.msg-user {
    background: #f0f0f0;
    color: #333;
    align-self: flex-end;
    border-radius: 8px 8px 0 8px;
    margin-left: auto;
    text-align: right;
}

.chat-options {
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    max-height: 180px;
    overflow-y: auto;
}

.chat-options::before {
    content: 'Suggestions:';
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.chat-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: #fff;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-options.hidden {
    display: none;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chatbot-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 0.85rem;
}

.chatbot-send-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0 12px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.chat-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* --- MACHINERY SLIDER --- */
.machinery-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.machinery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: #fdfdfd;
}

.machinery-slide.active {
    opacity: 1;
}

.machine-image-grid .sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.machinery-specs {
    flex: 1;
    background: var(--light-grey);
    padding: 35px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.spec-table td:first-child {
    font-weight: bold;
    color: var(--dark-blue);
}

.machinery-product-grid .product-card img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

/* --- TIMELINE SECTION (About Page) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #eee;
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 20px 0 30px 50px;
    position: relative;
    transition: var(--transition);
}

.timeline-year {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    left: 13px;
    top: 25px;
    z-index: 1;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-red);
}

/* --- LEADERSHIP / DIRECTOR SECTION --- */
.director-section {
    background-color: var(--light-grey);
}

.director-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.director-image {
    flex: 0 0 280px;
    position: relative;
}

.director-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow);
}

.director-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-red);
    border-radius: 10px;
    z-index: -1;
}

.director-text {
    flex: 1;
}

.director-name {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
    font-weight: 800;
}

.director-title {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: block;
}

/* --- MATERIAL SPECS (Products Page) --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 992px) {

    .machinery-row,
    .machinery-row.reverse {
        flex-direction: column !important;
    }
}

.material-tag {
    background: var(--light-grey);
    padding: 10px;
    border-left: 3px solid var(--primary-red);
    font-size: 0.9rem;
}

@media (max-width: 768px) {

    .about-flex,
    .about-flex.reverse {
        flex-direction: column;
    }
}

/* --- MAP STYLING --- */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: var(--dark-grey);
    color: #ecf0f1;
    padding: 40px 20px 20px;
}

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

.footer-header {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links a:before {
    content: "→ ";
    color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
}

.footer-col p i {
    color: var(--primary-red);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* --- FOOTER BOTTOM (CENTERED SECTION) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    /* Stacks the two lines */
    align-items: center;
    /* Centers horizontally */
    justify-content: center;
    text-align: center;
    /* Centers text for mobile wrap */
    gap: 8px;
}

.footer-bottom-flex p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.design-by a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.design-by a:hover {
    color: var(--primary-red);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* --- CONTACT PAGE --- */
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-section {
    padding: 30px 20px;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form h2,
.contact-info h2 {
    font-size: 2rem;
    color: #002147;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: #d32f2f;
    min-width: 30px;
}

.info-item h3 {
    font-size: 1.1rem;
    color: #002147;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    margin: 0;
}

.info-item a {
    color: #d32f2f;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-links h3 {
    font-size: 1.1rem;
    color: #002147;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: #b71c1c;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* --- FIXED BACKGROUND SECTIONS --- */
.fixed-bg {
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
}

/* Mobile Responsive - Fixed Background Images */
@media (max-width: 768px) {
    .fixed-bg {
        background-attachment: scroll !important;
    }
}

.fixed-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.75);
    /* Dark blue overlay for better contrast */
    z-index: 1;
}

.fixed-bg .container {
    position: relative;
    z-index: 2;
}

.fixed-bg h1,
.fixed-bg h2,
.fixed-bg h3,
.fixed-bg h4,
.fixed-bg p,
.fixed-bg li,
.fixed-bg .section-title,
.fixed-bg .section-subtitle,
.fixed-bg .timeline-year {
    color: #fff !important;
}

/* Section Backgrounds */
.clients-section.fixed-bg {
    background-image: url('../images/trusted-clients.jpg');
}

.mission-vision-section.fixed-bg {
    background-image: url('../images/vision&mission.jpeg');
}

.growth-journey-section.fixed-bg {
    background-image: url('../images/growth-journey.avif');
}

.quality-commitment.fixed-bg {
    background-image: url('../images/quality.webp');
}

.product-gallery-section.fixed-bg {
    background-image: url('../images/products-bg.jpg');
}

.workflow-section.fixed-bg {
    background-image: url('../images/products-bg.jpg');
}

.testing-machinery-section.fixed-bg {
    background-image: url('../images/inspection&testing.jpeg');
}

.tech-roadmap-section.fixed-bg {
    background-image: url('../images/roadmap.avif');
}

/* Page Header Backgrounds */
.products-page-header.fixed-bg {
    background-image: url('../images/products-hero.jpg');
}

.services-page-header.fixed-bg {
    background-image: url('../images/services-hero.jpg');
}

.machinery-page-header.fixed-bg {
    background-image: url('../images/machinery-hero.jpg');
}

.quality-page-header.fixed-bg {
    background-image: url('../images/quality-hero.jpg');
}

.career-page-header.fixed-bg {
    background-image: url('../images/about-hero.jpg');
}

.contact-page-header.fixed-bg {
    background-image: url('../images/chakan-plant.jpg');
}

/* --- QUALITY PAGE SPECIFIC ENHANCEMENTS --- */
.quality-process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--border-color);
    transition: var(--transition);
}

.process-step:hover {
    border-bottom-color: var(--primary-red);
    transform: translateY(-5px);
}

.process-step .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.lab-card {
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--dark-grey);
}

.lab-card:hover {
    border-top-color: var(--primary-red);
}

/* --- MATERIAL EXPERTISE ENHANCEMENTS --- */
.material-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.material-info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-red);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.material-info-card:hover {
    transform: translateY(-5px);
}

.material-info-card i {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.material-info-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.material-info-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* --- PAGE SPECIFIC LAYOUTS --- */
/* Products: Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.machinery-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-red);
}

.product-card-body {
    padding: 20px;
}

.product-card-body h3,
.product-card-body p {
    color: #000 !important;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
    padding: 10px;
}

/* --- PRODUCTS PAGE ENHANCEMENTS --- */
.category-nav {
    position: sticky;
    top: 80px;
    background: var(--white);
    z-index: 990;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.category-nav .container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    justify-content: center;
}

.category-nav a {
    text-decoration: none;
    color: var(--dark-grey);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.category-nav a:hover {
    color: var(--primary-red);
    background: var(--light-grey);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--dark-blue);
}

.category-title i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.product-section {
    padding: 60px 0;
}

@media (max-width: 992px) {
    .category-nav {
        top: 70px;
    }

    .category-nav .container {
        justify-content: flex-start;
        padding: 0 20px;
    }

    .category-title {
        font-size: 1.5rem;
    }
}

/* --- SERVICES PAGE ENHANCEMENTS --- */
.service-item {
    margin-bottom: 80px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.upcoming-badge {
    display: inline-block;
    background: var(--dark-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    border-left: 3px solid var(--primary-red);
}

/* --- TYPING INDICATOR --- */
.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    margin-right: 3px;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}