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

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

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure all content is visible */
section, .home-content, .about-content, .services-container {
    visibility: visible !important;
    opacity: 1 !important;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.sticky {
    border-bottom: .1rem solid rgba(14, 239, 255, 0.2);
    background: rgba(31, 36, 45, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 9%;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--main-color), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navbar {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), #00aaff);
    transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.home-contact {
    transition: all 0.3s ease;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#menu-icon:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

/* home design */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 35vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

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

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* experience design */
.experience {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.experience h2 {
    margin-bottom: 5rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}

.container {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.text-box {
    padding: 20px 30px;
    background: var(--bg-color);
    position: relative;
    border-radius: 6px;
    font-size: 1.5rem;
}

.text-box ul {
    list-style-position: inside;
}

.text-box ul li {
    margin-bottom: 1rem;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.container img {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    right: -25px;
    top: 32px;
    z-index: 10;
}

.right-container img {
    left: -25px;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--bg-color);
    right: -15px;
}

.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--bg-color);
    left: -15px;
}

.experience .heading {
    text-align: center;
    font-size: 4.5rem;
}

/* about design */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.about-img img {
    width: 35vw;
    cursor: pointer;
    transition: .3s ease;
}

.about-link {
    display: inline-block;
    transition: transform .3s ease;
}

.about-link:hover {
    transform: scale(1.05);
}

.about-img img:hover {
    filter: brightness(1.1);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* services design */
.services {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
    cursor: pointer;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    box-shadow: 0 0 2rem rgba(14, 239, 255, 0.3);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* skills design */
.skills {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 100px 9% 60px;
}

.main-text {
    text-align: center;
    margin-bottom: 50px;
}

.main-text span {
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-text h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin: 20px 0 20px;
}

.skill-main {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 50px;
    grid-column-gap: 70px;
    align-items: start;
}

.skill-left .skill-bar {
    margin-bottom: 3.5rem;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 10px;
}

.skill-bar .info p {
    font-size: 1.8rem;
    font-weight: 500;
}

.skill-left h3 {
    color: var(--main-color);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 40px;
    margin: 20px 0 30px;
    text-align: center;
}

.skill-left .skill-bar .bar {
    width: 100%;
    height: 14px;
    background-color: var(--second-bg-color);
    border-radius: 25px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-bar .bar span {
    width: 70%;
    height: 100%;
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, var(--main-color), #0099cc);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(14, 239, 255, 0.3);
}

.skill-bar .bar .html {
    width: 90%;
    animation: html 2s;
}

@keyframes html {
    0% {
        width: 0%;
    }
    100% {
        width: 90%;
    }
}

.skill-bar .bar .javascript {
    width: 70%;
    animation: javascript 2s;
}

@keyframes javascript {
    0% {
        width: 0%;
    }
    100% {
        width: 70%;
    }
}

.skill-bar .bar .css {
    width: 80%;
    animation: css 2s;
}

@keyframes css {
    0% {
        width: 0%;
    }
    100% {
        width: 80%;
    }
}

.skill-bar .bar .figma {
    width: 60%;
    animation: figma 2s;
}

@keyframes figma {
    0% {
        width: 0%;
    }
    100% {
        width: 60%;
    }
}

.professional {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    align-items: center;
}

.box {
    position: relative;
    margin: 15px 0;
    flex: 1 1 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(50, 57, 70, 0.3);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.box:hover {
    background: rgba(50, 57, 70, 0.5);
    border-color: var(--main-color);
    box-shadow: 0 8px 25px rgba(14, 239, 255, 0.1);
    transform: translateY(-5px);
}

.box .text {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin-top: 15px;
}

.box .text small {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
}

.circle {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    background: rgba(31, 36, 45, 0.8);
    border: 3px solid var(--second-bg-color);
}

.circle::before {
    content: attr(data-percent) '%';
    position: absolute;
    color: var(--main-color);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(14, 239, 255, 0.5);
}

.circle .points {
    width: 3px;
    height: 12px;
    background-color: var(--second-bg-color);
    position: absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i) * var(--rot))) translateY(-55px);
    transition: all 0.3s ease;
}

.points.marked {
    animation: glow 0.04s linear forwards;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes glow {
    0% {
        background: var(--second-bg-color);
        box-shadow: none;
        transform: rotate(calc(var(--i) * var(--rot))) translateY(-55px) scale(1);
    }
    100% {
        background: var(--main-color);
        box-shadow: 0 0 8px var(--main-color);
        transform: rotate(calc(var(--i) * var(--rot))) translateY(-55px) scale(1.2);
    }
}

.skill-right h3 {
    color: var(--main-color);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 40px;
    margin: 20px 0 30px;
    text-align: center;
}

/* portfolio design */
.portfolio {
    background: var(--second-bg-color);
    padding: 12rem 9% 12rem;
}

.portfolio h2 {
    margin-bottom: 6rem;
    font-size: 5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--main-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(14, 239, 255, 0.3);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
    background: linear-gradient(145deg, 
        rgba(18, 24, 32, 0.95), 
        rgba(40, 46, 56, 0.95)
    );
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    min-height: 380px;
    transform: perspective(1000px) rotateY(0deg);
}

.portfolio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(14, 239, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 2.5rem;
}

.portfolio-box:hover::before {
    opacity: 1;
}

.portfolio-box:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(14, 239, 255, 0.2),
        0 0 0 2px rgba(14, 239, 255, 0.4),
        0 0 40px rgba(14, 239, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* Add a subtle animation */
    animation: portfolioGlow 2s infinite alternate;
}

@keyframes portfolioGlow {
    0% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.5),
            0 10px 30px rgba(14, 239, 255, 0.2),
            0 0 0 2px rgba(14, 239, 255, 0.4),
            0 0 40px rgba(14, 239, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.5),
            0 10px 30px rgba(14, 239, 255, 0.3),
            0 0 0 2px rgba(14, 239, 255, 0.6),
            0 0 50px rgba(14, 239, 255, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.8);
}

.portfolio-box:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 3rem 3rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2.4rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(14, 239, 255, 0.4);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    background: linear-gradient(135deg, #ffffff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite alternate;
    padding: 0 0.5rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

@keyframes titleShimmer {
    0% {
        filter: brightness(1);
        text-shadow: 
            3px 3px 10px rgba(0, 0, 0, 0.95),
            0 0 20px rgba(14, 239, 255, 0.4);
    }
    100% {
        filter: brightness(1.3);
        text-shadow: 
            3px 3px 10px rgba(0, 0, 0, 0.95),
            0 0 25px rgba(14, 239, 255, 0.6);
    }
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.95),
        0 0 15px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    max-width: 100%;
    letter-spacing: 0.3px;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(14, 239, 255, 0.08));
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-layer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.portfolio-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
    padding-top: 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(1);
}

.portfolio-layer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.portfolio-layer a:hover::before {
    left: 100%;
}

.portfolio-layer a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 
        0 0 30px rgba(14, 239, 255, 0.8),
        0 0 60px rgba(14, 239, 255, 0.4),
        0 12px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.2) rotate(10deg) translateY(-3px);
    border-color: rgba(14, 239, 255, 0.7);
    animation: buttonPulse 1.5s infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1.2) rotate(10deg) translateY(-3px);
    }
    50% {
        transform: scale(1.25) rotate(10deg) translateY(-5px);
    }
}

