html{
    scroll-behavior: smooth;
}

a{
    transition: all .3s ease-in-out;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #faf8ef;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.logo {
    position: fixed; /* Fix it to the top-left */
    top: 20px;
    left: 20px; /* Adjust left spacing if needed */
    z-index: 10;
}

.logo a{
    color:  #203354;
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
}
.logo a:hover{
    color: #fff;
    background: #203354;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.4s, color 0.3s;
}
/* Navbar */
.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    font-weight: 600;
    color: #203354;
    padding: 10px 20px;
    background-color: #fefbea;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fefbea;
    background-color: #203354;
    padding: 20px 20px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.nav-list li {
    margin: 0 5px;
}

.nav-list a:hover {
    background-color: #203354;
    color: #faf8ef;
    border: 5px solid #faf8ef;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #203354;
    padding: 0;
    margin: 0;
    list-style-type: none;
    min-width: 120px;
    border-radius: 10px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 8px 12px;
    color: #203354;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #203354;
}

.main-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: calc(100% - 30px);
    background-color: #fefbea;
    border: 5px solid #203354;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 90px;
}

.mainword{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: transparent;
    -webkit-text-stroke: 3px  #203354;
    text-transform: uppercase;
    
    
}
.main-do{
    position: relative;
    font-size: 10vw;
    font-weight: 900;
    right: 360px;
    top: 175px;
}
.main-you{
    font-size: 13.5rem;
    font-weight: 900;
    color: #203354;
    position: relative;
    bottom: 50px;
}
.main-understand{
    position: relative;
    font-size: 7rem;
    font-weight: 900;
    top: -100px;
    right: 100px;
    
}

.main-Physics{
    position: relative;
    font-size: 14rem;
    font-weight: 900;
    color: #203354;
    background-image: url('Equatioins_2.jpeg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text; /* Clips the background to the text */
    background-clip: text; 
    bottom: 150px;

}
.scroll-indicator{
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7rem;
    color: #203354;
    animation: bounce 2s infinite;
    cursor: pointer;
}
.scroll-indicator:hover{
    opacity: 1;
}

@keyframes bounce {
    0%,100%{
        transform: translate(-50%,0);
    }
    50%{
        transform: translate(-50%,15px);
    }
    
}
.second-container{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: calc(100% - 30px);
    background-color: #203354;
    border: 5px solid #fefbea;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 30px;
    overflow: hidden;
}

.button-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}
.secondword{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: transparent;
    -webkit-text-stroke: 3px #fefbea;
    text-transform: uppercase;
}

.idontword{
    font-size: 15rem;
    font-weight: 900;
    color: #fefbea;
    position: relative;
    right: 0px;
    top: 30px;

}

.made{
    position: relative;
    font-size: 8rem;
    font-weight: 900;
    color:#203354;
    background-image: url('Equatioins_2.jpeg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text; /* Clips the background to the text */
    background-clip: text; 
    
}
.buttons-wrapper{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    text-align: center;

}
.kin-button,.quad-button,.vec-button,.fri-button{
    display: inline-flex;
    padding: 35px 35px;
    border: 5px solid #fefbea;
    background-color: #203354;
    color: #fefbea;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    min-width: 150px;
}

.kin-button:hover,.quad-button:hover,.vec-button:hover{
    border: 5px solid #203354;
    background-color: #fefbea;
    color: #203354;
}

.scroll-btn{
    width: 70px;
    height: 70px;
    border: 5px solid #fefbea;
    border-radius: 50%;
    background-color: #203354; /* Dark Blue */
    color: #ffffff; /* White arrow */
    font-size: 40px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
   
}
.scroll-btn-left{
    margin-right: auto;
}
.scroll-btn-right{
    margin-left: auto;
}
/* Make sure the buttons don't overflow */
.buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}
.scroll-btn:hover {
    background-color: #fefbea; /* Lighter Blue on hover */
    color: #203354;
    transform: scale(1.1); /* Slightly enlarge */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .idontword {
        font-size: 10vw;
    }

    .made {
        font-size: 5vw;
    }

    .main-do, .main-you, .main-understand, .main-Physics {
        font-size: 10vw;
        top: -10vh;
    }

    .buttons-wrapper {
        gap: 10px;
    }

    .kin-button, .quad-button, .vec-button {
        padding: 5px;
        min-width: 100px;
    }

    .scroll-btn-left, .scroll-btn-right {
        width: 25px;
        height: 25px;
        font-size: 25px;
    }
}
    