:root {
    --primary-color: #D4FF01;
    --light-bg: #FAFAFA;
    --white: #FFFFFF;
    --black: #000000;
    --dark-blue-gray: #3E4D55;
    --darkest-blue: #212E35;

    --font-primary: 'Montserrat', sans-serif;
    --font-pixel: 'Pixelify Sans', sans-serif;
}

/* --- General & Resets --- */
/* * { -- disabled to prevent global leakage on other pages */
    box-sizing: border-box;
}

/* body { -- disabled to prevent global leakage on other pages */
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--light-bg) !important;
    color: var(--darkest-blue);
    overflow-x: hidden;
}

.home-2-template section {
    padding: 80px 1%;
}

/* --- Header Elements --- */
.home-2-template .logo-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.home-2-template .logo {
    height: 40px;
}

.home-2-template .main-nav {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 100;
}

.home-2-template .main-nav a {
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 16px;
}

/* --- Hero Section --- */
.home-2-template .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.home-2-template .video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.home-2-template .video-background iframe {
    zoom: 0.75;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-2-template .hero-content {
    text-align: center;
}

.home-2-template .hero-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
}

.home-2-template .hero-content .highlight {

    background-color: var(--primary-color);
    padding: 0 15px;
    position: relative; /* needed for absolute positioning of dot */
    border:#212E35 solid 1px;
}


/* top-left */
.home-2-template .hero-content .highlight::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: #333;
  }
  
  /* top-right */
.home-2-template .hero-content .highlight::after {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 5px;
    height: 5px;
    background: var(--light-bg) ;
    border: 1px solid #212E35;
  }
  
  /* bottom-left */
.home-2-template .hero-content .highlight::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 5px;
    height: 5px;
    background: var(--light-bg) ;
    border: 1px solid #212E35;

  }
  
  /* bottom-right */
.home-2-template .hero-content .highlight::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 5px;
    height: 5px;
    background: var(--light-bg) ;
    border: 1px solid #212E35;
  }
/* --- Intro Section --- */
.home-2-template .intro {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    padding: 80px 1%;
    background-color: #FAFAFA;
}

.home-2-template .intro p {
    max-width: 950px;
    margin: 0 auto 50px auto;
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 200;
}

.home-2-template .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.home-2-template .stat {
    text-align: left;
}

.home-2-template .stat h3 {
    font-family: var(--font-pixel);
    font-size: 2rem;
    margin: 0 0 5px 0;
    font-weight: 300;
}

.home-2-template .stat p {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
}

/* --- Section Titles --- */
.home-2-template .title-container {
    display: flex;
    width: 100%;
    margin-bottom: 40px;
}

.home-2-template .align-left {
    justify-content: flex-start;
}

.home-2-template .align-right {
    justify-content: flex-end;
}

.home-2-template .title-icon {
padding-bottom: 5px;
padding-right: 7px;
background-color: var(--darkest-blue);

}
.home-2-template .title-icon img {
    
    height: 100px;
    border: 7px solid #D4FF01;
    padding: 20px;

    }
.home-2-template .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--darkest-blue);
    color: var(--white);
    padding-left: 20px;
    padding-right: 100px;
    position: relative;
    margin-top: 0;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

.home-2-template .section-title-right {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--darkest-blue);
    color: var(--white);
    padding-left: 20px;
    padding-right: 100px;
    position: relative;
    margin-top: 0;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

.home-2-template .section-title-right::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--primary-color);
}

.home-2-template .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 90%;
    height: 10px;
    background-color: var(--primary-color);
}

.home-2-template .section-title img {
    height: 35px;
}

.home-2-template .align-right .section-title img {
    order: 2;
}

/* --- Services Section --- */
.home-2-template .services {
    background-color: var(--white);
    padding:80px 1%;
}

