﻿/* Global Styles Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header Styling */
.header {
    background: #141414;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 150px;
    margin-right: -10px;
    margin-left: -40px;
}

.company-name {
    font-size: 28px; /* Slightly larger for better readability */
    font-weight: bold;
    color: #D4D4D4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-right: 20px;
    margin-left: 10px;
}

/* Hamburger button hidden by default */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1101;
}

    .hamburger i {
        pointer-events: none;
    }

/* Navbar */
.navbar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

    .nav-links li {
        white-space: nowrap;
    }

    .nav-links a {
    text-decoration: none;
    color: #ddd;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 8px 10px;
    border-bottom: 2px solid transparent; /* Reserve space for border */
}

        .nav-links a:hover {
            color: #ff4a1c;
            border-bottom: 2px solid #ff4a1c;
            transform: translateY(-2px);
        }

        .nav-links a.active {
            color: #ff4a1c;
            border-bottom: 2px solid #ff4a1c;
            font-weight: bold;
        }

/* Canvas Background */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-photo {
    position: absolute;
    padding-top: 180px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-video {
    position: absolute;
    padding-top: 180px;
    top: 0;
    left: 0;
    width: 100%;
    height: 125vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.hero-photo {
    display: none;
}

/* Grid Overlay for Block Reveal Effect */
.transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(5, 1fr);
    z-index: 10;
}

.transition-block {
    background-color: black;
    opacity: 0;
    transform: scale(0);
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
}

.reveal-right .transition-block {
    animation-name: block-reveal-right;
}

.reveal-left .transition-block {
    animation-name: block-reveal-left;
}

@keyframes block-reveal-right {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes block-reveal-left {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 850px;
    font-size: 24px;
    font-weight: 300;
    text-shadow: 3px 3px 12px rgba(255, 85, 20, 0.8);
}

.hero-text {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4a1c;
}

/* Navigation Container */
.navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 10;
    padding: 0 30px;
    pointer-events: none;
}

/* Navigation Buttons */
.nav-btn {
    background: linear-gradient(180deg, #FFFFFF, #E6E6E6, #BDBDBD, #A0A0A0, #D4D4D4, #FFFFFF);
    color: white;
    border: none;
    padding: 18px 22px;
    font-size: 2.5rem;
    border-radius: 50%;
    position: absolute;
    top: 10vh;
    /*transform: translateY(-50%);*/
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-in-out;
    width: 70px;
}

@media (max-width: 768px) {
    .nav-btn {    
        transform: unset;
        width: 10%;
        font-size: 2rem;
    }
}

/* Left Button */
#prev {
    left: 30px;
}

/* Right Button */
#next {
    right: 30px;
}

/* Remove Hover Effect */
.nav-btn:hover {
    background: linear-gradient(180deg, #FFFFFF, #E6E6E6, #BDBDBD, #A0A0A0, #D4D4D4, #FFFFFF);
    /* transform: translateY(-50%);  No twitching */
}

/* Click Animation */
.nav-btn:active {
    transform: translateY(-50%) scale(0.9); /* Slight shrink effect on click */
}

/* Progress Indicator Container */
.progress-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

/* Dots for Progress Indicator */
.progress-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

    /* Active Dot */
    .progress-dot.active {
        background-color: rgba(255, 85, 20, 1);
        transform: scale(1.3);
    }


/* Header Overlap */
.about-us, .qr-code, .history, .vision-mission, .benefitsOfOurProducts, .manufacturing-capacity {
    padding-top: 200px;
    text-align: center;
}

.metallurgy {
    padding-top: 200px;
    text-align: center;
}

.manufacturing {
    padding-top: 7% !important;
    text-align: center;
}

    .manufacturing h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /* margin-top: -120px; */
    }

.foundry-expansion {
    padding-top: 7%;
    text-align: center;
}

    .foundry-expansion h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /* margin-top: -120px;*/ 
    }

.legacy {
    padding-top: 7%;
    text-align: center;
}

    .legacy h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /* margin-top: -120px; */
    }

.about-us h2, .qr-code h2, .history h2, .vision-mission h2, .benefitsOfOurProducts h2, .core-values h2, .manufacturing-capacity h2 {
    font-size: 2.8rem;
    margin-bottom: 35px;
    color: #ff4a1c;
    text-transform: uppercase;
}

.history h3 {
    font-size: 2.5rem; /* Larger font size */
    margin-top: 40px; /* Adds more space before the subheading */
    margin-bottom: 35px; /* Adds more space after the subheading */
    color: #ff4a1c; /* Same color as h2 */
    text-transform: uppercase; /* Keep it consistent with h2 */
}

.core-values h3 {
    font-size: 2.5rem; /* Larger font size */
    margin-top: 40px; /* Adds more space before the subheading */
    margin-bottom: 35px; /* Adds more space after the subheading */
    color: #ff4a1c; /* Same color as h2 */
    text-transform: uppercase; /* Keep it consistent with h2 */
}

.operationProcess h3 {
    font-size: 2.5rem; /* Larger font size */
    margin-top: 40px; /* Adds more space before the subheading */
    margin-bottom: 35px; /* Adds more space after the subheading */
    color: #ff4a1c; /* Same color as h2 */
    text-transform: uppercase; /* Keep it consistent with h2 */
}

/* Core Values Section */
.core-values {
    padding: 60px 20px;
    text-align: center;
}

/* Table Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Table Styling */
.values-table {
    width: 100%;
    border-collapse: collapse;
    background: #222; /* Dark background for better readability */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
}

    /* Table Header */
    .values-table thead {
        background: #ff4a1c;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
    }

    /* Header Cells */
    .values-table th {
        padding: 18px 20px;
        text-align: left;
        font-size: 1.3rem;
    }

    /* Table Cells */
    .values-table td {
        padding: 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
        color: white;
    }

    /* Alternating Row Colors */
    .values-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hover Effect */
    .values-table tbody tr:hover {
        background: rgba(255, 74, 28, 0.2);
        transition: background 0.3s ease-in-out;
    }

    /* Icons */
    .values-table td i {
        margin-right: 12px;
        color: #ff4a1c;
        font-size: 1.4rem;
        vertical-align: middle;
    }

