/* RESET: This removes default browser borders so our site goes edge-to-edge */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}
/* THE HERO SECTION: Creating the dark industrial background */
.hero-section {
    background-color: #1a1a1a; /* Dark industrial grey */
    color: white;
    height: 100vh; /* Makes this section fill 100% of the screen height */
    display: flex;
    flex-direction: column;
}

/* THE NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between; /* Logo left, Links right */
    align-items: center;
    padding: 20px 50px;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.nav-logo {
    width: 50px;
}

/* THE NEW NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #ff6600; /* Industrial Orange hover */
}

/* Make Contact Us look like a button */
.nav-links .nav-contact-btn {
    border: 2px solid #ff6600;
    padding: 8px 20px;
    border-radius: 4px;
    color: #ff6600;
}

.nav-links .nav-contact-btn:hover {
    background-color: #ff6600;
    color: white;
}

/* THE HERO CONTENT: Centering the main text */
.hero-content {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    
    /* THE NEW FLOATING ANIMATION */
    animation: gentleFloat 6s ease-in-out infinite;
}

/* THE MAGIC WATER FLOATING EFFECT */
@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); } /* Floats up gently by 8 pixels */
    100% { transform: translateY(0px); } /* Drifts back down to the start */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
}

/* THE CTA BUTTON: Making it look clickable and modern */
.cta-button {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #ff6600; /* Changed to Orange */
    color: #111; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease; 
}

.cta-button:hover {
    background-color: #ff8533; /* Slightly lighter orange for hover */
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.6); /* Orange glow */
    transform: translateY(-3px); 
}

/* CONTACT & FOOTER SECTION */
.contact-section {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 20px 20px 20px;
}

/* Flexbox creates the left/right split screen */
.contact-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap; /* Stacks them on top of each other on mobile phones */
}

.contact-form-container, .contact-info-container {
    flex: 1; /* Makes both sides take up exactly 50% of the space */
    min-width: 300px;
}

.contact-form-container h2, .contact-info-container h2 {
    color: #ff6600; /* Changed to Orange */
    margin-bottom: 10px;
}

.contact-info-container p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* THE FORM STYLING */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background-color: #2a2a2a; /* Dark grey inputs */
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

/* Makes the input glow slightly when the user clicks to type */
/* Makes the input glow slightly when the user clicks to type */
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #ff6600; /* Changed to Orange */
}

.submit-button {
    padding: 15px;
    background-color: #ff6600; /* Changed to Orange */
    color: #111;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-button:hover {
    background-color: #ff8533; /* Lighter orange hover */
    transform: translateY(-2px);
}

/* MAP & COPYRIGHT */
/* MAP STYLING */
.map-container {
    height: 250px;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden; /* This keeps the map inside our rounded corners */
    border: 1px solid #444; /* Gives it a clean industrial border */
}

/* Make sure the iframe fills the container perfectly */
.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333; /* A subtle line to separate the copyright */
    color: #666;
    font-size: 0.9rem;
}

/* ABOUT US SECTION */
.about-section {
    padding: 80px 20px;
    background-color: white; /* Clean white background for reading */
    color: #333;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 2; /* Takes up more space than the stats box */
    min-width: 300px;
}

