/*GENERAL*/
.cursor-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647;
}
#cursor-f1 {
    width: 15px;
    height: 15px;
    background-image: url(../Images/papillon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}
#cursor-f2 {
    width: 12px;
    height: 12px;
    background-image: url(../Images/papillon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}
#cursor-main {
    width: 30px;
    height: 30px;
    background-image: url(../Images/papillon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8)); 
}
@media (max-width: 991px), (hover: none) {
    
    #cursor-main,
    #cursor-f1,
    #cursor-f2 {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}
.scroll-arrow-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}
.scroll-arrow-container span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.7);
    border-right: 2px solid rgba(0, 255, 255, 0.7);
    filter: drop-shadow(0 0 6px #ffffff);
    transform: rotate(45deg);
    margin: -10px auto;
    animation: arrow-wave 2s infinite;
}
.scroll-arrow-container span:nth-child(2) {
    animation-delay: -0.2s;
}
.scroll-arrow-container:hover span {
    border-color: #00ffff;
}
@keyframes arrow-wave {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-13px, -13px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}
body {
    font-family: "Fira Sans",sans-serif;
    background-color: #1e1e1e;
}
h1 {
    color: #fff;
    font-weight: bold;
}
h2,h3 {
    font-family: "Cantata One";
    font-weight: bold;
    color:#e1e1e1;
}
p {
    font-size: 16px;
    color:#e1e1e1;
}
img{
    max-width: 100%;
    height: auto;
}
section {
    padding: 60px 0 45px 0;
}
.heading {
    text-align: center;
}
.button1 {
    padding: 15px 30px;
    border-radius: 7px;
    background-color: #fff;
    color: #1e1e1e;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.button1:hover {
    transform: scale(1.1);
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}
.button2 {
    font-size: 13px;
    padding: 10px 22px;
    border-radius: 7px;
    background-color: #fff;
    color: #1e1e1e;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.button2:hover {
    transform: scale(1.03);
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}
.button3 {
    color: #e1e1e1;
    margin-top: 5px;
    background : none;
    border : none;
}
.btn-shrink {
    display: inline-block;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.btn-shrink:hover {
    transform: scale(1.08) !important;
}
@media (max-width: 768px) {
    .competences {
        margin-top: 40px;
    }
    
    .btn-shrink {
        font-size: 13px;  /* Smaller text on mobile */
        padding: 6px 10px; /* Smaller button size */
        width: auto;      /* Let buttons shrink to fit text */
    }
}
a {
    text-decoration: none;
    color:#fff;
}

/* MENU */
nav {
    background-color: rgba(30,30,30, 0.75);
    backdrop-filter: blur(7px);
}
.navbar {
    padding: 17px 0 17px 0;
    letter-spacing: 2px;
    font-family: "Cantata One";
    border-bottom: 1px solid #e1e1e1;
    box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}
.navbar-nav {
    text-align: center;
}
.nav-link {
    color: rgba(225,225,225, 0.65) !important;
    margin: 0 6px;
}
.nav-link:hover {
    color: rgba(225,225,225, 1) !important;
    border-bottom: 1px solid #e1e1e1;
}

/* ABOUT */
#hero {
    height: 100vh;
    margin-top: -80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #141414;
}
.name {
    margin: 70px auto;
    font-family: "Cantata One";
}
.name h1{
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6vw, 6rem) !important;
    white-space: nowrap; 
}
#aboutme {
    margin: 10px auto;
    justify-content: center;
    text-align: justify;
}
#aboutme img {
    width: 100%;
    max-width:340px; 
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 45px;
    border-radius: 10px;
}
@media (max-width: 991px) {
    #aboutme img {
        max-width: 60%;
        margin-bottom: 30px;
    }
}
#aboutme p{
    margin : 30px 0;
}
.competences {
    color: #e1e1e1;
    margin-top: 50px;
}
#aboutme .btn {
    border-radius: 15px !important;
    margin-right: 15px;
}
.btn:hover {
    transform: scale(1.2);
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}