.home-2-template .service-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.home-2-template .service-tabs button {
    background: none;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    padding: 15px;
    cursor: pointer;
    font-family: var(--font-pixel);
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.home-2-template .service-tabs button span {
    font-family: var(--font-primary);
    font-weight: 500;
}

.service-tabs button:hover,
.home-2-template .service-tabs button.active {
    border-bottom-color: var(--darkest-blue);
}

.home-2-template .tab-content {
    display: none;
}

.home-2-template .tab-content.active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 40px;
    border-radius: 15px;
    background-color: var(--light-bg);
    border: 1px solid #e8e8e8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.home-2-template .service-info {
    flex: 1 1 300px;
}

.home-2-template .service-graphic {
    flex: 1 1 300px;
}

.home-2-template .service-graphic img {
    width: 100%;
    height: auto;
}

.home-2-template .service-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.home-2-template .service-info p {
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.home-2-template .service-info button {
    background-color: var(--darkest-blue);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1rem;
}

/* --- Projects Section --- */
.home-2-template .projects {
    text-align: center;
    background-color: #FAFAFA;
    padding: 80px 1%;
}

.home-2-template .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.home-2-template .project-card {
    background-color: var(--light-bg);
    text-align: left;
}

.home-2-template .project-card img {
    width: 100%;
}


.home-2-template .project-card {
    overflow: hidden; /* prevents image overflow when scaling */
  }
  
.home-2-template .project-card img {
    transition: transform 0.3s ease; /* smooth animation */
  }
  
.home-2-template .project-card:hover img {
    transform: scale(1.05); /* zoom image only */
  }

.home-2-template .project-info {
    padding: 20px;
    /* background: #F0F6E0; */
}

.home-2-template .project-info p {
    font-family: var(--font-pixel);
    font-size: 12px;
    margin: 0;
}

.home-2-template .project-info h3 {
    font-family: var(--font-primary);

    margin: 10px 0 0 0;
    font-size: 1.9rem;
    font-weight: 200;
}

.project-info p,
.home-2-template .project-info h3 {
  position: relative;
  display: inline-block;
   /* shrink background to text length */
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

/* highlight pseudo-element */
.project-info p::before,
.home-2-template .project-info h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;        /* start hidden */
  width: 100%;
  height: 100%;
  background: #D4FF01;
  z-index: -1;
  opacity: 0;
  transition: left 0.5s ease, opacity 0.5s ease;
}

/* ✅ Hover on parent triggers both highlights */
.project-info:hover p::before,
.home-2-template .project-info:hover h3::before {
  left: 0;
  opacity: 1;
}


.home-2-template .all-projects-btn {
    display: inline-block;
    margin-top: 50px;
    background-color: var(--darkest-blue);
    color: var(--primary-color);
    padding: 10px 70px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 300;
    font-family: var(--font-primary);
    
}






.home-2-template /* .all-projects-btn:after {
    content: " | All Projects";
    color: var(--primary-color);
} */

/* === MODIFIED CSS START === */
/* --- Clients Section --- */
.clients {
    /* We add extra bottom padding to give space for the diagonal ribbon */
    overflow-x: clip; /* Prevents horizontal scrollbar from skewed element */
   padding-top:120px;


}

.home-2-template .client-ribbon-wrapper {
    background-color: var(--primary-color);
    /* This creates the diagonal effect */
    transform: skewY(3deg);
     padding: 5px 0; 
     margin-top: 150px;
}

.home-2-template .client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows logos to wrap on smaller screens */
    gap: 260px !important; /* Space between logos */
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0 20px; */
    /* This counters the parent's skew, making the logos straight */
    
}

.home-2-template .client-logos img {
    height: 40px; /* Control the size of the logos */
    max-width: 250px; /* Prevent logos from becoming too wide */
    object-fit: contain;
    margin-right: 40px;
}
/* === MODIFIED CSS END === */

