/* 
   Theme: High Contrast Dark Mode (Black & Yellow) - ANIMATION UPGRADE
   Font: 'Outfit', sans-serif
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #FFD700;
    /* Gold/Yellow */
    --primary-dim: #b39700;
    --dark: #050505;
    --dark-surface: #121212;
    --light: #ffffff;
    --gray: #888888;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* ================= CINEMATIC ENTRANCE ANIMATION (BLUR & REVEAL) ================= */

/* Initial Overlay - Covers screen then slides up */
.reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUpReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.5s;
    /* Wait briefly before revealing */
}

/* Energy Theme Curtain */
.bg-energy .reveal-overlay {
    background: #000;
}

/* Tech Theme Curtain */
.bg-tech .reveal-overlay {
    background: #000;
}

/* The Wave Shape at the bottom of the curtain */
.reveal-wave {
    position: absolute;
    bottom: -100px;
    /* Hide slightly below */
    left: 0;
    width: 200%;
    height: 100%;
    background: repeat-x url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath class='elementor-shape-fill' d='M500.5,88.5c167.5-30,305-30,500,0V100h-1000V88.5z' fill='%23FFD700' opacity='0.5'/%3E%3Cpath class='elementor-shape-fill' d='M0,35c167.5,30,305,30,500,0s332.5-30,500,0v65h-1000V35z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-size: 50% 100px;
    animation: waveMove 10s linear infinite;
    opacity: 0.8;
}

.bg-energy .reveal-wave {
    filter: drop-shadow(0 -10px 20px rgba(255, 215, 0, 0.5));
}

.bg-tech .reveal-wave {
    filter: hue-rotate(140deg) drop-shadow(0 -10px 20px rgba(10, 255, 240, 0.5));
}

@keyframes slideUpReveal {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120%);
        visibility: hidden;
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Updated Entrance: Cinematic Blur */
.animate-enter {
    opacity: 0;
    filter: blur(10px);
    /* Start Blurred */
    transform: translateY(30px) scale(0.95);
    animation: cinematicEnter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 1.5s;
}

.delay-2 {
    animation-delay: 1.7s;
}

.delay-3 {
    animation-delay: 1.9s;
}

@keyframes cinematicEnter {
    to {
        opacity: 1;
        filter: blur(0);
        /* Become sharp */
        transform: translateY(0) scale(1);
    }
}

/* ================= BACKGROUND PARTICLES (EXISTING) ================= */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particles span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -50px;
    border-radius: 50%;
    animation: rise 25s infinite linear;
    opacity: 0;
}

.bg-energy .particles span,
.split.left .particles span {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bg-tech .particles span,
.split.right .particles span {
    background: rgba(10, 255, 240, 0.4);
    box-shadow: 0 0 10px rgba(10, 255, 240, 0.3);
}

.particles span:nth-child(1) {
    left: 10%;
    width: 3px;
    height: 3px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    left: 20%;
    width: 5px;
    height: 5px;
    animation-duration: 25s;
    animation-delay: 2s;
}

.particles span:nth-child(3) {
    left: 35%;
    width: 2px;
    height: 2px;
    animation-duration: 20s;
    animation-delay: 4s;
}

.particles span:nth-child(4) {
    left: 50%;
    width: 4px;
    height: 4px;
    animation-duration: 22s;
    animation-delay: 0s;
}

.particles span:nth-child(5) {
    left: 65%;
    width: 6px;
    height: 6px;
    animation-duration: 28s;
    animation-delay: 1s;
}

.particles span:nth-child(6) {
    left: 80%;
    width: 3px;
    height: 3px;
    animation-duration: 16s;
    animation-delay: 5s;
}

.particles span:nth-child(7) {
    left: 90%;
    width: 5px;
    height: 5px;
    animation-duration: 30s;
    animation-delay: 3s;
}

.particles span:nth-child(8) {
    left: 5%;
    width: 2px;
    height: 2px;
    animation-duration: 15s;
    animation-delay: 6s;
}

.particles span:nth-child(9) {
    left: 25%;
    width: 4px;
    height: 4px;
    animation-duration: 19s;
    animation-delay: 2s;
}

.particles span:nth-child(10) {
    left: 75%;
    width: 3px;
    height: 3px;
    animation-duration: 24s;
    animation-delay: 4s;
}

.particles span:nth-child(11) {
    left: 15%;
    width: 5px;
    height: 5px;
    animation-duration: 21s;
    animation-delay: 1s;
}

.particles span:nth-child(12) {
    left: 40%;
    width: 2px;
    height: 2px;
    animation-duration: 26s;
    animation-delay: 3s;
}

.particles span:nth-child(13) {
    left: 60%;
    width: 4px;
    height: 4px;
    animation-duration: 17s;
    animation-delay: 5s;
}

.particles span:nth-child(14) {
    left: 85%;
    width: 3px;
    height: 3px;
    animation-duration: 23s;
    animation-delay: 0s;
}

.particles span:nth-child(15) {
    left: 95%;
    width: 2px;
    height: 2px;
    animation-duration: 29s;
    animation-delay: 2s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-110vh) scale(0);
        opacity: 0;
    }
}