.about-text .section-title {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* The Orange Stat Box */
.about-stats {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.stat-box {
    background-color: #ff6600; /* Your new Orange! */
    color: #111;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.stat-box h3 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ZIG-ZAG INDUSTRIES SECTION */
.industries-zigzag {
    padding: 80px 20px;
    background-color: #1a1a1a;
    overflow: hidden; /* Keeps animations clean */
}

.zigzag-row {
    display: flex;
    align-items: center;
    max-width: 1400px; /* Stretched out even wider */
    margin: 0 auto 80px auto;
    gap: 150px; /* Pushes the image and text much further apart */
}

/* This simple class flips the layout for the alternating rows! */
.zigzag-row.reverse {
    flex-direction: row-reverse;
}

/* THE IMAGES */
.zigzag-image {
    flex: 1;
    height: 280px; /* Shrunk down to make the boxes smaller and sleeker */
    background-color: #333; 
    background-size: cover;
    background-position: center;
}

/* THE DIAGONAL CUTS (The Magic) */
.clip-right {
    /* Slices the bottom-right corner inward */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.clip-left {
    /* Slices the bottom-left corner inward */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

/* THE TEXT & HEADERS */
/* THE TEXT & HEADERS */
.zigzag-text {
    flex: 1;
    padding: 20px;
    text-align: left; /* Forces standard rows to align left */
}

/* This targets the text specifically inside the reversed rows */
.zigzag-row.reverse .zigzag-text {
    text-align: right; /* Forces reversed rows to align right */
}

.zigzag-text h3 {
    color: #ff6600; /* Industrial Orange */
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zigzag-text p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================
   ZIG-ZAG SCROLL ANIMATIONS 
   ========================================== */

/* Keep the row relative so we can layer the text behind the image */
.zigzag-row {
    position: relative;
    z-index: 1;
}

.zigzag-text {
    position: relative;
    z-index: -1; /* Pushes the text layer behind the image */
}

/* 1. Base states for Normal Rows (Image Left, Text Right) */
.zigzag-row .zigzag-image {
    opacity: 0;
    transform: translateX(-100px); /* Starts hidden 100px to the left */
    transition: all 0.8s ease-out;
}

.zigzag-row .zigzag-text {
    opacity: 0;
    transform: translateX(-150px); /* Starts hidden deeper to the left, behind the image */
    transition: all 0.8s ease-out 0.4s; /* The 0.4s delay forces it to wait for the image! */
}

/* 2. Base states for Reverse Rows (Image Right, Text Left) */
.zigzag-row.reverse .zigzag-image {
    transform: translateX(100px); /* Starts hidden 100px to the right */
}

.zigzag-row.reverse .zigzag-text {
    transform: translateX(150px); /* Starts hidden deeper to the right, behind the image */
}

/* 3. The Active State (Triggered by our JavaScript) */
.zigzag-row.active .zigzag-image,
.zigzag-row.active .zigzag-text {
    opacity: 1;
    transform: translateX(0); /* Glides perfectly back into its original position */
}

/* MOBILE RESPONSIVENESS (Fixes it for phones) */
@media (max-width: 768px) {
    .zigzag-row, .zigzag-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .clip-right, .clip-left {
        clip-path: none; /* Removes cuts on tiny phone screens so images fit */
        width: 100%;
    }
}

/* PRODUCTS GRID SECTION */
.products-section {
    padding: 80px 20px;
    background-color: #f4f4f4; /* Light grey background to contrast the dark sections */
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================
   GLOBAL PRODUCT CARDS (Visible by default)
   ========================================== */
.product-card {
    background-color: white;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease; /* Default smooth hover */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.15); 
}

/* ==========================================
   HOMEPAGE SPECIFIC CARD ANIMATIONS 
   (Only applies to the index.html grid)
   ========================================== */
.products-section .product-card {
    opacity: 0;
    transform: translateY(120px);
}

.products-section .product-card.active {
    opacity: 1;
    transform: translateY(0);
}

.products-section .product-card.active:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.15); 
}

/* Homepage Staggered Delays */
.products-section .product-card:nth-child(1) { transition: opacity 0.8s ease-out 0.0s, transform 0.8s ease-out 0.0s, box-shadow 0.3s ease; }
.products-section .product-card:nth-child(2) { transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s, box-shadow 0.3s ease; }
.products-section .product-card:nth-child(3) { transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s, box-shadow 0.3s ease; }
.products-section .product-card:nth-child(4) { transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s, box-shadow 0.3s ease; }
.products-section .product-card:nth-child(5) { transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s, box-shadow 0.3s ease; }
.products-section .product-card:nth-child(6) { transition: opacity 0.8s ease-out 1.0s, transform 0.8s ease-out 1.0s, box-shadow 0.3s ease; }

.product-image {
    height: 200px;
    background-color: #ffffff !important; /* Pure white background */
    background-size: contain !important; /* Forces the entire image to fit inside */
    background-position: center !important;
    background-repeat: no-repeat !important; /* Stops it from multiplying like a tile */
}

.product-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1; /* Pushes the button to the bottom evenly across all cards */
}

/* CARD BUTTONS */
.card-btn {
    padding: 10px;
    background-color: transparent;
    color: #ff6600; /* Industrial Orange */
    border: 2px solid #ff6600;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.card-btn:hover {
    background-color: #ff6600;
    color: white;
}

/* ==========================================
   PRODUCTS PAGE SPECIFIC STYLES 
   ========================================== */
.products-page-body {
    background-color: #f4f4f4;
}

.page-header {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-bottom: 4px solid #ff6600; /* Industrial Orange */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.2rem;
    color: #ccc;
}

.catalog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.catalog-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
}

/* Grids for the individual item cards */
.item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* This perfectly centers all your product boxes! */
}

/* ==========================================
   CATALOG PAGE "SNAP-IN" SCROLL ANIMATION
   ========================================== */
/* The invisible starting state */
.catalog-section .product-card {
    opacity: 0;
    transform: scale(0.92);
    /* Fast exit when scrolling away so they are ready to animate again */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* The Active state (Triggered by Scroll) */
.catalog-section .product-card.active {
    opacity: 1;
    transform: scale(1);
}

/* Slightly slower staggered delays with the mechanical bounce! */
.catalog-section .product-card.active:nth-child(1) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.0s; }
.catalog-section .product-card.active:nth-child(2) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s; }
.catalog-section .product-card.active:nth-child(3) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s; }
.catalog-section .product-card.active:nth-child(4) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s; }
.catalog-section .product-card.active:nth-child(5) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s; }
.catalog-section .product-card.active:nth-child(6) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s; }
.catalog-section .product-card.active:nth-child(7) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s; }
.catalog-section .product-card.active:nth-child(8) { transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s; }

