@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box; 
    font-family: "Poppins", "sans-serif";
}
body{
    overflow: hidden;
}
.Home{
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header{
    position: fixed;   
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    padding: 50px 80px;
    z-index: 99;
    opacity: 0;
    animation: to_bottom 1s ease forwards;
}
header nav a{
    font-size: 24px;
    color: black;
    position: relative;
    margin-left: 70px;
}
header nav a::before{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: black;
    width: 100%;
    height: 2.5px;
    transform: scaleX(0);
    transition: .4s; 
    /*transform-origin: left;*/
}
header nav a:hover::before{
    transform: scaleX(1);
}
.text-box{
    width: 50%;
    color: black;
    margin-left: 80px;
}
.text-box h1{
    font-size: 60px; 
    animation: to_right 1s ease forwards .8s;
}
.text-box h1:nth-child(2){
    animation-delay: .9s;
}
.text-box h1 span{
    color: #972A28;
}
.text-box p{
    margin: 35px;
    font-size: 20px;
    width: 70%;  
    color: #6b6b6b;
    animation: to_right 1s ease forwards 1s;
}
.text-box p span{
    font-weight: bold;
}
.btn{
    position: relative;
    color: white;
    padding: 12px 30px;
    border: 2px solid #972A28;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 30px;
    transition: .3s;
    overflow: hidden; 
    animation: to_right 1s ease forwards 1.1s;
}
.btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #972A28;
    z-index: -1;
    transform: scaleX(1);
    transform-origin: left;
    transition: .3s; 
}
.btn:hover::before{
    transform: scaleX(0);
}
.btn:hover{
    color: black; 
}
img{
    
    position: absolute;
    right: 20px;
    bottom: 100px;
    height: 65%;
    width: 52%;
    opacity: 0;
    animation: to_left 1s ease forwards 1.1s;
}
@keyframes to_bottom{
    0%{
        transform: translateY(-50px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes to_right{
    0%{
        transform: translateX(-50px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes to_left{
    0%{
        transform: translateX(50px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}
.text-box *{
    opacity: 0;
}
.text-box span{
    opacity: 1;
}



/* Existing CSS remains the same */

@media (max-width: 1000px) {
    /* Hide the image earlier and keep text size large */
    .text-box {
        width: 80%;
        margin: 0 auto; /* Center text-box without moving down */
    }

    /* Make text sizes the same or slightly larger */
    .text-box h1 {
        font-size: 60px; /* Keep the main heading size */
    }

    .text-box p {
        font-size: 22px; /* Slightly increase paragraph text */
        width: 90%;  
        margin: 30px 0;
    }

    .btn {
        padding: 12px 30px;
        font-size: 20px;
    }

    /* Hide the image */
    img {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Further scaling adjustments for smaller screens */
    .text-box {
        width: 90%;
    }

    .text-box h1 {
        font-size: 48px; /* Slightly reduce heading for smaller screens but keep it large */
    }

    .text-box p {
        font-size: 20px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 18px;
    }

    header {
        padding: 30px 20px;
    }

    header nav a {
        font-size: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    /* Minor adjustments for very small screens */
    .text-box {
        width: 100%;
    }

    .text-box h1 {
        font-size: 36px; /* Keep heading readable on smallest screens */
    }

    .text-box p {
        font-size: 18px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 16px;
    }

    header {
        padding: 20px;
    }

    header nav a {
        font-size: 18px;
        margin-left: 10px;
    }
}

header nav a.active {
    color: #6cd490;
}