/*Expérience*/
#experience {
    background-color: #141414;
}
#experience p {
    color:#1e1e1e;
}
ul {
    list-style: none;
}
#experience h3,h4 {
    color:#1e1e1e;
    font-size: 22px;
}
#experience h4 {
    font-style: italic;
    font-size: 18px;
}
.timeline {
    margin-top: 60px;
    padding: 30px 10px;
    position:relative;
}
.timeline::before {
    content: " ";
    top: 0;
    bottom: 0;
    position: absolute;
    width: 5px;
    background-color: #a2a1a1;
    left: 50%;
    margin-left: -2.5px;
}
.timeline > li {
    margin-bottom: 80px;
    position: relative;
}
.timeline > li:after {
    clear: both;
}
.timeline >li:before, .timeline > li:after {
    content: " ";
    display: table;
}
.timeline li .timeline-badge {
    color: rgba(0, 255, 255, 0.1);
    width:23px;
    line-height: 23px;
    font-size: 1px;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -12px;
    background-color: rgba(0, 206, 209, 0.85);
    border-radius: 50%;
    box-shadow:
        0 0 5px #00ced1,
        0 0 10px rgba(0, 206, 209, 0.4),
        inset 0 0 3px rgba(255, 255, 255, 0.2);
    animation: pulse-cyan 3s infinite ease-in-out;
}
@keyframes pulse-cyan {
    0% {
        /* Normal Glow */
        box-shadow: 0 0 5px #00ced1;
    }
    50% {
        /* Expanded Glow (Brighter and Wider) */
        box-shadow: 0 0 20px #00ced1, 0 0 15px rgba(0, 206, 209, 0.4);
    }
    100% {
        /* Back to Normal */
        box-shadow: 0 0 5px #00ced1;
    }
}
.timeline-panel-container {
    width: 50%;
    float: left;
}
.timeline-panel-container-inverted {
    width: 50%;
    float: right;
}
.timeline-panel {
    width: 65%;
    float: right;
    margin-right: 40px;
    border-radius: 7px;
    padding: 20px 25px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0, 0.175);
    background: rgba(225, 225, 225, 1);
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.timeline-panel:hover {
    background-color: #fff;
    transform: scale(1.03);
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}
.timeline-panel-container-inverted .timeline-panel {
    float: left;
    margin-left: 40px;
}
.timeline-panel:after {
    position: absolute;
    top: 16px;
    right: -14px;
    display:inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid rgba(225, 225, 225, 0.70);
    border-right: 0 solid rgba(225, 225, 225, 0.70);
    border-bottom: 14px solid transparent;
    content: " ";
}
.timeline-panel-container-inverted .timeline-panel:after {
    border-left-width: 0px;
    border-right-width: 14px;
    left: -14.7px;
    right: auto;
}
@media (max-width: 768px) {
    
    .timeline::before {
        left: auto;    
        right: 30px;  
    }

    .timeline li .timeline-badge {
        left: auto;     
        right: 11px;    
        top: 20px;        
    }

    .timeline-panel-container, 
    .timeline-panel-container-inverted {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    .timeline-panel,
    .timeline-panel-container-inverted .timeline-panel {
        float: none;
        width: 80%;
        margin-right: 0;
        margin-left: 0;   
    }
    .timeline-panel-container-inverted .timeline-panel:after {
        border-left-width: 14px;
        border-right-width: 0;
        left: auto;
        right: -14px;
    }
}
/*PORTFOLIO*/
.carousel {
    margin-top: 30px;
    background-color: #2a2929;
}
.carousel-caption {
    background-color: rgba(0,0,0, 0.575) !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important; 
    width: 15px;
    height: 15px;
    border-bottom: 3px solid rgba(0, 255, 255, 0.8);
    border-right: 3px solid rgba(0, 255, 255, 0.8);
    filter: drop-shadow(0 0 4px #00ced1);
    display: block;
}
.carousel-control-prev-icon {
    transform: rotate(135deg);
}
.carousel-control-next-icon {
    transform: rotate(-45deg);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: drop-shadow(0 0 8px #00ced1);
    border-color: rgba(0, 255, 255, 0.6);
    transition: 0.3s ease;
}
.carousel-indicators button {
    background-color: #00ced1 !important;
    opacity: 0.5;
}
.carousel-indicators .active {
    opacity: 1;
}

/*CONTACT*/
#contact {
    background-color: #141414;
}
.contact {
    margin-top: 70px;
}
.blues {
    color:rgba(0, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px #00ffff);
    margin-right: 20px;
    font-size: 20px;
}

.form-control {
    background-color: #e1e1e1;
}
.form-control:hover {
    background-color: #fff;
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff; 
}
.form-control:focus {
    border-color: #00ffff !important;
    box-shadow: 0 0 10px #00ffff !important;
    background-color: #fff;
}
.comments {
    color: #cc3a48;
    font-size: 13px;
    margin-left: 5px;
    font-style: italic;
    margin-top: 8px;
}
.thanks {
    color:rgba(0, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px #00ffff);
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center; 
    display: block;
}

/*FOOTER*/
footer {
    color:#e1e1e1;
    text-align: center;
    padding: 40px 0 40px 0;
    border-top: 1px solid #e1e1e1;
        box-shadow:
        0 0 2px #fff,
        0 0 4px #e1e1e1,
        0 0 3px #ffffff;
}
footer a {
    font-size: 20px;
    font-family: "Cantata One";
}
footer p {
    margin-top: 10px;
    font-size: 14px;
}
.modal-content {
    background-color: #1e1e1e;
    color: #e1e1e1;
    text-align: left;
}
.modal-title {
    font-family: "Cantata One", serif;
    font-weight: bold;
}
.modal-body {
    background-color: #141414;
}
.modal-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.modal-body p {
    font-size: 16px;
    margin-bottom: 40px;
    text-align: justify;
}

.button4 {
    position: absolute;
    right: 20px;
    top: 30px;
    transform: translateY(-50%);
    
    background: transparent;
    border:none;
    padding:0;
    
    color: #00ced1;
    font-size: 1.2rem;
    transition: all 0.3s ease;

}
html {
    scroll-behavior: smooth;
}
section, 
#aboutme, 
#experience, 
#contact, 
#portfolio {
    scroll-margin-top: 60px; 
}

#backToTop {
    position: fixed;
    font-size: 30px;
    color:rgba(0, 255, 255, 0.8);
    filter: drop-shadow(0 0 7px #00ffff);
    bottom: 30px;
    right: 40px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.active {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: scale(1.1);
}