.about-us p, .legacy p, .manufacturing p, .foundry-expansion p, .history p, .vision-mission p, .benefitsOfOurProducts p, .coreValues p, .manufacturing-capacity p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #ddd;
    margin-bottom: 20px;
}

/* About Images Container */
.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Ensures spacing between images */
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

    /* Image Transition Styles */
    .about-image img {
        width: 48%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        background: #1c1c1c;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    }

        /* Left Image Staggered Entry */
        .about-image img:nth-child(odd) {
            transform: translateX(-80px) scale(0.8); /* Enter from Left */
        }

        /* Right Image Staggered Entry */
        .about-image img:nth-child(even) {
            transform: translateX(80px) scale(0.8); /* Enter from Right */
        }

        /* Active Image - Triggers Transition */
        .about-image img.active {
            opacity: 1;
            transform: translateX(0) scale(1);
        }

/* Full-Width Legacy Image */
.legacy-image-container {
    width: 100%;
    text-align: center;
    margin-top: 40px; /* Spacing after the legacy text */
    display: block;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Expanding the image width while keeping aspect ratio */
.legacy-image {
    width: auto;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Starts slightly below and scaled */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

    /* Active class triggers the animation */
    .legacy-image.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* History Section Image Gallery */
.history .image-gallery {
    display: flex;
    justify-content: center;
    gap: 30px; /* Ensures spacing between images */
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* Ensure all images have the same width, height, and border */
.history .gallery-image {
    width: 48%; /* Two images next to each other */
    height: 400px; /* Ensures the height is fixed */
    object-fit: cover; /* Ensure the image fills the container */
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

@media (max-width: 768px) {
       .history .gallery-image {
            width: 90%;
            max-height: 300px; /* Adjust image size for mobile */
        }
    }

    /* Active class for all images */
    .history .gallery-image.active {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    /* Styling for the third image to keep the same size and border */
    .history .gallery-image:nth-child(3) {
        width: 50%; /* Same as the first two images */
        height: 400px; /* Same height */
        object-fit: cover; /* Keep the aspect ratio */
    }

    @media (max-width: 768px) {
       .history .gallery-image:nth-child(3) {
            width: 90%;
            max-height: 300px; /* Adjust image size for mobile */
        }
    }

    /* Gallery Images on Hover */
    .history .gallery-image:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 85, 20, 0.5);
    }

.vision-mission-image {
    width: 100%;
    height: 500px;
    object-fit: fill;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    margin-bottom: 40px;
}

    .vision-mission-image.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.benefitsOfOurProducts-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    margin-bottom: 40px;
}

    .benefitsOfOurProducts-image.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Video Styling */
.qr-code-video {
    width: 100%; /* Ensure the video scales to the container */
    max-width: 600px; /* Maximum width for non-fullscreen view */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #ff4a1c;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

    .qr-code-video:hover {
        transform: scale(1.05); /* Slight zoom effect on hover */
    }

    /* Ensuring Fullscreen Responsiveness */
    .qr-code-video:fullscreen {
        width: 100%; /* Full width in fullscreen */
        height: 100vh; /* Full viewport height */
        object-fit: cover; /* Ensures the video covers the screen properly */
    }

/* Header Fix */
.header2 {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #141414;
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    padding: 15px 0;
}

/* Improve Section Spacing */
section {
    padding: 5px 10%;
    margin-bottom: -50px;
}

@media (max-width: 768px) {
    section{
        padding: 5px 2%;
    }
}    

/* Ensure Feature Cards Layout Stays the Same */
.grid-features {
    display: flex;
    gap: 30px; /* More spacing */
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: #1c1c1c;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #292929;
}

    /* Feature Cards Hover Effect */
    .feature-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(255, 85, 20, 0.5);
    }

    /* Feature Card Icons */
    .feature-card i {
        font-size: 2rem;
        color: #ff4a1c;
        margin-bottom: 10px;
    }

.foundry-expansion ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: auto;
}

.foundry-expansion li {
    font-size: 1.2rem;
    color: #ddd;
    background: #1c1c1c;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid #ff4a1c;
    transition: transform 0.2s ease-in-out;
}

    /* Hover Effect on List Items */
    .foundry-expansion li:hover {
        transform: translateX(8px);
        background: #252525;
    }

/* About Section */
.about {
    text-align: center;
    padding: 80px 40px;
    max-width: 900px;
    margin: auto;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
}

/* Introduction Section */
.introduction {
    text-align: center;
    padding: 20px 20px;
    max-width: 900px;
    margin: 120px auto 10px;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
}

    .introduction h2 {
        font-size: 2.8rem;
        margin-bottom: 25px;
        color: #ff4a1c;
        text-transform: uppercase;
    }

    .introduction p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
    }

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4a1c, #b33900);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(255, 85, 20, 0.3);
}

    .read-more-btn i {
        margin-left: 6px;
        transition: transform 0.3s ease;
        font-size: 12px; /* Reduced arrow size */
    }

    .read-more-btn:hover {
        background: linear-gradient(135deg, #b33900, #ff4a1c);
        box-shadow: 0 5px 12px rgba(255, 85, 20, 0.5);
        transform: translateY(-2px);
    }

        .read-more-btn:hover i {
            transform: translateX(4px);
        }

/* Mobile Responsive */
@media (max-width: 768px) {
    .read-more-btn {
        font-size: 13px;
        padding: 7px 14px;
    }

        .read-more-btn i {
            font-size: 11px;
        }
}

/* Certifications Section */
.certifications {
    text-align: center;
    padding: 50px 20px;
}

    .certifications h2 {
        font-size: 2.5rem;
        color: white;
        text-transform: uppercase;
        margin-bottom: 30px;
    }

/* Certification Flexbox for One-Line Layout */
.cert-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Individual Certification Card */
.cert {
    background: linear-gradient(135deg, #292929, #1e1e1e);
    border-radius: 10px;
    padding: 15px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 85, 20, 0.3);
    border: 2px solid rgba(255, 85, 20, 0.5);
    min-width: 200px;
    flex: 1;
    max-width: 230px;
}

    .cert:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 85, 20, 0.6);
    }

