body {
    position: relative;
    min-height: 110vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 2;
}

body::before {
    content: "";
    background-image: url('../IMG/pattern.png');
    background-size: 100% auto;
    background-attachment: scroll;
    background-repeat: repeat;
    background-position: top center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Layout Components */
.first-page {
    width: 100%;
    position: relative;
    z-index: 2;
} 
 
 
 
 header {
            width: 100%;
            z-index: 100;
            background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
            padding: 15px;
        }

        /* ONLY CHANGE: Added logo-container to be alongside nav */
        header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            z-index: 100;
        }

        .logo-container {
            display: flex;
            align-items: center;
            margin-top: 35px; /* Align with nav items */
        }

        header nav ul {
            top: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            list-style: none;
            padding: 0 40px;
            height: 120px;
        }

        header nav ul li {
            margin: 50px 20px 0px 20px !important;
            display: flex;
            align-items: center;
        }

        header nav ul li a {
            font-family: 'CopperplateCC-Bold', serif !important;
            color: #ffffff;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 900;
            transition: color 0.2s;
            letter-spacing: 1px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        header nav ul li a:hover {
            color: #e0e0e0;
        }

        .vision-2030 {
            margin-left: 20px;
        }

        .menu-btn {
            display: none;
            flex-direction: column;
            cursor: pointer;
            background: none;
            border: none;
            padding: 10px;
            z-index: 1001;
            transition: all 0.3s ease;
            border-radius: 6px;
            position: absolute;
            right: 15px;
            top: 15px;
        }

        .menu-btn span {
            display: block;
            width: 25px;
            height: 2px;
            background: #fff;
            margin: 5px 0;
            transition: 0.8s ease-in-out;
            border-radius: 2px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }

        .menu-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
            animation: spinToX 0.5s ease-in-out;
        }

        .menu-btn.active span:nth-child(2) {
            opacity: 0;
            animation: spinToX 0.5s ease-in-out;
        }

        .menu-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
            animation: spinToX 0.5s ease-in-out;
        }

        .menu-btn:not(.active) span {
            animation: spinToBars 0.5s ease-in-out;
        }

        @keyframes spinToX {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(90deg); }
            50% { transform: rotate(180deg); }
            75% { transform: rotate(270deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes spinToBars {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(90deg); }
            50% { transform: rotate(180deg); }
            75% { transform: rotate(270deg); }
            100% { transform: rotate(360deg); }
        }

        /* Demo content */
        .demo-content {
            padding-top: 150px;
            text-align: center;
            color: white;
            font-size: 24px;
        }

        /* Tablet Styles (1200px and below) */
        @media (max-width: 1200px) {
            header nav ul {
                padding: 0 30px;
                flex-wrap: wrap;
                height: auto;
                min-height: 120px;
            }
            header nav ul li {
                margin: 0 15px;
            }
            header nav ul li a {
                font-size: 1.2rem;
            }
        }

        /* Small Tablet Styles (900px and below) */
        @media (max-width: 900px) {
            /* Reset desktop flex layout */
            header {
                display: block;
            }
            
            .logo-container {
                position: absolute;
                top: 16px;
                left: 12px;
                z-index: 100;
                display: flex;
                align-items: center;
                background: transparent;
                gap: 8px;
                padding: 4px 8px;
                margin-top: 0;
            }
            
            /* Ensure logo container in mobile also uses absolute positioning */
            header nav ul li.logo-container {
                position: fixed;
                top: 10px;
                left: 15px;
                margin: 0;
                z-index: 1002;
                display: flex;
                align-items: center;
            }
            header nav ul li.logo-container img {
                height: 50px;
                width: auto;
            }
            header nav ul li.logo-container .vision-2030 {
                height: 40px;
                width: auto;
                margin-left: 10px;
            }
            .logo-container img {
                height: 36px !important;
                width: auto !important;
            }
            .menu-btn {
                display: block;
                position: absolute;
                top: 20px;
                right: 20px;
                z-index: 1000;
                background: transparent;
                border-radius: 8px;
                padding: 8px;
                border: none;
                cursor: pointer;
                transition: background 0.3s;
            }
        header nav ul {
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            left: auto !important;
            width: 250px !important;
            height: 100vh !important;
            min-height: 100vh !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 1.7rem !important;
            padding: 72px 1.5rem 1.5rem 1.5rem !important;
            box-shadow: none !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%) !important;
            backdrop-filter: blur(10px) !important;
            z-index: 95 !important;
            transform: translateX(100%);
            transition: transform 0.8s ease-in-out; /* was 0.3s cubic-bezier(...) */
            opacity: 1;
        }
            header nav ul.active {
                transform: translateX(0);
                display: flex !important;
            }
            header nav ul li:not(.logo-container) {
                margin: 10px 0;
                width: 100%;
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            }
            /* Hide separator under the close button only (removes top line) */
            header nav ul li:first-child { 
                border-bottom: none !important;
            }
            /* Remove top hr-like line in mobile nav */
            .close-btn-mobile {
                border-bottom: none !important;
            }
            
            header nav ul li:not(.logo-container) a {
                color: #333 !important;
                font-size: 1.1rem;
                padding: 12px 0;
                display: block;
                width: 100%;
                text-shadow: none !important;
            }
        }

        /* Mobile Styles (768px and below) */
        @media (max-width: 768px) {
            .video-section {
                height: 70vh;
                min-height: 500px;
            }
            .menu-btn {
                display: block;
                position: fixed;
                top: 20px;
                right: 20px;
                z-index: 1002;
            }
            header nav ul {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%) !important;
                backdrop-filter: blur(10px) !important;
                padding: 70px 24px 0 24px !important;
                transition: transform 0.8s ease-in-out !important; /* was 0.3s */
                box-shadow: none !important;
                overflow: hidden !important;
                transform: translateX(100%) !important;
                z-index: 999 !important;
            }
            header nav ul.active {
                transform: translateX(0) !important;
            }
            header nav ul li:not(.logo-container) {
                margin: -25px 0 0 0 !important;
                width: 100% !important;
                border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
            }
            /* Hide separator under the close button only (removes top line) */
            header nav ul li:first-child { 
                border-bottom: none !important;
            }
            
            /* Close Button Styling */
            .close-btn-mobile {
                position: relative !important;
                top: 20px !important;
                right: 20px !important;
                border-bottom: none !important;
                margin: 0 !important;
                width: auto !important;
                z-index: 1001 !important;
            }
            
            .close-icon {
                position: relative; !important;
                color: #ffffff !important;
                font-size: 2rem !important;
                font-weight: bold !important;
                cursor: pointer !important;
                display: block !important;
                line-height: 1 !important;
                transition: opacity 0.3s ease !important;
                z-index: 1002 !important;
            }
            
            .close-icon:hover {
                opacity: 0.7 !important;
            }
            
            header nav ul li:not(.logo-container) a {
                color: #000000 !important;
                font-size: 1.1rem !important;
                letter-spacing: 1px !important;
                padding: 15px 0px !important;
                display: block !important;
                width: 100% !important;
                font-weight: 900 !important;
                text-shadow: none !important;
            }
            .menu-btn.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
                animation: spinToX 0.5s ease-in-out;
            }
            .menu-btn.active span:nth-child(2) {
                opacity: 0;
                animation: spinToX 0.5s ease-in-out;
            }
            .menu-btn.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
                animation: spinToX 0.5s ease-in-out;
            }

            .menu-btn:not(.active) span {
                animation: spinToBars 0.5s ease-in-out;
            }
        }

        /* Small Mobile Styles (480px and below) */
        @media (max-width: 480px) {
            .video-section {
                height: 60vh;
                min-height: 400px;
            }
            header nav ul {
                width: 85%;
            }
        }

        /* Landscape Mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .video-section {
                height: 100vh;
            }
            header nav ul {
                height: 60px;
                min-height: 60px;
            }
            header nav ul li.logo-container img {
                height: 35px !important;
            }
            header nav ul li.logo-container .vision-2030 {
                height: 25px !important;
            }
        }

        /* High DPI Displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .client-logo img,
            header nav ul li img {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }