
.home {
    
    width: 100%;
    height: 124vh;
    background-color: #000000;
    background-position: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.home img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 99.4%;
    height: 124vh;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;/* Cover the entire area of the image */
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: #04376e34; /* Example color with transparency */
}



.home .home-logo{
    width: 30%;
    height: 32.5%;
    margin-bottom: 15px;
    position: relative;
    z-index: -1;
}

.home .home-logo img{
    width: 100%;
    height: 100%;
}
.home .home-logo, .home .home-tittle{
    position: relative;
    z-index: 1;
}

/* Updated styles for clock */
.clock-container {
    text-align: center;
    border: 2px solid #00ffcc;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc inset;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffcc;
    font-family: 'Orbitron', monospace;
}

.time-unit {
    font-size: 1.5rem;
    margin: 2px 0;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc, 0 0 45px #00ffcc;
    animation: glow 1.5s infinite;
    letter-spacing: 0.1em;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    margin-bottom: 1px;
    padding-right: 6%;
}

.label {
    display: inline-block;
    width: 20px;
    text-align: center;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc;
    }
    50% {
        text-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc, 0 0 60px #00ffcc;
    }
}


.home .home-logo2{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 10%;
    position: relative;
    z-index: 1;
}

.home .home-logo2 .home-logo2-child1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 999;
}

.home .home-logo2 .home-logo2-child1 .box1,
.home .home-logo2 .home-logo2-child1 .box2,
.home .home-logo2 .home-logo2-child1 .box3 {
    width: 4%;
    height: 60%;
    box-shadow: 3px 8px 10px rgba(42, 164, 225, 0.727);
    margin: auto 30px auto 10px;
    animation: blink 3s ease-in-out infinite; /* Smoother and slower blink */
}

/* Add animation delay for each box to make them blink one after the other */
.home .home-logo2 .home-logo2-child1 .box1 {
    margin-left: 9%;
    background-color: #ffffff;
    animation-delay: 0s; /* Starts immediately */
}

.home .home-logo2 .home-logo2-child1 .box2 {
    background: linear-gradient(to bottom right, rgb(255, 255, 255), rgb(86, 127, 148), rgb(1, 22, 32));
    animation-delay: 1s; /* Starts after 1 second */
}

.home .home-logo2 .home-logo2-child1 .box3 {
    background: linear-gradient(to bottom right, rgb(255, 255, 255), rgb(1, 22, 32), rgb(1, 22, 32));
    animation-delay: 2s; /* Starts after 2 seconds */
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4; /* Slightly more subtle fade */
    }
    100% {
        opacity: 1;
    }
}


    .home .home-logo2 .home-logo2-child1 .box4{
        width: fit-content;
        height: 100%;
    }

   .home .home-logo2 .home-logo2-child1  .box4 img{
        width: 120px;
        height: 100px;
        margin-left: 80%;
    }





.home p {
    color: aliceblue;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    width: 90%;
}

.home .btn {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
.home .btn .second_btns  .blue i{
    margin-left: 3px;
}



/* first part */



.first_part  {
transform: scale(0.9);
}


.first_part h1{
    font-family: 'Orbitron', monospace;
    font-size: 35px;
    font-weight: 800;
}


.first_part .container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    transform: scale(0.9);
}

.first_part p {
    color: #666;
    margin-bottom: 30px;
}

.first_part .service-cards { 
    display: flex;
    justify-content: center;
    gap: 1px;
    flex-wrap: wrap;
   
}

.first_part .card {
    background: white;
    padding: 20px;
    width: 700px;
    height: 350px;
    border-radius: 1px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: ease-in-out 0.2s;
}

.first_part .card p {
    color: #373333;
    margin-top: 10px;
}

.first_part .card h1 {
text-transform: capitalize;
}

.first_part .card:hover {
transform: scale(0.9);
}

.first_part .card2{
background-color: #000000;
}
.first_part .card3{
    background-color: #007E73;
    }
    
.first_part .card6{
    background-color: #267BB9;
}


