* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    text-align: center;
    overflow-x: hidden;
}
nav {
    background: rgba(139, 106, 106, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    gap: 0px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
nav::-webkit-scrollbar {
    display: none;
}
nav a {
    color: white;
    display: inline-block;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    flex: 0 0 auto;
    /*padding: 8px 12px;*/
    white-space: nowrap;
}
nav a:hover {
    text-decoration: underline;
    transition: text-decoration 1s ease-in-out;
}
h1 {
    color: #333;
    margin-top: 20px;
}
p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 20px;
}
footer {
    background-color: #ffffff;
    color: white;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}
header img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
}
.project,
.experience-card,
.container,
.container0 {
    margin: 20px 0;
}
.container8 {
    padding-top: 330px;
}
#about-carousel {
    position: relative;
    overflow: hidden;
    margin: 40px auto;
}
#about-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}
#about-carousel section {
    min-width: 100%;
    flex-shrink: 1;
    padding: 20px;
    box-sizing: border-box;
}
#about-carousel .prev-btn, #about-carousel .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1111117b;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}
#about-carousel .prev-btn { 
    left: 10px;
}
#about-carousel .next-btn {
    right: 10px
}
#about {
    height: 530px;
    padding: 155px;
}
#projects, #contact {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
}
#contact form {
    display: flex;
    flex-direction: column;
}
#contact input, #contact textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#contact button {
    margin: 5px 500px 5px 500px;
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}
#contact button:hover {
    background-color: #555;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.btn:hover {
    background-color: #555;
}
header {
    width: 100vw;
    background-color: #f4f4f4;
    padding: 100px 20px;
}
.header-text {
    text-align: left;
}
header .btn {
    margin-top: 15px;
}
.container0 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 76%;
}
#why-me {
    text-align: left;
}
#why-me .container {
    position: static;
    margin: auto;
    line-height: 41px;
}
.project {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 1000px;

    margin: 30px auto;
    padding: 40px;

    border-radius: 20px;

    text-align: left;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 6px 20px rgba(0,0,0,0.12);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}
/* Dark overlay */
.project::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.65);

    z-index: 1;
}
/* Keep content above overlay */
.project * {
    position: relative;
    z-index: 2;
}
.project:hover {
    transform: translateY(-6px);

    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}
.project h3 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}
.project p,
.project li {
    color: rgba(255,255,255,0.92);

    line-height: 1.9;
    font-size: 17px;
}
.project strong {
    color: white;
}
.project ul {
    margin-top: 15px;
    padding-left: 22px;
}
#projects {
    width: 100%;
}
#projects .container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 97px 20px;
}
#projects h2 {
    text-align: center;

    font-size: 38px;

    margin-bottom: 40px;

    color: #222;
}

