/* --- CRITICAL NEW CSS FOR HEADER FADE AND CONTENT SWAP --- */



/* Base state for all page sections for the fade effect */
.page-content-block {
    display: none;

    /* 1. STARTING STATE FOR "FADE UP" ANIMATION */
    opacity: 0;
    transform: translateY(20px);
    /* Start 20px lower */

    /* 2. DURATION OF THE ANIMATION (1s as requested) */
    transition: opacity 1s ease-out, transform 1s ease-out;

    min-height: calc(100vh - 100px);
    padding-bottom: 5rem;
}

/* This class is added by JavaScript to show the active content */
.page-content-block.active-page {
    display: block !important;

    /* 3. ENDING STATE FOR "FADE UP" ANIMATION */
    opacity: 1;
    transform: translateY(0);
    /* End at normal position */
}


/* --- YOUR ORIGINAL CSS STARTS HERE --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    overflow-x: hidden;
    cursor: default;
    scroll-behavior: smooth !important;
}

body {
    /* Set Poppins as the new primary font for the entire site */
    font-family: 'Poppins', sans-serif;

    /* The rest of your existing body styles follow */
    background-color: black;
    color: #e7e7e7;
    min-height: 100vh;
    line-height: 1.5;
}



/*GRADIENT AND LAYER BLUR EFFECT*/
.image-gradient {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    /* FIX: Set to 1 or 0 to show above the black body background */
    z-index: 0;
}

.layer-blur {
    position: absolute;
    top: 20%;
    width: 30rem;
    height: 0;
    right: 0;
    box-shadow: 0 0 700PX 15PX white;
    rotate: -30deg;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

/* ▼▼ THIS IS THE CONTAINER FOR THE ROBOT ▼▼ */
.hero-container {
    position: relative;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1.5rem, 5vw, 5rem);
    position: relative;
    z-index: 1000;
}


header h1 {
    margin: 0;
    font-size: 5rem;
    font-weight: 300;
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-left: auto;
    /* Pushes it to the right */
    margin-right: 2rem;
    /* <-- *** THIS IS THE NEW LINE FOR SPACING *** */
}

nav a {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    transition: none;
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    color: #a7a7a7;
}


/* MAIN CONTENT */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(90vh - 6rem);
    margin-bottom: 5rem;
}

.content {
    max-width: 40rem;
    margin-left: 5rem;
    position: relative;
    z-index: 1;
}

.content1 {
    position: relative;
    z-index: 999;
    border-top: none;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.8) 20%,
            rgba(0, 0, 0, 0.8) 80%,
            transparent 100%);
    color: white;
    padding: 40px;
    max-width: 80rem;
    margin: 5rem auto;
}

.content1>div {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.left-section-1 {
    flex: 1;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.3;
}

.right-section-1 {
    flex: 2;
}

.container2 {
    background: black;
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.tag-box {
    position: relative;
    width: 18rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #656565,
            #7f43a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes animationGradient {
    to {
        background-position: 200%;
    }
}

.tag-box .tag {
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    cursor: pointer;
}

.tag-box .tag:hover {
    color: #5300a0;
}

.content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin: 2rem 0;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.418);
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
        sans-serif;
    font-weight: bolder;
}

.content1 h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin: 2rem 0;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.418);
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
        sans-serif;
    font-weight: bolder;
}

.description {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    max-width: 35rem;
    color: gray;
}

.buttons {
    display: flex;
    gap: 5rem;
    margin-top: 3rem;
    margin-left: 9%;
    position: relative;
    z-index: 1000;
    margin-bottom: 10rem;
}


