/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
}


h1, h2 {
    color: white;
    text-align: center;
}

h3, p {
    color: white;
}

.lazy-bg {
    background-color: #020101; 
    background-size: cover;
    background-position: center;
}


/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.navbar-nav .nav-item .nav-link {
    color: #fff !important;
    margin: 0 1rem;
    font-size: 1rem;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #b3b3ff !important;
}

@media (min-width: 992px) {
    .navbar-nav {
        justify-content: flex-end;
    }
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


section:not(.hidden) {
    opacity: 1;
}

/* Section Styles */
section {
    padding-top: 50px;
    height: auto;
    overflow: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


/* Home Section */
#home h2{
    
    color:white;
    font-size: 3.5rem;
    display:inline;
    font-weight:500;
}

#home {
    background: linear-gradient(25deg,#660952,#160e53);
    height: 120vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#home canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#home .content {
    position: relative;
    z-index: 1;
}


/* Footer Section */
footer {
    background-color: #0a0a23;
}

/* Formation Section */
#formation {
    padding: 50px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#formation .timeline {
    position: relative;
    padding: 0 2rem;
}

#formation .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #FF9F55, #fff);
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

#formation .timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin: 2rem 0;
}

#formation .timeline-item.left {
    justify-content: flex-start;
}

#formation .timeline-item .timeline-badge {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #FF9F55;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#formation .timeline-item.left .timeline-badge {
    left: auto;
    right: 50%;
    transform: translate(50%, -50%);
}

#formation .timeline-card {
    background: #1e1e2f;
    border: 2px solid #2e2592;
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    width: 45%;
}

#formation .timeline-card h2 {
    color: #FF9F55;
}

@media (max-width: 768px) {
    #formation .timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    #formation .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    #formation .timeline-item.left, #formation .timeline-item.right {
        justify-content: flex-start;
    }

    #formation .timeline-item .timeline-badge {
        left: 20px;
        transform: translateY(-50%);
    }

    #formation .timeline-item.left .timeline-badge {
        right: auto;
    }

    #formation .timeline-card {
        width: calc(100% - 70px);
        margin-left: 70px;
    }
}

/* Contact Section */
#contact {
    padding-top: auto;
}

input[type=text], textarea {
    background-color: #0a0a23;
    color: white;
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(46, 37, 146);
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

input[type=submit] {
    background-color: rgb(46, 37, 146);
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #301af3;
}

#contact .container {
    border-radius: 5px;
    padding: 10px;
}

#contact .row:after {
    content: "";
    display: table;
    clear: both;
}

@media screen and (max-width: 600px) {
    .column, input[type=submit] {
        width: 100%;
        margin-top: 0;
    }
}

.social-container {
    position: fixed;
    right: 0;
    bottom: 80px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 10;
}

.social-container.visible {
    transform: translateX(0);  /* Visible on screen */
}


.custom-social-container {
    background-color: #0a0a23;
    border-radius: 16px;
    border: 5px solid rgb(46, 37, 146);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    position: relative;
    height: 169px;
    width: 370px;
    max-width: calc(100% - 10px);
}

.custom-social-container button.cross-btn {
    border: 0;
    color: #660033;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.custom-social-container ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin-top: 58px;
}

.custom-social-container ul li {
    margin: 0 10px;
}

.custom-social-container ul li a {
    border: 1px solid #999;
    border-radius: 50%;
    color: rgb(46, 37, 146);
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 

50px;
    width: 50px;
    text-decoration: none;
}

.custom-social-container ul li a:hover {
    border-color: #ffd791;
    box-shadow: 0 9px 12px -9px #ffd791;
}

.connect-btn {
    border-radius: 26.5px;
    background-color: #0a0a23;
    border: 2px solid rgb(46, 37, 146);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    padding: 12px 20px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}



/* Projects Section */
#projets .btn-group {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

 #projets .btn-group .btn {
    margin: 0 5px;
}

#projets .project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#projets .card {
    position: relative;
    width: 300px;
    height: 200px;
    color: white;
    overflow: hidden;
    transition: transform 0.2s;
    background-size: cover;
    background-position: center;
}

#projets .card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: lightblue;
    opacity: 0.5;
}
#projets .card:hover {
    transform: scale(1.05);
}

#projets .card-body {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
}

 #projets .card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

 #projets .card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

 #projets .btn-primary {
    background-color: #007bff;
    border: none;
    font-size: 1em;
}

#projets .btn-primary:hover {
    background-color: #0056b3;
}

/* Competences Section */
#competences .card {
    background-color: #1e1e2f;
    border: 2px solid #2e2592;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

#competences .card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#competences .card-body {
    padding: 20px;
}

#competences .card-title {
    font-size: 1.5em;
    margin-top: 10px;
}

#competences .card-text {
    font-size: 1em;
}

#competences i {
    color: #ffffff;
}

#competences {
    overflow-x: hidden;
    padding: 20px;
}