/* Buttons */
.project-links {
    margin-top: 30px;

    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.project-links a {
    text-decoration: none;

    padding: 12px 22px;

    border-radius: 10px;

    background: white;
    color: black;

    font-weight: 600;

    transition: all 0.3s ease;
}
.project-links a:hover {
    transform: translateY(-2px);

    background: #e9e9e9;
}
#code i {
    font-size: 70px;
    cursor: pointer;
}
#code .container{
    gap: 27px;
    display: flex;
    padding: 24px;
}
.container3 {
    width: min(1000px, 90%);
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 80px 0;
}
#experience h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 20px;
    color: #222;
}
#experience .experience-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 35px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
#experience .experience-card:hover {
    transform: translateY(-5px);
}
#experience .experience-card h3 {
    margin-bottom: 20px;
    color: #111;
}
#experience .experience-card a {
    font-size: 28px;
    margin-right: 15px;
    color: black;
    display: inline-block;
    margin-top: 10px;
}
#experience .experience-card a:hover {
    transform: scale(1.15);
    transition: 0.3s ease;
}
#code .container2{
    right: -461px;
    position: relative;
    width: 548px;
}
#code i:hover {
    transform: scale(1.2);
    transition: transform 0.5s ease-in-out;
}
#tech {
    padding: 0px;
}
#tech .container {
    width: 100%;
    max-width: 700px;
    margin: auto;
    padding-top: 28px;
}
#tech .container i{
    font-size: 70px;
    cursor: pointer;
}
#tech .container4 {
    gap: 17px;
    display: flex;
    border: none;
}
#tech i:hover{
    transform: scale(1.2);
    transition: transform 0.5s ease-in-out;
}
.container5 {
    display: flex;
}
#soft-skills {
    margin: auto;
    position: static;
}
#soft-skills .container {
    width: 317px;
    text-align: left;
    line-height: 29px;
    font-size: 24px;
}
#getConnected {
    width: 100%;
    display: flex;
    justify-content: center;
}
#connect .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    text-align: center;
}
#download-cv .container {
    position: static;
    width: 100%;
    margin-top: 20px;
}
#contact .container {
    text-align: center;
}
#connect .container a{
    display: inline-block;
    transition: transform 0.5s ease-in-out;
}
#connect .container i {
    font-size: 70px;
    color: black;
}
#connect a:hover {
    transform: scale(1.2);
}
#contact .container a {
    display: inline-block;
    margin: 15px;
    transition: transform 0.3s ease;
}
#contact .container i {
    font-size: 85px;
    color: black;
}
#contact .container a:hover {
    transform: scale(1.2);
}
#edu .container{
    padding-top: 88px;
    width: 90%;
    max-width: 1100px;
    margin: auto;
}
#edu .carousel {
    display: flex;
}
.edu-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1413px;
    margin: 32px;
    padding: 0 128px 0 109px;
}
.edu-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.edu-slide {
    min-height: 100%;
    flex-shrink: 0;
    display: flex;
}
.edu-slide img {
    width: 100%;
    max-width: 621px;
    border-radius: 80px;
}
.edu-slide img:hover {
    transform: scale(1.2);
    transition: transform 0.5s ease-in-out;
}
.edu-prev, .edu-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
}
.edu-prev {
    left: 10px;
}
.edu-next {
    right: 10px;
}
#certiAchiev .carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1792px;
    margin: auto;
}
#certiAchiev .carousel-track{
    display: flex;
    transition: transform 0.4s ease-in-out;
}
.cerSlide {
    min-width: 100%;
    flex-shrink: 0;
    display: contents;
    align-items: center;
}
.cerSlide img {
    max-width: 100%;
    max-height: 223px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}
