:root {
    --primary-color: #a855f7;
    --text-light: #fff;
    --text-dark: #000;
    --text-gray: #9ca3af;
    --bg-dark: #111827;
    --bg-darker: #000;
    --border-color: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-light);
    background-color: var(--bg-darker);
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color:white;
}

.hero-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: flex-start;
}

.hero-content {
    background-color: var(--bg-darker);
    display: flex;
    width: 100%;
    flex-direction: column;
}

.hero-background {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 800px;
    width: 100%;
    padding-bottom: 261px;
}

.hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.nav-container {
    position: fixed;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 1px 80px;
}

.nav-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0px;
}

.nav-content {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: space-between;
    padding: 3px 0;
}

.brand-name {
    font-weight: 700;
    font-size: 24px;
}

.brand-name-light {
    color: var(--text-light);
}

.brand-name-accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 16px;
    color: var(--text-light);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    outline: none;
}

.hero-text-container {
    position: relative;
    align-self: center;
    display: flex;
    width: 1280px;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin: 250px 0 -52px;
    padding: 0 24px;
}

.hero-text-wrapper {
    display: flex;
    width: 768px;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.hero-heading {
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
}

.hero-heading-light {
    color: var(--text-light);
}

.hero-heading-accent {
    color: var(--primary-color);
}

.hero-subheading {
    color: #d1d5db;
    font-size: 20px;
    margin-top: 27px;
}

#hero-buttons{
    display: flex;
    justify-content: center;
    margin-top: -1.5em;
}

.hero-buttons {
    display: flex;
    margin-top: 38px;
    gap: 16px;
    font-size: 16px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    border-radius: 9999px;
    padding: 18px 32px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.primary-button:hover,
.primary-button:focus {
    background-color: #9333ea;
    outline: none;
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: rgba(168, 85, 247, 0.1);
    outline: none;
}

.projects-section,
.skills-section,
.contact-section {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.projects-container,
.skills-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 0 24px;
}

.section-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.section-heading-light {
    color: var(--text-light);
}

.section-heading-accent {
    color: var(--primary-color);
}


.projects-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    border-radius: 12px;
    background-color: var(--bg-dark);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 400px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-left: 1rem;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    margin-left: 2rem;
    margin-right: 2rem;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 1rem;
}

.project-tag {
    background-color: rgba(168, 85, 247, 0.2);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 14px;
}

.skills-section {
    background-color: var(--bg-dark);
}

.skill-category {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease;
}
.skill-category:hover {
    transform: translateY(-5px);
}

.category-title {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.skills-list {
    list-style: none;
    color: var(--text-gray);
}

.skills-list li {
    margin-bottom: 8px;
}
.skills-javascript{
    list-style: none;
    display: flex;
    flex-direction: row;
}
.skills-javascript li{
    font-size: 0.8rem;
    margin-bottom: 2px;
    display: inline-block;
    padding: 3px 4px;
}
.separation_js{
    background-color: white;
    width: 1px;
    height: 15px;
    margin: 5px 7px;
}

.contact-form-container {
    background-color: var(--bg-dark);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: inherit;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-button:hover,
.submit-button:focus {
    background-color: #9333ea;
    outline: none;
}

.footer {
    padding: 32px 80px;
    background-color: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
}

.footer-logo {
    height: 40px;
    width: auto;
    padding-right: 1.5em;
}

/* ------------------- animation titre ------------------- */
.masked-text {
    font-size: 5rem;
    font-weight: bold;
    color: transparent;
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSupHNut9SJaZkIkqPQmDYIFKs88EoveZzYBQ&s'); 
    background-size: 200%; /* Enlarged for smooth animation */
    background-position: 0 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-background 20s infinite linear;
}


@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.hover-underline {
    font-size: 1.5rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
  }
  
  .hover-underline::after,
  .hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #55009abf, #ff00ea);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
  }
  
  .hover-underline::before {
    top: -2px;
    transform-origin: left;
  }
  
  .hover-underline:hover::after,
  .hover-underline:hover::before {
    transform: scaleX(1);
  }
/* ------------------- Connexion ------------------- */
  .hidden {
    display: none;
}

.visible {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
/* ------------------- Buger Menu ------------------- */
.nav-links_burger{
    /* display: none; */
    position: absolute;
    height: 0px;
    right: 2rem;
    top: 60px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    overflow: hidden;
    border-radius: 12px;
    transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-links_burger.open{
    height: 550px;
}
.burger{
    padding-left: 2rem;
    margin-top: 2rem;
}
i{
    font-size: 1.5rem;
    color: var(--text-light);
}
#menu_button{
    display: none;
}
.button-up-div{
    display: none;
}


/* ------------------- Responsive Styles ------------------- */

@media (max-width: 991px) {
    .hero-text-container,
    .projects-section,
    .skills-section,
    .contact-section,
    .footer {
        padding: 20px;
    }

    .project-card {
        height: 450px;
    }

    .hero-heading {
        font-size: 48px;
    }

    .hero-buttons {
        padding-right: 0;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-links{
        display: none;
    }
    .nav-links_burger{
        display: flex;
        flex-direction: column;
        gap: 32px;
        font-size: 16px;
        color: var(--text-light);
        z-index: 1000;
    }
    .devider{
        height: 1px;
        background-color: white;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
    #menu_button{
        display: block;
    }
    .button-up-div{
        display: block;
    }
    .button-up{
        z-index: 1000;
        position: fixed;
        background-color: rgb(129, 0, 155);
        border-color: rgb(129, 0, 155);
        left: 80%;
        top: 90%;
        height: 50px;
        width: 50px;
        border-radius: 50%;
    }
    .fleche-top{
        height: 25px;
        width: 25px; 
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .primary-button,
    .secondary-button,
    .submit-button {
        transition: none;
    }
}
@media (min-width: 990px) {
    .nav-links_burger{
        display: none;
    }
    
}
@media (max-width: 490px){
    .nav-wrapper{
        padding: 16px 0;
    }
}
@media (min-width: 1441px){
    .hero-image{
        height: 120%;
    }
    .section-heading{
        margin-top: 2em;
    }
}