/* ================= UTILITIES & ANIMATIONS ================= */
.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: shimmerText 3s infinite linear;
    background: linear-gradient(90deg, var(--primary) 0%, #fff 50%, var(--primary) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

.text-center {
    text-align: center;
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.05'/%3E%3C/svg%3E");
    animation: fogFlow 60s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes fogFlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

/* ================= HEADER ================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-img-small {
    height: 50px;
    background: #fff;
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: 0.3s;
}

.logo:hover .logo-img-small {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.main-header nav ul {
    display: flex;
    gap: 2rem;
}

.main-header nav a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.main-header nav a:hover {
    color: var(--primary);
}

.main-header nav a:hover::after {
    width: 100%;
}

/* ================= SPLIT LANDING PAGE (INDEX) ================= */
/* ================= RESPONSIVE SPLIT LANDING PAGE (INDEX) ================= */

/* --- MOBILE LAYOUT (DEFAULT) --- */
/* Imagine single cards stacked, controlled by JS switcher */

.split-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 100;
    background: #000;
    overflow: hidden;
}

/* Mobile Switcher */
.mobile-industry-switch {
    display: flex;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px;
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    transition: 0.3s;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 0;
    border-radius: 40px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.mode-btn.active.mode-energy {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
}

.mode-btn.active.mode-tech {
    background: #0afff0;
    color: #000 !important;
    box-shadow: 0 5px 25px rgba(10, 255, 240, 0.4);
}

/* Split Section Base (Mobile Stacked) */
.split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s;
    transform: scale(1.1);
    z-index: 1;
    padding-bottom: 100px;
    /* Space for switcher */
    text-decoration: none;
}

.split.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

.split.left {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, #000000 70%);
}

.split.right {
    background: radial-gradient(circle at center, rgba(10, 255, 240, 0.15) 0%, #000000 70%);
}

/* --- DESKTOP LAYOUT (SPLIT SCREEN > 900px) --- */
@media (min-width: 900px) {

    /* Hide Switcher on Desktop */
    .mobile-industry-switch {
        display: none !important;
    }

    /* Container becomes Flex Row */
    .split-container {
        display: flex;
        flex-direction: row;
    }

    /* Split Sections become Side-by-Side */
    .split {
        position: relative;
        width: 50%;
        height: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        /* Smooth width Anim */
        padding-bottom: 0;
        /* Reset padding */
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hover Effect: Expand one, shrink other */
    .split:hover {
        width: 60%;
        z-index: 20;
    }

    /* Since we can't easily select 'sibling' effectively for width without JS or :has, 
       we rely on flexbox behavior or simple width expansion. 
       If one expands to 60%, the other (if flex) would shrink? 
       Wait, let's use flex-grow for smoother effect.
    */

    .split {
        flex: 1;
        /* Both start equal */
        width: auto;
        /* Let flex handle it */
    }

    .split:hover {
        flex: 1.5;
        /* Expands */
        background-color: rgba(0, 0, 0, 0.2);
        /* Slight darken to highlight content */
    }

    /* Ensure content is centered */
    .split .content {
        transform: scale(0.9);
        transition: 0.5s;
    }

    .split:hover .content {
        transform: scale(1);
    }
}

/* Content Styles - NOW A BEAUTIFUL GLASS CARD */
.split .content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(20, 20, 20, 0.6);
    /* Deep glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 4rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 650px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.split:hover .content {
    transform: translateY(-10px) scale(1.02);
    background: rgba(20, 20, 20, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 255, 255, 0.05);
}

.landing-logo {
    max-width: 180px;
    margin-bottom: 2rem;
    background: #fff;
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.split h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.split.left h2 {
    color: var(--primary);
}

.split p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.split-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.split-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* MOBILE SPECIFIC OVERRIDES (Minor Tweaks) */
@media(max-width: 768px) {
    .split h2 {
        font-size: 2.2rem;
    }

    .landing-logo {
        max-width: 140px;
    }

    .mobile-industry-switch {
        bottom: 40px !important;
        width: 85%;
    }
}

/* ================= SUB-PAGE HEROES ================= */
.sub-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    /* Increased for header space */
    padding-bottom: 120px;
    /* Added space for Wave Separator to prevent overlap */
    background: #000;
    overflow: hidden;
}

.sub-hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 900;
    z-index: 2;
    margin-bottom: 1rem;
    opacity: 0;
    /* Hidden initially for animation */
    animation: cinematicEnter 1.2s forwards 1s;
    /* Updated to cinematicEnter */
    filter: blur(5px);
}

.sub-hero p {
    font-size: 1.3rem;
    color: var(--gray);
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: cinematicEnter 1.2s forwards 1.2s;
    /* Updated */
    filter: blur(5px);
}

/* ================= ENERGY PAGE STYLES & INTERACTIVE CARDS ================= */
.bg-energy {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

.service-card-lg {
    display: flex;
    gap: 3rem;
    margin-bottom: 6rem;
    align-items: center;
    perspective: 1000px;
    /* For 3D Tilt */
}

.service-card-lg:nth-child(even) {
    flex-direction: row-reverse;
}

/* Glowing Border Animation for Energy */
@keyframes energyBorderFlow {
    0% {
        border-color: rgba(255, 215, 0, 0.1);
        box-shadow: inset 0 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: inset 0 0 20px 0 rgba(255, 215, 0, 0.2);
    }

    100% {
        border-color: rgba(255, 215, 0, 0.1);
        box-shadow: inset 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.service-img-box {
    flex: 1;
    min-height: 350px;
    background: #111;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.1);
    /* Slightly thicker border */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: 0.5s ease;
    animation: energyBorderFlow 4s infinite;
    /* Always flowing border */
}

.service-img-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent,
            rgba(255, 215, 0, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: lightSweep 4s infinite;
}

@keyframes lightSweep {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }

    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

.service-card-lg:hover .service-img-box {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-img-box i {
    font-size: 6rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    animation: floatIcon 4s ease-in-out infinite;
    transition: 0.3s;
}

.service-card-lg:hover .service-img-box i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.service-text ul {
    margin-top: 1.5rem;
}

.service-text li {
    margin-bottom: 1rem;
    padding-left: 25px;
    position: relative;
    color: #ddd;
    font-size: 1.1rem;
}

.service-text li::before {
    content: '\f0e7';
    /* FontAwesome Bolt */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.9rem;
    top: 4px;
}

/* ================= TECH PAGE STYLES & HOLOGRAPHIC CARDS ================= */
.bg-tech {
    background-color: #050505;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 215, 0, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
    background-size: 100% 3px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Cyber Scanner Animation */
@keyframes cyberScan {
    0% {
        top: -10px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.tech-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Base border */
    padding: 3rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    z-index: 1;
    backdrop-filter: blur(5px);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    /* Cyan */
    transition: 0.3s;
    opacity: 0.5;
    box-shadow: 0 0 10px var(--primary);
}

/* Scanner Beam */
.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
    animation: cyberScan 3s infinite ease-in-out;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(10, 255, 240, 0.1);
    border-color: rgba(10, 255, 240, 0.3);
    background: rgba(10, 255, 240, 0.05);
}

.tech-card:hover::before {
    width: 100%;
    /* Fill background slightly on hover */
    opacity: 0.1;
}

.tech-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-card i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.tech-card:hover i {
    transform: rotateY(360deg);
}

/* ================= CONTACT FORM ================= */
.contact-section {
    padding: 6rem 5%;
    text-align: center;
    background: var(--dark-surface);
    position: relative;
}

.contact-info-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p,
.contact-item a {
    color: #aaa;
    font-size: 0.95rem;
}

.form-box {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.btn-submit {
    display: block;
    width: auto;
    min-width: 200px;
    margin: 3rem auto 0;
    /* Center button */
    padding: 1rem 3rem;
    background: var(--primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
    background: #fff;
}

@media (max-width: 768px) {

    /* --- MOBILE REVEAL OVERLAY FIXES --- */
    .reveal-overlay {
        height: 100dvh;
        /* Use dynamic viewport height for mobile browsers */
        flex-direction: column;
        padding: 0 20px;
    }

    .reveal-overlay h1 {
        font-size: 1.8rem !important;
        /* Smaller text to prevent overflow */
        text-align: center;
        width: 100%;
        line-height: 1.3;
    }

    .reveal-wave {
        height: 60px;
        /* Shorter wave */
        background-size: 50% 60px;
        bottom: -55px;
        /* Tuck it correctly */
    }

    /* Ensure curtain slides up completely */
    @keyframes slideUpReveal {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-130vh);
            visibility: hidden;
        }
    }

    /* --- LAYOUT ADJUSTMENTS --- */
    .sub-hero h1 {
        font-size: 2.2rem;
    }

    .service-card-lg,
    .service-card-lg:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .service-text li {
        text-align: left;
        font-size: 1rem;
    }

    .service-img-box {
        width: 100%;
        min-height: 250px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Fix Header on Mobile - Single Row Layout */
    .main-header {
        flex-direction: row;
        justify-content: center;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        height: 60px;
        /* Fixed height for consistency */
        gap: 0;
    }

    /* Hide the standard 2x2 grid nav completely */
    .main-header nav {
        display: none !important;
    }

    /* Top Row Container (Back Btn + Logo + Menu Btn) */
    .main-header>div {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: center;
        position: relative;
        height: 100%;
    }

    /* Logo Centering */
    .logo {
        font-size: 1.1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
    }

    .logo-img-small {
        height: 30px;
    }

    /* Back Button - Absolute Left */
    .back-hub-btn {
        position: absolute;
        left: 0;
        margin: 0;
        font-size: 0.7rem;
        padding: 5px 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* HAMBURGER BUTTON - Absolute Right - FORCE VISIBLE */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(100, 100, 100, 0.3);
        /* Visible Background */
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* Visible Border */
        border-radius: 5px;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 2147483647;
        /* MAX Z-INDEX */
        padding: 5px;
        width: 45px;
        height: 45px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* ================= LIQUID MENU OVERLAY ================= */
    .mobile-nav-overlay {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(5, 5, 5, 0.98);
        z-index: 9000;
        /* High Z-Index */

        /* The Liquid Reveal Magic */
        clip-path: circle(0px at calc(100% - 35px) 35px);
        /* Matches button center */
        transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.3, 1);
        backdrop-filter: blur(15px);
    }

    .mobile-nav-overlay.active {
        clip-path: circle(150% at calc(100% - 35px) 35px);
    }

    .mobile-nav-overlay a {
        font-size: 1.8rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s;
        border-bottom: 2px solid transparent;
    }

    .mobile-nav-overlay a:hover {
        color: var(--primary);
        letter-spacing: 1px;
        border-bottom-color: var(--primary);
    }

    /* Staggered Entrance */
    .mobile-nav-overlay.active a:nth-child(2) {
        transition-delay: 0.2s;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay.active a:nth-child(3) {
        transition-delay: 0.3s;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay.active a:nth-child(4) {
        transition-delay: 0.4s;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay.active a:nth-child(5) {
        transition-delay: 0.5s;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide mobile specific elements strictly on Desktop */
@media (min-width: 769px) {

    .mobile-menu-btn,
    .mobile-nav-overlay {
        display: none !important;
    }
}

.wave-separator svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.fill-dark {
    fill: var(--dark);
}

.fill-surface {
    fill: var(--dark-surface);
}