@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@100;300;400;500;700&display=swap');


:root {
    --main-color: #e38528;
    --secondary-color: #2d3e50;
    /* Professional dark blue as secondary color */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #fcf2e8;
    --white: #fff;
    --shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}


* {

    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
    line-height: 1.5;
}

html {

    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;

}

body {
    background: var(--bg-light);
    padding-left: 30rem;

}

section {
    padding: 2rem 5%;
    min-height: auto;
    margin-bottom: 1rem;
}



.heading {
    font-size: 4rem;
    padding-bottom: 2rem;
    /* Increased padding */
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Add letter spacing */
    margin-bottom: 3rem;
    /* Add margin below headings */
    position: relative;
    /* For styling elements */
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.3rem;
    background: var(--main-color);
}

.heading span {
    color: var(--main-color);
    text-transform: uppercase;
}


.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .8rem 3rem;
    background: var(--main-color);
    color: #fff;
    cursor: pointer;
    font-size: 1.7rem;
    border-radius: 3rem;
}

.btn:hover {
    background: #111;
    letter-spacing: .2rem;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    flex-flow: column;
    padding: 8rem 2rem;
    width: 30rem;
    text-align: center;

}

header .logo {
    text-transform: uppercase;
    color: #fff;
    font-size: 3rem;
    font-weight: bolder;

}

header .logo span {
    text-transform: uppercase;
    color: var(--main-color);
}

header .navbar a {
    display: block;
    font-size: 2rem;
    color: #fff;
    margin: 2rem 0;

}

header .navbar a:hover {
    letter-spacing: .2rem;
    color: var(--main-color);
}

header .follow a {
    font-size: 2.5rem;
    color: #fff;
    margin: 0.7rem;
}

header .follow a:hover {
    color: var(--main-color);
}

#menu-bars {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background: var(--main-color);
    color: #fff;
    border-radius: .5rem;
    padding: 1rem 1.5rem;
    font-size: 3rem;
    cursor: pointer;
    display: none;
}

/* Add this rule to hide menu bars when sidebar is active */
.project-sidebar.active ~ #menu-bars,
body:has(.project-sidebar.active) #menu-bars {
    display: none !important;
}

.cursor-1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 1rem;
    width: 1rem;
    background: var(--main-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;

}

.cursor-1.active {
    height: 7rem;
    width: 7rem;
    opacity: .3;
}

.cursor-2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 4rem;
    width: 4rem;
    border: .1rem solid var(--main-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    transition: .3s linear;
}

.cursor-2.active {

    display: none;

}


.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.home-wrapper {
    display: flex;
    width: 95%;
    max-width: 1400px;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 2rem;
}

.home .content {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    z-index: 2;
    padding-right: 0;
}

.home .image {
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: 0;
}

.home .image img {
    height: auto;
    max-height: 80vh;
    width: 100%;
    object-fit: contain;
    border: none;
    border-radius: 2rem;
    box-shadow: none;
}

.home .content .hi {
    font-size: 2rem;
    color: var(--main-color);
}


.home .content h3 {
    font-size: 4.5rem;
    color: #111;
    /* text-transform: uppercase;*/
}

.home .content h3 span {
    color: var(--main-color);
    /* text-transform: uppercase;*/
}

.home .content .info {
    font-size: 2.5rem;
    color: #111;
    padding: .5rem 0;

}

.home .content .text {
    font-size: 1.7rem;
    color: #666;
    padding: .5rem 0;
    /* text-transform:none;*/

}

.home .content .btn-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.about .row-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.about .row-1 .image {
    flex: 1 1 25rem;
    height: 35rem;
    /* Fixed height */
    overflow: hidden;
    /* Hide overflow */
    border-radius: .5rem;
}

.about .row-1 .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    /* Focus on the face */
    border: 1rem solid #fff;
    border-radius: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    transition: transform 0.3s ease;
}

.about .row-1 .image:hover img {
    transform: scale(1.03);
}

