/******* GENERAL *******/
/* spacing on all sections */

#about,
#skills,
#portfolio,
#contact {
    margin-top: 4rem;
    padding-top: 4rem;
}
#about h2,
#skills h2,
#portfolio h2,
#contact h2 {
    margin-bottom: 3rem;
}
#contact {
    padding-bottom: 4rem;
}

/* display background dark color on navbar scroll */

.navbar{
    background: linear-gradient(135deg, #5C8B69, #3B6B4A, #2E5C4F) !important;
}
.navbarScroll.navbarDark {
    background: linear-gradient(135deg, #5C8B69, #3B6B4A, #2E5C4F) !important;
    border-radius: 0 0 20px 20px;
}


/* elements du nav */ 
.navbar-brand{
    color:#ffffff !important;
    font-size: 25px !important; 
}
.nav-link {
    color:#ffffff !important;
    font-size: 20px;
    margin-left: 8px;
}
.nav-link:hover {
    color: #ffffff ;
    transform: scale(1.2);
}


/* hero background image */
.imagefond {
    height: 100vh;
    max-height: 900px;
    background: linear-gradient(135deg, #5C8B69, #3B6B4A, #2E5C4F);
    background-size: cover;
    position: relative;
}

/* text css above hero image*/
.hero_title {
    font-size: 4.5rem;
    margin-top: 170px;
    width: 70%;
    margin-left: 300px;
}
.hero_desc {
    font-size: 2rem;
}
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
.hero-text > * {
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.hero-text > *.slide-up-visible {
  transform: translateY(0);
}



/* Bouton accueil */

.bouton-accueil{
    font-size: 20px;
    margin-top: 120px;
    padding: 12px 28px;    
    border-radius: 50px;
    background: #ffffff;
    color: #2E5C4F;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px; 
    transition: all 0.3s ease;
    text-decoration: none;
}
.bouton-accueil:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #2E5C4F;
}

/* about */

.imageAboutPage {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.liste-points{
    margin-left: 40px; 
}
.liste-points li::marker {
    color: #3B6B4A;
}
.titre-profil {
    color: #3B6B4A;
}




/* SKILLS */
.skillsText.card {
    height: 350px;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skillsText.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border: none;
}
.skillsText img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}
#skills p {
    text-align: center;
}
.skillsIcon {
    font-size: 36px;
    text-align: center;
    width: 100%;
}
.card-title {
    text-align: center;
}
.card:hover .skillsIcon {
    color: #3B6B4A;
}
.skillsText:hover {
    border: 1px solid #3B6B4A;
}


/* PORTFOLIO */
#portfolio p {
    text-align: center;
}
.portfolioContent {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolioContent:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.portfolioContent .card-title {
    color: #3B6B4A;
    font-weight: 700;
    margin-bottom: 15px;
}
.portfolioContent .card-text {
    color: black;
    font-size: 16px;
    margin-bottom: 20px;
}
.portfolioContent .btn {
    border-radius: 50px;
    background: #3B6B4A;
    color: #fff;
    font-weight: 600;
    transition: 0.3s ease, transform 0.3s ease;
    border: none;
}
.portfolioContent .btn:hover {
    background: #3B6B4A;
    transform: translateY(-3px);
   
}

/* contact */
.contactColumn {
    display: flex;
    flex-direction: column;
    align-items: center;   
}
.contactColumn i {
    color: #3B6B4A;
}

/* footer */
.footer {
    background-color: #3B6B4A;
    height: 60px;
}
.footer-text {
    color: white;
    text-align: center;
    padding-top: 15px;
}

/******************* RESPONSIVE MOBILE ***********************/

@media (max-width: 768px) {

    /* titres */

     .hero_title {
        font-size: 3rem;
        margin-top: 0;
        margin-left: 20px;
        width: 90%;
    }
    .hero_desc {
        margin-top: 20px;
        font-size: 1.5rem;
    }
    .bouton-accueil {
        font-size: 20px;
        margin-top: 100px;
        padding: 10px 20px;
    }

    /* nav bar*/

     .navbar, 
     .navbar-collapse {
        background: linear-gradient(135deg, #5C8B69, #3B6B4A, #2E5C4F) !important;
        border-radius: 0 0 10px 10px;
        padding: 1rem 0;
        transition: all 0.3s ease;
    }

    /* About Section*/
    .imageAboutPage {
        width: 80%;
        margin-bottom: 20px;
        margin-left: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #about{
        margin-top: 0;
        padding-top: 3em;
        margin-bottom: 0; 
    }
    .titre-profil{
        margin-top: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #about p {
        max-width: 90%;    
        margin: 1rem;
        text-align: center;   
    }

    /* skills section*/

   .skillsText {
        width: 80%;  
        margin: 0 auto 20px; 
    }
    #skills {
        background-color: #DEE8E1;
        padding-bottom: 30px;
    }

/* Portfolio*/

    #portfolio{
        margin-top: 1rem;
        padding-top: 4rem;
    }
    .portfolioContent{
        width: 80%;
        margin: 0 auto 20px; 
    }

/*contact*/
    #contact{
        background-color: #DEE8E1;
    }
}