html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial;
    background:#0f172a;
    color:white;
}

header{
    position:fixed;
    width:100%;
    top:0;
    padding:10px;
    background:#020617;
    text-align: center;
    z-index:1000;

    display: flex;
    flex-direction: column;
    align-items: center;
}

header::after{
content:"";
position:absolute;
bottom:-40px;
left:0;
width:100%;
height:50px;

background:linear-gradient(
to bottom,
#020617 0%,
rgba(2,6,23,0) 100%
);

pointer-events:none;
}

/* Navigation */
:root{
    text-align: center;
    
}

.navigation{
    position: relative;
    margin-top: -10px;
    width: 360px;
    height: 70px;
    border-radius: 10px;
}

.navigation ul{
    display: flex;
    width: 350px;
}

.navigation ul li{
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
}

.navigation ul li a{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.navigation ul li a .icon{
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    text-align: center;
    transition: .5s;
    color: #fff;
}

.navigation ul li.active a .icon{
    transform: translateY(-32px);
}

.navigation ul li a .text{
    position: absolute;
    color: #fff;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
    text-transform: capitalize;
}

.navigation ul li.active a .text{
    opacity: 1;
    transform: translateY(10px);
}



/* section */
section{
    padding:80px 50px;
    max-width:1000px;
    margin:auto;
}

#hero{
    min-height:60vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

#hero h2{
    font-family: "Iosevka Charon Mono", monospace;
    font-size:42px;
}

/* About */
.bubble{
    position:relative;
    background:#1e293b;
    padding:25px;
    border-radius:20px;
    max-width:700px;
    margin:40px auto;
    font-size:18px;
    line-height:1.6;
}

.bubble.about-me::after{
    content:"";
    position:absolute;
    bottom:-20px;
    left:40px;

    width:0;
    height:0;

    border-left:15px solid transparent;
    border-right:15px solid transparent;
    border-top:20px solid #1e293b;
}

.bubble.skills::after{
    content:"";
    position:absolute;
    bottom:-20px;
    right:40px;

    width:0;
    height:0;

    border-left:15px solid transparent;
    border-right:15px solid transparent;
    border-top:20px solid #1e293b;
}

#about h2{
    text-align:center;
    font-size:42px;
    color:white;
    font-family:'Oswald', sans-serif;
    letter-spacing:2px;
    margin-bottom:40px;
}

#about h2::after{
    content:"";
    display:block;
    width:80px;
    height:3px;
    background:red;
    margin:10px auto 0;
}

#about h3{
    text-align:left;
    font-size:28px;
    color:white;
    font-family:'Oswald', sans-serif;
    margin-top:10px;
}

#about h4{
    text-align:left;
    font-size:28px;
    color:white;
    font-family:'Oswald', sans-serif;
    margin-top:10px;
}

#about p{
    text-align:left;
    font-size:15px;
    color:white;
    font-family:'Oswald', sans-serif;
    margin-bottom:10px;
}

.skills { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
} 

#skills { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
} 

.skill-category { 
    background: #0f172a; 
    padding: 15px; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
} 

.skill-category h5 { 
    margin: 0px; 
    color: white; 
    font-size:18px;
    font-family: 'Oswald', sans-serif; 
    text-transform: capitalize; 
} 

.skill-category ul { 
    list-style: disc; 
    padding-left: 20px;
    margin: 0;
} 

.skill-category li { 
    font-family: 'Iosevka Charon Mono', monospace; 
    font-size:15px;
    margin-bottom: 5px; 
}

.button{
    display: block;
    text-align: center; 
    margin: 30px auto 0;
    background: #3a3aff;
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #2a2ad4;
}

/* Project */
.project{
    background:#1e293b;
    padding:25px;
    margin-top:20px;
    border-radius:10px;
    transition:0.3s;
}

.project:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #3a3aff;
    transition: width 0.3s ease;
}
.project:hover {
    color: #3a3aff;
    text-shadow: 0 0 8px #3a3aff;
}
.project:hover::after {
    width: 100%;
}

#projects h2{
    text-align:center;
    font-size:42px;
    color:white;
    font-family:'Oswald', sans-serif;
    letter-spacing:2px;
    margin-bottom:40px;
}

#projects h2::after{
    content:"";
    display:block;
    width:80px;
    height:3px;
    background:red;
    margin:10px auto 0;
}

/* cartes */
.project {
    cursor: pointer;
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(58,58,255,0.5);
}

/* modal */
.modal {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background:#1e293b;
    padding:30px;
    border-radius:15px;
    max-width:600px;
    width:90%;
    max-height:80vh;
    overflow-y: auto;
    text-align:center;
}

.badge {
    display: inline-block;
    background: #3a3aff;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 5px 5px 0 0;
    font-size: 12px;
    font-family: 'Iosevka Charon Mono', monospace;
}

#close {
    position:absolute;
    top:20px;
    right:30px;
    font-size:30px;
    cursor:pointer;
}

.modal img {
    width:100%;
    border-radius:10px;
    margin:15px 0;
}

.tech-title {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.time-title {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

/* Contact */
#contact h2{
    text-align:center;
    font-size:42px;
    color:white;
    font-family:'Oswald', sans-serif;
    letter-spacing:2px;
    margin-bottom:40px;
}

#contact h2::after{
    content:"";
    display:block;
    width:80px;
    height:3px;
    background:red;
    margin:10px auto 0;
}

#contact i {
    font-size: 40px;
}

i:hover{
    transform:scale(1.2);
    transition:0.3s;
}

.contact-icons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    margin-top:30px;
}

.contact-icons a{
    color:white;
    font-size:40px;
    transition:0.3s;
}

.contact-icons a:hover{
    transform:scale(1.2);
    color:#3a3aff;
}

@media screen and (max-width: 1024px) {
    section {
        padding: 60px 30px;
    }
    #skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {

    /* Header */
    header {
        padding: 10px;
        font-size: 14px;
    }

    nav a {
        padding: 4px 6px;
        font-size: 14px;
    }

    /* Hero */
    #hero h2 {
        font-size: 28px;
    }

    #hero {
        padding: 40px 20px;
    }

    /* Sections */
    section {
        padding: 50px 20px;
    }

    #about h2,
    #projects h2,
    #contact h2 {
        font-size: 32px;
    }

    #about p,
    .bubble {
        font-size: 16px;
        padding: 15px;
    }

    /* Skills */
    #skills {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category h5 {
        font-size: 16px;
    }

    .skill-category li {
        font-size: 14px;
    }

    /* Projects */
    .project {
        padding: 20px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal img {
        width: 100%;
        height: auto;
    }

    /* Contact */
    .contact-icons {
        flex-direction: column;
        gap: 25px;
    }

    #contact i {
        font-size: 36px;
    }
}

@media screen and (max-width: 480px) {

    #hero h2 {
        font-size: 22px;
    }

    #about h2,
    #projects h2,
    #contact h2 {
        font-size: 28px;
    }

    .bubble {
        font-size: 14px;
        padding: 12px;
    }

    .skill-category h5 {
        font-size: 14px;
    }

    .skill-category li {
        font-size: 13px;
    }

    .button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .contact-icons a {
        font-size: 36px;
    }
}