/* Certification Title */
.cert-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    display: block;
}

/* Certification Link */
.cert a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}



/* Loader Overlay */
#loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.8);*/
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /*background: url('../images/Orange_gear_icon.png') no-repeat center center;*/
}

/* Rotating Gear Animation */
.loading-spinner {
    width: 80px;
    height: 80px;
    background: url('../images/Orange_gear_icon.png') no-repeat center center;
    background-size: contain;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    margin: auto 0;
    padding: 20px;
    width: 100%;
    text-align: center;
    margin-top: 70px;
}

.social-links a {
    color: white;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 36px;
    transition: color 0.3s ease, transform 0.2s ease;
}

    .social-links a:hover {
        color: #ff4a1c;
        transform: translateY(-3px);
    }

/* Animated Numbering List */
.animated-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 30px; /* Space between items */
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: center;
}

/* Individual List Items */
.list-item {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 85, 20, 0.5);
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    position: relative;
    overflow: hidden;
}

    /* Hover Effect */
    .list-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 85, 20, 0.6);
    }

/* Numbering Animation */
.number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4a1c;
    display: block;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    /* Number Animation Trigger */
    .number.animate {
        opacity: 1;
        transform: translateY(0);
    }

/* List Headings */
.list-item h3 {
    font-size: 1.8rem;
    color: #ff4a1c;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* List Description */
.list-item p {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
}

/* Numbering Animation */
.number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4a1c;
    display: block;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    /* Number Animation Trigger */
    .number.animate {
        opacity: 1;
        transform: translateY(0);
    }

/* List Headings */
.list-item h3 {
    font-size: 1.8rem;
    color: #ff4a1c;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* List Description */
.list-item p {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
}

/* Animated Number Counter */
#factorySizeCounter {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4a1c;
    display: block;
    margin-bottom: 10px;
}

/* Operation Process Section */
.operationProcess {
    padding-top: 200px; /* Adjusted for navbar spacing */
    text-align: center;
    background: #121212;
}

.operationProcess-sections {
    /*padding-top: 10%;*/
    text-align: center;
    font-size: 2.5rem; /* Larger font size */
    margin-top: 40px; /* Adds more space before the subheading */
    margin-bottom: 35px; /* Adds more space after the subheading */
    color: #ff4a1c; /* Same color as h2 */
    /* text-transform: uppercase; Keep it consistent with h2 */
    background: #121212;
}

/* Container */
.operationProcess-container {
    max-width: 1200px;
    margin: 0 auto;
    /*margin-top: 10%;*/
}

/* Proper Spacing for H1 */
.operationProcess h1, .operationProcess-sections h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #ff4a1c;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 30px;
}

.operationProcess p, .operationProcess-sections p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #ddd;
    margin-bottom: 50px;
}

/* Proper Spacing for H2 */
.operationProcess h2, .operationProcess-sections h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #ff4a1c;
    text-transform: uppercase;
    /*margin-top: -140px;*/
}

.operationProcess-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    text-align: center;
}

/* Card Styling */
.operationProcess-card {
    background: #1c1c1c;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #292929;
    box-shadow: 0 4px 10px rgba(255, 85, 20, 0.3);
    width: 23%; /* Ensure equal width for all cards */
    min-height: 250px; /* Ensures all cards maintain the same height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
}

    /* Ensure consistency in paragraph text */
    .operationProcess-card p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
    }

    /* Ensure equal font sizes for all headings */
    .operationProcess-card h3 {
        font-size: 1.6rem;
        color: #ff4a1c;
        margin-top: 10px;
    }

    /* Hover Effect */
    .operationProcess-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(255, 85, 20, 0.5);
    }

    /* Icons */
    .operationProcess-card .icon {
        font-size: 2.5rem;
        color: #ff4a1c;
        margin-bottom: 15px;
    }
    /* Images */
    .operationProcess-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease-in-out;
    }

    /* Images */
    .operationProcess-card img2 {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease-in-out;
    }

    .operationProcess-card:hover img {
        transform: scale(1.1);
    }

    .operationProcess-card:hover img2 {
        transform: scale(1.05);
    }

/* Card Content */
.operationProcess-content, .operationProcess-sections {
    padding: 15px;
    margin-top: -20px;
}

    .operationProcess-content h2, .operationProcess-sections h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
    }

    .operationProcess-content h3, .operationProcess-sections h3 {
        font-size: 1.8rem;
        color: #ff4a1c;
        margin-top: 15px;
    }

    .operationProcess-content p, .operationProcess-sections p {
        font-size: 1.3rem;
        color: #ddd;
        line-height: 1.7;
        margin-top: 40px;
        margin-bottom: 20px;
    }

/* Center UL and Ensure Items Fit */
.op-list {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* Ensure List Items are Fully Visible */
    .op-list li {
        font-size: 1.3rem;
        color: #ddd;
        background: #1c1c1c;
        padding: 15px 20px;
        margin: 10px auto; /* Ensures spacing */
        border-radius: 6px;
        border-left: 4px solid #ff4a1c;
        transition: transform 0.2s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60px; /* Prevents cut-off */
        overflow: hidden; /* Ensures no text spills out */
        width: 100%; /* Ensures consistent width */
    }

        /* Hover Effect */
        .op-list li:hover {
            transform: translateX(8px);
            background: #252525;
        }

        /* Icons in Lists */
        .op-list li i {
            margin-right: 10px;
            color: #ff4a1c;
            font-size: 1.5rem;
        }

.operationProcess h4 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #ff4a1c;
    text-transform: uppercase;
    margin-top: -160px
}

