* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: unset;
    --purplebeli: #333247;
    --blanccreme: #fbfbfeff;
}

ul,
li {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    width: auto;
    height: auto;
}

body {
    font-family: "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--purplebeli);
    background: var(--blanccreme);
}

h2 {
    max-width: 70%;
    margin: 0 auto;
}

main {
    text-align: center;
}

.cb-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    flex-direction: row;
}

.cb-icon div {
    line-height: 0;
}

.cb-icon div:nth-child(2) {
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 6px;
}

.contact-btn {
    font-size: 1.5rem;
    border: 1px solid var(--purplebeli);
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;

}

.contact-btn:hover {
    color: white;
    background-color: var(--purplebeli);
    transition: background-color 0.4s, color 0.4s;
}

/* Header Section */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header>* {
    padding-right: 30px;
    padding-left: 30px;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
}

.sub-header .contact-btn {
    margin: 0;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.6rem;
    margin-bottom: 50px;
    font-weight: 500;
}

.profile-image {
    width: 250px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .profile-image {
        width: 150px;

    }

}

.workspace{
    padding: 0;
}
.workspace picture{
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    margin-bottom: -.2rem;

}

.cat {
    bottom: 34px;
    z-index: -1;
}


/* About Section */
.about {
    background: var(--purplebeli);
    color: white;
    text-align: center;
    padding-bottom: 135px;

}

.about h2 {
    font-size: 2.2rem;
    padding: 0 20px 30px 20px;
}

.about p {
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 0 20px 80px 20px;

}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    bottom: 55px;
    position: relative;
}

.service-card {
    background: var(--blanccreme);
    padding: 40px 20px;
    border-radius: 25px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 1;
    transform: translateY(0px);
    transition: 0.6s;
    border: 1px solid var(--purplebeli);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.service-card p,
.service-card li {
    color: #7f8c8d;
    line-height: 1.6;
    padding: 10px;
}

.service-card li {
    padding: 10px;
}

/* Projects Section */
.projects {
    padding: 0px 20px 80px 20px;
    text-align: center;
}

.projects h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.projects-intro {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

.projects-grid {
    max-width: 65%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.project-logo {
    width: 145px;
    height: 80px;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    opacity: 1;
    transform: translateY(0px);
    transition: 0.6s;
}

.project-logo img {
    max-height: 100%;
    max-width: auto;
}

.project-logo:hover {
    transform: scale(1.05);
}


.projects .contact-btn {
    margin-top: 20px;
}



/* Contact Section */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(51, 50, 71, 0.85);
    /* semi-transparent overlay */
    z-index: 1000;
    animation: fadeInUp 0.5s;
}

.contact form {
    background: var(--blanccreme);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(51, 50, 71, 0.18);
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 320px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.7s;
}

.contact form label {
    font-weight: 600;
    color: var(--purplebeli);
    margin-bottom: 6px;
    text-align: left;
}

.contact form input,
.contact form textarea {
    padding: 12px 14px;
    border: 1px solid #d1d1e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f7f7fb;
    color: var(--purplebeli);
    transition: border-color 0.2s;
    resize: none;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: var(--purplebeli);
    outline: none;
    background: #fff;
}

.contact form button[type="submit"] {
    background: var(--purplebeli);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(51, 50, 71, 0.08);
}

.contact form button[type="submit"]:hover {
    background: #4b4970;
    color: #fff;
}

#thankyou-message {
    display: none;
    margin: 20px 0px;
    color: var(--purplebeli);
    background-color: var(--blanccreme);
    padding: 30px 100px;
    border-radius: 10px;
    font-size: 1.3rem;
    border: 1px solid var(--purplebeli);
}

.wrap-contact{
    display: flex;
    align-items: center;
    position:relative;
}

.close-btn {
    position: absolute;
    right: 0px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: var(--purplebeli);
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blanccreme);
}

.close-btn:hover {
    background: #ececf6;
}

@media (max-width: 600px) {
    .contact form {
        padding: 30px 30px 20px 30px;
        min-width: unset;
        max-width: 98vw;
        gap: 18px;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fadeout {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}

/* Skills Section */
/* Skills Section */
.skills {
    padding: 80px 20px;
    background: #a0a0a024;
    text-align: center;
}

.skills h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.skills-subtitle {
    margin-bottom: 50px;
    color: #bdc3c7;
}

.skills-chart {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: end;
}

.skill-bar {
    text-align: center;
}

.skill-name {
    font-size: 0.9rem;
    margin-bottom: 10px;

}

.bar {
    width: 50px;
    height: 200px;
    margin: 0 auto 10px;
    border: 1px solid lightgray;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    background: var(--purplebeli);
}



.skill-percentage {
    font-weight: bold;
    font-size: 1.1rem;
}

/**** footer clair ****/
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--blanccreme);
    color: var(--purplebeli);
    padding-top: 80px;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 80px;
    margin-top: 80px;
}

.social-links .icon {
    width: 32px;
    height: 32px;
    fill: var(--purplebeli);
    transition: all 0.3s ease;
}

.social-links a[aria-label="LinkedIn"]:hover .icon {
    fill: #0077b5;
    /* LinkedIn blue */
}

.social-links a[aria-label="Instagram"]:hover .icon {
    fill: #e1306c;
    /* Instagram pink */
}

.social-links a[aria-label="Malt"]:hover .icon {
    fill: #ff7043;
    /* Malt orange */
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.7;
}
.whatsapp-btn{
    display: inline-block;
    margin: 0 auto;
    width: 50px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .services {
    padding: 0 20px 40px 20px;

    }
    .projects {
        padding-bottom: 0;
    }

    .skills {
        display: none;
    }

    .sub-header .cb-icon {
        display: none;
    }
    .sub-header .contact-btn{
        margin: 30px auto;
    }

    .header h1 {
        font-size: 2rem;
       
    }

    .about h2 {
    font-size: 2.2rem;
    max-width: 100%;
    }
    .about p:last-of-type{
        display: none;
    }


    .laptop {
        width: 250px;
        height: 160px;
    }

    .accessories,
    .books {
        display: none;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-card,
.project-logo {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}