.first_part .card2, .first_part .card3, .first_part .card6{
    display: flex;
    flex-direction: column;
    padding: 0;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.first_part .card2  img, .first_part .card3  img, .first_part .card6 img {
       right: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
        
    }
    
    /* Overlay Effect */
    .first_part .card2 .overlay , .first_part .card3 .overlay , .first_part .card6 .overlay {
        background: rgba(0, 0, 0, 0.782); /* Dark overlay */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        color: white;
        padding: 20px;
        position: absolute;
        inset: 0; /* Covers the entire hero section */
    }

    .first_part .card3 .overlay  {
        background: #007e73ca;
    }
    .first_part .card6 .overlay {
        background: #267cb9d2;
    }


    .first_part .card2 .overlay-content, .first_part .card3 .overlay-content, .first_part .card6 .overlay-content{
        width: 60%;
        padding-left: 45px;
    }
    
    
/*this is the second part*/
.second_part {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    min-height: 100vh;
    background: linear-gradient(to right, #000306, #000000, #000000);
    overflow: hidden;
    padding: 3rem 2rem;
    gap: 3rem;
}

.second_part .image_container {
    flex: 1 1 40%;
    max-width: 500px;
    height: auto;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.25);
    transition: transform 0.8s ease-in-out;
}

.second_part img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 1.5s ease;
    border-radius: 2rem;
}

.second_part:hover img {
    transform: scale(1.08);
}

.internal_second_section {
    flex: 1 1 50%;
    color: white;
    backdrop-filter: blur(10px);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
    max-width: 600px;
}

.internal_second_section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #008cff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.internal_second_section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #87878d;
    margin-bottom: 1rem;
}

.internal_second_section p {
    font-size: 1rem;
    color:  #00dd95;
    line-height: 1.6;
}


.third_part {
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
}

.third_part .frame_container {
    width: 100%;
    margin-top: 2%;
}

.frame {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 96%;
    margin: auto;
}

.third_part .image4 {
    flex: 1 1 calc(25% - 40px); /* Default: 4 items per row */
    max-width: calc(25% - 40px);
    text-align: center;
}

.third_part .image4 img {
    width: 100%;
    height: 470px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 8px;
}

.third_part li {
    list-style-type: none;
    margin: 10px 0 9px 0;
}

.third_part li a {
    color: #ffffff;
    text-decoration: none;
    background-color: #000000;
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 5px;
    transition: 0.3s ease;
    display: inline-block;
}

.third_part li a:hover {
    font-size: 18px;
    color: #000000;
    background-color: #ffffff;
}
/* --- MEDIA QUERIES --- */

/* Tiny phones */
@media (max-width: 320px) {
.home img {
    position: absolute;
    top: 0;
    left: 0;
    width: 97.4%;
    height: 124vh;
    object-fit: cover;
    object-position: center;
}

.home .home-logo{
    width: 250px;
    height: 36.5%;
}

.home .home-logo2{

     margin-top: 80px;
}

.home .home-logo2 .home-logo2-child1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 999;
}

.home .home-logo2 .home-logo2-child1 .box1,
.home .home-logo2 .home-logo2-child1 .box2,
.home .home-logo2 .home-logo2-child1 .box3 {
    width: 10%;
    height: 54%;
}

    .home .home-logo2 .home-logo2-child1 .box4{
        width: fit-content;
        height: 100%;
    }

   .home .home-logo2 .home-logo2-child1  .box4 img{
        width: 60px;
        height: 80px;
        margin-right: auto;
    }



    
    .second_part {
        flex-direction: column;
        padding: 1rem;
    }

    .internal_second_section h1 {
        font-size: 1.5rem;
    }

    .internal_second_section h3 {
        font-size: 1rem;
    }

    .internal_second_section p {
        font-size: 0.85rem;
    }



    .third_part .image4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .third_part li a {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* Phones */
@media (min-width: 321px) and (max-width: 480px) {
.home img {
    position: absolute;
    top: 0;
    left: 0;
    width: 97.4%;
    height: 124vh;
    object-fit: cover;
    object-position: center;
}

.home .home-logo{
    width: 250px;
    height: 36.5%;
}

.home .home-logo2{

     margin-top: 80px;
}

.home .home-logo2 .home-logo2-child1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 999;
}

.home .home-logo2 .home-logo2-child1 .box1,
.home .home-logo2 .home-logo2-child1 .box2,
.home .home-logo2 .home-logo2-child1 .box3 {
    width: 10%;
    height: 54%;
}

    .home .home-logo2 .home-logo2-child1 .box4{
        width: fit-content;
        height: 100%;
    }

   .home .home-logo2 .home-logo2-child1  .box4 img{
        width: 60px;
        height: 80px;
        margin-right: auto;
    }


    
    .second_part {
        flex-direction: column;
        padding: 1.5rem;
    }

    .internal_second_section h1 {
        font-size: 2rem;
    }

    .internal_second_section h3 {
        font-size: 1.2rem;
    }

    .internal_second_section p {
        font-size: 0.9rem;
    }
    


    
    .third_part .image4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Phones landscape and small tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .home img {
    position: absolute;
    top: 0;
    left: 0;
    width: 97.4%;
    height: 124vh;
    object-fit: cover;
    object-position: center;
}

.home .home-logo{
    width: 250px;
    height: 36.5%;
}

.home .home-logo2{

     margin-top: 80px;
}

.home .home-logo2 .home-logo2-child1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 999;
}