.operationProcess-table {
    width: 100%;
    border-collapse: collapse;
    background: #222; /* Dark background for better readability */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    margin: 60px auto;
    text-align: center;
    margin-bottom: 0;
}

    .operationProcess-table thead {
        background: #ff4a1c;
        color: white;
    }

    .operationProcess-table th,
    .operationProcess-table td {
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

    .operationProcess-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    .operationProcess-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
        transition: background 0.3s ease-in-out;
    }

    /* Heat Treatment Table */
    .operationProcess-table Heat Treatment {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        background: #222; /* Dark background */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    }

    /* Table Headers */
    .operationProcess-table thead h {
        background: #ff4a1c;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .operationProcess-table th h {
        padding: 18px 20px;
        text-align: left;
        font-size: 1.3rem;
    }

    /* Table Cells */
    .operationProcess-table td h {
        padding: 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
        color: white;
    }

    /* Alternating Row Colors */
    .operationProcess-table tbody tr:nth-child(even) h {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hover Effect */
    .operationProcess-table tbody tr:hover h {
        background: rgba(255, 74, 28, 0.2);
        transition: background 0.3s ease-in-out;
    }

    /* Icons in Table */
    .operationProcess-table td i h {
        margin-right: 12px;
        color: #ff4a1c;
        font-size: 1.4rem;
        vertical-align: middle;
    }

/* Fettling Process Container */
.fettling-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: auto;
}

/* Individual Cards */
.fettling-card {
    display: flex;
    align-items: flex-start;
    background: #1c1c1c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    border-left: 6px solid #ff4a1c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    .fettling-card:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 18px rgba(255, 85, 20, 0.5);
    }

.fettling-card2 {
    display: flex;
    align-items: flex-start;
    background: #1c1c1c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 85, 20, 0.3);
    border-left: 6px solid #ff4a1c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    align-items: center;
}

    .fettling-card2:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 18px rgba(255, 85, 20, 0.5);
    }

/* Title Section (Ensuring Same Width) */
.fettling-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4a1c;
    width: 290px; /* Ensuring the title and text start at the same position */
    text-align: left;
    padding-right: 20px;
    border-right: 4px solid #ff4a1c;
    flex-shrink: 0;
}

/* List Styling */
.fettling-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .fettling-list li {
        font-size: 1.2rem;
        color: #ddd;
        display: flex;
        align-items: center;
        gap: 20px; /* Keeps spacing between icon and text consistent */
        margin-bottom: 8px;
        padding-left: 25px; /* Added more left padding for better alignment */
        text-align: left; /* Ensure text is left-aligned */
    }

    /* Icon Styling */
    .fettling-list i {
        color: #ff4a1c;
        font-size: 1.5rem;
        width: 25px; /* Ensures all icons have the same width */
        text-align: center;
    }

    /* Special Alignment Fix for "Cooled uniformly" */
    .fettling-list .move-right {
        padding-left: 45px; /* Moves text to the right for equal width */
    }

    .fettling-list .small-icon i {
        font-size: 1.2rem; 
        width: 25px; 
    }

.process-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 0;
}

    .process-wrapper.reverse {
        flex-direction: row-reverse;
    }

.animated-image {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    .animated-image.visible {
        opacity: 1;
        transform: translateY(0);
    }

.process-details {
    max-width: 600px;
}

.op-list {
    list-style: none;
    padding: 0;
}

    .op-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .op-list i {
        color: #ff4a1c;
        font-size: 20px;
    }

/* Metallurgy Section Container */
.metallurgy-container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 50px;*/
    text-align: center;
}

    /* Section Headings */
    .metallurgy-container h1 {
        text-align: center;
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /*margin-top: 150px;*/
    }

    .metallurgy-container h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /*margin-top: -60px;*/
    }

/* Intro Container - Controls Layout */
.metallurgy-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    text-align: left;
}

/* Centered Paragraphs Above Image */
.metallurgy-text {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    text-align: center;
}

    .metallurgy-text p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
    }

/* Image on Right */
.animated-image {
    width: 1200px;
    height: 1200px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    /* Image Fade-in */
    .animated-image.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Key Functions Table */
.metallurgy-table {
    width: 100%; /* Ensures it fits within its container */
    max-width: 1400px; /* Prevents it from being too wide on large screens */
    border-collapse: collapse;
    background: #222; /* Dark background for readability */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    margin: 40px auto;
    text-align: left; /* Ensures text aligns properly */
    margin-bottom: 0px;
}

    /* Table Header */
    .metallurgy-table thead {
        background: #ff4a1c;
        color: white;
    }

    /* Table Cells */
    .metallurgy-table th,
    .metallurgy-table td {
        padding: 20px 25px; /* More space for readability */
        font-size: 1.1rem; /* Increased font size */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        text-align: left;
        vertical-align: middle; /* Ensures text and icons align properly */
    }

        /* Icon & Text Alignment */
        .metallurgy-table td i {
            width: 50px; /* Consistent width for icons */
            text-align: center;
            color: #ff4a1c;
            font-size: 1.6rem; /* Slightly larger for better visibility */
            display: inline-block;
        }

        .metallurgy-table td strong {
            margin-left: 15px; /* More space between icon and text */
            display: inline-block;
        }

    /* Alternating Row Colors */
    .metallurgy-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    /* Hover Effect */
    .metallurgy-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
        transition: background 0.3s ease-in-out;
    }

/* List to the Right of Image */
.metallurgy-sectors {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
}

    /* List Items */
    .metallurgy-sectors li {
        font-size: 1.3rem;
        color: #ddd;
        background: #1c1c1c;
        padding: 12px 18px;
        margin: 8px 0;
        border-radius: 6px;
        border-left: 4px solid #ff4a1c;
        transition: transform 0.2s ease-in-out;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        /* List Icons */
        .metallurgy-sectors li i {
            color: #ff4a1c;
            font-size: 1.5rem;
            width: 30px; /* Ensures icons have same horizontal space */
            min-width: 30px; /* Prevent shrinking */
            text-align: center;
        }

        /* Hover Effect */
        .metallurgy-sectors li:hover {
            transform: translateX(8px);
            background: #252525;
        }

/* Our Products Section */
.our-products, .key-functions {
    text-align: center;
    padding-top: 7%;
}

/* Ensure Image & List Stay Side-by-Side */
.products-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: nowrap; /* Prevent wrapping */
    margin-top: 30px;
}