.home-2-template .legendary {
    /* background-color: var(--primary-color); */
    padding: 170px 20%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns card to the left */

    background-image: url('https://techhype.ae/wp-content/uploads/2025/08/Vector-2.png');
    background-repeat: no-repeat;
    background-position: right bottom; 
     background-position-x: right;
    background-size: contain;
   
}

.home-2-template .legendary-content {
    background: var(--darkest-blue);
    /* New background color */
    color: var(--primary-color);
    padding: 10px;
    position: relative;
    text-align: left;
    max-width: 500px;
    border-radius: 0px;
    border:5px solid #D4FF01;
}

.home-2-template .letsbuild {
    margin-left: 50px;
    font-size: 33px !important;
    margin-bottom: 50px;
}
.home-2-template .legendary p {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 100 !important;
    line-height: 1.9rem;
}

.home-2-template .legendary-title-box {
    background: var(--primary-color);
    /* New background color */
    padding: 5px 15px;
        margin: -100px 0px 10px 50px;
    margin-left: 50px;
    margin-bottom: 10px;
    display: inline-block;
}

.home-2-template .legendary-title-box h2 {
    color: var(--darkest-blue);
    /* New text color for contrast */
    font-size: clamp(3rem, 10vw, 4.1rem);
    font-weight: 300;
    margin: 0;
}

.home-2-template .legendary-icon {
    position: absolute;
    right: -30px;
    bottom: -20px;
    height: 60px;
}

/* --- Footer --- */
.home-2-template footer {
    background-color: var(--darkest-blue);
    color: var(--white);
    padding: 80px 1%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.home-2-template .footer-container {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    gap: 20px;
    padding-bottom: 50px;
    /* border-bottom: 1px solid var(--dark-blue-gray); */
}

.home-2-template .contact-form {
    flex: 0 0 700px;
    font-family: var(--font-primary);
    padding: 20px;

}
.home-2-template .footer-nav {
    flex: 0 0 300px;
    border: 2px solid #D4FF01;
    font-family: var(--font-primary);
    padding: 20px;
}


.home-2-template .contact-form h3 {
    font-family: var(--font-pixel);
    font-size: 2.0rem;
    background-color: var(--primary-color);
    color: var(--darkest-blue);
    padding: 15px 45px;
    text-align: left;
    display: inline-block;
    transform: rotate(-3deg);
}

.contact-form input,
.home-2-template .contact-form textarea {

    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-pixel);
}

.home-2-template .contact-form button {
    background-color: var(--primary-color);
    color: var(--darkest-blue);
    padding: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-pixel);

}

.home-2-template .footer-nav h4 {
    font-size: 1.2rem;
    font-family: var(--font-pixel);
    background-color: var(--primary-color);
    color: var(--darkest-blue);
    padding: 10px;
    display: inline-block;
    width: 90%;
    margin-bottom: 0px;
    margin-top: -60px;
}

.home-2-template .footer-nav ul {
    list-style: none;
    padding: 0;
}

.home-2-template .footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    line-height: 2;
    font-size: 18px;
    letter-spacing: 0.9;
    font-family: var(--font-primary);
}

.home-2-template .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

.home-2-template .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.home-2-template .contact-info img {
    height: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
.home-2-template .project-grid {
        grid-template-columns: 1fr;
    }

.home-2-template .tab-content.active {
        flex-direction: column;
        text-align: center;
    }

.home-2-template .service-info {
        text-align: center;
    }

.home-2-template .legendary {
        justify-content: center;
    }

    /* Center the card on smaller screens */
}
}

@media (max-width: 768px) {
.home-2-template section {
        padding: 60px 5%;
    }

.home-2-template .main-nav {
        top: 30px;
        right: 20px;
    }

.home-2-template .logo-container {
        top: 20px;
    }

    .footer-container,
.home-2-template .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

.home-2-template .title-container {
        justify-content: center !important;
        padding: 0 5%;
    }

.home-2-template .client-logos {
        gap: 40px; /* Reduce gap for smaller screens */
    }
}
}