:root {
            --bg-color: #000428;
            --text-color: #ffffff;
            --accent: #00a6ff;
            --bg-light: #f0f0f0;
            --text-dark: #000000;
        }

        body {
            margin: 0;
            font-family: 'Poppins', sans-serif;
            background-color: #000428; /* Fallback color */
            color: var(--text-color);
            transition: background 0.5s, color 0.5s;
            line-height: 1.6;
        }

        /* Navigation Bar */
        .nav {
            background: linear-gradient(to right, #010130, #1a1a4a);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 50px;
            position: sticky;
            top: 0;
            z-index: 1000; /* Increased z-index for nav */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            position: relative; /* For absolute positioning of the title */
        }

        .nav h1 {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 38px; /* Increased size */
            background: linear-gradient(45deg, var(--accent), #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 3px; /* Wider spacing */
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
        }

        .logo-container .logo {
            height: 50px; /* Slightly larger logo */
            margin-right: 15px;
            border-radius: 50%;
            transition: transform 0.3s ease;
            animation: logo-glow 4s infinite ease-in-out;
        }

        .logo-container .logo:hover {
            transform: scale(1.1);
            animation-play-state: paused;
        }

        .nav ul {
            list-style: none;
            display: flex;
            gap: 30px;
            margin: 0;
            padding: 0;
        }

        .nav li {
            position: relative;
        }

        .nav a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 600;
            transition: color 0.3s ease, transform 0.3s ease;
            display: block;
            padding: 5px 0;
        }

        .nav a:hover {
            color: var(--accent);
            transform: translateY(-2px); /* Slight lift on hover */
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%; /* Position below the parent link */
            left: 0;
            background: #2b2b2b; /* Darker background for dropdown */
            border-radius: 8px;
            padding: 10px 0;
            min-width: 180px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            z-index: 1001; /* Above nav */
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        }

        .dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-content a {
            padding: 10px 20px;
            color: #ccc;
            white-space: nowrap; /* Prevent wrapping */
            transition: background 0.3s ease, color 0.3s ease;
        }

        .dropdown-content a:hover {
            background: var(--accent);
            color: white;
            transform: none; /* Override parent hover transform */
        }

        /* Hero Section */
        .welcome {
            position: relative;
            width: 100%;
            height: 100vh; /* Full viewport height */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            text-align: center;
            color: var(--text-color);
        }

        .welcome-content {
            position: relative;
            z-index: 2; /* Above canvas */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
        }

        .welcome h2 {
            font-size: 72px; /* Larger heading */
            margin-bottom: 20px;
            letter-spacing: 4px;
            text-transform: uppercase;
            font-weight: 700;
            text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
            opacity: 0;
            animation: slide-in-up 1s forwards 0.5s;
        }

        .welcome-text {
            font-size: 22px; /* Larger text */
            margin-bottom: 40px;
            max-width: 800px;
            line-height: 1.5;
            opacity: 0;
            animation: slide-in-up 1s forwards 1s;
        }

        .btn-primary {
            padding: 15px 40px; /* Larger button */
            background-color: transparent;
            border: 2px solid var(--accent);
            color: var(--accent);
            font-weight: bold;
            border-radius: 50px; /* More rounded */
            cursor: pointer;
            transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
            position: relative;
            display: inline-block;
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 1;
            text-decoration: none;
            opacity: 0;
            animation: slide-in-up 1s forwards 1.5s;
        }

        .btn-primary:hover {
            color: white;
            background-color: var(--accent);
            box-shadow: 0 0 25px rgba(0, 166, 255, 0.5);
            transform: translateY(-2px);
        }

        /* 3D Canvas for Three.js */
        #three-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        /* Services Section */
        .services {
            padding: 80px 20px;
            text-align: center;
            background: transparent;
        }

        .services h2 {
            font-size: 48px;
            margin-bottom: 50px;
            color: var(--accent);
            text-transform: uppercase;
        }

        .service-items {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 40px; /* Increased gap */
        }

        .service {
            background: #1f1f1f;
            padding: 40px; /* More padding */
            width: 300px; /* Wider cards */
            border-radius: 20px;
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
        }

        .service:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 35px rgba(255, 255, 255, 0.1);
            background: #2a2a2a;
        }

        .service:hover .service-icon {
            color: #fff;
            text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4);
        }

        .service:hover::after {
            height: 100%;
        }

        .service:hover h3 {
            color: #ffffff;
        }

        .service:hover .service-text {
            color: #eeeeee;
        }

        .service * {
            position: relative;
            z-index: 1;
            color: var(--text-color); /* Ensure text color is consistent */
        }

        .service-icon {
            font-size: 48px;
            color: var(--accent);
            margin-bottom: 20px;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }

        .service h3 {
            font-size: 28px; /* Larger service titles */
            margin-bottom: 15px;
            color: var(--accent);
            transition: color 0.3s ease;
        }

        .service-text {
            font-size: 16px;
            color: #bbb;
            transition: color 0.3s ease;
        }

        /* Logo Showcase */
        .logo-showcasereveal {
            padding: 80px 20px;
            text-align: center;
            background: transparent;
        }

        .logo-showcasereveal h2 {
            font-size: 48px;
            margin-bottom: 50px;
            color: var(--text-color);
            text-transform: uppercase;
        }

        .logo-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo-grid img {
            height: 80px; /* Larger logos */
            max-width: 200px;
            object-fit: contain;
            filter: grayscale(100%) brightness(0.8); /* Desaturate for consistent look */
            transition: filter 0.3s ease, transform 0.3s ease;
        }

        .logo-grid img:hover {
            filter: grayscale(0%) brightness(1); /* Color on hover */
            transform: scale(1.05);
        }

        /* Image Gallery */
        .container {
            display: flex;
            justify-content: center;
            gap: 30px; /* Increased gap */
            flex-wrap: wrap;
            margin: 50px auto;
            max-width: 1200px;
            padding: 0 20px;
        }

        .image-box {
            background: #1f1f1f;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .image-box:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
        }

        .image-box img {
            width: 300px; /* Larger images */
            height: 200px; /* Larger images */
            object-fit: cover;
            border-radius: 10px; /* Inner rounded corners */
            transition: transform 0.3s ease;
        }

        /* Contact Section */
        .contact-form-section {
            background: transparent;
            padding: 80px 20px;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .contact-form-section h2 {
            font-size: 48px;
            margin-bottom: 20px;
            color: var(--accent);
            text-transform: uppercase;
        }

        .contact-intro {
            font-size: 18px;
            margin-bottom: 40px;
            color: #ccc;
            max-width: 700px;
            margin-inline: auto;
        }

        .contact-form {
            max-width: 700px; /* Wider form */
            margin: auto;
            background: rgba(31, 31, 31, 0.6);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            text-align: left;
        }

        .contact-form .form-group {
            margin-bottom: 25px;
        }

        .contact-form label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--accent);
            font-size: 16px;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 15px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid #555;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            box-sizing: border-box;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 10px rgba(0, 166, 255, 0.5);
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 120px;
        }
        
        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: #888;
        }
        
        .btn-submit {
            background: var(--accent);
            border: none;
            padding: 16px 35px;
            color: white;
            border-radius: 50px;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            font-size: 18px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 20px;
            display: inline-block;
        }

        .btn-submit:hover {
            background: #008fdb;
            box-shadow: 0 5px 20px rgba(0, 166, 255, 0.4);
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            background: transparent;
            padding: 50px 20px; /* More padding */
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-content h3 {
            font-size: 28px;
            margin-bottom: 25px;
            color: var(--accent);
        }

        .footer-content p {
            margin-bottom: 15px;
            font-size: 16px;
            color: #bbb;
        }

        .footer-content p i {
            margin-right: 10px;
            color: var(--accent);
        }

        .footer-content p a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-content p a:hover {
            color: var(--accent);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 40px; /* Increased gap */
            margin-top: 20px;
        }

        .social-links a {
            color: var(--accent);
            font-size: 32px; /* Increased size */
            transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
        }

        .social-links a:hover {
            color: #fff;
            transform: scale(1.15);
            text-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
        }

        .footer-bottom {
            color: #888;
            margin-top: 30px;
            font-size: 14px;
        }

        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--accent);
            color: white;
            border: none;
            padding: 12px 18px; /* Larger button */
            border-radius: 50%;
            cursor: pointer;
            font-size: 22px; /* Larger icon */
            display: none; /* Hidden by default, shown with JS */
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(255, 0, 204, 0.4);
            transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        }

        .back-to-top:hover {
            background: #2264ff;
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(47, 120, 255, 0.6);
        }

        @keyframes logo-glow {
            0% {
                box-shadow: 0 0 5px rgba(0, 166, 255, 0.2);
            }
            50% {
                box-shadow: 0 0 20px rgba(0, 166, 255, 0.8);
            }
            100% {
                box-shadow: 0 0 5px rgba(0, 166, 255, 0.2);
            }
        }

        @keyframes slide-in-up {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .nav {
                padding: 15px 30px;
            }
            .nav h1 {
                font-size: 30px;
            }
            .nav ul {
                gap: 20px;
            }
            .welcome h2 {
                font-size: 56px; /* Adjusted size */
            }
            .welcome-text {
                font-size: 20px;
            }
            .services, .logo-showcasereveal, .contact-form-section, .image-gallery {
                padding: 60px 20px;
            }
            .services h2, .logo-showcasereveal h2, .contact-form-section h2 {
                font-size: 40px;
            }
            .service {
                width: 280px;
                padding: 30px;
            }
            .image-box img {
                width: 250px;
                height: 180px;
            }
            .logo-grid img {
                max-width: 300px;
                height: auto;
            }
            .contact-form {
                padding: 30px 20px;
                margin: 0 15px;
            }
            .contact-form-section h2 {
                font-size: 36px;
            }
            .contact-intro {
                font-size: 14px;
            }
            .welcome h2 {
                font-size: 34px;
            }
            .welcome-text {
                font-size: 16px;
            }
            .footer {
                padding: 30px 20px;
            }
            .footer-content h3 {
                font-size: 24px;
            }
            .footer-content p {
                font-size: 15px;
            }
            .toggle-theme, .back-to-top {
                bottom: 20px;
                right: 20px;
                padding: 10px 16px;
                font-size: 20px;
            }
        }

        @media (max-width: 768px) {
            .nav {
                flex-direction: column;
                padding: 15px 20px;
            }
            .nav h1 {
                position: static;
                transform: none;
                margin-bottom: 10px;
                font-size: 28px;
                text-align: center;
            }
            .nav ul {
                margin-top: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .welcome {
                min-height: 80vh;
            }
            .welcome h2 {
                font-size: 48px;
                letter-spacing: 2px;
            }
            .welcome-text {
                font-size: 18px;
                margin-bottom: 30px;
                max-width: 90%;
            }
            .btn-primary {
                padding: 12px 30px;
                font-size: 16px;
            }
            .service-items, .logo-grid, .container {
                flex-direction: column;
                align-items: center;
                gap: 25px;
            }
            .service {
                width: 90%;
                max-width: 350px;
                padding: 25px;
            }
            .logo-grid img {
                height: 70px;
                max-width: 180px;
            }
            .image-box img {
                width: 90%;
                max-width: 300px;
                height: auto;
            }
            .contact-form {
                padding: 30px;
                margin: 0 15px;
            }
            .contact-form-section h2 {
                font-size: 36px;
            }
            .contact-intro {
                font-size: 16px;
            }
            .footer {
                padding: 30px 20px;
            }
            .footer-content h3 {
                font-size: 24px;
            }
            .footer-content p {
                font-size: 15px;
            }
            .toggle-theme, .back-to-top {
                bottom: 20px;
                right: 20px;
                padding: 10px 16px;
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .nav {
                padding: 10px;
            }
            .nav h1 {
                font-size: 24px;
            }
            .nav ul {
                gap: 15px;
                font-size: 14px;
            }
            .welcome h2 {
                font-size: 36px;
            }
            .welcome-text {
                font-size: 16px;
            }
            .services h2, .logo-showcasereveal h2, .contact-form-section h2 {
                font-size: 30px;
            }
            .service-icon {
                font-size: 40px;
            }
            .service h3 {
                font-size: 24px;
            }
            .btn-submit {
                padding: 12px 25px;
                font-size: 16px;
            }
            .footer-content p {
                font-size: 14px;
            }
        }