/* Ensure List Takes Up Equal Space */
.products-list-container {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Ensure Image Container is Properly Sized */
.products-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Product List - Two Columns */
.products-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two-column layout */
    gap: 12px 20px;
    max-width: 100%;
    text-align: left;
}

    /* List Items */
    .products-list li {
        font-size: 1.3rem;
        color: #ddd;
        background: #1c1c1c;
        padding: 12px 18px;
        border-radius: 6px;
        border-left: 4px solid #ff4a1c;
        transition: transform 0.2s ease-in-out;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        /* Icon Styling */
        .products-list li i {
            color: #ff4a1c;
            font-size: 1.5rem;
            width: 25px;
            text-align: center;
        }

        /* Hover Effects */
        .products-list li:hover {
            transform: translateX(8px);
            background: #252525;
        }

/* Image on Right */
.animated-image {
    width: 100%;
    max-width: 600px; /* Adjust for proper size */
    height: 480px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    /* Image Fade-in */
    .animated-image.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Heat Treatment Section */
.heat-treatment {
    text-align: center;
    padding-top: 200px;
}

/* Container */
.heat-treatment-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

    /* Section Heading */
    .heat-treatment-container h1 {
        color: #ff4a1c;
        text-transform: uppercase;
        font-size: 2.8rem;
        margin-bottom: 30px;
        /*margin-top: 150px;*/
    }

    .heat-treatment-container h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        margin-top: 40px;
    }

/* Overview Section */
.heat-treatment-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.heat-treatment-text {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    text-align: center;
}

    .heat-treatment-text p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
        margin-bottom: -40px;
    }

.heat-treatment-image {
    flex: 1;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    .heat-treatment-image.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Heat Treatment Grid */
.heat-treatment-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.heat-card {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ff4a1c;
    box-shadow: 0 4px 10px rgba(255, 85, 20, 0.3);
    height: 250px;
}

    .heat-card i {
        font-size: 4rem;
        color: #ff4a1c;
        margin-bottom: 10px;
    }

    .heat-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(255, 85, 20, 0.5);
    }

    /* Alternating Row Colors */
    .metallurgy-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    /* Hover Effect */
    .metallurgy-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
        transition: background 0.3s ease-in-out;
    }

/* Table Styling */
.heat-treatment-table {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    border-collapse: collapse;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 85, 20, 0.2);
}

    .heat-treatment-table thead {
        background: #ff4a1c;
        color: white;
    }

    .heat-treatment-table th, .heat-treatment-table td {
        padding: 20px 25px; /* More space for readability */
        font-size: 1.1rem; /* Increased font size */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        text-align: left;
        vertical-align: middle; /* Ensures text and icons align properly */
    }

        .heat-treatment-table td i {
            width: 50px; /* Consistent width for icons */
            text-align: center;
            color: #ff4a1c;
            font-size: 1.6rem; /* Slightly larger for better visibility */
            display: inline-block;
        }

        .heat-treatment-table td strong {
            margin-left: 15px; /* More space between icon and text */
            display: inline-block;
        }

    .heat-treatment-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    .heat-treatment-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
    }

/* Applications Section */
.heat-applications {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Applications Section */
.heat-applications {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the whole section */
    gap: 50px;
    flex-wrap: wrap; /* Allows responsiveness */
}

/* List Container */
.heat-applications-list {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

    /* List Styling */
    .heat-applications-list ul {
        list-style: none;
        padding: 0;
    }

    /* List Items */
    .heat-applications-list li {
        font-size: 1.3rem;
        color: #ddd;
        background: #1c1c1c;
        padding: 12px 18px;
        margin: 8px 0;
        border-radius: 6px;
        border-left: 4px solid #ff4a1c;
        display: flex;
        align-items: center;
        gap: 15px; /* Ensures consistent spacing */
        transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
    }

        /* Icon Styling */
        .heat-applications-list li i {
            color: #ff4a1c;
            font-size: 1.5rem;
            width: 40px; /* Makes sure all icons are aligned */
            text-align: center;
        }

        /* Hover Effect */
        .heat-applications-list li:hover {
            transform: translateX(8px);
            background: #252525;
        }

/* Image Container */
.heat-applications-image {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Image Styling */
.heat-image {
    max-width: 850px;
    height: 350px;
    width: 100%;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    /* Animation: Fade-in Effect */
    .heat-image.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Heat Treatment Section */
.pattern-shop {
    text-align: center;
    padding: 60px 25px;
    padding-bottom: unset;
    padding-top: 200px;
}

/* Pattern Shop Section Layout */
.pattern-shop-section {
    background-color: #121212;
    color: #ddd;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

    /* Section Title */
    .pattern-shop-section h1 {
        /* padding-top: 150px;  ensures it sits below the fixed header */
        font-size: 2.8rem;
        margin-bottom: 20px;
        color: #ff4a1c;
        text-transform: uppercase;
    }

    /* Subheadings */
    .pattern-shop-section h2 {
        font-size: 2.2rem;
        color: #ff4a1c;
        text-transform: uppercase;
        margin-top: 100px;
        margin-bottom: 30px;
        margin-top: 40px;
    }

    /* Material Headings */
    .pattern-shop-section h3 {
        font-size: 1.6rem;
        color: #ff4a1c;
        margin-top: 60px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    /* Paragraph Text */
    .pattern-shop-section p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
        margin-bottom: 50px;
    }

    /* Lists */
    .pattern-shop-section ul {
        list-style: none;
        padding-left: 0;
        max-width: 1000px;
        margin: 0 auto 30px;
    }

    .pattern-shop-section li {
        background: #1c1c1c;
        border-left: 4px solid #ff4a1c;
        padding: 15px 20px;
        border-radius: 6px;
        margin-bottom: 12px;
        font-size: 1.2rem;
        color: #ccc;
        text-align: left;
        transition: background 0.3s ease;
    }

        .pattern-shop-section li:hover {
            background: #252525;
        }

/* Material Advantages List */
.material-advantages {
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto 40px;
}

    .material-advantages li {
        background: #1c1c1c;
        color: #ccc;
        border-left: 4px solid #ff4a1c;
        padding: 15px 20px;
        margin: 10px 0;
        border-radius: 6px;
        font-size: 1.2rem;
        transition: background 0.3s ease;
    }

        .material-advantages li:hover {
            background: #252525;
        }

/* Add subtle animation when scrolling */
.pattern-shop-section .animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

    .pattern-shop-section .animated.visible {
        opacity: 1;
        transform: translateY(0);
    }

.pattern-gallery-animated {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .pattern-gallery-animated {
        gap: unset;
    }    
}

.pattern-gallery-img {
    width: 33%;
    /*height: 400px; 
    object-fit: fill; */
    border-radius: 10px;
    opacity: 0;
    animation: fadeInSlide 1s ease forwards;
}

.pattern-single-img {
    text-align: center;
    margin: 30px 0;
}

.pattern-gallery-img.show {
    opacity: 1;
}

    .pattern-single-img img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: block;
    }

.patternShop-table {
    width: 100%;
    border-collapse: collapse;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    margin: 60px auto;
    text-align: left; /* Align text left for clean layout */
    margin-bottom: 0px;
}

    .patternShop-table thead {
        background: #ff4a1c;
        color: white;
    }

    .patternShop-table th,
    .patternShop-table td {
        padding: 15px 90px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        vertical-align: middle;
    }

    /* Row striping */
    .patternShop-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    .patternShop-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
        transition: background 0.3s ease-in-out;
    }

    /* Icon alignment fix */
    .patternShop-table td i {
        display: inline-block;
        width: 30px; /* Consistent width */
        min-width: 30px;
        text-align: center;
        margin-right: 15px;
        font-size: 1.3rem;
        color: #ff4a1c;
        vertical-align: middle;
    }

.casting-showcase-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.showcase-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #ff4a1c;
    text-transform: uppercase;
    margin-top: -20px;
}

#three-canvas2 {
    width: 980px;
    height: 1500px; /* Increased container height only */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

    #three-canvas2 canvas {
        width: 100% !important;
        height: 100% !important;
        display: flex;
    }

.footerPattern {
    margin: 0;
    padding: 20px;
    width: 100%;
    text-align: right;
}

.operationProcess p, .operationProcess-sections p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #ddd;
    margin-bottom: 50px;
}

