*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    
}

body{
    font-family: 'Peace Sans', sans-serif;
    background: linear-gradient(45deg, #035961, #000000); /* Initial gradient */
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite; /* Animation applied to the gradient */
}

li{
    list-style:none;
}

a{
    text-decoration:none;
    color:#fff;
    font-size:1.8rem;
}



/* header */

header {
    position: relative;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.322);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    width: 100%;
    height: 60px;
    max-width: 1100px;
    margin: 0.7rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo img {
    width: 10rem;
    opacity: 0;
    animation: fadelogo 1.5s ease-in-out forwards;
}

@keyframes fadelogo {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.navbar .links {
    display: flex;
    gap: 4rem;
    list-style: none;
    font-weight: bold;
}

.navbar .links li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
    font-size: 1.3rem;
}

.navbar .links li a:hover {
    color: rgb(6, 19, 189);
}

.action_btn {
    background-color: rgb(6, 19, 189);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.action_btn:hover {
    transform: scale(1.05);
}
.action_btn2 {
    background-color: rgb(6, 19, 189);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.action_btn2:hover {
    transform: scale(1.05);
}

.toggle_btn {
    color: rgb(6, 19, 189);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/*Dropdown_menu */

.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 80px;
    width: 300px;
    background-color: rgba(255, 177, 59, 0.116);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
    display: block;
    height: 270px;
}


.dropdown_menu li{
    padding:0.7rem;
    display:flex;
    align-items:center;
    justify-content:center;
}

.dropdown_menu li a{
    border-bottom: 3px solid rgba(255, 165, 0, 0.3);
}

.dropdown_menu .action_btn{
    width:100%;
    display:flex;
    justify-content:center;
}



/* my codes for head */

.cont{
    display: flex;
    justify-content: center; /* Center container horizontally */
    align-items: center; /* Center container vertically */
    width: 100%;
    gap: 10px; /* Space between firstBox and secondBox */
    padding: 10rem;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 34rem;
    left: 50%
}

/* Keyframes for the background gradient animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}





/* First box: Centered but text aligned to the left */
.firstBox {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centered */
    align-items: center; /* Centers the box */
    width: 50%;
    
    
}

.firstBox > div {
    align-self: flex-start; /* Moves the text to the left inside the box */
    text-align: left; /* Ensures text stays left-aligned */
    padding-bottom: 20px; /* Adjust the padding as needed */

}

/* Second box stays centered */
.secondBox {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: right;
    position: absolute;
    bottom:4rem ;
    right: 8rem;
    

}

/* Image styling */
.secondBox img {
    margin-top:2rem;
    max-width: 35%;
    height: auto;
    display: block;
}

/* Image styling */
.ads img{
    display: none;
}

/* Button styling */
.btnn {
    display: inline-block;
    padding: 10px 20px;
    background-color:orange;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    align-self: flex-start; /* Ensures button aligns left too */
}
.btnn:hover {
    
    background-color:rgb(6, 19, 189);
    color: white;
    
}

.firstBox h3{
    font-size:1rem;
    font-weight:bold;
    color:#fff;
}
.firstBox .sub{
    
    color:#fff;
}



.typed-tex {
    font-size:3rem;
    font-weight:bold;
    color:#fff;
    padding-bottom:1.5rem;
}

oneCont, .twoCont {
    display: none;
}

.show {
    display: block;
    opacity: 1;
}


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .image-container img {
    margin: 0 10px; /* Space between images */
    width: 10rem;
  
    
  }
 
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    background: rgba(255, 255, 255, 0.322);
    color: #fff;
    position: relative;
    top: 65rem;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
  }
  
  .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 45px;
    background-color: #444;
    color: white;
    border-radius: 50%;
    padding:10px;
    text-decoration: none;
    font-size: 25px;
    transition: 0.3s;
  }
  
  .icon:hover {
    background-color: #666;
  }
  
  .copyright {
    font-size: 20px;
  }









/* code end for  head */



/* responsive design */

@media(max-width:1024px){
    
       /* Second box stays centered */
.secondBox {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: right;
    position: absolute;
    bottom:6rem ;
    right: 3rem;
    

}
    
    
    
    .firstBox {
        align-items: left; /* Center the box on mobile */
        width: 70%;
    }
  
    .cont{
    top: 40%;
    width: 100%;
    gap: 20px; /* Space between firstBox and secondBox */
    padding: 3rem;
    
}
  .footer {
    position: relative;
    top: 90rem;
  }
    

}

@media(max-width:500px){
    
    header{
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Adds shadow at the bottom */ 
        margin:10px;
        padding:0.5rem 2rem;
        border-radius:10px; 
    }
    .dropdown_menu{
        left:2rem;
        width:unset;
    }
    .dropdown_menu a{
        font-size:1rem;
    }
    
    .action_btn{
        display: none;
        padding:0.5rem 1rem;
        font-size:0.8rem;
}
    .action_btn2{
        padding:0.5rem 1rem;
        font-size:0.8rem;
}
.navbar .links{
    display:none;
}


.navbar{
    margin:0 auto;
}

.navbar .logo img{
    width:8rem;
}

.toggle_btn {
    display: none;
}

/* Animated yellow underline */
.navbar .logo::after{
        content: "";
        position: absolute;
        left: 50px;
        bottom: 11px; /* Adjusts distance from text */
        width: 0px;
        max-width:70px;
        height: 3px;
        background-color: orange;
        opacity: 0;
        transform: translateX(-50%); /* Center the line */
        animation: moveRightLeft  1.5s ease-in-out forwards;
}

@keyframes moveRightLeft {
    0% { width: 0%; opacity: 0; transform: translateX(-50%); } /* Start small */
    50% { width: 50px; opacity: 1; transform: translateX(0%); } /* Expand right */
    100% { width: 50px; opacity: 1; transform: translateX(-50%); } /* Move back left and stay */
}

 .cont {
        flex-direction: column; /* Stack items in column */
        height: auto; /* Remove fixed height */
        padding:1rem;
        margin-top:2rem;
        top: 30rem;
    }

    .firstBox {
        align-items: left; /* Center the box on mobile */
        width: 100%;
    }

    .firstBox > div, .btnn {
        align-self: left; /* Center text & button on mobile */
        text-align: left;
        padding-bottom: 1rem; /* Adjust the padding as needed */
    }

    .secondBox img {
        max-width: 100%; /* Make image larger on mobile */
    }

.firstBox h3{
        font-size:0.8rem;
}

.typed-text {
        font-size:2.3rem;
}

.btnn {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    background-color:orange;
    color: white;
    font-size:1rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    align-self: flex-start; /* Ensures button aligns left too */
}

.secondBox {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top:40rem;
    left: 3rem;
}

/* Image styling */
.ads img{
    width: 20rem;
    display: block;
}
.secondBox img{
    display: none;
}

.footer {
    flex-direction: column;
    text-align: center;
    position: relative;
    top: 55rem;
  }

  .social-icons {
    margin-bottom: 10px;
  }


  .copyright {
    font-size: 14px;
  }


}