.home .home-logo2 .home-logo2-child1 .box1,
.home .home-logo2 .home-logo2-child1 .box2,
.home .home-logo2 .home-logo2-child1 .box3 {
    width: 10%;
    height: 54%;
}

    .home .home-logo2 .home-logo2-child1 .box4{
        width: fit-content;
        height: 100%;
    }

   .home .home-logo2 .home-logo2-child1  .box4 img{
        width: 60px;
        height: 80px;
        margin-right: auto;
    }



    .second_part {
        flex-direction: column;
    }
    
    .third_part .image4 {
        flex: 1 1 48%;
        max-width: 48%;
    }
}

/* Tablets portrait */
@media (min-width: 768px) and (max-width: 834px) {
.home .home-logo2 .home-logo2-child1 .box1,
.home .home-logo2 .home-logo2-child1 .box2,
.home .home-logo2 .home-logo2-child1 .box3 {
    width: 10%;
    height: 54%;
}


    .second_part {
        flex-direction: column;
    }

    .internal_second_section h1 {
        font-size: 2.5rem;
    }
    
    .third_part .image4 {
        flex: 1 1 48%;
        max-width: 48%;
    }
}

/* Tablets landscape */
@media (min-width: 835px) and (max-width: 1023px) {
    .home {
        height: 120vh;
    }

    .home .home-logo {
        width: 40%;
    }

    .time-unit {
        font-size: 1.3rem;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 110px;
        margin-left: 65%;
    }


   .second_part {
        flex-direction: row;
    }

    .internal_second_section h1 {
        font-size: 2.8rem;
    }
   
    .third_part .image4 {
        flex: 1 1 30%;
        max-width: 30%;
    }
}

/* Small laptops */
@media (min-width: 1024px) and (max-width: 1279px) {

  .home .home-logo {
        width: 35%;
    }

    .time-unit {
        font-size: 1.4rem;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 120px;
        margin-left: 70%;
    }

   .internal_second_section h1 {
        font-size: 2.8rem;
    }

    .internal_second_section p {
        font-size: 1rem;
    }
   


    .third_part .image4 {
        flex: 1 1 23%;
        max-width: 23%;
    }
}

/* Medium desktops */
@media (min-width: 1280px) and (max-width: 1439px) {
 .home .home-logo {
        width: 28%;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 130px;
        margin-left: 80%;
    }

    .internal_second_section h1 {
        font-size: 3rem;
    }

    .internal_second_section p {
        font-size: 1.05rem;
    }
    
    .third_part .image4 {
        flex: 1 1 23%;
        max-width: 23%;
    }
}

/* Large desktops */
@media (min-width: 1440px) and (max-width: 1919px) {
    .home .home-logo {
        width: 26%;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 135px;
        margin-left: 80%;
    }



    .internal_second_section h1 {
        font-size: 3.2rem;
    }

    .third_part .image4 {
        flex: 1 1 23%;
        max-width: 23%;
    }
}

/* Full HD and 2K screens */
@media (min-width: 1920px) and (max-width: 2559px) {
    .home {
        height: 130vh;
    }

    .home .home-logo {
        width: 25%;
    }

    .time-unit {
        font-size: 2rem;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 150px;
        margin-left: 85%;
    }


    .second_part {
        padding: 4rem;
    }

    .internal_second_section h1 {
        font-size: 3.5rem;
    }

    .internal_second_section p {
        font-size: 1.15rem;
    }


    .third_part .image4 {
        flex: 1 1 23%;
        max-width: 23%;
    }
}

/* 4K and up */
@media (min-width: 2560px) {
 .home {
        height: 135vh;
    }

    .home .home-logo {
        width: 22%;
    }

    .time-unit {
        font-size: 2.2rem;
    }

    .home .home-logo2 .home-logo2-child1 .box4 img {
        width: 160px;
        margin-left: 88%;
    }



 .second_part {
        padding: 5rem;
    }

    .internal_second_section h1 {
        font-size: 4rem;
    }

    .internal_second_section p {
        font-size: 1.3rem;
    }


    .third_part .image4 {
        flex: 1 1 20%;
        max-width: 20%;
    }
}