/* EXPORTS PAGE CUSTOM STYLING */
.exports-section {
    padding-top: 200px;
    text-align: center;
}

.exports-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exports-container h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #ff4a1c;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 30px;
}

    .exports-container h2 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        color: #ff4a1c;
    }

    .exports-container p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
        margin-bottom: 50px;
    }

        .metallurgy-table td strong {
            margin-left: 15px; /* More space between icon and text */
            display: inline-block;
        }

.exports-section table {
    width: 50%;
    border-collapse: collapse;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    margin: 60px auto;
    text-align: left;
}

.exports-section thead {
    background: #ff4a1c;
    color: white;
}

.exports-section th,
.exports-section td {
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    vertical-align: middle;
}

    .exports-section td i {
        width: 50px; /* Consistent width for icons */
        text-align: center;
        color: #ff4a1c;
        font-size: 1.6rem; /* Slightly larger for better visibility */
        display: inline-block;
    }

    .exports-section td strong {
        margin-left: 15px; /* More space between icon and text */
        display: inline-block;
    }

.exports-section table tbody tr:nth-child(even) {
    background: rgba(255, 85, 20, 0.1);
}

.exports-section table tbody tr:hover {
    background: rgba(255, 85, 20, 0.2);
    transition: background 0.3s ease-in-out;
}

    .exports-section .exports-map {
        margin-top: 30px;
        text-align: center;
    }

        .exports-section .exports-map img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

.carousel-endeco-table {
    width: 100%;
    border-collapse: collapse;
    background: #222; /* Dark background for better readability */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 25px rgba(255, 85, 20, 0.15);
    margin: 60px auto;
    text-align: center;
    table-layout: fixed; /* Keeps columns at equal width */
}

    .carousel-endeco-table thead {
        background: #ff4a1c;
        color: white;
    }

    .carousel-endeco-table th,
    .carousel-endeco-table td {
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        width: 50%; /* Forces each column to be half the table's width */
        vertical-align: middle;
    }

    .carousel-endeco-table tbody tr:nth-child(even) {
        background: rgba(255, 85, 20, 0.1);
    }

    .carousel-endeco-table tbody tr:hover {
        background: rgba(255, 85, 20, 0.2);
        transition: background 0.3s ease-in-out;
    }

/* =====================================
       2) BENEFITS & FEATURES LIST
       ===================================== */

.benefits-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left; /* So text flows left-to-right next to icon */
    /* margin-bottom: 80px; removed for spacing*/
}

/* Each benefit row with check icon */
.benefit-item {
    font-size: 1.3rem;
    color: #ddd;
    background: #1c1c1c;
    padding: 20px 18px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #ff4a1c;
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .benefit-item:hover {
        transform: translateX(4px);
    }

    /* Make sure the icon is also sized nicely */
    .benefit-item i.fa-check-circle {
        color: #ff4a1c;
        font-size: 1.5rem;
        width: 30px; /* Ensures icons have same horizontal space */
        min-width: 30px; /* Prevent shrinking */
        text-align: center;
    }

/* =====================================
       3) CAROUSEL SECTION STYLES
       ===================================== */
.endeco-carousel {
    padding-top: 200px;
    text-align: center;
}

    .endeco-carousel h1 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        margin-top: 0px; /* aligns heading with other pages that offset from header */
    }

    .endeco-carousel h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        color: #ff4a1c;
        text-transform: uppercase;
    }

    .endeco-carousel p {
        font-size: 1.3rem;
        line-height: 1.9;
        color: #ddd;
        margin: 0 auto 50px;
        max-width: 900px; /* keep text nicely contained */
    }

.carousel-endeco-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    background: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 85, 20, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    margin-bottom: 80px;
}

    .carousel-endeco-image.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/*Machine Shop Styles*/
.machineShop {
    padding-top: 200px;
    text-align: center;
    background: #121212;
}