/* --- ROBOT CLASS --- */
.robot-3d {
    display: flex;
    position: absolute;
    top: 0;
    right: -20%;
    scale: 1.3;

    width: 100%;
    height: 100vh;

    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* RESPONSIVE STYLES */

@media (max-width: 1300px) {
    main {
        /* align-items: center;
        text-align: center; */
    }

    header {
        padding: 1rem 2rem;
    }

    .content {
        margin-top: 3rem;
        /* The fix we just did */
        margin-left: 5rem;
        z-index: 998;
    }

    /* --- ADD THIS NEW RULE --- */
    /* .tag-box {
        margin-left: auto;
        margin-right: auto;
    } */
    /* --- END OF NEW RULE --- */

    .content1 {
        margin-top: 5rem;
        margin-left: 0;
        z-index: 999;
    }

    .buttons {
        margin-left: 5rem;
        /* justify-content: center; */
    }

    .robot-3d {
        scale: 1.1;
        top: -10vh;
        right: -40%;
        z-index: 500;
        height: 100vh;
    }
}

@media (max-width: 1024px) {
    .content {
        margin-top: 8rem;
        z-index: 998;
    }

    .content1 {
        margin-top: 5rem;
        margin-left: 0;
        z-index: 999;
    }

    .robot-3d {
        scale: 0.7;
        top: -8vh;
        right: -60%;
        z-index: 997;
        height: 100vh;
    }
}

/*
 * ===============================================
 * === MAIN MOBILE STYLES (PHONES) ===
 * ===============================================
*/
@media screen and (max-width: 768px) {

    header {
        padding: 1rem 1.5rem;
        justify-content: center;
        /* <-- ADD THIS LINE */
    }

    nav {
        display: none;
    }

    header h1 {
        font-size: 2rem;
    }

    .content {
        margin-top: 80px;
        max-width: 90vw;
        margin-left: 0;
        z-index: 999;
        margin-bottom: 80px;
    }

    .content1 {
        margin-top: 8rem;
        max-width: 90vw;
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }

    .content1>div {
        flex-direction: column;
        gap: 20px;
    }

    .tag-box {
        margin: 0 auto;
        width: 12rem;
        width: 17rem !important;
    }


    .description {
        font-size: 1rem;
        max-width: 100%;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-left: -1.2vh;
    }

    /* FIX: Force hide the robot on mobile */
    .robot-3d {
        display: none !important;
        scale: 0.8;
        top: -12vh;
        left: 50%;
        right: auto;
        width: 100vw;
        z-index: 998;
        border-left: none;
        height: 100vh;
    }

    /* --- VIDEO SECTION (FIXED) --- */

    .video-section {
        position: relative;
        width: 100%;
        height: 600px;
        /* ensures visibility */
        overflow: hidden;
        margin-top: 5rem;
        
    }

    .video-content-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .promo-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }


    /* --- Check/Add these rules in your style.css --- */
.video-section .promo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container */
    z-index: 1;
}


    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2;
    }

    .video-text-content {
        position: absolute;
        inset: 0;
        /* fills the whole video */
        z-index: 3;

        display: flex;
        flex-direction: column;
        justify-content: center;
        /* vertically center everything */
        align-items: center;
        /* horizontally center */
        text-align: center;

        width: 100%;
        padding: 0 2rem;
        color: #fff;
    }


    .video-text-content h2 {
        font-size: 2.2rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        display: block;
        /* Makes sure it appears */
    }

    .video-text-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        display: block;
    }


    /* ------------------------------------------------ */
/* --- RESPONSIVE ADJUSTMENTS for All Devices --- */
/* ------------------------------------------------ */