.portfolio-layer a i {
    font-size: 2.2rem;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
}

.portfolio-layer a:hover i {
    color: var(--bg-color);
    transform: scale(1.1);
}

/* Special styling for different button types */
.portfolio-link {
    background: linear-gradient(135deg, #0ef, #00d4ff) !important;
    border: 3px solid rgba(14, 239, 255, 0.4) !important;
    box-shadow: 
        0 8px 25px rgba(14, 239, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.portfolio-link i {
    color: #1a1a1a !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.portfolio-link:hover {
    background: linear-gradient(135deg, #ffffff, #f0f0f0) !important;
    border-color: rgba(14, 239, 255, 0.8) !important;
    animation: exploreButtonGlow 1.5s infinite !important;
}

@keyframes exploreButtonGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(14, 239, 255, 0.8),
            0 0 60px rgba(14, 239, 255, 0.4),
            0 12px 35px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(14, 239, 255, 1),
            0 0 80px rgba(14, 239, 255, 0.6),
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.read-more-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95)) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8787) !important;
    border-color: rgba(255, 107, 107, 0.6) !important;
    animation: infoButtonGlow 1.5s infinite !important;
}

@keyframes infoButtonGlow {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(255, 107, 107, 0.6),
            0 0 50px rgba(255, 107, 107, 0.3),
            0 12px 35px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(255, 107, 107, 0.8),
            0 0 70px rgba(255, 107, 107, 0.5),
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.read-more-btn:hover i {
    color: #ffffff !important;
}

/* Touch interactions for mobile */
.portfolio-box.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.9 !important;
    transition: all 0.1s ease !important;
}

