/******* GENERAL *******/

/* spacing on all sections */
#about,
#skills,
#portfolio,
#contact {
    margin-top: 2rem;
    padding-top: 2rem;
}
#about h2,
#skills h2,
#portfolio h2,
#contact h2 {
    font-weight: 700;
    margin-bottom: 3rem;
    color: rgba(64, 210, 225, 0.9);
}
#contact {
    padding-bottom: 4rem;
}

#about h2,
#skills h2,
#portfolio h2 {
  position: relative;
  text-align: center;
  background: linear-gradient(0.25turn, #a983c3cc, #9043c6cc, #42076bcc);
  padding: 0.5rem;
  border-radius: 30px;
}

h2::after {
  content: "";
  display: block;
  width: 10%;
  height: 4px;
  margin: 0.5rem auto 0;
  background-color: rgba(128, 0, 128, 0.5);
  border-radius: 2px;
}

/* Navbar collapse */
.navbar .container{
    background-color: rgba(138, 43, 226, 0.18);
    border-radius: 12px;
    padding: 1rem;
    
    
}

.navbar-collapse.show {
    margin-top: 5px;
}

.navbar-collapse .nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-collapse .nav-link:hover,
.navbar-collapse .nav-link:focus {
    color: #e0d4ff !important
}

/* display background dark color on navbar scroll */
.navbarScroll.navbarDark {
    background-color: rgba(138, 43, 226, 0.18);
}

.col-12 {
    background-color: rgba(8, 8, 8, 0.22);
    border-radius: 20%;
}

.bgimage {
    height: 100vh;
    max-height: 900px;
    background: url("images/background.jpg");
    background-size: cover;
    position: relative;
}

.hero_title {
    font-size: 4.5rem;
    padding-bottom: 30px;
    color: #40d2e1;
}

.hero_title::after{
    content: "";
    display: block;
    width: 50%;
    height: 4px;
    margin: 0.5rem auto 0;
    background-color: rgba(128, 0, 128, 0.3);
    border-radius: 2px;
}

.hero_desc {
    font-size: 2rem;
}
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #40d2e1;
    padding: 2rem;
    width: 50%;
    max-width: 800px;
}

/* about */


.imageAboutPage {
    width: 75%;
    transform: rotateY(3.35rad);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding-bottom: 10px;
}

/* skills */
.skillsText.card {
    height: 350px;
    cursor: pointer;
}
.skillsText img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}
#skills p {
    text-align: center;
}
.skillsIcon {
    font-size: 36px;
    text-align: center;
    width: 100%;
}
.card-title {
    text-align: center;
}
.card:hover .skillsIcon {
    color: #008000;
}
.skillsText:hover {
    border: 2px solid rgba(138, 43, 226, 0.18);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* portfolio */
#portfolio p {
    text-align: center;
}
.portfolioContent .card-img-top {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 3rem;
    border-bottom: 1px solid #dee2e6;
}
.portfolioContent:hover {
    border: 2px solid rgba(138, 43, 226, 0.18);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.portfolioContent .btn-success {
    background-color: rgba(130, 74, 181, 0.5);
    border-color: rgba(34, 6, 59, 0.657);
    color: white;
    font-weight: 500;
}



/* contact */










/* footer */
footer {
    background-color: rgba(34, 6, 59, 0.657);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}
footer a {
    color: white;
    text-decoration: underline;
}
footer a:hover {
    color: #ddd;
}



@media (max-width: 768px) {
    h2::after {
        width: 30%;
        height: 3px;
        }

    .navbar-collapse {
        background-color: rgba(138, 43, 226, 0.18);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        top: 0;
    }

    .bgimage {
        height: 80vh;
        min-height: 500px;
    }

    .hero-text {
        padding: 1.5rem !important;
        transform: translate(-50%, -45%);
        width: 95%;
        left: 50%;
        top: 54%;
    }

    .hero_title {
        font-size: 2.8rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero_desc {
        font-size: 1.4rem !important;
    }

    body {
        padding-top: 0px;
    }


    #about {
        padding-top: 0;
        margin-top: 0;
    }

    .imageAboutPage{
        margin-bottom: 10px;
    }

}