    
        /* Color Variables based on Nyakaza Ndoda Logo */
        :root {
            --primary-blue: #5A90B5;
            --secondary-blue: #7BA8C7;
            --light-blue: #A3C4D9;
            --accent-blue: #82B1D1;
            --text-dark: #2C3E50;
            --text-light: #6B7280;
            --white: #FFFFFF;
            --light-gray: #F8F9FA;
            --border-color: #E5E7EB;
            --engineering-accent: #4A7C9C;
        }

        /* Base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            scroll-behavior: smooth;
        }

        html, body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }

        body {
            background-color: var(--white);
            color: var(--text-dark);
            position: relative;
        }

        /* Header Section with Engineering Background */
        .header-section {
            position: relative;
            height: 100vh;
            width: 100%;
            overflow: hidden;
        }

        .background-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .background-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -3;
        }

        .background-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(74, 124, 156, 0.3);
            z-index: -2;
        }

        /* Fallback for when image doesn't load - REMOVED GRADIENT */
        .background-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f0f0f0;
            z-index: -4;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* Show fallback only when main image fails to load */
        .background-container:not(.image-loaded)::before {
            opacity: 1;
        }

        /* Alternative path options you can try: */
        /*
        url('./assets/images/backgrnd.png')     - Relative to current page
        url('../assets/images/backgrnd.png')    - Up one directory
        url('assets/images/backgrnd.png')       - No leading slash
        url('images/backgrnd.png')              - If images folder is in same directory
        */

        @keyframes subtleFloat {
            0%, 100% { transform: scale(1) translateY(0px); }
            50% { transform: scale(1.02) translateY(-10px); }
        }

        /* Alternative background images - you can replace the URL above with any of these */
        /*
        Engineering/Construction themed backgrounds you can use:
        
        1. Modern Engineering Office:
        url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80')
        
        2. Construction Site:
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=2076&q=80')
        
        3. Civil Engineering Plans:
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80')
        
        4. Industrial Machinery:
        url('https://images.unsplash.com/photo-1565073030259-cf5ba8ecaf87?ixlib=rb-4.0.3&auto=format&fit=crop&w=2069&q=80')
        
        5. Engineering Tools:
        url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2069&q=80')
        
        To change the background image, simply replace the URL in the background-image property above.
        */

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 50px;
            background-color: rgba(44, 62, 80, 0.95);
            backdrop-filter: blur(10px);
            position: relative;
            z-index: 2;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 28px;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(90, 144, 181, 0.3);
            overflow: hidden;
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 12px;
        }

        /* Fallback text styling when no image is provided */
        .logo-icon.text-logo {
            background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
        }

        .logo-text {
            color: var(--white);
        }

        .logo-text h1 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 2px;
        }

        .logo-text p {
            font-size: 0.9rem;
            opacity: 0.8;
            font-weight: 300;
        }

        .contact-info {
            display: flex;
            gap: 0;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 30px;
            position: relative;
        }

        .contact-item div {
            color: var(--white);
            font-weight: 500;
            font-size: 14px;
        }

        .contact-item div div {
            margin: 3px 0;
        }

        .contact-item i {
            font-size: 18px;
            color: var(--accent-blue);
        }

        .contact-item:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 70%;
            width: 1px;
            background-color: rgba(255, 255, 255, 0.3);
        }

        /* Navigation Bar */
        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 50px;
            background-color: transparent;
            backdrop-filter: blur(10px);
            position: relative;
            z-index: 2;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .menu {
            display: flex;
            gap: 30px;
        }

        .menu > a, .dropdown {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            transition: color 0.3s;
            position: relative;
        }

        .menu > a:hover, .menu > a.active {
            color: var(--primary-blue);
        }

        /* Dropdown Styles */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-btn {
            background: none;
            border: none;
            color: var(--primary-blue);
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s;
        }

        .dropdown-btn:hover {
            color: var(--engineering-accent);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: var(--white);
            min-width: 220px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            z-index: 1000;
            top: 100%;
            left: 0;
            overflow: hidden;
            animation: dropdownSlide 0.3s ease-out;
        }

        @keyframes dropdownSlide {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown-content a {
            color: var(--text-dark);
            padding: 15px 20px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background-color 0.3s;
            font-weight: 500;
            background: var(--white);
        }

        .dropdown-content a:hover {
            background-color: var(--light-gray);
            color: var(--primary-blue);
        }

        .dropdown-content a.active {
            background: linear-gradient(135deg, var(--primary-blue), var(--engineering-accent));
            color: var(--white);
        }

        .dropdown-content a i {
            color: var(--primary-blue);
            width: 20px;
        }

        .dropdown-content a.active i {
            color: var(--white);
        }

        .buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }

        .btn-consultation {
            background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            color: var(--white);
        }

        .btn-evaluation {
            background: transparent;
            border: 2px solid var(--engineering-accent);
            color: var(--engineering-accent);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(74, 124, 156, 0.3);
        }

        /* Hero Content */
        .hero-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 80%;
            max-width: 900px;
            padding: 50px;
            background-color: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(5px);
            border-radius: 10px;
            z-index: 1;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        }

        .hero-content h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            color: var(--white);
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            font-weight: 700;
        }

        .hero-content h2 {
            font-size: 2rem;
            margin-bottom: 25px;
            color: var(--white);
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            font-weight: 400;
        }

        .hero-content p {
            font-size: 1.2rem;
            color: var(--white);
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
            color: var(--white);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            display: block;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Main Content */
        .main-content {
            position: relative;
            z-index: 1;
            background-color: var(--white);
            margin-top: 0;
            padding-top: 0;
        }

        .section {
            padding: 80px 0;
            position: relative;
        }

        .bg-light {
            background-color: var(--light-gray);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-size: 2.8rem;
            color: var(--engineering-accent);
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .underline {
            height: 4px;
            width: 80px;
            background: linear-gradient(90deg, var(--engineering-accent), var(--primary-blue));
            margin: 0 auto;
            border-radius: 2px;
        }

        /* Service Categories Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .service-category {
            background: var(--white);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(74, 124, 156, 0.1);
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .service-category:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(74, 124, 156, 0.2);
            border-color: var(--engineering-accent);
        }

        .service-category::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--engineering-accent), var(--primary-blue));
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .service-category:hover::before {
            transform: translateX(0);
        }

        .service-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            box-shadow: 0 8px 20px rgba(74, 124, 156, 0.3);
        }

        .service-icon i {
            font-size: 2.2rem;
            color: var(--white);
        }

        .service-category h3 {
            font-size: 1.6rem;
            color: var(--text-dark);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .service-category p {
            color: var(--text-light);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .service-features {
            list-style: none;
            margin-bottom: 25px;
        }

        .service-features li {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            color: var(--text-dark);
            font-weight: 500;
        }

        .service-features li i {
            color: var(--engineering-accent);
            margin-right: 12px;
            font-size: 1rem;
        }

        .learn-more-btn {
            background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            color: var(--white);
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 14px;
        }

        .learn-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(74, 124, 156, 0.4);
        }

        /* Supply & Delivery Section */
        .supply-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .supply-card {
            text-align: center;
            padding: 35px 25px;
            border-radius: 15px;
            background: var(--white);
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .supply-card:hover {
            transform: translateY(-8px);
            border-color: var(--engineering-accent);
            box-shadow: 0 15px 30px rgba(74, 124, 156, 0.15);
        }

        .supply-icon {
            font-size: 3.5rem;
            color: var(--engineering-accent);
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }

        .supply-card:hover .supply-icon {
            transform: scale(1.1);
        }

        .supply-card h4 {
            font-size: 1.3rem;
            color: var(--text-dark);
            margin-bottom: 15px;
            font-weight: 600;
        }

        .supply-card p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* Call to Action */
        #cta {
            background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            color: var(--white);
            text-align: center;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        #cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><path d="M20 80h60M80 20v60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
            background-size: 100px 100px;
            animation: engineeringFloat 25s linear infinite;
        }

        @keyframes engineeringFloat {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
            100% { transform: translateY(0px) rotate(360deg); }
        }

        .cta-content {
            position: relative;
            z-index: 2;
        }

        .cta-content h2 {
            font-size: 3rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .cta-content p {
            font-size: 1.3rem;
            margin-bottom: 35px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn-primary, .btn-secondary {
            padding: 18px 35px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background-color: var(--white);
            color: var(--engineering-accent);
            border: 2px solid transparent;
        }

        .btn-secondary {
            background-color: transparent;
            border: 2px solid var(--white);
            color: var(--white);
        }

        .btn-primary:hover, .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, var(--text-dark), #1a252f);
            color: var(--white);
            padding: 60px 0 20px;
            position: relative;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--engineering-accent), var(--primary-blue));
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .footer-logo .logo-icon {
            width: 50px;
            height: 50px;
            font-size: 22px;
        }

        .footer-logo .logo-text h3 {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .footer-logo .logo-text p {
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .footer-content h3 {
            color: var(--accent-blue);
            margin-bottom: 20px;
            font-size: 1.2rem;
            font-weight: 600;
        }
        .footer-links {
            list-style: none;
            padding-left: 0;
        }
        .footer-links ul {
            list-style: none;
        }

        .footer-links ul li {
            list-style: none;
            margin-bottom: 12px;
        }

        .footer-links ul li a {
            color:  #b8c5d1 !important;
            text-decoration: none;
            transition: color 0.3s;
            margin-bottom: 2rem;
        }

        .footer-links ul li a:hover {
            color: var(--accent-blue);
        }
        .footer-links a {
    color: #b8c5d1 !important;
    text-decoration: none;
    transition: color 0.3s ease;
   
}


        .contact-info-footer p {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            color: #9CA3AF;
        }

        .contact-info-footer i {
            color: var(--accent-blue);
            width: 20px;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            text-align: center;
            color: #9CA3AF;
        }

        /* WhatsApp Button */
        .whatsapp-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #25D366, #128C7E);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            z-index: 1000;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .whatsapp-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
        }

        .whatsapp-btn i {
            font-size: 28px;
            color: var(--white);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .contact-info {
                display: none;
            }
            
            .top-bar {
                justify-content: center;
                padding: 15px 20px;
            }
            
            .nav-bar {
                flex-direction: column;
                gap: 20px;
                padding: 15px 20px;
            }
            
            .buttons {
                display: none;
            }
            
            .menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 20px;
                width: 100%;
            }
            
            .dropdown {
                width: 100%;
                text-align: center;
            }
            
            .dropdown-btn {
                width: 100%;
                justify-content: center;
                padding: 12px 20px;
                background: var(--light-gray);
                border-radius: 8px;
                margin-bottom: 10px;
            }
            
            .dropdown-content {
                position: static !important;
                display: none;
                box-shadow: none;
                background: transparent;
                margin-top: 0;
                border-radius: 0;
                min-width: auto;
                width: 100%;
            }
            
            .dropdown-content.mobile-open {
                display: block;
            }
            
            .dropdown-content a {
                background: var(--white);
                margin-bottom: 8px;
                border-radius: 8px;
                border: 2px solid var(--border-color);
                box-shadow: 0 2px 8px rgba(74, 124, 156, 0.1);
                transition: all 0.3s ease;
            }
            
            .dropdown-content a:hover {
                border-color: var(--primary-blue);
                background-color: var(--light-gray);
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(74, 124, 156, 0.15);
            }
            
            .dropdown-content a.active {
                background: linear-gradient(135deg, var(--primary-blue), var(--engineering-accent));
                color: var(--white);
                border-color: var(--primary-blue);
            }
            
            .dropdown-content a.active:hover {
                background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            }
            
            .dropdown-content a.active i {
                color: var(--white);
            }
            
            .hero-content {
                width: 95%;
                padding: 30px 20px;
            }
            
            .hero-content h1 {
                font-size: 2.8rem;
            }
            
            .hero-content h2 {
                font-size: 1.6rem;
            }
            
            .hero-stats {
                gap: 25px;
            }
            
            .stat-number {
                font-size: 2.2rem;
            }
            
            .section {
                padding: 60px 0;
            }
            
            .section-title h2 {
                font-size: 2.2rem;
            }
            
            .cta-content h2 {
                font-size: 2.2rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
            }
        }

        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .loader-content {
            text-align: center;
            color: var(--white);
        }

        .loader-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: var(--white);
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loader h2 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .loader p {
            font-size: 1rem;
            opacity: 0.8;
        }

        /* Multi-image Slideshow Gallery Styles */
#project-gallery {
    background: #f8f9fa;
    padding: 80px 0;
    overflow: hidden;
}

.slideshow-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.slideshow-track {
    display: flex;
    width: calc(100% * 3); /* 9 slides total (6 + 3 duplicates) */
    animation: infiniteSlide 18s linear infinite; /* 3 seconds per slide * 6 slides */
}

.slide {
    flex: 0 0 calc(100% / 9); /* Each slide takes 1/9 of the track width */
    padding: 0 10px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
}

@keyframes infiniteSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3)); /* Move by 1/3 to show next set of 3 */
    }
}