/* Additional mobile enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Mobile-specific hover states */
    .portfolio-box:hover {
        transform: none !important;
        animation: none !important;
    }
    
    .portfolio-layer a:hover {
        animation: none !important;
    }
    
    /* Make portfolio layer always visible on mobile for better UX */
    .portfolio-layer {
        transform: translateY(0) !important;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.8) 70%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }
}



/* contact design */
.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: 1rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* footer design */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* BREAKPOINT */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    
    .header.sticky {
        padding: 1.5rem 3%;
    }
    
    .navbar a {
        margin-left: 2.5rem;
        font-size: 1.6rem;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .home-contact .btn {
        padding: 1rem 2rem;
        font-size: 1.5rem;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

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

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 0;
        background: rgba(31, 36, 45, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: .1rem solid rgba(14, 239, 255, 0.2);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, .4);
        display: flex;
        flex-direction: column;
        transition: left 0.3s ease;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 0;
        padding: 2rem 3%;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }
    
    .navbar a:hover,
    .navbar a.active {
        background: rgba(14, 239, 255, 0.1);
        border-left-color: var(--main-color);
        padding-left: 5%;
    }
    
    .navbar a::after {
        display: none;
    }
    
    .home-contact {
        display: none;
    }
    
    .home {
        flex-direction: column;
    }
    
    .home-content h3 {
        font-size: 2.6rem;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    /* Enhanced Portfolio Mobile Responsiveness */
    .portfolio {
        padding: 10rem 4% 10rem;
    }

    .portfolio h2 {
        margin-bottom: 5rem;
        font-size: 4rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 100%;
    }

    .portfolio-box {
        min-height: 340px;
    }

    .portfolio-box:hover {
        transform: translateY(-8px) scale(1.02);
        animation: none;
    }

    .portfolio-layer {
        padding: 2rem;
    }

    .portfolio-layer h4 {
        font-size: 2.6rem;
        margin-bottom: 1.5rem;
        animation: none;
    }

    .portfolio-layer p {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
        max-width: 280px;
    }

    .portfolio-actions {
        gap: 1.5rem;
    }

    .portfolio-layer a {
        width: 5.5rem;
        height: 5.5rem;
    }

    .portfolio-layer a:hover {
        animation: none;
        transform: scale(1.1) rotate(5deg);
    }

    .portfolio-layer a i {
        font-size: 2.2rem;
    }

    /* Disable complex 3D transforms on mobile for better performance */
    .portfolio-box:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }
}

