*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'sans-serif';
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff; 
    background-image: url(images/background.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center +35%;
    background-repeat: no-repeat;
    height: 100vh;
}


#header{
    width: 100%;
    height: 100vh;
}
.container{
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    width: 200px;
    border-radius: 100px;
    float: left;
    margin-right: 20px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    margin-top: 20px;
    font-size: 60px;
}

.header-text h1 span{
     color: #ff004f;
}


/* ------- About Me --------- */

#about{
    padding: 80px 0;
    color: #fff;
    font-size: 20px;
}

.row{
    display: flex; /* to have the contents side by side */
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 80%; /* 100 initialement mais diminue pour image Brooklyn actuelle */
    border-radius: 15px;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 70px;
    font-weight: 600;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
    font-size: 18px;
}

.tab-contents ul li span{
    color: #4fc3f7;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* --------- Core Expertise (formerly Work Experience) ---------------- */

#services{
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 60px;
    font-style: italic;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #ff004f, #4fc3f7);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4fc3f7, #ff004f);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper i {
    font-size: 36px;
    color: #fff;
}

.service-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 25px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.tag {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

/* --------- Beyond the Code (Personal Hobbies Preview) ---------------- */

#mywork{
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
    position: relative;
}

#mywork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="0.3" fill="%23ff004f" opacity="0.2"/><circle cx="60" cy="80" r="0.4" fill="%234fc3f7" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    pointer-events: none;
}

.hobbies-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.03), rgba(255, 0, 79, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* This ensures the overlay doesn't block clicks */
}

.hobby-card:hover::before {
    opacity: 1;
}

.hobby-card:hover {
    transform: translateY(-15px);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hobby-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    pointer-events: none; /* Prevent icon from blocking clicks */
}

.hobby-card h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    pointer-events: none; /* Prevent title from blocking clicks */
}

.hobby-card p {
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
    pointer-events: none; /* Prevent paragraph from blocking clicks */
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    pointer-events: none; /* Prevent tags container from blocking clicks */
}

.preview-tag {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto; /* Tags can be clicked if needed */
}

.preview-tag:hover {
    background: rgba(79, 195, 247, 0.25);
    transform: translateY(-2px);
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff004f, #4fc3f7);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    cursor: pointer; /* Ensure cursor shows as pointer */
    position: relative;
    z-index: 10; /* Ensure button is above other elements */
    pointer-events: auto; /* Explicitly enable pointer events */
}

.explore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 79, 0.3);
    cursor: pointer; /* Ensure cursor shows as pointer on hover */
}

.explore-btn i {
    transition: transform 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(5px);
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 195, 247, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #4fc3f7;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #ff004f;
}

/* ------------ Contact Me ---------------- */

.contact-left{
    margin: auto;
    flex-basis: 35%;
}

/* Center and align the email address */
.contact-left p {
    margin-top: 30px;
    display: flex; /* Add display flex */
    align-items: center; /* Add align-items center */
  }

  .contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
  }


.social-icons {
    margin-top: 30px;
    margin-left: auto; /* Change margin-left to auto */
    margin-right: auto; /* Add margin-right auto */
    text-align: center; /* Add text-align center */
  }

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
  }

.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: block; /* Change display to block */
    background: #ff004f;
    margin: 0 auto; /* Add margin 0 auto to center horizontally */
    text-align: center;
  }

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i{
    color: #ff004f;
}


/* ------------ css for small screen to make it responsive -------- */
nav .fas{
    display: none;
}

@media only screen and (max-width: 600px){
    #header{
        background-image: url(images/back.jpg);
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fas{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right{
        flex-basis: 100px;
    }
    .copyright{
        font-size: 14px;
    }
    
    /* Mobile responsive for Core Expertise section */
    .services-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .icon-wrapper i {
        font-size: 28px;
    }
    
    .service-card h2 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    /* Mobile responsive for Soft Skills section */
    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-item {
        padding: 25px 20px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
    }
    
    .skill-icon i {
        font-size: 20px;
    }
    
    .skill-item h3 {
        font-size: 18px;
    }
    
    .skill-item p {
        font-size: 13px;
    }
    
    #soft-skills .sub-title {
        font-size: 40px;
    }
    
    /* Mobile responsive for Hobbies Preview section */
    .hobbies-preview {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hobby-card {
        padding: 30px 20px;
    }
    
    .hobby-icon {
        font-size: 50px;
    }
    
    .hobby-card h3 {
        font-size: 24px;
    }
    
    .hobby-card p {
        font-size: 14px;
    }
    
    .preview-tags {
        gap: 8px;
    }
    
    .preview-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .explore-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Soft Skills Section */
#soft-skills {
    padding: 80px 0;
    position: relative;
    /* Let background show through - no background override */
}

#soft-skills .sub-title {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

#soft-skills .section-description {
    text-align: center;
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 60px;
    font-style: italic;
}

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

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.05), rgba(255, 0, 79, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 195, 247, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(255, 0, 79, 0.2));
    border: 2px solid rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(255, 0, 79, 0.3));
    border-color: rgba(79, 195, 247, 0.5);
}

.skill-icon i {
    font-size: 24px;
    color: #4fc3f7;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-icon i {
    color: #fff;
}

.skill-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.skill-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
    transition: color 0.3s ease;
}

.skill-item:hover p {
    color: #d0d0d0;
}
