* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background:  #0d0d0d  ;
    color: #fff;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 

    
}

nav {
    position: fixed;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #64ffda;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-text {
    max-width: 800px;
}

.threejs {
    height: 100vh;
    width: 100%;
    
}

.greeting {
    font-size: 20px;
    color: #64ffda;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.name {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s 0.2s forwards;
}

.tagline {
    font-size: 60px;
    color: #8892b0;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s 0.4s forwards;
}

.description {
    font-size: 20px;
    color: #8892b0;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s 0.8s forwards;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*
 * Cursor Animation
 */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #64ffda;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
}

@media (max-width: 768px) {
    .name {
        font-size: 48px;
    }
    
    .tagline {
        font-size: 36px;
    }

    .nav-links {
        display: none;
    }

    /* Cacher ThreeJS sur mobile */
    .threejs {
        display: none;
    }

    /* Ajuster le hero pour compenser l'absence de ThreeJS */
    .hero {
        flex-direction: column;
        padding: 100px 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }
}



/*
 * Wave Animation
 */

.wave {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(250, 250, 250, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: wave-animation 0.5s ease-out;
}

@keyframes wave-animation {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}




/*
 * Arrow Animation
 */

.arrow {
    background-color: transparent;
    width: 12px;
    height: 12px;
    rotate: -45deg;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.arrowContainer {
    position: absolute;
    left: 25%;
    bottom: 7px;
    animation: bounce 2s infinite;
}


.box-arrow {
    position: absolute;
    bottom: 10px;
    height: 55px;
    width: 30px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #64ffda; 
    border-radius: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-10px);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-5px);
        opacity: 0.5;
    }
}

.skills {
    padding: 5rem 2rem;
    background: transparent;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #64ffda;
    margin: 0.5rem auto;
}

/* Modification de la grille des skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: #151515;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #252525;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: #64ffda;
}

.skill-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #00ff88;
}

.skill-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}
  



.projects {
    padding: 5rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #151515;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #252525;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #64ffda;
}

.project-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #000;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit:fill;
}

.project-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-description {
    color: #aaa;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.project-tech {
    color: #64ffda;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #64ffda;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.project-links a:hover {
    opacity: 0.8;
}


.contact {
    padding: 5rem 2rem;
    background: transparent;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    position: relative;
    padding: 2rem;
    background: #151515;
    border-radius: 15px;
    border: 1px solid #252525;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #202020;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-color: #64ffda;
    outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #64ffda;
    background: #151515;
    padding: 0 0.3rem;
}

.submit-btn {
    margin-top: 10px;
    background: #64ffda;
    color: #151515;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.send-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.status {
    margin-top: 1.5rem;
    text-align: center;
    color: #64ffda;
    font-size: 0.9rem;
    height: 20px;
}

/* Ajoutez ces styles pour le reCAPTCHA */
.g-recaptcha {
    width: 100% !important;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
        margin: 1rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 15px 20px;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        padding: 100px 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .name {
        font-size: 40px;
    }

    .tagline {
        font-size: 30px;
    }

    .description {
        font-size: 16px;
    }

    /* ThreeJS Container */
    .threejs {
        display: none;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide cursor on mobile */
    .cursor {
        display: none;
    }

    /* Adjust section titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .download-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .download-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: center;
        margin: 0.5rem 0;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .name {
        font-size: 32px;
    }

    .tagline {
        font-size: 24px;
    }

    .description {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .skill-card i {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    .project-image {
        height: 150px;
    }
}

/* Pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {

    
    .hero {
        padding: 0 5%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Réduire la taille du ThreeJS sur tablette */
    .threejs {
        height: 50vh;
        width: 100%;
    }
}

/* Modification des media queries */
@media (min-width: 769px) {
    .skills-container, 
    .projects-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .skill-card,
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pour les grands écrans */
@media (min-width: 1025px) {
    .hero {
        padding: 0 15%;
    }
}

.download-section {
    padding: 4rem 0;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.download-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: #151515;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #252525;
    text-decoration: none;
    color: #fff;
    width: 250px;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: #64ffda;
}

.download-card i {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.download-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.download-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #64ffda;
    color: #0a0a0a;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn i {
    font-size: 1rem;
    color: #0a0a0a;
    margin-right: 0.5rem;
}

.download-card:hover .download-btn {
    background: #fff;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    /* Animation du burger */
    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


