main {
    background-color: #FAFCF2;
}

section [class^="container"] {
    padding: 4rem 2rem;
}

@media screen and (min-width: 1024px) {
     nav [class^="container"] {
        padding: 0 4rem;
    } 
}

section:not(:first-of-type) {
    text-align: center;
}

section:nth-child(2n){
    background-color: #2A5957;
}

/*buttons*/

.btn {
    background-color: #FAFCF2;
    color: #27373D;
    font-weight: bold;
}

/*Navbar*/
.navbar {
    background-color: #27373D;
    color: #FAFCF2;
}

.navbar-brand {
    color: #FAFCF2;
    font-size: 1.5rem;
}

.navbar-nav .nav-link{
    color: #FAFCF2;
    font-size: 1.1rem;
}

.navbar-toggler {
    color: #FAFCF2;
}

@media screen and (min-width: 1024px) {
    .navbar-nav .nav-item{
        padding: 0 1rem;
    }
    .navbar-brand {
        font-size: 1.8rem;
    }
    
}


/*Hero section*/
section.hero {
    background-image: url("https://images.unsplash.com/photo-1702431816026-11a133899507?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center;
    color: #FAFCF2;
    text-align: center;
    padding: 100px 0;
    padding-top: 80px;
}

section.hero .hero-title{
    background-color: #4D877B;
    opacity: 0.8;
    padding: 1.2rem;
    border-radius: 10px;
    max-width: 90%;
    flex: auto;
}

section.hero .hero-title h1 {
    font-size: 2.1rem;
    font-weight: 400;
    margin-bottom: 20px;
}


@media screen and (max-width: 576px) {
    section.hero {
        text-align: center;
    }
    section.hero img {
        width: 70%;
    }
}

@media screen and (min-width:360px) {
    section.hero .hero-title h1 {
        font-size: 2.8rem;
    }
}

@media screen and (min-width:620px) {
    section.hero .hero-title {
        max-width: 80%;
    }
    section.hero .hero-title h1 {
        font-size: 3.5rem;
    }
}

@media screen and (min-width:1024px) {
    section.hero .hero-title {
        max-width: 60%;
    }
}


/*About section*/
section.about img {
    margin: 1rem auto;
    width: 12rem;
    border-radius: 50%;
    opacity: 0.9;
    border: 2px solid #4D877B;
}

.fade-in-image {
    animation: fadeIn 5s;
    align-content: center;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  } 

section.about .card{
    background-color: #FAFCF2;
    color: #27373D;
    opacity: 0.95;
    border-radius: 10px;
    align-items: center;
    justify-self: center;
}

section.about .card-body {
    padding: 0.5rem 2rem 1rem 2rem;
}

@media screen and (min-width:768px) {
    section.about .container {
        width: 60%;
    }
    section.about img{
        width: 16rem;
        margin: 1rem;
    }
    section.about .card-body {
        padding: 2rem 2rem 2rem 1rem;
    }
    
}

/*Services section*/
section.services {
    background-color: #27373D;
    color: #FAFCF2;
    position: relative;
}

section.services .services-background {
    background-image: url("https://images.unsplash.com/photo-1634838080334-28befa9efe80?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    margin: 0 auto;
    opacity: 0.3;
    max-width: 100%;
    height: 80%;
    position: absolute;
    margin-top: 180px;
}

section.services i {
    font-size: 2rem;
    margin: 1rem auto 0;
    background-color: #FAFCF2;
    border: 2px solid #27373D;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.services .card {
    background-color: #4D877B;
    border: 2px solid #27373D;
    box-shadow: 4px 4px #27373D;
    border-radius: 10px;
    color:#27373D;
    max-width: 20rem;
    min-height: 380px;
    margin-inline: auto;
    justify-self: center;
}

section.services .card-text {
    background-color: #FAFCF2;
    border: 2px solid #27373D;
    border-radius: 5px;
    opacity: 0.8;
    padding: 1.25rem;
}

@media screen and (min-width:620px) {
    section.services .card {
    height: 400px;
}
}

@media screen and (min-width:980px) {
    section.services .card {
    height: 500px;
}
}

@media screen and (min-width: 576px) {
    section.services .container {
        max-width: 100%;
    }
}


/*Projects section*/
section.projects h2{
    color: #FAFCF2;
}

.carousel {
    margin: 0 auto;
}

.carousel-item .card{
    margin: 6px;
    padding: 0.5rem;
    min-height: 600px;
    max-width: 400px;
    background-color: #FAFCF2;
    border: 2px solid #27373D;
    border-radius: 10px;
    box-shadow: 4px 4px #27373D;
    opacity: 0.95;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: #27373D;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: -25px;
  opacity: 0.8;
}


.carousel-item img{
display: flex;
border-radius: 10px;
justify-content: center;
align-items: center;
}


.cards-wrapper {
    display: flex;
    justify-content: center;
}

@media screen and (min-width:768px) {
    .carousel {
        max-width: 400px;
    }
 }

.modal {
    overflow: visible;
}
/* .modal-backdrop {
    position: fixed;
    height: 100%;
    width: 100%; */

/*contact*/
.email {
    margin-bottom: 10px;
    text-wrap: wrap;
}


/* tech stack */
.tech-stack {
    background-color: #27373D;
    color: #FAFCF2;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-stack .card {
    align-items: center;
    background-color:#FAFCF2;
    color: #27373D;
    border: 2px solid #27373D;
    margin: 6px;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 4px 4px #27373D;
    opacity: 0.95;
}

.tech-icons svg {
    height: 30px;
    margin-bottom: 10px;
}

/* footer section */

section footer {
    background-color: #27373D;
    color: #FAFCF2;
    font-size: 0.8rem;
}

section footer p{
    padding: 20px;
}



