/* CSS VARIABLES & RESET - STRICTLY NO BLUE */
        :root {
            --primary-gold: #f7a800; /* Silograze Logo Gold */
            --dark-charcoal: #121212; /* Deep Corporate Black */
            --slate-gray: #333333; /* Dark Gray for text */
            --light-gray: #f5f5f5; /* Light background */
            --white: #ffffff;
            --border-color: #e0e0e0;
            --transition: all 0.3s ease-in-out;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            color: var(--slate-gray);
            line-height: 1.7;
            overflow-x: hidden;
            background-color: var(--white);
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            color: var(--dark-charcoal);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* HEADER & NAVIGATION */
        header {
            background-color: var(--white);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            position: relative;
            top: 0;
            z-index: 9999;
            width: 100%;
        }

        .top-bar {
            background-color: var(--dark-charcoal);
            color: var(--light-gray);
            font-size: 0.85rem;
            padding: 10px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .top-bar-contact i {
            color: var(--primary-gold);
            margin-right: 8px;
        }
        .top-bar-contact span {
            margin-right: 25px;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
            position: relative;
        }

        .logo img {
            max-height: 55px;
            display: block;
        }

        /* MEGA MENU (DESKTOP) */
        .nav-menu {
            display: flex;
            list-style: none;
            align-items: center;
        }

        .nav-item {
            margin: 0 15px;
        }

        .nav-link {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--dark-charcoal);
            padding: 15px 0;
            display: flex;
            align-items: center;
            transition: var(--transition);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .nav-link i {
            margin-left: 8px;
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .nav-item:hover .nav-link {
            color: var(--primary-gold);
        }

        .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--white);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            display: flex;
            padding: 40px 5%;
            border-top: 4px solid var(--primary-gold);
            z-index: 1000;
        }

        .nav-item:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mega-menu-column {
            flex: 1;
            padding: 0 30px;
            border-right: 1px solid var(--border-color);
        }
        .mega-menu-column:last-child {
            border-right: none;
        }

        .mega-menu-column h3 {
            color: var(--dark-charcoal);
            margin-bottom: 20px;
            font-size: 1.1rem;
            font-weight: 900;
            display: block;
        }

        .mega-menu-column ul {
            list-style: none;
        }

        .mega-menu-column ul li {
            margin-bottom: 12px;
        }

        .mega-menu-column ul li a {
            color: var(--slate-gray);
            font-size: 0.95rem;
            font-weight: 400;
            display: block;
            transition: var(--transition);
            text-transform: none;
            letter-spacing: normal;
        }

        .mega-menu-column ul li a:hover {
            color: var(--primary-gold);
            transform: translateX(5px);
        }

        /* MOBILE MENU TOGGLE */
        .mobile-toggle {
            display: none;
            font-size: 1.8rem;
            color: var(--dark-charcoal);
            cursor: pointer;
        }

        /* HERO SECTION */
        .hero {
            position: relative;
            background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.7)), url('images/SilograzeFactory.png') center/cover;
            color: var(--white);
            padding: 180px 5% 150px;
            text-align: left;
        }

        .hero h1 {
            color: var(--white);
            font-size: 4rem;
            font-weight: 900;
            line-height: 1.1;
            max-width: 800px;
            margin-bottom: 25px;
        }

        .hero p {
            font-size: 1.4rem;
            font-weight: 300;
            max-width: 700px;
            margin-bottom: 40px;
            color: #d1d1d1;
        }

        .hero .tagline {
            color: var(--primary-gold);
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-size: 1rem;
            display: block;
            margin-bottom: 15px;
            border-left: 4px solid var(--primary-gold);
            padding-left: 15px;
        }

        .btn {
            display: inline-block;
            padding: 16px 40px;
            background-color: var(--primary-gold);
            color: var(--dark-charcoal);
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: var(--transition);
            border: 2px solid var(--primary-gold);
        }

        .btn:hover {
            background-color: transparent;
            color: var(--primary-gold);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--white);
            border: 2px solid var(--white);
            margin-left: 15px;
        }

        .btn-outline:hover {
            background-color: var(--white);
            color: var(--dark-charcoal);
        }

        /* CORPORATE STATS SECTION */
        .stats-bar {
            background-color: var(--primary-gold);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            padding: 0 5%;
        }

        .stat-box {
            padding: 40px 20px;
            text-align: center;
            border-right: 1px solid rgba(0,0,0,0.1);
        }
        .stat-box:last-child { border-right: none; }

        .stat-number {
            font-size: 3rem;
            font-weight: 900;
            color: var(--dark-charcoal);
            line-height: 1;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--dark-charcoal);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* SECTIONS GENERAL */
        .section {
            padding: 100px 5%;
        }

        .bg-light {
            background-color: var(--light-gray);
        }

        .section-header {
            margin-bottom: 60px;
            text-align: center;
        }

        .section-header h2 {
            font-size: 2.8rem;
            position: relative;
            display: inline-block;
            padding-bottom: 20px;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--primary-gold);
        }

        .section-header p {
            font-size: 1.1rem;
            max-width: 800px;
            margin: 20px auto 0;
            color: var(--slate-gray);
        }

        /* ABOUT SECTION */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-image img {
            width: 100%;
            height: auto;
            box-shadow: 20px 20px 0px var(--primary-gold);
        }

        .about-content h3 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .about-content p {
            margin-bottom: 20px;
            font-size: 1.05rem;
        }

        .check-list {
            list-style: none;
            margin-top: 30px;
        }

        .check-list li {
            position: relative;
            padding-left: 35px;
            margin-bottom: 15px;
            font-weight: 500;
            color: var(--dark-charcoal);
        }

        .check-list li::before {
            content: '\f00c';
            font-family: 'FontAwesome';
            position: absolute;
            left: 0;
            top: 2px;
            color: var(--primary-gold);
            font-size: 1.2rem;
        }

        /* DIVISIONS (CARDS) */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
        }

        .service-card {
            background-color: var(--white);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            overflow: hidden;
        }

        .service-card:hover {
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
            transform: translateY(-10px);
        }

        .service-img {
            height: 250px;
            width: 100%;
            object-fit: cover;
            border-bottom: 4px solid var(--primary-gold);
        }

        .service-content {
            padding: 40px 30px;
        }

        .service-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .service-content p {
            margin-bottom: 25px;
        }

        .read-more {
            color: var(--dark-charcoal);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
        }

        .read-more i {
            margin-left: 8px;
            color: var(--primary-gold);
            transition: var(--transition);
        }

        .service-card:hover .read-more i {
            transform: translateX(10px);
        }

        /* GLOBAL REACH SECTION */
        .global-reach {
            background-color: var(--dark-charcoal);
            color: var(--white);
            text-align: center;
            padding: 100px 5%;
        }

        .global-reach h2 {
            color: var(--white);
        }

        .map-container {
            margin-top: 50px;
            font-size: 1.2rem;
            font-weight: 300;
            color: #ccc;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .export-tags {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .export-tag {
            background-color: rgba(255,255,255,0.1);
            padding: 15px 30px;
            border: 1px solid rgba(255,255,255,0.2);
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* FOOTER */
        footer {
            background-color: #0a0a0a;
            color: #999;
            padding: 80px 5% 30px;
            font-size: 0.95rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 50px;
            margin-bottom: 60px;
        }

        .footer-logo img {
            max-width: 220px;
            margin-bottom: 25px;
            filter: brightness(0) invert(1);
        }

        .footer-heading {
            font-size: 1.1rem;
            color: var(--white);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: var(--primary-gold);
        }

        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary-gold);
        }

        .contact-list {
            list-style: none;
        }

        .contact-list li {
            display: flex;
            margin-bottom: 20px;
        }

        .contact-list i {
            color: var(--primary-gold);
            font-size: 1.2rem;
            margin-right: 15px;
            margin-top: 5px;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background-color: rgba(255,255,255,0.05);
            color: var(--white);
            border-radius: 50%;
            transition: var(--transition);
            font-size: 1.2rem;
        }

        .social-icons a:hover {
            background-color: var(--primary-gold);
            color: var(--dark-charcoal);
            transform: translateY(-5px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        /* ====================================================
           RESPONSIVE DESIGN & PERFECT MOBILE MEGA MENU FIX
           ==================================================== */
        @media (max-width: 1024px) {
            .stats-bar { grid-template-columns: repeat(2, 1fr); }
            .stat-box { border-bottom: 1px solid rgba(0,0,0,0.1); }
            .stat-box:nth-child(even) { border-right: none; }
            .about-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .hero h1 { font-size: 3rem; }
        }

        @media (max-width: 992px) {
            .top-bar { display: none; }
            
            .mobile-toggle {
                display: block;
            }

            .nav-menu {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--white);
                flex-direction: column;
                align-items: flex-start;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease-in-out;
            }

            .nav-menu.active {
                max-height: 1500px;
            }

            .nav-item {
                width: 100%;
                margin: 0;
                border-bottom: 1px solid var(--border-color);
            }

            .nav-link {
                padding: 20px 5%;
                width: 100%;
                justify-content: space-between;
            }

            /* Mobile Mega Menu Logic - PERFECT HEIGHT TRANSITION */
            .mega-menu {
                position: relative;
                top: 0;
                opacity: 1;
                visibility: visible;
                box-shadow: none;
                flex-direction: column;
                padding: 0;
                border-top: none;
                background-color: var(--light-gray);
                /* Height will now be controlled perfectly by JS inline styles */
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease-out;
            }

            /* REMOVED .dropdown-active .mega-menu CSS max-height override. 
               JS will now handle the exact pixel calculation for smooth closing. */

            .mega-menu-column {
                border-right: none;
                padding: 20px 10%;
                border-bottom: 1px solid #ddd;
            }

            .mega-menu-column h3 {
                font-size: 1rem;
                margin-bottom: 10px;
            }

            .hero { padding: 120px 5% 100px; }
            .hero h1 { font-size: 2.5rem; }
        }

        @media (max-width: 576px) {
            .stats-bar { grid-template-columns: 1fr; }
            .stat-box { border-right: none; }
            .footer-grid { grid-template-columns: 1fr; }
            .hero h1 { font-size: 2rem; }
            .btn-outline { margin-left: 0; margin-top: 15px; display: block; width: fit-content; }
        }

        