.cerSlide img:hover{
    transform: scale(1.2);
    transition: transform 0.5s ease-in-out;
}
.cerPrev, .cerNext {
    bottom: 146px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 10;
    border-radius: 10px;
}
.cerPrev:hover, .cerNext:hover {
    color: rgb(179, 170, 170);
    transition: color 0.5s ease-in-out;
}
.cerPrev {
    left: -329px;
    position: relative;
}
.cerNext {
    right: -325px;
    position: relative;
}
#tools i {
    display: inline-block;
    font-size: 70px;
}
#tools i:hover {
    transform: scale(1.2);
    transition: transform 0.5s ease-in-out;
}
#tools .container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding-top: 14px;
}
#languages .container{
    width: 100%;
    text-align: center;
    line-height: 24px;
    margin: auto;
}
.container7 {
    display: flex;
}
.fa-html5:hover{
    color: rgb(223, 76, 36);
    transition: color 0.5s ease-in-out;
}
.fa-css3-alt:hover {
    color: rgb(83, 134, 211);
    transition: color 0.5s ease-in-out;
}
.fa-js:hover{
    color: rgb(180, 185, 44);
    transition: color 0.5s ease-in-out;
}
.fa-node-js:hover{
    color: rgb(55, 135, 23);
    transition: color 0.5s ease-in-out;
}
.fa-react:hover{
    color: rgb(38, 107, 205);
    transition: color 0.5s ease-in-out;
}
.fa-php:hover{
    color: rgb(10, 62, 135);
    transition: color 0.5s ease-in-out;
}
.fa-database:hover{
    color: rgb(213, 116, 26);
    transition: color 0.5s ease-in-out;
}
.fa-git-alt:hover{
    color: rgb(210, 62, 21);
    transition: color 0.5s ease-in-out;
}
.fa-python:hover{
    color: rgb(204, 191, 70);
    transition: color 0.5s ease-in-out;
}
.fa-java:hover{
    color: rgb(87, 55, 55);
    transition: color 0.5s ease-in-out;
}
.devicon-c-plain:hover{
    color: rgb(38, 107, 205);
    transition: color 0.5s ease-in-out;
}
.devicon-cplusplus-plain:hover{
    color: rgb(38, 107, 205);
    transition: color 0.5s ease-in-out;
}
.fa-file-word:hover{
    color: rgb(38, 107, 205);
    transition: color 0.5s ease-in-out;
}
.fa-file-excel:hover{
    color: rgb(55, 135, 23);
    transition: color 0.5s ease-in-out;
}
.fa-file-powerpoint:hover{
    color: rgb(210, 62, 21);
    transition: color 0.5s ease-in-out;
}
.devicon-canva-original:hover{
    color: rgb(56, 123, 215);
    transition: color 0.5s ease-in-out;
}
.fa-file-pdf:hover{
    color: rgb(220, 36, 36);
    transition: color 0.5s ease-in-out;
}
.devicon-chrome-plain:hover{
    color: rgb(34, 137, 27);
    transition: color 0.5s ease-in-out;
}
.fa-envelope:hover{
    color: rgb(209, 193, 55);
    transition: color 0.5s ease-in-out;
}
.devicon-vscode-plain:hover{
    color: rgb(56, 123, 215);
    transition: color 0.5s ease-in-out;
}
.devicon-linkedin-plain:hover{
    color: rgb(28, 65, 117) !important;
    transition: color 0.5s ease-in-out;
}
.devicon-facebook-plain:hover{
    color: rgb(20, 97, 205) !important;
    transition: color 0.5s ease-in-out;
}
.fa-whatsapp-square:hover{
    color: rgb(22, 181, 65) !important;
    transition: color 0.5s ease-in-out;
}
/* Mobile Responsive Styles - Only applies to screens < 768px */
@media screen and (max-width: 767px) {
    /* Navigation */
    nav {
        padding: 8px 10px;
        gap: 5px;
        font-size: 14px;
    }
    
    nav a {
        margin: 0 8px;
        font-size: 13px;
        padding: 5px 8px;
    }

    /* Header */
    .container8 {
        padding-top: 250px !important;
    }

    header {
        padding: 50px 0 !important;
    }

    .container0 {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
        height: auto;
    }

    header img {
        width: 180px !important;
        height: 180px !important;
    }

    .header-text {
        text-align: center !important;
    }

    .header-text h1 {
        font-size: 28px !important;
    }

    /* Containers */
    .container {
        width: 95% !important;
        padding: 0 10px !important;
    }

    /* About Carousel */
    #about {
        height: auto !important;
        padding: 20px !important;
    }

    /* Skills Section - Stack everything vertically */
    .container3, .container5, .container7 {
        flex-direction: column !important;
    }

    #why-me .container {
        left: 0 !important;
        position: static !important;
        top: 0 !important;
        text-align: center !important;
        line-height: 1.6 !important;
        margin-bottom: 30px;
    }

    #code .container2 {
        right: 0 !important;
        position: static !important;
        width: 100% !important;
        margin: 20px 0;
    }

    #code .container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    #code i {
        font-size: 50px !important;
    }

    #tech .container {
        width: 100% !important;
        left: 0 !important;
        position: static !important;
        padding-top: 20px !important;
    }

    #tech .container4 {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    #tech i {
        font-size: 50px !important;
    }

    #soft-skills {
        left: 0 !important;
        position: static !important;
        margin: 20px 0;
    }

    #soft-skills .container {
        width: 100% !important;
        font-size: 18px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    #languages .container {
        width: 100% !important;
        left: 0 !important;
        position: static !important;
        text-align: center !important;
        margin-bottom: 20px;
    }

    #tools .container {
        width: 100% !important;
        left: 0 !important;
        position: static !important;
        padding-top: 20px !important;
    }

    /* Contact Form */
    #contact button {
        margin: 10px auto !important;
        display: block !important;
        width: 200px !important;
    }
    #connect .container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    #download-cv .container {
        right: 0 !important;
        position: static !important;
        width: 100% !important;
        bottom: 0 !important;
        margin: 20px 0;
    }

    /* Projects */
    #projects .container {
        width: 100% !important;
        padding: 20px 10px !important;
    }
    #projects {
        position: relative;
    }
    #projects .prev-btn,
    #projects .next-btn {
        top: 55%;
        z-index: 20;
    }
    #projects .prev-btn {
        left: 5px !important;
    }

    #projects .next-btn {
        right: 5px !important;
    }
    .project {
        padding: 25px 20px !important;
    }

    .carousel-track {
        gap: 10px !important;
    }
    .project h3 {
        font-size: 22px !important;
    }

    .project p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    
    /* Education */
    #edu {
        padding: 40px 0 !important;
    }

    #edu .container {
        width: 95% !important;
        padding-top: 20px !important;
    }

    #edu h2 {
        margin-bottom: 30px !important;
    }

    .edu-carousel {
        position: relative !important;
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 30px auto !important;
        padding: 0 !important;
        height: 250px !important;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .edu-track {
        display: flex !important;
        transition: transform 0.5s ease-in-out !important;
        height: 100% !important;
    }

    .edu-slide {
        min-width: 100% !important;
        flex-shrink: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .edu-slide img {
        width: 95% !important;
        max-width: 350px !important;
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        transition: all 0.3s ease !important;
    }

    .edu-slide img:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 12px 35px rgba(0,0,0,0.25) !important;
    }

    .edu-prev, .edu-next {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(63, 63, 63, 0.432) !important;
        color: white !important;
        border: none !important;
        padding: 12px 16px !important;
        font-size: 18px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        z-index: 20 !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        box-sizing: border-box !important;
    }

    .edu-prev {
        left: 5px !important;  /* FIXED: Proper positioning */
    }

    .edu-next {
        right: 5px !important; /* FIXED: Proper positioning */
    }

    .edu-prev:hover, .edu-next:hover {
        background: rgba(0,0,0,1) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }

    /* Certificates */
    #certiAchiev {
        padding: 40px 0 !important;
    }

    #certiAchiev .container {
        padding: 0 10px !important;
    }

    #certiAchiev .carousel-wrapper {
        position: relative !important;
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 30px auto !important;
        height: 280px !important;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        background: linear-gradient(145deg, #f8f9fa, #e9ecef);
        padding: 20px;
    }

    #certiAchiev h2 {
        margin-bottom: 30px !important;
    }

    #certiAchiev .carousel-track {
        display: flex !important;
        transition: transform 0.5s ease-in-out !important;
        height: 100% !important;
        gap: 15px !important;
    }

    .cerSlide {
        min-width: 100% !important;
        flex-shrink: 0 !important;
        height: 100% !important;
        display: flex !important;  /* CHANGED: flex instead of contents */
        align-items: center !important;
        justify-content: center !important;
    }

    .cerSlide img {
        width: 90% !important;
        max-width: 320px !important;
        max-height: 240px !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
        border: 3px solid rgba(255,255,255,0.8) !important;
        transition: all 0.4s ease !important;
    }

    .cerSlide img:hover {
        transform: scale(1.08) !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
        border-color: rgba(255,255,255,1) !important;
    }

    .cerPrev, .cerNext {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(0,0,0,0.85) !important;
        border: none !important;
        color: white !important;
        font-size: 20px !important;
        cursor: pointer !important;
        padding: 14px 18px !important;
        z-index: 20 !important;
        border-radius: 50% !important;
        width: 55px !important;
        height: 55px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
        box-sizing: border-box !important;
    }

    .cerPrev {
        left: 10px !important;  /* FIXED: Proper positioning */
    }

    .cerNext {
        right: 10px !important; /* FIXED: Proper positioning */
    }

    .cerPrev:hover, .cerNext:hover {
        background: rgba(0,0,0,1) !important;
        transform: translateY(-50%) scale(1.15) !important;
        box-shadow: 0 6px 25px rgba(0,0,0,0.4) !important;
    }

    
    /* Buttons */
    .btn {
        display: block !important;
        margin: 10px auto !important;
        width: 200px !important;
        text-align: center;
    }

    /* Icons */
    #connect .container i,
    #tools i {
        font-size: 50px !important;
    }

    /* General improvements */
    h2 {
        font-size: 24px !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    ul {
        text-align: left !important;
        padding-left: 20px !important;
    }

    /* Carousel buttons */
    .prev-btn, .next-btn {
        padding: 10px 12px !important;
    }

    .prev-btn i, .next-btn i {
        font-size: 20px !important;
    }

    /* Form inputs */
    #contact input, #contact textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Footer */
    footer {
        padding: 20px 0 !important;
    }
}
/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    header img {
        width: 150px !important;
        height: 150px !important;
    }

    .header-text h1 {
        font-size: 24px !important;
    }

    #code i, #tech i, #connect .container i, #tools i {
        font-size: 40px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    #soft-skills .container {
        font-size: 16px !important;
    }

    .edu-carousel {
        height: 220px !important;
    }

    .edu-slide img {
        height: 190px !important;
    }

    #certiAchiev .carousel-wrapper {
        height: 250px !important;
        padding: 15px !important;
    }

    .cerSlide img {
        max-width: 280px !important;
        max-height: 210px !important;
    }

    .cerPrev, .cerNext,
    .edu-prev, .edu-next {
        width: 48px !important;
        height: 48px !important;
        padding: 12px !important;
        font-size: 18px !important;
    }
}
