@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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0A0F24;
    --second-bg-color: #17182E;
    --text-color: #F9F2F2;
    --main-color: #F5CB86;
}

html {
    font-size: 75%;
    /* overflow-x: hidden; */
}

.display-5 {
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

section[class^="container"] {
    padding: 4rem 2rem;
}
@media screen and (min-width: 1024px) {
    section[class^="container"] {
        padding: 4rem;
    }
    nav [class^="container"] {
        padding: 0 4rem;
    }
}

section:not(:first-of-type){
    text-align: center;
}

section:nth-child(2n){
    background-color: #0A0F24;
}

img{
    object-fit: contain;
    }
/* NAVBAR */
.nvbar {
    background-color: #ffffff;
}
.navbar-brand {
    font-size: 1.5rem;
    color: #0A0F24;
}
.navbar-nav .nav-link {
    color: #ffffff;
    font-size: 1.1rem;
}
@media screen and (min-width: 1024px) {
    .navbar-nav .nav-item {
        padding: 0 1rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
}

.social-media {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.social-media a {
    display: inline-block;
    margin-right: 10px;
    border: 2px solid #F5CB86;
    border-radius: 50%;
    padding: 5px;
    transition: border-color 0.3s;
}

.social-media a i {
    font-size: 20px; 
    color: #F5CB86;
}

.social-media a:hover {
    border-color: #F5CB86;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0 0 #F5CB86;
    }
    50% {
        box-shadow: 0 0 20px 5px #F5CB86;
    }
    100% {
        box-shadow: 0 0 0 0 #F5CB86;
    }
}

.btn:hover,
.btn:hover a {
    animation: glow 1s;
    box-shadow: 0 0 1rem var(--main-color);
}

.col-sm-6 {
    color: var(--text-color);
}

/* BACKGROUND */
.about {
    background: var(--second-bg-color);
}
.skills {
    background: var(--second-bg-color);
}
.testimonial {
    background: var(--second-bg-color);
}

.btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .btn:hover {
    box-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color), 0 0 40px var(#F5CB86);
  }
  
/* SPAN */
span {
    color: var(--main-color);
}

/* HOME */
section.home {
    padding-top: 72px;
}
@media screen and (min-width: 576px) {
    /* section.home {
        text-align: center;
    } */
    section.home img{
        width: 70%;
    }
}

/* ADDITIONAL HOME */
.container-lg h4 {
    font-size: 3,2rem;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.container-lg h4:nth-of-type(2) {
    margin-bottom: 2rem;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
    color: #FAE3CF;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.container-lg h3 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1,3;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.container-lg p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.container-lg {
    font-size: 1.6rem;
}

.container-lg .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.home .container-lg {
    padding-top: 80px;
}

.home .col-sm-6 p{
    text-align: center;
    padding-bottom: 30px;
}

.social-media {
    margin-top: 20px;
}

/* ABOUT */
/* @media screen and (min-width: 1024px){
    section.about .container, 
    section.testimonial .container{
        width: 60%;
}
} */

/* Styles */
.about .container {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    animation: slideTop 0.5s ease forwards;
}

.about p {
    font-size: 16px;
    opacity: 0;
    animation: slideRight 2s ease forwards;
    animation-delay: 1s;
    text-align: center;
}

.about {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .about .container {
        padding: 0 20px;
    }
}

/* EDUCATION */

section.education i{
    font-size: 2rem;
    margin: 1rem auto 0;
    border: 2px solid #0000;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
section .card, 
.btn-outline-dark {
    border-radius: 2px solid #0000;
    box-shadow: 4px 4px #0000;
}
.btn-outline-dark:hover {
    box-shadow: 4px 4px #af600600;
}
section .card{
    max-width: 22rem;
    margin-inline: auto;
}

/* PROJECT */
section.project .card{
    max-width: 17rem;
    text-align: left;
}
section.project .card img{
    max-width: 70%;
    margin: 1rem auto;
}

/* Testimonial */
section.testimonial .carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

section.testimonial .carousel-item p {
    max-width: 80%;
    color: var(--text-color);
}
section.testimonial .carousel-item h5 {
    color: var(--text-color);
}
section.testimonial .carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
section.testimonial .carousel.carousel-fade .carousel-item {
    transition: opacity 0.5s;
}
.carousel-item :is(img[alt="picture"]) {
    width: 40rem;
      aspect-ratio: 1;
      object-fit: contain;
      object-position: center;
      margin-left: 20px;
      justify-content: center;
}

/* CONTACT */
.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input{
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.btn {
    background-color: #F5CB86;
    color: #0A0F24; 
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* Hover effect for the button */
.btn:hover {
    background-color: #F5CB86; /* Darker blue background color on hover */
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer p {
    color: var(--text-color);
}

@media (max-width: 767px) {
    .home .container-lg {
        padding-top: 60px;
    }

    .home .col-sm-6 {
        padding-bottom: 20px;
    }

    .about,
    .education,
    .skills,
    .project,
    .testimonial,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .home .container-lg {
        padding-top: 40px;
    }

    .about,
    .education,
    .skills,
    .project,
    .testimonial,
    .contact {
        padding: 40px 0;
    }
}

@media (max-width: 300px) {
    /* Navbar */
    .navbar-brand {
        font-size: 20px;
    }

    .navbar-collapse {
        justify-content: flex-start;
    }

    .navbar-nav {
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar-nav .nav-item {
        width: 100%; 
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }


    .home .container-lg {
        padding-top: 60px; 
    }

    .home .col-sm-6 {
        padding-bottom: 20px;
    }
    .about,
    .education,
    .skills,
    .project,
    .testimonial,
    .contact {
        padding: 40px 0;
    }

    .footer {
        padding: 20px 0;
    }
}


/*KEYFRAMES ANIMATION */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }
}