.machineShop-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.machineShop h1 {
    font-size: 2.8rem;
    color: #ff4a1c;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.machineShop p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.machineShop-table {
    max-width: 1200px;
    margin: 0 auto 60px;
    border-collapse: collapse;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(255, 85, 20, 0.15);
    margin-bottom: 50px;
}

    .machineShop-table thead {
        background: #ff4a1c;
    }

    .machineShop-table th {
        padding: 20px;
        color: white;
        font-size: 1.3rem;
        text-align: center;
    }

    .machineShop-table td {
        padding: 18px 24px;
        font-size: 1rem;
        color: white;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        vertical-align: middle;
        width: 50%;
        border-right: 1px solid rgba(255, 85, 20, 0.2);
    }

        .machineShop-table td:last-child {
            border-right: none;
        }

        .machineShop-table td i {
            color: #ff4a1c;
            margin-right: 12px;
            font-size: 1.3rem;
        }

    .machineShop-table tbody tr:nth-child(odd) {
        background-color: #1e1e1e;
    }

    .machineShop-table tbody tr:nth-child(even) {
        background-color: rgba(255, 85, 20, 0.05);
    }

    .machineShop-table tbody tr:hover {
        background-color: rgba(255, 85, 20, 0.15);
        transition: background 0.3s ease-in-out;
    }

.contact {
    padding-top: 200px;
    text-align: center;
    background: #121212;
    color: #fff;
}

    .contact h1 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        color: #ff4a1c;
        text-transform: uppercase;
        /* margin-top: -60px; */
    }

    .contact h2 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        color: #ff4a1c;
    }

    .contact p {
        font-size: 1.3rem;
        margin-bottom: 40px;
        color: #ddd;
    }

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    width: 23%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #292929;
    box-shadow: 0 4px 10px rgba(255, 85, 20, 0.3);
    transition: transform 0.3s ease;
}

    .contact-card i {
        font-size: 2rem;
        color: #ff4a1c;
        margin-bottom: 10px;
    }

    .contact-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(255, 85, 20, 0.5);
    }

    /* Fixing business hours spacing */
    .contact-card.business-hours {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 25px;
    }

.business-hours p {
    margin: 6px 0;
}

/* Contact Card - Email Styling */
.contact-card p {
    font-size: 1.2rem;
    color: white;
    margin: 5px 0;
}