/* Pause animation on hover */
.slideshow-container:hover .slideshow-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    #project-gallery {
        padding: 60px 0;
    }
    
    .slideshow-container {
        margin: 0 20px;
        border-radius: 10px;
    }
    
    .slide {
        padding: 0 5px;
    }
    
    .slide img {
        height: 200px;
        border-radius: 8px;
    }
    
    .slideshow-track {
        animation-duration: 24s; /* Slower on mobile */
    }
}

@media (max-width: 480px) {
    .slide img {
        height: 150px;
        border-radius: 6px;
    }
    
    .slideshow-container {
        margin: 0 15px;
    }
}

/* Smooth performance optimizations */
.slideshow-track {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.slide img {
    will-change: transform;
    backface-visibility: hidden;
}
    

/* Add this CSS to your existing EngineeringUI.css file */

/* Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
}

.service-modal.closing {
    opacity: 0;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.service-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.service-modal.closing .modal-content {
    transform: scale(0.9) translateY(30px);
}

.modal-header {
    background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
    color: var(--white);
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 40px;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.8rem;
    color: var(--engineering-accent);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-section h3 i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.modal-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modal-feature-item {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--engineering-accent);
    transition: all 0.3s ease;
}

.modal-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 124, 156, 0.15);
}

.modal-feature-item h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-feature-item h4 i {
    color: var(--engineering-accent);
    font-size: 1.1rem;
}

.modal-feature-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

.modal-list li i {
    color: var(--engineering-accent);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

.modal-cta {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.modal-cta h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.modal-cta-btn {
    background: linear-gradient(135deg, var(--engineering-accent), var(--primary-blue));
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 124, 156, 0.4);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 25px 30px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-header p {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .modal-section h3 {
        font-size: 1.5rem;
    }
    
    .modal-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-feature-item {
        padding: 20px;
    }
    
    .modal-cta {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 20px 25px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}