/* Medium Desktops/Laptops (max-width: 1300px) */
@media (max-width: 1300px) {
    .video-section {
        height: 550px; 
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .video-section {
        height: 500px;
    }
}

/* Mobile (max-width: 768px and smaller) */
@media (max-width: 768px) {
    .video-section {
        height: 400px; 
        min-height: 300px;
        margin-top: 3rem;
    }

    .video-text-content h2 {
        /* Scale headline text down for phones */
        font-size: 1.6rem !important; 
        margin-bottom: 1rem;
    }

    .video-text-content p {
        /* Scale body text down for phones */
        font-size: 1rem;
        max-width: 90%;
    }
}

/* Smallest Mobile Devices (max-width: 400px) */
@media (max-width: 400px) {
    .video-section {
        height: 350px;
    }
    .video-text-content h2 {
        font-size: 1.4rem !important; 
    }
}


/* --- MOBILE (max-width: 768px) FIX --- */
@media (max-width: 768px) {
    /* ... other styles ... */
    
    .video-text-content {
        /* Ensure the Flexbox alignment is correct */
        align-items: center; 
        justify-content: center;
        text-align: center;
    }
    
    .video-text-content h2 {
        /* Make sure the headline font size is capped */
        font-size: 1.6rem !important; 
        max-width: 90% !important; /* Ensure the text block stays within 90% of the screen */
    }

    .video-text-content p {
        /* CRITICAL FIX: Cap the paragraph width and center the text */
        max-width: 90% !important; 
        font-size: 1rem;
        /* Ensure no weird margins are pushing it left/right */
        margin-left: auto;
        margin-right: auto;
    }
}
    /* * --- 🔴 THIS IS THE FIX YOU WANTED 🔴 ---
     * This makes the three contact buttons stack on phones.
     */
    .contact-info-blocks {
        flex-direction: column;
        gap: 1.5rem;
        /* Make the gap a bit smaller */
    }

    /* This makes the blocks full-width on mobile */
    .contact-info-blocks .info-block {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}


/* --- ▼▼ NEW CODE (Leg Fade, Carousel, Video, Footer) ▼▼ --- */

/* --- ROBOT FADE FOR LEGS --- */
.robot-3d::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Covers bottom half */
    background: linear-gradient(to top,
            black 30%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

/* --- CAROUSEL CSS (FINAL STABLE 5-POSITION MODEL) --- */

.carousel {
    display: flex;
    width: 100%;
    align-items: center;
    font-family: Arial;
    margin-top: 5rem;
    padding: 3rem 0;
    position: relative;
    /* FIX: Set high z-index to receive clicks and sit above other elements */
    z-index: 1001;
    min-height: 520px;
}

.carousel__list {
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 460px;
    justify-content: center;
    perspective: 300px;
    padding: 0;
    /* GPU FIX: Ensures the container renders smoothly */
    transform: translateZ(0);
}

.carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0px;
    width: 340px;
    height: 460px;
    border-radius: 12px;

    /* Glass Base Styles */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    position: absolute;
    /* PERFORMANCE: Fast transition and GPU optimization */
    transition: all .25s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    will-change: transform, opacity;
    cursor: pointer;

    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    background-size: cover;
    background-position: center;

    /* FIX: Ensure cards are clickable */
    z-index: 50;

    /* --- MOBILE TAP FIXES (ADDED) --- */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* --- ADDED FOR MOBILE TAP FEEDBACK --- */
.carousel__item:active {
    transform: scale(0.95) !important;
    opacity: 0.8;
}

/* --- BACKGROUNDS (TO BE DEFINED IN CSS) --- */
/* You MUST ensure 6 unique background images are defined here in your final CSS */
.carousel__item:nth-child(1) {
    background: url('./images/sliders/elvsystem.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}

.carousel__item:nth-child(2) {
    background: url('./images/sliders/cctvandvid.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}

.carousel__item:nth-child(3) {
    background: url('./images/sliders/securitysystems.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}

.carousel__item:nth-child(4) {
    background: url('./images/sliders/smarthomeauto.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}

.carousel__item:nth-child(5) {
    background: url('./images/sliders/softwaredev.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}

.carousel__item:nth-child(6) {
    background: url('./images/sliders/webandappdev.png'), rgba(255, 255, 255, 0.15);
    background-size: cover, cover;
    background-position: center, center;
}


/* --- MOVEMENT LOGIC (6 ITEMS: -2, -1, 0, 1, 2, 3) --- */

.carousel__item[data-pos="0"] {
    z-index: 55;
    /* Higher than adjacent cards */
}

.carousel__item[data-pos="-1"],
.carousel__item[data-pos="1"] {
    opacity: 0.7;
}

.carousel__item[data-pos="-1"] {
    transform: translateX(45%) scale(.9);
    z-index: 40;
}

.carousel__item[data-pos="1"] {
    transform: translateX(-45%) scale(.9);
    z-index: 40;
}

.carousel__item[data-pos="-2"],
.carousel__item[data-pos="2"] {
    opacity: 0.4;
}

.carousel__item[data-pos="-2"] {
    transform: translateX(-80%) scale(.8);
    z-index: 30;
}

.carousel__item[data-pos="2"] {
    transform: translateX(80%) scale(.8);
    z-index: 30;
}

.carousel__item[data-pos="3"] {
    transform: translateX(120%) scale(.7);
    opacity: 0.4;
    z-index: 20;
}

/* CRITICAL HIDING RULE: Hide items that cycle into positions 4 and -3 */
.carousel__item[data-pos="4"],
.carousel__item[data-pos="-3"] {
    opacity: 0 !important;
    z-index: 10;
    transform: translateX(-150%) scale(.6) !important;
}

/* --- VIDEO SECTION STYLES --- */

.video-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.promo-video {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;

    transform-origin: center center;
}

/* --- NEW STYLES FOR VIDEO OVERLAY --- */

.video-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
}

.promo-video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.video-text-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #fff;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.video-text-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.video-text-content p {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}


/* --- FOOTER STYLES --- */

.site-footer {
    position: relative;
    padding: 5rem 2rem 3rem 2rem;
    color: #e7e7e7;
    background-image: url('./images/banner-footer.jpg');
    background-color: #05051a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* FIX: Ensure footer is fixed at the bottom for dynamic content */
    width: 100%;
}

.site-footer .footer-overlay {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.site-footer .footer-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .footer-column {
    flex: 1;
    min-width: 220px;
}

.site-footer h3 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    color: white;
}

.site-footer .footer-column p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.site-footer .footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-column a:hover {
    color: white;
}

.site-footer .social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.site-footer .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #ccc;
    font-size: 1rem;
    text-decoration: none;
}


.site-footer .copyright {
    font-size: 0.8rem;
    color: #aaa;
}

.site-footer .footer-form label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.site-footer .footer-form input[type="email"] {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 1rem;
}

/* ▼▼ FOOTER BUTTON EDITED TO BE GLASSY ▼▼ */
.site-footer .footer-form button {
    /* Kept original layout styles */
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;

    /* Added Glass Styles */
    display: inline-block;
    padding: 0.8rem;
    /* Kept original padding */
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    /* Kept original border-radius */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-footer .footer-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    /* Made hover effect more subtle */
}

.site-footer .footer-bottom-logo {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive styles for footer */
@media (max-width: 768px) {
    .site-footer .footer-container {
        flex-direction: column;
        gap: 3rem;
    }

    .site-footer .footer-bottom-logo {
        position: relative;
        transform: none;
        left: auto;
        text-align: center;
        margin-top: 3rem;
        bottom: auto;
    }
}

/* --- ▼▼ NEW GLASS BUTTON STYLES (MOBILE-FIXED) ▼▼ --- */
/* For Header and Main Content buttons */
.glass-button {
    /* Basic layout */
    display: inline-block;
    padding: 0.8rem 2rem;
    /* Matched your old .btn-signing */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    /* Matched your old .btn-signing */

    /* The Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Matched your old buttons */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Text & Shadow */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Hover Effect */
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;

    /* --- MOBILE TAP FIXES (ADDED) --- */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* --- ADDED FOR MOBILE TAP FEEDBACK --- */
.glass-button:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    /* Subtle press effect */
}

/* --- MODIFIED: This now ONLY applies to desktops, fixing the 2-tap bug --- */
@media (hover: hover) {
    .glass-button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

/* --- ▼▼ LOADING SCREEN STYLES ▼▼ --- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;

    /* The blurred background */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Centering the content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* This makes it fade out smoothly */
    transition: opacity 0.5s ease;
    opacity: 1;
}

/* Hides the loader after it's done */
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* This is the container for the wave text */
.loader-text {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.loader-bar-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 4px;
}

/* This new class will start the animation */
.loader-bar.animate {
    animation: load-animation 3s ease-out forwards;
}

@keyframes load-animation {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* --- NEW LOADER WAVE ANIMATION --- */

/* 1. Define the "up and down" bounce animation */
@keyframes wave-animation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 2. Style the letters inside .loader-text */
.loader-text span {
    display: inline-block;
    margin: 0 0.1em;
    animation-name: wave-animation;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
}

/* 3. This is the "wave" part! */
.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.loader-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.loader-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(8) {
    animation-delay: 0.8s;
}

.loader-text span:nth-child(9) {
    animation-delay: 0.9s;
}

.loader-text span:nth-child(10) {
    animation-delay: 1.0s;
}

h2.services {
    margin-top: 5rem;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #7a7676;

}

#services {
    scroll-margin-top: 120px;
}

/* --- FOOTER CONTACT BUTTONS --- */

.footer-column p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-contact-button {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
}


/* --- NEW STYLES FOR DYNAMIC CONTENT SWAPPING (CRITICAL FOR FUNCTIONALITY) --- */

/* Base state for all page sections for the fade effect */
.page-content-block {
    display: none;

    /* 1. STARTING STATE FOR "FADE UP" ANIMATION */
    opacity: 0;
    transform: translateY(20px);
    /* Start 20px lower */

    /* 2. DURATION OF THE ANIMATION (1s as requested) */
    transition: opacity 1s ease-out, transform 1s ease-out;

    min-height: calc(100vh - 100px);
    padding-bottom: 5rem;
}

/* This class is added by JavaScript to show the active content */
.page-content-block.active-page {
    display: block !important;

    /* 3. ENDING STATE FOR "FADE UP" ANIMATION */
    opacity: 1;
    transform: translateY(0);
    /* End at normal position */
}

/* Styles for the new dedicated contact content page */
.contact-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.contact-info-blocks {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    width: 100%;
    /* Centering is handled inline in HTML for quick fix, but this is the default flex */
    justify-content: center;
}

.contact-info-blocks .info-block {
    /* Reusing the glass-button class for consistent style */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
    height: auto;
    border-radius: 12px;
}

.contact-info-blocks .info-block i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-info-blocks .info-block p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

/* This was the original 768px query, left for other styles */
@media (max-width: 768px) {
    /* This block is intentionally left for your other 768px styles */
    /* The contact-info-blocks fix is now in the main 768px block above */
}

/* --- NEW: RESPONSIVE OVERRIDE FOR MOBILE/TABLET --- */
/* This block reverts the site to a normal scrolling page on screens 1024px or smaller */
@media (max-width: 1024px) {

    /* Revert header to its original state (from .fixed-header) */
    .fixed-header {
        position: relative !important;
        /* Disables the fixed position */
        width: auto !important;
        background-color: transparent !important;
        /* Ensures no black bg */
        opacity: 1 !important;
        /* Disables fade */
    }

    /* * This is the most important part.
     * It makes all content sections visible again, 
     * removes the fade-up animation, 
     * and reverts them to normal blocks.
     */
    .page-content-block {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        min-height: auto;
        /* Revert to default height */
    }

    /* This ensures the content area has no extra padding at the top */
    #content-swap-area {
        padding-top: 0px !important;
    }

    /* --- FIX: Stacks the contact blocks on tablets --- */
    /* This rule will apply to tablets (1024px) AND phones (768px) */
    /* I am removing the old rule from here to avoid confusion */

    /* .contact-info-blocks {
        flex-direction: column;
    } */

    /* --- FIX: Fixes video text wrapping on tablets --- */
    .video-text-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .video-text-content p {
        font-size: 1rem;
        max-width: 90%;
    }
}

/*
 * ===============================================
 * === 🔴 NEW CODE FOR TV & 4K SCREENS 🔴 ===
 * ===============================================
 *
 * This code does NOT edit any of your styles.
 * It ONLY adds new rules that apply to very
 * large screens (like TVs) to improve readability.
*/

@media (min-width: 1920px) {

    /*
  * This rule overrides the 1800px max-width from your original .container
  * for very large "TV" screens. It sets a more readable max-width 
  * of 1600px and keeps it centered. This prevents text in headings 
  * from stretching too far.
  */
    .container {
        max-width: 1600px;
    }

    /* * This rule targets the "About Us" text block (.content1)
  * and gives it a slightly larger max-width on big screens
  * to better match the 1600px container.
  */
    .content1 {
        max-width: 90rem;
        /* This becomes 1440px */
    }
}

@media (min-width: 2560px) {

    /* * For even larger 4K/5K screens, we make the base 
  * font size slightly larger so it's easier to read from a distance.
  */
    body {
        font-size: 17px;
        /* Makes all text slightly larger (default is 16px) */
    }

    /* * We keep the 1600px cap, as it's excellent for readability,
  * but you could change this to 1800px if you prefer.
  */
    .container {
        max-width: 1600px;
    }
}

/* --- Ultra-Wide Screen / 4K TV Optimization --- */
@media screen and (min-width: 1921px) {

    /* 1. CONTENT AREA MAX CAP (Prevents text from stretching too wide) */
    .container {
        /* Set a definitive max size for the entire content box */
        max-width: 1900px;
    }

    /* 2. TEXT SCALING (Optional: Makes text pop on large screens) */
    /* Scale up essential hero text for better viewing from a distance */
    .scroll-title {
        font-size: 7rem;
        /* Increase max font size for visual impact */
    }

    /* 3. SLIDER VISUALS (If needed, adjust the perspective or size) */
    .carousel {
        padding: 5rem 0;
        /* Add more vertical padding */
    }
}

/* --- CARD STYLING & HOVER EFFECT (FINAL VERSION) --- */

.case-studies-section {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
    background-color: black !important;
    text-align: center;
    position: relative;
    z-index: 10;
}

.case-studies-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.case-study-card {
    width: 48%;
    max-width: 550px;

    /* FIX 1: Set a reliable background for contrast */
    background-color: #0d0e14;

    /* ADDED: Glass Properties & Rounding */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    position: relative;
    overflow: hidden;
    transition: none;

    /* FIX 2: Ensure the card is ALWAYS fully visible */
    opacity: 1 !important;

    display: flex;
    flex-direction: column;
    z-index: 50;
}

/* 2. Moving Glow/Spotlight (::after) */
.case-study-card::after {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);

    width: 250px;
    height: 250px;
    border-radius: 50%;

    /* Enhanced radial gradient */
    background: radial-gradient(circle at center,
            rgba(102, 0, 197, 0.45) 0%,
            rgba(0, 0, 0, 0) 60%);

    transform: translate(-50%, -50%);
    z-index: 1;

    /* Default state: hidden */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 3. Reveal the glow when the mouse enters the card */
.case-study-card:hover::after {
    opacity: 1;
}

/* 4. Fix Inner Content Stacking */
.case-study-card .card-content {
    position: relative;
    z-index: 2;
    /* Ensure text is always visible */
    opacity: 1 !important;
}

/* --- INNER CONTENT STYLES (Adjusted for Readability and Glass Effect) --- */

.case-study-card .card-title {
    /* Base text styling */
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 100px;
    
    /* 1. Set the text fill to transparent/faint */
    color: rgba(255, 255, 255, 0.3) !important; 

    /* 2. Apply the frosted glass look (White Stroke) */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7); 
    text-stroke: 1px rgba(255, 255, 255, 0.7);
    
    /* 3. Add a subtle purple/white glow around the text */
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5), 
        0 0 15px rgba(102, 0, 197, 0.6); 
    
    /* Ensure the text has its own relative position for z-index */
    position: relative;
    z-index: 3;
}

.case-study-card .quote {
    color: #a7a7a7;
    font-style: italic;
    border-left: 3px solid #555353;
    padding-left: 15px;
    margin: 30px 0;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1024px) {
    .case-studies-container {
        /* flex-direction: column; */
        gap: 30px;
    }

    .case-study-card {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .case-study-card::after {
        width: 150px;
        height: 150px;
    }
}

@media screen and (min-width: 1921px) {
    .case-study-card::after {
        width: 350px;
        height: 350px;
        background: radial-gradient(circle at center, rgba(102, 0, 197, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
    }
}


/* --- RESPONSIVE FIX: Case Study Headings --- */

/* Adjust for Tablet/Mid-Desktop (1024px and down) */
@media (max-width: 1024px) {
    .case-study-card .card-title {
        /* Ensure the font size scales appropriately for mid-size tablets */
        font-size: clamp(1.2rem, 2.8vw, 1.8rem); 
        /* Adjust minimum font size down slightly if needed for the iPad Pro view */
    }
}

/* Adjust for Mobile Phones (768px and down) */
@media (max-width: 768px) {
    .case-study-card .card-title {
        /* Set a fixed minimum size to maintain readability on phones */
        font-size: 1.2rem !important; 
        line-height: 1.4;
        min-height: auto; /* Remove fixed height constraint */
    }
}

/* Adjust for Smallest Phones (< 400px) */
@media (max-width: 400px) {
    .case-study-card .card-title {
        font-size: 1.1rem !important;
    }
}


/* --- TARGETED FIX: Narrow Mobile Devices (375px width) --- */
@media (max-width: 400px) {
    .case-study-card .card-title {
        /* Set a fixed size that guarantees readability on the smallest phones */
        font-size: 1.2rem !important; 
        line-height: 1.4;
        flex-direction: column;
        
    }
    
    /* Ensure the quote/paragraph text is also scaled appropriately */
    .case-study-card .quote {
        font-size: 0.9rem !important;
    }

    /* Ensure padding is minimal to give the text maximum room */
    .case-study-card {
        padding: 0px 5px; 
    }
}

/* --- TARGETED FIX: NARROW MOBILE STACKING --- */
@media (max-width: 450px) { /* Targeting screens smaller than typical phone */
    
    /* 1. Force the cards to stack vertically */
    .case-studies-container {
        flex-direction: column !important;
        gap: 20px;
    }
    
    /* 2. Ensure each card uses the full width */
    .case-study-card {
        width: 100% !important; /* CRITICAL: Must use 100% width */
        max-width: unset !important;
    }

    /* 3. Adjust internal text sizing for small screens */
    .case-study-card .card-title {
        font-size: 1.2rem !important;
    }
}


/* --- CRITICAL FIX: EARLY STACKING FOR LARGE PHONES/SMALL TABLETS --- */

@media (max-width: 600px) {
    /* 1. Force the cards to stack vertically */
    .case-studies-container {
        flex-direction: column !important;
        gap: 30px;
    }
    
    /* 2. Ensure each card uses the full width */
    .case-study-card {
        width: 100% !important; 
        max-width: unset !important;
    }

    /* 3. Re-center all content inside the card for the stacked view */
    .case-study-card .card-content {
        text-align: center;
        /* Optional: Re-center the quote border if needed */
    }

    .case-study-card .card-title {
        /* Ensure the title is well-spaced */
        font-size: 1.5rem !important; 
        line-height: 1.3;
        padding: 0 10px;
    }
}

/* --- MAGNETIC BUTTON EFFECT (CSS) --- */

.glass-button {
    /* Keep existing styles like border-radius, background, etc. */

    /* CRITICAL: Allows movement without reflow, and defines transition speed */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* New class added by JS to trigger the actual movement */
.magnetic-active {
    /* Ensures the element scales/moves using GPU */
    transform: translateZ(0);
}
/* --- 1. GLASS TEXT APPEARANCE (Numbers only) --- */
.stat-item .glass-counter-text {
    /* Base appearance for the numbers (transparent fill, white stroke) */
    color: rgba(255, 255, 255, 0.4) !important;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);

    /* Essential for animation */
    transition: color 0.2s ease-out, text-shadow 0.2s ease-out; 
    
    /* Ensure no background box properties exist */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: relative;
}

/* --- 2. STAT ITEM CONTAINER (Base and Pop-Up Effect) --- */
.stat-item {
    position: relative; 
    padding: 20px 30px; 
    
    /* Apply the scale/pop animation to the whole container */
    transition: transform 0.2s ease-out; 
    will-change: transform; 
    
    border-radius: 15px; 
    text-align: center;
    background: transparent; 
}

/* 3. HOVER EFFECT: Make the entire number block pop and the text glow */
.stat-item:hover {
    /* 1. Pop effect on the entire block */
    transform: scale(1.05); 
    
    /* 2. Optional: Subtle background glow on the block */
    text-shadow: 0 0 15px rgba(102, 0, 197, 0.4); 
}

/* 4. FOCUS VISUAL: Brighten the numbers when the parent block is hovered */
.stat-item:hover .glass-counter-text {
    /* Make the numbers instantly brighter and increase the glow intensity */
    color: white !important; 
    text-shadow: 0 0 25px rgba(255, 255, 255, 1); 
}


/* --- 5. RESPONSIVE FIXES (Mobile Stacking) --- */

@media (max-width: 768px) {
    /* A. Stats Container Stacks Vertically */
    .stats-container {
        flex-direction: column;
        gap: 40px;
    }

    /* B. Stat Item takes full width and remains centered */
    .stat-item {
        width: 100%;
        text-align: center;
        padding: 20px 15px; 
    }

    /* C. Adjusts the size of the large numbers to prevent overflow */
    .stat-item .counter-number,
    .stat-item .unit-symbol {
        font-size: 3em !important;
    }
}
/* --- 1. BASE STATE (Enable Transition) --- */
.service-detail-block h3 {
    /* Ensure a smooth transition for the shadow property */
    transition: text-shadow 0.3s ease-out; 
    
    /* Base text color (Ensure this is already set in your original styles) */
    color: #e7e7e7; 
    
    /* Set the shadow to fully transparent by default */
    text-shadow: 0 0 0 rgba(255, 255, 255, 0); 
    
    /* Optional: Keep the subtle lift hint for the GPU */
    will-change: text-shadow; 
}

/* --- 2. HOVER STATE (Apply Shadow/Glow) --- */
.service-detail-block h3:hover {
    /* Apply the distinct glow effect ONLY when hovered */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9); /* Faint white glow */
    
    /* Optional: Slightly brighten the text on hover for emphasis */
    color: white !important; 
}

/* --- VALUE PROPOSITION INTERACTION --- */

/* 1. Base Item: Enable Transition and Lift (Applies to the entire column) */
.value-prop-item {
    /* Keep existing styles (text-align, max-width) */
    
    /* ADD: Enable smooth animation for transformation */
    transition: transform 0.3s ease-out, color 0.3s ease-out; 
    will-change: transform; /* Performance hint */
    cursor: pointer;
}

.value-prop-item:hover {
    /* Lift the entire item slightly up */
    transform: translateY(-8px); 
}

/* 2. Icon Highlight: Change color on hover */
.value-prop-item:hover i {
    /* Brighten the icon to white/light gray on hover */
    color: #ffffff !important; 
    
    /* Ensure the color change is smooth */
    transition: color 0.3s ease-out; 
}

/* 3. Text Highlight: Brighten the heading on hover */
.value-prop-item:hover h4 {
    /* Brighten the heading to white */
    color: #ffffff !important; 
    
    /* Ensure the color change is smooth */
    transition: color 0.3s ease-out; 
}

/* --- SOCIAL ICON HOVER EFFECT --- */

.site-footer .social-icons a {
    /* Base positioning for the hover wipe effect */
    position: relative;
    overflow: hidden; 
    border: 3px solid #e7e7e7; /* Use white border */
    z-index: 1; /* Ensures text/icon is on top of the wipe */
}

/* Base Icon Styling */
.site-footer .social-icons a i {
    position: relative;
    color: #e7e7e7; /* Default icon color (white/light gray) */
    transition: 0.5s; /* Smooth transition for color and rotation */
    z-index: 3;
}

/* Icon Hover State */
.site-footer .social-icons a:hover i {
    color: #ffffff !important; /* Changes icon color to black/dark gray over the wipe */
    transform: rotateY(360deg); /* Icon spinning animation */
}

/* 2. Create the Color Wipe (::before) */
.site-footer .social-icons a:before {
    content: "";
    position: absolute;
    top: 100%; /* Starts outside the top of the circle */
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00; /* Placeholder color, overridden below */
    transition: 0.5s; /* Smooth transition for the wipe motion */
    z-index: 2; /* Sits between the icon (z-index 3) and the base (z-index 1) */
}

.site-footer .social-icons a:hover:before {
    top: 0; /* Moves the colored background fully into view */
}

/* 3. Apply Brand Colors */
.site-footer .social-icons a:nth-child(1):before {
    background: #3b5999;
}

.site-footer .social-icons a:nth-child(2):before {
    background: #c62858; 
}

.site-footer .social-icons a:nth-child(3):before {
    background: #000000; /* Use your primary brand purple/blue for Xing/Twitter */
}

@media (max-width: 768px) {
    /* ... other styles ... */
    
    /* FIX: Force the three columns to stack vertically */
    .authority-block {
        flex-direction: column; 
        gap: 40px !important; /* Add vertical space between the stacked items */
        
        /* Ensure it uses the full width for better alignment */
        width: 100%;
        max-width: unset;
        margin-left: 0 !important;
        
        /* Center the entire block of text for a clean mobile look */
        text-align: center;
    }
    
    /* Ensure the individual items use the full width available */
    .value-prop-item {
        max-width: 100% !important;
    }
    
    /* Re-center the text within the items */
    .value-prop-item h4,
    .value-prop-item p {
        text-align: center !important;
    }
    
    /* ... rest of the mobile styles ... */
}


/* --- TARGETED FIX: iPad Pro / Mid-Size Tablet Centering --- */

@media (min-width: 769px) and (max-width: 1300px) {
    
    /* 1. Force the main content block to center */
    .content {
        /* Overrides the old margin-left: 5rem; and centers text/block */
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        max-width: 95% !important; 
    }

    /* 2. Center the buttons group */
    .buttons {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
    
    /* 3. Center the Authority Block icons (if needed) */
    .authority-block {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
}