/* Email Styling */
.contact-card a {
    color: white; /* Same as other text */
    text-decoration: none;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

    /* Hover Effect */
    .contact-card a:hover {
        text-decoration: underline;
        color: #ff4a1c;
    }


/* Map */
.contact-map {
    margin-top: 50px;
}

    .contact-map iframe {
        width: 100%;
        max-width: 100%;
        height: 450px;
        border-radius: 8px;
        border: none;
    }

/* Google Map */
.contact-map {
    margin-top: 50px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {    
    .introduction h2, .certifications h2, .benefitsOfOurProducts h2, .about-us h2, .qr-code h2, .history h2, .vision-mission h2, .core-values h2, .manufacturing-capacity h2, .legacy h2, .foundry-expansion h2, .manufacturing h2, .contact h2, .endeco-carousel h1, .metallurgy-container h1, .metallurgy-container h2, .operationProcess h1, .heat-treatment-container h1, .heat-treatment-container h2, .machineShop h1, .exports-container h1, .contact h1, .endeco-carousel h1, .metallurgy-container h1, .heat-treatment-container h1, .exports-container h1, .history h3, .operationProcess h2, .exports-container h2, .pattern-shop-section h1, .pattern-shop-section h2, .operationProcess-sections h1, .operationProcess-sections h2 {
        font-size: 2.2rem;
        margin: 10% 0;
    }

    .introduction h2 {
        margin-top: unset;
    }

    .pattern-shop{
        /*padding-top: unset;*/
        padding-left: 20px;
        padding-right: 20px;
    }

    h2.fade-in visible {
        font-size: 2.2rem;
        margin: 10% 0;
    }

    .exports-section table{
        width: 95%;
    }

}

@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

        .nav-links li {
            width: 100%;
            text-align: center;
        }
}
@media (max-width: 768px) {
    .header-container {
        padding: 15px 30px;
    }

    .navbar ul {
        gap: 15px;
    }

    .cert {
        margin-bottom: 5%;
    }

    .hero {
        height: 80vh;
    }

    .hero-content {
        font-size: 20px;
    }

    .introduction {
        padding: 10% 5%;
    }

    .cert-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .about-image {
        flex-direction: column;
        gap: 15px;
    }

        .about-image img {
            width: 90%;
            max-height: none;
        }

    @media (max-width: 1200px) {
        .legacy-image {
            width: 95%; /* Slightly wider for medium screens */
            max-height: 500px;
        }
    }

    
        .footer {
            padding: 20px;
        }

        @media (max-width: 1024px) {
            .animated-list {
                flex-wrap: wrap;
                justify-content: center;
            }

            .list-item {
                width: 90%;
            }
        }

        @media (max-width: 768px) {
            .animated-list {
                flex-direction: column;
                align-items: center;
            }

            .list-item {
                width: 100%;
                max-width: 400px;
            }
        }

        /* Responsive Table */
        @media screen and (max-width: 768px) {
            .values-table th,
            .values-table td {
                font-size: 1rem;
                padding: 14px;
            }

            .core-values h2 {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 768px) {
            .operationProcess-container {
                padding: 0 10px;
            }

            .operationProcess-card {
                width: 100%;
                margin-bottom: 7%;
            }

            .operationProcess-table {
                width: 95%;
            }

            .op-list li {
                width: 95%;
            }

            @media (max-width: 1024px) {
                .operationProcess-grid {
                    flex-wrap: wrap;
                }

                @media (max-width: 1024px) {
                    .contact-card {
                        width: 45%; /* Two per row on medium screens */
                    }
                }

                @media (max-width: 768px) {
                    .contact-card {
                        width: 100%; /* Stack cards on small screens */
                        margin-bottom: 7%;
                    }
                }
            }

            /* Responsive Design */
            @media (max-width: 768px) {
                .heat-card {
                    height: unset;
                }
                
                .fettling-card {
                    flex-direction: column;
                    text-align: left;
                    padding: 15px;
                    margin-bottom: 7%;
                }

                .fettling-title {
                    border-right: none;
                    border-bottom: 4px solid #ff4a1c;
                    padding-bottom: 10px;
                    margin-bottom: 10px;
                    width: 100%;
                }

                .fettling-list .move-right {
                    padding-left: 20px; /* Adjusting for smaller screens */
                }
            }

            @media (max-width: 1024px) {
                .metallurgy-intro {
                    flex-direction: column;
                    align-items: center;
                    text-align: center;
                }

                .animated-image {
                    max-width: 100%;
                }

                .metallurgy-sectors {
                    text-align: center;
                    max-width: 100%;
                }

                @media (max-width: 768px) {
                    .products-grid {
                        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Single column on small screens */
                    }

                        .products-grid li {
                            font-size: 1.2rem;
                            padding: 18px;
                        }
                }

                @media (max-width: 1024px) {
                    .metallurgy-table {
                        max-width: 95%; /* Adjusts for smaller screens */
                    }

                        .metallurgy-table th,
                        .metallurgy-table td {
                            padding: 15px; /* Slightly less padding on small screens */
                            font-size: 1.2rem;
                        }
                }

                @media (max-width: 1024px) {
                    .products-intro {
                        flex-direction: column;
                        align-items: center;
                        text-align: center;
                    }

                    .products-list {
                        grid-template-columns: repeat(1, 1fr); /* Switch to single column on smaller screens */
                    }

                    .products-image-container {
                        justify-content: center;
                    }
                }

                @media (max-width: 768px) {
                    .heat-applications {
                        flex-direction: column; /* Stack list & image on small screens */
                        text-align: center;
                    }

                    .heat-applications-list {
                        max-width: 100%;
                    }

                    .heat-applications-image {
                        justify-content: center;
                    }
                }

                @media (max-width: 768px) {
                   /* .pattern-shop-section {
                        padding: 120px 20px;
                    }*/

                        .pattern-shop-section h3 {
                            font-size: 1.5rem;
                        }

                    @keyframes fadeInSlide {
                        from {
                            opacity: 0;
                            transform: translateY(40px);
                        }

                        to {
                            opacity: 1;
                            transform: translateY(0);
                        }
                    }

                    .material-advantages li {
                        font-size: 1rem;
                    }
                }

                @media (max-width: 1024px) {
                    .cert-container {
                        flex-wrap: wrap;
                        justify-content: center;
                    }

                    .cert {
                        flex: 0 1 calc(33.33% - 20px);
                    }
                }

                @media (max-width: 768px) {
                    .cert-container {
                        flex-direction: column;
                    }

                    .cert {
                        width: 100%;
                        max-width: 400px;
                    }
                
                    .legacy-image {
                        width: 100%; /* Full width for mobile */
                        max-height: 400px;
                    }

                /* Pattern Shop Mobile Adjustments */

                .pattern-gallery-img {
                    height: unset;
                }

                .patternShop-table {
                    display: flex;
                    flex-direction: column; /* Stack rows vertically for mobile */
                }
                
                .patternShop-table thead {
                    display: flex;
                    flex-direction: column; /* Ensure header adapts to flex layout */
                }
                
                .patternShop-table tbody {
                    display: flex;
                    flex-direction: column; /* Stack rows vertically */
                }
                
                .patternShop-table tr {
                    display: flex;
                    flex-direction: row; /* Keep columns side-by-side */
                }

                .patternShop-table th,
                .patternShop-table td {
                    flex: 1; /* Make columns flexible */
                    padding: 15px; /* Adjust padding for smaller screens */
                    text-align: left; /* Align text for readability */
                }

                .patternShop-table td {
                    margin: auto;
                    border-bottom: unset;
                }
/* Heat Treat Mobile Adjustments */

                .heat-treatment-table {
                    display: flex;
                    flex-direction: column; /* Stack rows vertically for mobile */
                }
                
                .heat-treatment thead {
                    display: flex;
                    flex-direction: column; /* Ensure header adapts to flex layout */
                }
                
                .heat-treatment tbody {
                    display: flex;
                    flex-direction: column; /* Stack rows vertically */
                }
                
                .heat-treatment tr {
                    display: flex;
                    flex-direction: row; /* Keep columns side-by-side */
                }

                .heat-treatment th,
                .heat-treatment td {
                    flex: 1; /* Make columns flexible */
                    padding: 15px; /* Adjust padding for smaller screens */
                    text-align: left; /* Align text for readability */
                }

                .heat-treatment td {
                    margin: auto;
                    border-bottom: unset;
                }


                .three-canvas2 {
                    width: 100% !important;
                    height:unset !important;
                }

                /* Metallurgy Page */
                .metallurgy-sectors {
                    width: 90%;
                }

                /*.metallurgy-container{
                    padding: 10% 0;
                    padding-bottom: unset;
                }*/
                }




                /* MOBILE MENU */
                @media screen and (max-width: 786px) {
                    .hamburger {
                        display: block;
                        background: none;
                    }

                    .nav-links {
                        position: absolute;
                        /*top: 100%;*/
                        left: 0;
                        width: 100%;
                        flex-direction: column;
                        background-color: #464545;
                        align-items: center;
                        overflow: hidden;
                        max-height: 0;
                        transition: max-height 0.4s ease;
                        z-index: 1000;
                    }

                        .nav-links a:hover {
                            padding-bottom: 2%;
                        }

                        .nav-links.nav-active {
                            max-height: 600px;
                            transition: max-height 0.4s ease;
                            padding-bottom: 2%;
                            padding: 5% 5%;
                        }

                        .nav-links li {
                            width: 100%;
                            text-align: center;
                            padding: 12px 0;
                        }

                    .header-container {
                        flex-direction: column;
                        justify-content: space-between;
                        align-items: center;
                    }

                    .logo {
                        height: 90px;
                    }

                    .company-name {
                        font-size: 20px;
                    }

                    .header {
                        padding: 10px 0;
                    }
                }
            }
        }
    }