/* Ensures the hover effect stays snappy and doesn't get delayed */
.catalog-section .product-card.active:hover {
    transform: scale(1) translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.15);
    transition: all 0.3s ease 0s; 
}

/* ==========================================
   POP-UP MODAL STYLES 
   ========================================== */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark transparent background */
    z-index: 1000; /* Keeps it on top of everything */
    justify-content: center;
    align-items: center;
}

/* 1. Stretch the entire box even wider */
.modal-box {
    background-color: white;
    width: 95%;
    max-width: 1350px; /* Increased to 1350px for a massive, cinematic feel */
    height: 85vh;
    max-height: 800px;
    border-radius: 8px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* The 'X' Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.close-modal:hover {
    color: #ff6600; /* Turns orange on hover */
}

/* 2. Balance the text side to share more space */
.modal-left {
    flex: 1.2; /* Reduced from 1.5 so the image side gets a larger share of the space */
    padding: 50px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
}

/* 3. The image side naturally grows wider now! */
.modal-right {
    flex: 1; 
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a; 
}

/* 4. Boost the text size slightly for easier reading */
.modal-text-content {
    overflow-y: auto; 
    padding-right: 20px; /* Pushes the scrollbar further away from the text */
    color: #444;
    line-height: 1.8;
    font-size: 1.15rem; /* Slightly larger text */
}

/* Right Side: Image */
.modal-right {
    flex: 1; /* Takes up 50% width */
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a; /* Placeholder dark grey */
}

/* Make it stack nicely on mobile phones */
@media (max-width: 768px) {
    .modal-box {
        flex-direction: column-reverse;
        height: 90vh;
    }
    .modal-left, .modal-right {
        flex: none;
        height: 50%; /* Each takes half the height on mobile */
    }
    .close-modal {
        color: #333;
        text-shadow: none;
    }
}
/* ==========================================
   SCROLL TO TOP BUTTON 
   ========================================== */
#scrollTopBtn {
    display: none; 
    position: fixed; 
    bottom: 40px; 
    right: 40px; 
    z-index: 999; 
    border: none; 
    outline: none; 
    background-color: #ff6600; /* Industrial Orange */
    color: white; 
    cursor: pointer; 
    border-radius: 4px; 
    width: 46px;  /* Reduced exactly 8% from 50px */
    height: 46px; /* Reduced exactly 8% from 50px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #1a1a1a; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4); 
}

/* The ">" facing upwards! */
#scrollTopBtn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    transform: rotate(45deg);
    margin-top: 9px; /* Nudged down perfectly for the new 46px box size */
}

/* Mobile tweak */
@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 41px; /* Reduced by 8% for mobile screens too! */
        height: 41px;
    }
}

/* ==========================================
   NOTIFICATION MODAL STYLES 
   ========================================== */
.notification-box {
    background-color: #ffffff !important; /* Forces the premium white card */
    width: 90%;
    max-width: 450px; 
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-top: 6px solid #ff6600; 
}

.notification-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.notification-box p {
    color: #222222 !important; /* Forces dark text so it doesn't vanish */
    font-size: 1.1rem;
    line-height: 1.6;
}

.close-notification {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
}

.close-notification:hover {
    color: #ff6600;
}
/* ==========================================
   CONTACT SECTION SCROLL ANIMATION
   ========================================== */
.contact-container {
    opacity: 0;
    transform: translateY(100px); 
    /* Removed the 0.8s delay! Now it reacts instantly the exact second you scroll to it. */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Triggered by our JavaScript Observer */
.contact-container.active {
    opacity: 1;
    transform: translateY(0);
}