/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    /* Corporate Palette */
    --primary-blue: #0A2540;
    /* Deep Blue - Trust & Stability */
    --primary-dark: #051b2e;
    /* Darker shade for hover/active */
    --secondary-gray: #333333;
    /* Charcoal Gray - Text & Headings */
    --accent-orange: #F57C00;
    /* Subtle Orange - Action & Highlight */
    --light-gray: #F4F6F8;
    /* Backgrounds */
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 4px;
    /* Sharper corners for corporate look */
    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d86c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 124, 0, 0.2);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.title-bar {
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin-top: 15px;
    margin-bottom: 20px;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered .center-bar {
    margin: 15px auto 20px;
}

/* =========================================
   2. Header, Top Bar & Navigation
   ========================================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    z-index: 1001;
    /* Above header */
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    color: var(--accent-orange);
    margin-right: 5px;
}

header {
    position: fixed;
    top: 40px;
    /* Below top bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 130px;
}

header.scrolled {
    top: 0;
    /* Snap to top */
    padding: 5px 0;
    height: 100px;
}

/* Hide top bar on scroll via body class or just let header cover it? 
   Actually, if header goes to top:0, it will cover top bar if z-index is higher.
   Header z-index: 1000. Top Bar z-index: 1001. top bar stays on top.
   If we want header to take over, we need JS to hide top bar or change top of header.
   Simpler: Top bar is fixed. Header is fixed at 40px. 
   On scroll, we want header to be compact.
   Let's keep Top Bar simple fixed for now, simplest implementation. */

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: block;
    height: 110px;
    width: 300px;
    transition: all 0.3s;
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

header.scrolled .logo {
    height: 80px;
    width: 220px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
}

/* =========================================
   3. Hero Section (UPDATED)
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    /* Clean gradient overlay on image */
    background: linear-gradient(rgba(10, 37, 64, 0.7), rgba(10, 37, 64, 0.5)), url('images/hero-bg-new.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 170px;
    /* Offset for larger header + top bar (130+40) */
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   4. About Preview Section
   ========================================= */
.about {
    background-color: var(--white);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about .lead {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-highlights {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.highlight-item {
    text-align: center;
}

.highlight-item h3 {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
   Parallax Divider (NEW)
   ========================================= */
.parallax-section {
    background-image: url('images/manufacturing.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
}

.parallax-overlay {
    background-color: rgba(10, 37, 64, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.parallax-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.parallax-section p {
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   5. Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-bottom: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-orange);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =========================================
   6. Why Choose Us
   ========================================= */
.dark-section {
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.white-text h2 {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.feature-item h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =========================================
   7. Industries Grid
   ========================================= */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.industry-card {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.industry-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.industry-card:hover .industry-img {
    transform: scale(1.1);
}

.industry-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.industry-info h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
   8. CTA Section
   ========================================= */
.cta-section {
    background-color: var(--accent-orange);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--accent-orange);
    border: none;
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background-color: #051424;
    /* Very Dark Blue */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-col strong {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--accent-orange);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   Opening Soon - Curtain Reveal Effect
   ========================================= */
.opening-soon-section {
    position: relative;
    height: 400px;
    background-color: var(--primary-dark);
    color: var(--white);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.curtain-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-content {
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease 0.5s;
}

.curtain-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;

    /* Gradient Text Effect */
    background: linear-gradient(to right, #ffffff, #F57C00, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Glow */
    text-shadow: 0 0 30px rgba(245, 124, 0, 0.5);

    animation: shine 3s infinite linear;
    background-size: 200% auto;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.curtain-content p {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.curtain-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #000;
    /* Deep black curtain */
    z-index: 5;
    transition: transform 1.5s ease-in-out;
}

.left-panel {
    left: 0;
    border-right: 2px solid var(--accent-orange);
}

.right-panel {
    right: 0;
    border-left: 2px solid var(--accent-orange);
}

/* Reveal State */
.opening-soon-section.revealed .left-panel {
    transform: translateX(-100%);
}

.opening-soon-section.revealed .right-panel {
    transform: translateX(100%);
}

.opening-soon-section.revealed .curtain-content {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .curtain-content h1 {
        font-size: 2.5rem;
    }

    .opening-soon-section {
        height: 300px;
    }
}

/* =========================================
   10. Floating Widgets & Popup
   ========================================= */
/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Scroll To Top */
#scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-blue);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}

#scroll-top-btn:hover {
    background-color: var(--accent-orange);
    transform: translateY(-5px);
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    animation: slideDown 0.4s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.1);
}

/* =========================================
   11. Responsiveness & Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .bar {
        background-color: var(--primary-blue);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Adjust splash for bigger logo */
    #splash-screen img {
        width: 80%;
        max-width: 300px;
    }

    .logo {
        width: 220px;
        height: 80px;
    }

    .parallax-section {
        background-attachment: scroll;
    }
}

/* Opening Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#splash-screen img {
    width: 300px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}