.about .row-1 .content {
    flex: 1 1 100%;
    padding: 2rem;
    text-align: center;
}

.about-container {
    background: #fff;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    max-width: 90%;
    margin: 0 auto;
    text-align: left;
}

.about .row-1 .content h3 {
    color: #333;
    font-size: 3.5rem;
}

.about .row-1 .content p.text {
    color: #666;
    font-size: 1.8rem;
    padding: 0.5rem 0;
    text-transform: none;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    width: 100%;
}

.specialization-heading {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.specialization-list {
    list-style-position: inside;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.specialization-list li {
    color: #666;
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    text-transform: none;
}

.specialization-list li::before {
    content: "•";
    color: var(--main-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about .row-1 .content .btn-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.about .row-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.about .row-2 .skills {
    flex: 1 1 40rem;
}

.about .row-2 .skills .progress {
    padding: 1rem 0;
}

.about .row-2 .skills .progress h3 {
    display: flex;
    justify-content: space-between;
    padding: .7rem.0;
    font-size: 1.7rem;
    color: #111;
    font-weight: 400;
}

.about .row-2 .skills .progress .bar {
    width: 100%;
    background: #ccc;
    overflow: hidden;
    height: 1rem;
    border-radius: 50rem;
}

.about .row-2 .skills .progress .bar span {
    display: block;
    height: 100%;
    background: var(--main-color);
    border-radius: 50rem;
}


.about .row-2 .skills .progress:nth-child(1) .bar span {
    width: 100%;
}

.about .row-2 .skills .progress:nth-child(2) .bar span {
    width: 100%;
}

.about .row-2 .skills .progress:nth-child(3) .bar span {
    width: 100%;
}

.about .row-2 .skills .progress:nth-child(4) .bar span {
    width: 100%;
}

.about .row-2 .skills .progress:nth-child(5) .bar span {
    width: 100%;
}


.about .row-2 .box-container {
    flex: 1 1 40rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about .row-2 .box-container .box {
    flex: 1 1 15rem;
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}


.about .row-2 .box-container .box h3 {
    color: var(--main-color);
    font-size: 3rem;
}

.about .row-2 .box-container .box p {
    color: #666;
    font-size: 1.7rem;
    padding-top: .5rem;
}

.service,
.experience,
.portfolio,
.contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.service .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.service .box-container .box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 25rem;
    word-wrap: break-word; /* Ensure text wraps */
    overflow-wrap: break-word; /* Modern version of word-wrap */
}

.service .box-container .box i {
    height: 6rem;
    width: 6rem;
    line-height: 6rem;
    font-size: 2.5rem;
    color: #fff;
    background: var(--main-color);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service .box-container .box h3 {
    color: #444;
    font-size: 2.2rem;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    width: 100%; /* Ensure headings take full width */
}

.service .box-container .box p {
    color: #666;
    font-size: 1.7rem;
    text-transform: none;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure paragraphs take full width */
    hyphens: auto; /* Add hyphenation for better text wrapping */
}

.experience .box-container {
    display: flex;
    flex-wrap: wrap;
    /*gap:1.5rem;*/

}

.experience .box-container .box {
    position: relative;
    flex: 1 1 33rem;
    border-left: .2rem solid var(--main-color);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;

}

.experience .box-container .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1rem;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background: var(--main-color);
}

.experience .box-container .box .content {
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: 2rem;
}

.experience .box-container .box .content span {
    color: #fff;
    font-size: 1.7rem;
    background: var(--main-color);
    border-radius: 3rem;
    padding: .4rem 1rem;
}

.experience .box-container .box .content h3 {
    font-size: 2.5rem;
    padding: .5rem 0;
    color: #111;

}

.experience .box-container .box .content p {
    font-size: 1.5rem;
    color: #666;
}

.portfolio .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.portfolio .box-container .box {
    flex: 1 1 30rem;
    max-width: 30rem;
    height: auto;
    min-height: 30rem;
    position: relative;
    overflow: hidden;
    border: 1rem solid #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    background: #fff;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.portfolio .box-container .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .15);
    border-color: rgba(227, 133, 40, 0.3);
}

.portfolio .box-container .box img {
    height: 60%;
    width: 100%;
    object-fit: cover;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: all 0.5s ease;
}

.portfolio .box-container .box:hover img {
    filter: brightness(1.05);
}

.portfolio .box-container .box h3 {
    position: static;
    padding: 1rem;
    font-size: 2rem;
    color: var(--text-dark);
    margin-top: -0.5rem;
}

.portfolio .box-container .box .project-desc {
    padding: 0 1rem;
    font-size: 1.4rem;
    color: var(--text-light);
    text-transform: none;
    margin-top: -1rem;
    /* limit description to two lines for consistent card height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content layout for portfolio boxes */
.portfolio .box-container .box .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-bottom: 1rem;
}

.portfolio .box-container .box .tech-stack {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.portfolio .box-container .box .tech-stack span {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    margin: 0.3rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.portfolio .box-container .box .icons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.portfolio .box-container .box .icons a {
    display: inline-block;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 3.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio .box-container .box .icons a:hover {
    background: var(--main-color);
    color: white;
}

/* Ensure tech stack is visible regardless of screen size */
@media (min-width: 992px) {
    .portfolio .box-container .box .tech-stack {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .portfolio .box-container .box .tech-stack span {
        display: inline-block !important;
    }
}

.contact .icons-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.contact .icons-container .icons {
    flex: 1 1 25rem;
    text-align: center;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: 2rem;
}

.contact .icons-container .icons i {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    font-size: 2rem;
    background: var(--main-color);
    color: #fff;
    border-radius: 50%;
}


.contact .icons-container .icons h3 {
    color: #111;
    font-size: 2rem;
    padding: .5rem 0;
}

.contact .icons-container .icons p {
    color: #666;
    font-size: 1.7rem;
    text-transform: none;
}


.contact .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;

}

.contact .row form {
    flex: 1 1 55rem;
    background: #fff;
    padding: 0 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: 2rem;
}

.contact .row .map {
    flex: 1 1 25rem;
    border: 1rem solid #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: 2rem;
    width: 100%;

}


.contact .row form .box,
.contact .row form textarea {
    width: 100%;
    border-bottom: .1rem solid #333;
    color: #333;
    text-transform: none;
    font-size: 1.7rem;
    padding: 1rem 0;
    margin: 1rem 0;

}

.contact .row form .box:focus,
.contact .row form textarea:focus {
    border-color: var(--main-color);
}

.contact .row form .box::placeholder,
.contact .row form textarea::placeholder {
    text-transform: capitalize;

}

.contact .row form textarea {
    height: 20rem;
    resize: none;
}

.contact .row form .btn {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-radius: 3rem;
}


/*
.footer{
    margin: 2rem;
    font-size: 2rem;
    padding:2.5rem;
    text-align:center;
    color: #666;
    background:#fff;
}

.footer span{
    color:var(--main-color);
}
*/

footer span {
    color: var(--main-color);

}

/* Skills section styling */
.skills-title {
    font-size: 4rem;
    text-align: center;
    color: var(--main-color);
    margin-bottom: 3rem;
}

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

.skill-category {
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, .15);
    border-color: rgba(227, 133, 40, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.category-header i {
    font-size: 2.2rem;
    margin-right: 1rem;
    color: var(--main-color);
}

.category-header h3 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-badge {
    background: var(--bg-light);
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    color: #666;
    transition: background 0.3s ease;
}

.skill-badge:hover {
    background: rgba(227, 133, 40, 0.1);
}

.skill-badge i {
    margin-right: 0.8rem;
    color: var(--main-color);
}

/* Media queries for skills section */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Updated media queries for services */
@media(max-width:991px) {
    html {
        font-size: 55%;
    }

    body {
        padding: 0;
    }

    #menu-bars {
        display: initial;
        top: 0.7rem; /* Reduced from 1rem to 0.7rem */
    }

    header {
        left: -120%;
    }

    header.active {
        left: 0%;
    }

    .cursor-1,
    .cursor-2 {
        display: none;
    }

    /* Reset desktop-specific settings for mobile */
    .home {
        padding-top: 3.5rem; /* Further reduced from 4rem to 3.5rem */
        min-height: auto; /* Allow the section to be shorter */
    }
    
    .home-wrapper {
        flex-direction: column-reverse;
        width: 100%;
        text-align: center;
        gap: 2rem; /* Maintain consistent gap */
        padding-top: 0; /* Remove any top padding */
    }
    
    .home .content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 5%;
        margin-top: 0; /* Remove any top margin */
    }
    
    .home .image {
        flex: 0 0 100%;
        max-width: 80%; /* Keep image size consistent */
        margin: 0 auto; /* Center the image */
    }
    
    .home .image img {
        max-width: 100%;
        max-height: 50vh; /* Limit image height on mobile */
    }
    
    .home .content .btn-container {
        justify-content: center;
    }

    /* Improve about section responsiveness */
    .about .row-1 {
        flex-direction: column;
    }
    
    .about .row-1 .image {
        height: auto;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .about .row-1 .image img {
        max-height: 40rem;
    }
    
    .about .row-1 .content .box-container {
        flex-direction: column;
    }
    
    .about .row-1 .content .box-container .box {
        margin-bottom: 1rem;
    }

    /* Center portfolio cards on mobile */
    .portfolio .box-container {
        justify-content: center;
    }

    .portfolio .box-container .box {
        margin: 0 auto 1.5rem;
    }

    /* Center service boxes on mobile */
    .service .box-container {
        grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
        justify-content: center;
    }

    /* Full width cards on very small screens */
    .portfolio .box-container .box,
    .service .box-container .box {
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }

    /* Improve contact section on mobile */
    .contact .row {
        flex-direction: column;
    }
    
    .contact .row .map {
        margin-top: 2rem;
        height: 30rem;
    }

    /* Service boxes should maintain fixed height */
    .service .box-container .box {
        padding: 1.8rem;
        min-height: 22rem;
    }

    /* Make filter buttons wrap nicely on small screens */
    .portfolio-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-container {
        padding: 2rem;
        max-width: 95%;
    }

    .home .image.mobile-optimized {
        margin-top: 0;
        padding-top: 0;
    }
    
    .home .image.mobile-optimized img {
        max-height: 45vh; /* Further limit image height on mobile */
    }

    /* Improve service boxes on tablet */
    .service .box-container {
        grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    }
    
    .service .box-container .box {
        padding: 1.8rem;
        min-height: 22rem;
        max-width: 100%; /* Ensure boxes don't exceed container width */
    }
    
    .service .box-container .box h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service .box-container .box p {
        font-size: 1.6rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
}

@media(max-width:768px) {
    .service .box-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem; /* Reduced gap for more space */
    }
    
    .service .box-container .box {
        padding: 1.5rem;
        min-height: 20rem;
    }
    
    .service .box-container .box h3 {
        font-size: 1.8rem;
    }
    
    .service .box-container .box p {
        font-size: 1.5rem;
    }
}

@media(max-width:450px) {

    html {
        font-size: 50%;
    }

    header {
        width: 100%;
    }

    .experience .box-container .box {

        padding-right: 0;

    }

    /* Full width cards on very small screens */
    .portfolio .box-container .box,
    .service .box-container .box {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    /* Adjust filter buttons spacing */
    .portfolio-filter {
        gap: 1rem;
    }
    
    .portfolio-filter .filter-btn {
        padding: .8rem 1.5rem;
    }

    /* Allow service boxes to grow on very small screens */
    .service .box-container {
        grid-template-columns: 1fr;
    }

    .service .box-container .box {
        padding: 2rem 1.5rem;
    }

    .about-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    #menu-bars {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.8rem 1.2rem;
    }
    
    .home {
        padding-top: 3rem;
    }
    
    .home .image.mobile-optimized img {
        max-height: 40vh;
    }
    
    .home .content h3 {
        font-size: 3.8rem;
    }
    
    .home .content .info {
        font-size: 2.2rem;
    }

}

/* Portfolio filter tabs */
.portfolio-filter {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}
.portfolio-filter .filter-btn {
    background: transparent;
    color: var(--text-dark);
    border: .1rem solid transparent;
    padding: .8rem 2rem;
    font-size: 1.7rem;
    cursor: pointer;
    border-radius: 3rem;
    transition: all .3s ease;
}
.portfolio-filter .filter-btn:hover {
    color: var(--main-color);
}
.portfolio-filter .filter-btn.active {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

/* Project sidebar styles */
.project-sidebar {
    position: fixed;
    top: 0;
    right: -40rem;
    width: 40rem;
    height: 100vh;
    background: var(--bg-light);
    box-shadow: -0.5rem 0 1rem rgba(0, 0, 0, 0.1);
    z-index: 10001; /* Increased z-index to be higher than menu-bars */
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.project-sidebar.active {
    right: 0;
}

.sidebar-content {
    padding: 3rem 2rem 2rem 2rem;
    position: relative;
    flex: 1;
    overflow-y: auto;
}

.close-sidebar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--main-color);
    color: #fff;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10002;
}

.close-sidebar:hover {
    background: #333;
    transform: scale(1.05);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem; /* Add padding to ensure content doesn't get cut off by sticky links */
}

.project-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0; /* Increased top margin from 1.5rem to 2.5rem */
    padding-right: 1rem; /* Added padding-right */
    padding-bottom: 1rem;
    border-bottom: 0.2rem solid var(--main-color);
    text-align: center; /* Center the title */
}

.project-image {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tech-used h3, .key-features h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tech-badges span {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.4rem;
}

.features-list {
    padding-left: 2rem;
}

.features-list li {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    position: relative;
}

.features-list li::before {
    content: "•";
    color: var(--main-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.project-description {
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1.8;
}

.developer-role {
    margin-top: 2rem;
}

.developer-role h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.role-description {
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
    position: static;
    width: 100%;
    background: transparent;
    padding: 0;
    border-top: none;
    box-shadow: none;
    z-index: 1;
    justify-content: center;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    color: var(--text-dark);
    border-radius: 2rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .05);
}

.app-link:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
}

.app-link.android i { color: #3DDC84; }
.app-link.apple i { color: #000; }
.app-link.github i { color: #333; }
.app-link.demo i { color: var(--main-color); }

.app-link:hover i { color: #fff; }

/* Overlay for when sidebar is active */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Updated to be below sidebar but above other elements */
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Media queries for sidebar */
@media(max-width:768px) {
    .project-sidebar {
        width: 90%;
        right: -90%;
    }
    
    .project-links {
        padding: 0;
        margin: 1rem 0;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .app-link {
        padding: 0.7rem 1.2rem;
        font-size: 1.4rem;
        flex-grow: 1;
        text-align: center;
        justify-content: center;
    }
    
    .close-sidebar {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        top: 0.8rem;
        right: 0.8rem;
    }
}

@media(max-width:480px) {
    .project-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}

/* Add smooth scrolling to sidebar content */
.sidebar-content::-webkit-scrollbar {
    width: 0.8rem;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 1rem;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #c06e1f;
}

/* Add a "View Details" hint on hover */
.portfolio .box-container .box::after {
    content: 'View Details';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--main-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio .box-container .box:hover::after {
    opacity: 1;
}

.home .image.mobile-optimized {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .image.mobile-optimized img {
    object-fit: contain;
}

/* Ensure project links are immediately visible on mobile */
@media (max-width: 768px) {
    .project-details {
        padding-bottom: 2rem;
    }
    
    /* Force hardware acceleration for smoother animations */
    .project-sidebar {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}