@media (max-width: 617px) {
    .portfolio {
        padding: 8rem 3% 8rem;
    }

    .portfolio h2 {
        font-size: 3.5rem;
        margin-bottom: 4rem;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-box {
        min-height: 320px;
        border-radius: 2rem;
    }

    .portfolio-box:hover {
        transform: translateY(-6px) !important;
        animation: none !important;
    }

    .portfolio-layer {
        padding: 2.5rem 2rem;
    }

    .portfolio-layer h4 {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
        animation: none;
    }

    .portfolio-layer p {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .portfolio-actions {
        gap: 1.5rem;
    }

    .portfolio-layer a {
        width: 5rem;
        height: 5rem;
    }

    .portfolio-layer a:hover {
        transform: scale(1.1) !important;
        animation: none !important;
    }

    .portfolio-layer a i {
        font-size: 2rem;
    }

    /* Ensure buttons are touch-friendly */
    .portfolio-layer a {
        min-width: 48px;
        min-height: 48px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .header {
        padding: 1.5rem 5%;
    }
    
    .header.sticky {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    #menu-icon {
        font-size: 3rem;
    }
    
    .navbar a {
        font-size: 1.8rem;
        padding: 1.5rem 5%;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .skill-main {
        grid-template-columns: 1fr;
        grid-row-gap: 60px;
        grid-column-gap: 0;
    }

    .professional {
        grid-template-columns: 1fr;
        grid-gap: 35px;
    }

    .box {
        padding: 25px;
    }

    .circle {
        width: 130px;
        height: 130px;
    }

    .circle::before {
        font-size: 1.8rem;
    }

    .circle .points {
        transform: rotate(calc(var(--i) * var(--rot))) translateY(-50px);
    }

    .points.marked {
        transform: rotate(calc(var(--i) * var(--rot))) translateY(-50px) scale(1.2);
    }
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.project-modal.active {
    display: block;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.project-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--second-bg-color) 100%);
    border: 3px solid var(--main-color);
    border-radius: 2.5rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(14, 239, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.project-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-modal-close:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(14, 239, 255, 0.6);
}

.project-modal-body {
    padding: 3rem;
}

.project-modal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-modal-header img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 2px solid var(--main-color);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-modal-header h2 {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(14, 239, 255, 0.3);
}

.project-modal-description h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(14, 239, 255, 0.3);
}

.project-modal-description p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.project-modal-description ul {
    list-style: none;
    padding: 0;
}

.project-modal-description ul li {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

.project-modal-description ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 2rem;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: rgba(14, 239, 255, 0.1);
    border: 2px solid var(--main-color);
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 239, 255, 0.3);
}

.project-modal-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
}

.project-btn i {
    font-size: 2rem;
}

/* Scrollbar for modal */
.project-modal-content::-webkit-scrollbar {
    width: 10px;
}

.project-modal-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.project-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* Enhanced mobile responsiveness for all sections */
@media (max-width: 480px) {
    /* Experience section mobile enhancements */
    .experience {
        padding: 8rem 3% 5rem;
    }
    
    .experience .heading {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .timeline::after {
        left: 20px;
        width: 4px;
    }
    
    .container {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .container img {
        left: -15px;
        width: 40px;
        height: 40px;
    }
    
    .left-container, .right-container {
        left: 0;
    }
    
    .left-container-arrow, .right-container-arrow {
        border-right: 12px solid var(--bg-color);
        border-left: 0;
        left: -12px;
    }
    
    .text-box {
        padding: 15px 20px;
        font-size: 1.3rem;
    }
    
    .text-box h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    /* Services section mobile enhancements */
    .services {
        padding: 8rem 3% 5rem;
    }
    
    .services-container {
        gap: 1.5rem;
    }
    
    .services-box {
        padding: 2rem 1.5rem 3rem;
    }
    
    .services-box i {
        font-size: 5rem;
    }
    
    .services-box h3 {
        font-size: 2.2rem;
        margin: 1.5rem 0;
    }
    
    .services-box p {
        font-size: 1.4rem;
        margin: 1rem 0 2rem;
    }
    
    /* Project Modal Mobile Styles */
    .project-modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 2rem;
    }
    
    .project-modal-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 4rem;
        height: 4rem;
        font-size: 2.2rem;
    }
    
    .project-modal-body {
        padding: 2rem 1.5rem;
    }
    
    .project-modal-header h2 {
        font-size: 2.8rem;
    }
    
    .project-modal-description h3 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .project-modal-description p,
    .project-modal-description ul li {
        font-size: 1.4rem;
    }
    
    .tech-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
    
    .project-btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }

    /* Ultra-small screen adjustments */
    .portfolio h2 {
        font-size: 3rem;
    }
    
    .portfolio-layer h4 {
        font-size: 2rem;
    }
    
    .portfolio-layer p {
        font-size: 1.2rem;
    }
    
    .portfolio-layer a {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .portfolio-layer a i {
        font-size: 1.8rem;
    }
    
    /* Experience adjustments for very small screens */
    .timeline::after {
        left: 15px;
        width: 3px;
    }
    
    .container {
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .container img {
        left: -12px;
        width: 35px;
        height: 35px;
    }
    
    .text-box {
        padding: 12px 15px;
        font-size: 1.2rem;
    }
    
    .text-box h2 {
        font-size: 1.4rem;
    }
}
