*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    list-style: none;
    max-width:100%;
}

img{
		height:auto;
}
:root{
    --bg-color: #0f172a;
    --second-color: #0ea5e9;
    --text-color: #f8fafc;
    --hover-color: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --big-font:2.5rem;
    --normal-font:2rem;
    --neon-box-shadow:0 0 .5rem #12f7ff;
    --h2-font:3rem;
    --font-neon-text-shadow: 0 0 10px rgba[18,247,255,0.3]

}

body{
    font-family:"Poppin",sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 10px 10px;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo{
    font-size: 26px;
    font-weight:700;
    letter-spacing: 2px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

span{
    color: var(--hover-color);
}
.navlist{
    display: flex;
    gap: 2rem;
}
.navlist *{
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.navlist a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hover-color);
    transition: width 0.3s ease;
}
.navlist a:hover::after {
    width: 100%;
}
.navlist a.active{
    color: var(--hover-color);
}
::-webkit-scrollbar{
    width: 8px;
}
::-webkit-scrollbar-track{
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb{
   background: var(--hover-color);
   border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover{
    background: var(--second-color);
}
#menu-icon{
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

section {
    padding: 80px 2rem 60px 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    opacity: 1;
    transform: none;
    transition: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

#home {
    padding: 100px 0 80px 0;
    margin-bottom: 40px;
}

#about {
    padding: 80px 0;
    margin: 60px 0;
}

#services {
    padding: 80px 0;
    margin: 60px 0;
}

#skills {
    padding: 80px 0;
    margin: 60px 0;
}

#contact {
    padding: 80px 0;
    margin: 60px 0;
}

.home{
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}
@media (max-width: 900px) {
    .home {
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 1rem;
    }
}
.home-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    padding: 0 1.5rem;
    max-width: 100%;
}
.home-content h1{
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.change-text {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    min-height: 2.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}
.change-text h5 {
    display: inline-block;
    margin: 0;
    vertical-align: top;
}
.change-text h3 {
    display: inline-block;
    margin: 0;
    vertical-align: top;
    margin-left: 0.5rem;
    min-height: 1.5em;
    position: relative;
    width: 100%;
}
.change-text h3 .word {
    position: absolute;
    display: flex;
    opacity: 0;
    white-space: nowrap;
    width: 100%;
    transition: opacity 0.3s ease;
}
.change-text h3 .word.active {
    opacity: 1;
}
.change-text h3 .word .letter {
    display: inline-block;
    transition: 0.4s cubic-bezier(0.2, 0.6, 0.4, 1);
    transform-origin: center center 25px;
}
.change-text h3 .word .letter.out {
    transform: rotateX(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}
.change-text h3 .word .letter.in {
    transition: 0.38s cubic-bezier(0.6,0,0.7,0.2);
}
.change-text h3 .word .letter.behind {
    transform: rotateX(-90deg);
}
.home-content p{
    color: #bdbdbd;
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
}
.info-box{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.2em 0 0.2em 0;
}
.info-box h5{
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}
.info-box span{
    font-size: .9rem;
    color: #bdbdbd;
}
.btn-box{
    display: flex;
    gap: 0.7rem;
    margin-top: 0.2em;
}
.btn-box .btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    background: var(--hover-color);
    color: var(--bg-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .6rem;
    box-shadow: var(--neon-box-shadow);
    border-radius: 5px;  
    position: relative;overflow: hidden;  
    z-index: 1;
}
.btn:hover{
    color: blueviolet;
}
.btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn:hover::before{
    left: 100%;
}
.btn :nth-child(2){
    background: var(--bg-color);
    color: var(--hover-color);
}
a.btn:nth-child(2):hover{
    color:var(--bg-color)
}
a.btn:nth-child(2)::before{
    background: var(--hover-color);
}
.social-icons{
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5em;
}
.social-icons a{
    display: inline-flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--hover-color);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--hover-color), var(--second-color));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}
.social-icons a:hover::before {
    opacity: 1;
}
.social-icons a i {
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icons a:hover i {
    transform: scale(1.2) rotate(360deg);
}
.home-image{
    position: relative;
}
.image-box img{
    width: 100%;
    height: auto;
    max-width: 350px;
    border-radius: 60%;
    transition: all 0.3s ease;
}
.image-box:hover img {
    transform: scale(1.05);
}
/*About section css ---------------------------------------*/
.about{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
}
.about .img-about{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 0;
}
.about .img-about img{
    max-width: 260px;
    width: 80vw;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--hover-color);
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.17);
    background: #fff;
    z-index: 1;
}
.about-content span{
    color: #fdfdfd;
    font-size: .8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.about-content h2{
    color: var(--hover-color);
    font-weight: 700;
    font-size: var(--normal-font);
}
.about-content h3{
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: .2rem;
}
.about-content p{
    color: #fdfdfd;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.info-about1,
.info-about2,
.info-about3{
    background:fuchsia;
    font-size: .5rem;
    position: absolute;
    padding: 10px;
    width: 90px;
    height: 90px;
    border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
    display: block;
    box-shadow: var(--neon-box-shadow);
    border: 1px solid var(--hover-color);
    outline: 2px solid var(--bg-color);
    z-index: 100;
    animation: morph 6s linear infinite;
    text-align: center;
}
.info-about1{
    left: 10%;
    top: 34%;
}
.info-about2{
    left: 66%;
    top:15%;
}
.info-about3{
    left: 61%;
    top:70%;
}


/*Service Section CSS---------------------------------------*/
.main-text{
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--hover-color);
    padding: 0 1.5rem;
}
.main-text h2{
    font-weight: 700;
    font-size: var(--normal-font);
}
.main-text span{
    color: #fdfdfd;
    font-size: .8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-services{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin-top: 2rem;
}
.section-services .service-box{
    flex: 1 1 18rem;
    padding: 2rem 1rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 10px;
}
.service-btn{
    width: auto;
    justify-content: center;
}
.service-box:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: blue;
}
.service-icon{
    border: 2px solid var(--hover-color);
    padding: 2rem;
    background: green;
    display: flex;
    align-items: center;
    font-size: 1rem;
    border-radius: 50%;
    position: relative;
    color: var(--hover-color);
    box-shadow: var(--neon-box-shadow);
    outline: 3px solid blueviolet;
}
.service-box h3{
    margin-top: 10px;
    font-size: 1.5rem;
}
.service-box p{
    margin: .5rem 0 1.5rem 0;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6rem;
}


/*Skill Section CSS---------------------------------------*/
.skills{
    background:var(--bg-color);
}
.skill-main{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin-top: 2rem;
    padding: 0 1.5rem;
}
.skill-bar{
    margin-bottom: 2.3rem;
}
.skill-main h3{
    margin-bottom: 2rem;
    font-size: var(--normal-font);
    text-align: center;
}
.skill-left .skill-bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color: var(--hover-color);
    border-radius: 25px;
    margin-top: 10px;
    position: relative;
}
.skill-bar .bar span{
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background: yellow;
    border-radius: 25px;
    box-shadow: var(--neon-box-shadow);
}
.skill-bar .bar .html{
    width: 89%;
    animation: html 2s;
}
.skill-bar .bar .python{
    width: 78%;
    animation: python 3s;
}
.skill-bar .bar .javascript{
    width: 60%;
    animation: javascript 4s;
}
.skill-bar .bar .css{
    width: 80%;
    animation: css 5s;
}
.skill-bar .bar .java{
    width: 50%;
    animation: java 6s;
}
.skill-right {
    text-align: center;
    padding: 20px;
}
.skill-circle {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.circle {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.circle:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #38bdf8, #0ea5e9, #0284c7);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.inner-circle {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.circle[data-percent="100"] {
    --percent: 100;
    background: conic-gradient(
        #00ff00 calc(var(--percent) * 1%),
        #e0e0e0 calc(var(--percent) * 1%)
    );
}
.circle[data-percent="90"] {
    --percent: 90;
    background: conic-gradient(
        #007bff calc(var(--percent) * 1%),
        #e0e0e0 calc(var(--percent) * 1%)
    );
}
.circle[data-percent="95"] {
    --percent: 95;
    background: conic-gradient(
        #ff9900 calc(var(--percent) * 1%),
        #e0e0e0 calc(var(--percent) * 1%)
    );
}
/*Contact Section CSS---------------------------------------*/
.contact {
    width: 100%;
    padding: 2rem;
}

.contact form {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
    transition: all 0.3s ease;
}

.contact form:hover {
    border-color: var(--hover-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.75rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

.contact form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact form input::placeholder,
.contact form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.formBtn {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.formBtn button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--hover-color), var(--second-color));
    color: var(--bg-color);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.formBtn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.formBtn button:active {
    transform: translateY(0);
}

/* Responsive Contact Form */
@media (max-width: 900px) {
    .contact {
        padding: 1.5rem;
    }

    .contact form {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .contact form input,
    .contact form textarea {
        padding: 0.875rem 1.25rem;
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }

    .formBtn button {
        padding: 0.875rem 2rem;
    font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .contact {
        padding: 1rem;
    }

    .contact form {
        padding: 1.25rem;
        margin: 1rem auto;
        border-radius: 1rem;
    }

    .contact form input,
    .contact form textarea {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }

    .contact form textarea {
        min-height: 120px;
    }

    .formBtn button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

/* Form Success Message */
.success-message {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--hover-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--hover-color);
    animation: fadeIn 0.5s ease;
}

/* Modern Footer Styles */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}
.footer-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--hover-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.footer-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--hover-color);
    box-shadow: 0 0 10px var(--hover-color);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}
.footer-links a {
    color: var(--text-color);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.footer-links a:hover {
    color: var(--hover-color);
    transform: translateY(-3px);
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hover-color);
    transition: width 0.3s ease;
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-copyright {
    color: var(--text-color);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    opacity: 0.8;
    margin-top: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 5%;
    }
    
    .footer-links {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .footer-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.2rem 5%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-links a {
        width: 100%;
        text-align: center;
    }
    
    .footer-name {
        font-size: 1.3rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@keyframes morph {
    0%,
    100%{
        border-radius:40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    30%{
        border-radius: 70% 30% 50%  50% / 30% 30% 70% 70%;
    }
    60%{
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
    80%{
        border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
    }
}

@keyframes html {
    0%{
        width: 0%;
    }
    100%{
        width: 89%;
    }
}
@keyframes python {
    0%{
        width: 0%;
    }
    100%{
        width: 78%;
    }
}
@keyframes javascript {
    0%{
        width: 0%;
    }
    100%{
        width: 60%;
    }
}
@keyframes css {
    0%{
        width: 0%;
    }
    100%{
        width: 80%;
    }
}
@keyframes java {
    0%{
        width: 0%;
    }
    100%{
        width: 50%;
    }
}
@keyframes glow {
    0%{
        background: blue;/*--bg color*/
        box-shadow: none;
    }
    100%{
        background-color: var(--hover-color);
        box-shadow: var(--neon-box-shadow);
    }
}

/* Style for the menu icon */
.menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: 1.5px solid var(--hover-color);
    overflow: hidden;
}
.menu-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--hover-color), var(--second-color));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.menu-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px 0 rgba(56,189,248,0.2);
}
.menu-icon:hover::before {
    opacity: 0.2;
}
.menu-icon .bar {
    display: block;
    width: 22px;
    height: 3px;
    margin: 3px auto;
    background: var(--hover-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}
.menu-icon:hover .bar {
    background: var(--hover-color);
    box-shadow: 0 0 10px var(--hover-color);
}
.menu-icon.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--hover-color);
}
.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--hover-color);
}

/* --- Dropdown Nav Hover Effects --- */
@media (max-width: 767px) {
    .navlist li a {
        transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    .navlist li a:hover, .navlist li a.active {
        background: var(--hover-color);
        color: var(--bg-color);
        transform: scale(1.05);
        box-shadow: 0 2px 8px 0 rgba(56,189,248,0.15);
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .navlist {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
        padding: 1rem 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(.4,2,.6,1);
        opacity: 0;
        pointer-events: none;
        z-index: 1000;
    }

    .navlist.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .navlist li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .navlist li a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    .navlist li a:hover, 
    .navlist li a.active {
        background: rgba(56, 189, 248, 0.1);
        color: var(--hover-color);
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: rgba(56, 189, 248, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(56, 189, 248, 0.2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-icon:hover {
        background: rgba(56, 189, 248, 0.2);
}

    .menu-icon .bar {
        width: 24px;
        height: 2px;
        background: var(--hover-color);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .menu-icon.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Responsive Home Section */
@media (max-width: 767px) {
    .home-content {
        text-align: center;
        padding: 0 1rem;
    }

.home-content h1 {
        font-size: 2.5rem;
    }

.change-text {
        text-align: center;
        padding: 0 1rem;
        min-height: 4em;
        margin: 1.5rem 0;
    }

    .change-text h5 {
        display: block;
        text-align: center;
        margin-bottom: 1.2rem;
        font-size: 1 rem;
        font-weight: 500;
        color: var(--text-color);
        text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    }

    .change-text h3 {
        display: block;
        margin-left: 0;
        text-align: right;
        min-height: 2.5em;
        width: 100%;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .change-text h3 .word {
        justify-content: flex-end;
        right: 0;
        padding-right: 0.5rem;
       
        color: var(--hover-color);
        text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    }

    .change-text h3 .word .letter {
        display: inline-block;
        transition: 0.4s cubic-bezier(0.2, 0.6, 0.4, 1);
        transform-origin: center center 20px;
        font-weight: 700;
        
        
    }

    .change-text h3 .word .letter.out {
        transform: rotateX(90deg);
        transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
    }

    .change-text h3 .word .letter.in {
        transition: 0.38s cubic-bezier(0.6,0,0.7,0.2);
    }

    .change-text h3 .word .letter.behind {
        transform: rotateX(-90deg);
    }

    .info-box {
        justify-content: center;
    }

.btn-box {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
}

    .home-image {
        margin-top: 2rem;
    }

    .image-box img {
        width: 200px;
        height: 200px;
    }
}

/* Responsive About Section */
@media (max-width: 767px) {
    .about {
        padding: 2rem 1rem;
    }

    .about-content {
        text-align: center;
    }

    .img-about {
        margin-bottom: 2rem;
    }
}

/* Responsive Services Section */
@media (max-width: 767px) {
    .section-services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
}

    .service-box {
        padding: 1.5rem 1rem;
    }
}

/* Responsive Skills Section */
@media (max-width: 767px) {
    .skill-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* Responsive Contact Section */
@media (max-width: 767px) {
    .contact form {
        padding: 1rem;
    }
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
}

    .footer-links a {
        width: 100%;
        text-align: center;
    }
}

/* General Responsive Improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animated background gradient for home */
.home.animated-gradient {
    background: linear-gradient(120deg, #0ea5e9 0%, #0f172a 100%);
    background-size: 200% 200%;
    animation: animated-gradient 8s ease-in-out infinite;
}
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism and shadow cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
    transition: all 0.3s ease;
}
.shadow-card {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
}

/* Section entrance animations */
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.slide-in { animation: slideIn 1s cubic-bezier(.4,2,.6,1) forwards; opacity: 0; }
.entrance { animation: entrance 1.2s cubic-bezier(.4,2,.6,1) forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes entrance { 0% { opacity: 0; transform: scale(0.95) translateY(40px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

/* Floating effect for profile image */
.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Service card hover */
.service-box {
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.service-box:hover {
    transform: translateY(-10px) scale(1.04);
    background: rgba(56,189,248,0.12);
    box-shadow: 0 16px 32px 0 rgba(56,189,248,0.15);
    border-color: var(--hover-color);
}

/* Animated skill bars */
.skill-bar .bar span {
    transition: width 1.5s cubic-bezier(.4,2,.6,1);
}

/* Glowing skill circles */
.circle.glow {
    box-shadow: 0 0 24px 8px var(--hover-color), 0 2px 8px 0 rgba(56,189,248,0.10);
    animation: glow 2s infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 8px 2px var(--hover-color); }
    to { box-shadow: 0 0 24px 8px var(--hover-color); }
}

/* Button ripple and glow */
.btn.ripple {
    position: relative;
    overflow: hidden;
}
.btn.ripple:after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(56,189,248,0.3);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s, height 0.4s, opacity 0.4s;
    z-index: 0;
}
.btn.ripple:active:after {
    width: 200px; height: 200px;
    opacity: 1;
    transition: 0s;
}
.btn.glow {
    box-shadow: 0 0 8px 2px var(--hover-color);
    transition: box-shadow 0.3s;
}
.btn.glow:hover {
    box-shadow: 0 0 24px 8px var(--hover-color);
}

/* Form field focus/hover */
form input:focus, form textarea:focus {
    border-color: var(--hover-color);
    box-shadow: 0 0 8px 2px var(--hover-color);
    background: rgba(56,189,248,0.08);
}

/* Progress bar at top */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hover-color), var(--second-color));
    z-index: 9999;
    width: 0;
    transition: width 0.2s;
}

/* Parallax/floating elements */
.parallax {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1);
}

/* Utility for glassy, blurred header */
header.glassy {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
}

/* Contact Form Success Message */
.success-message {
    animation: fadeIn 0.5s ease-in-out;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 0.5rem;
    border: 1px solid var(--hover-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    section {
        padding: 60px 1.5rem 40px 1.5rem;
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    section {
        padding: 40px 1.25rem 30px 1.25rem;
        max-width: 100vw;
    }
}

.about, .services, .skills, .contact, footer {
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .about, .services, .skills, .contact, footer {
        padding: 0 0.5rem;
    }
}

.about {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
}
@media (max-width: 900px) {
    .about {
        flex-direction: column;
        gap: 1.2rem;
    }
}
.about .img-about {
    margin-bottom: 0;
}
.about-content {
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.section-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0;
}
@media (max-width: 900px) {
    .section-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.skill-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0.5rem 0;
}
@media (max-width: 900px) {
    .skill-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.contact form {
    margin: 0 auto 1.5rem auto;
    padding: 0 1.5rem;
    max-width: 500px;
}

footer {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive adjustments for circles */
@media (max-width: 767px) {
    .circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    .inner-circle {
        font-size: 1rem !important;
    }
}

/* Container and Section Margins */
.container {
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* Content Container Responsiveness */
.home-content,
.about-content,
.main-text,
.skill-main,
.contact form {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Responsive Container Adjustments */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
        width: 100%;
    }

    section {
        padding: 60px 1.5rem 40px 1.5rem;
        width: 100%;
    }

    .home-content,
    .about-content,
    .main-text,
    .skill-main,
    .contact form {
        padding: 0 1rem;
        width: 100%;
    }

    .section-services {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        width: 100%;
    }

    .service-box {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
        width: 100%;
    }

    section {
        padding: 40px 1.25rem 30px 1.25rem;
        width: 100%;
    }

    .home-content,
    .about-content,
    .main-text,
    .skill-main,
    .contact form {
        padding: 0 0.75rem;
        width: 100%;
    }

    .section-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-box {
        width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
    }

    .skill-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact form {
        width: 100%;
        padding: 1rem;
    }

    .contact form input,
    .contact form textarea {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Specific Container Adjustments */
.home-content {
    max-width: 100%;
}

.about-content {
    max-width: 100%;
}

.main-text {
    max-width: 100%;
}

.skill-main {
    max-width: 100%;
}

.contact form {
    max-width: 100%;
}

/* Form Container Responsiveness */
.contact form input,
.contact form textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Service Box Responsiveness */
.service-box {
    width: 100%;
    box-sizing: border-box;
}

/* Container Border Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
    transition: all 0.3s ease;
}

/* Service Box Border */
.service-box {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

.service-box:hover {
    border-color: var(--hover-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Skill Section Border */
.skill-main > div {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

/* Contact Form Border */
.contact form {
    border-radius: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

/* Responsive Border Adjustments */
@media (max-width: 900px) {
    .glass-card {
        border-radius: 1.25rem;
        border-width: 1.25px;
    }

    .service-box {
        border-radius: 0.875rem;
    }

    .skill-main > div {
        border-radius: 0.875rem;
    }

    .contact form {
        border-radius: 1.25rem;
    }
}

@media (max-width: 600px) {
    .glass-card {
        border-radius: 1rem;
        border-width: 1px;
    }

    .service-box {
        border-radius: 0.75rem;
        margin: 0.5rem;
    }

    .skill-main > div {
        border-radius: 0.75rem;
        margin: 0.5rem;
    }

    .contact form {
        border-radius: 1rem;
        margin: 0.5rem;
    }

    .contact form input,
    .contact form textarea {
        border-radius: 0.5rem;
        border: 1px solid rgba(56, 189, 248, 0.2);
    }

    .contact form input:focus,
    .contact form textarea:focus {
        border-color: var(--hover-color);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    }
}

/* Hover Effects for Containers */
.glass-card:hover,
.service-box:hover,
.skill-main > div:hover,
.contact form:hover {
    border-color: var(--hover-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Form Input Border Styles */
.contact form input,
.contact form textarea {
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: var(--hover-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Navigation Menu Hover Effects */
.navlist a {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.navlist a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--hover-color), var(--second-color));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    z-index: -1;
}

.navlist a:hover {
    color: var(--bg-color);
    transform: translateY(-2px);
}

.navlist a:hover::before {
    opacity: 0.2;
}

.navlist a.active {
    color: var(--hover-color);
    font-weight: 600;
}

.navlist a.active::before {
    opacity: 0.1;
}

/* Mobile Menu Icon Hover Effect */
.menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: 1.5px solid var(--hover-color);
    overflow: hidden;
}

.menu-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--hover-color), var(--second-color));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.menu-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px 0 rgba(56,189,248,0.2);
}

.menu-icon:hover::before {
    opacity: 0.2;
}

.menu-icon .bar {
    display: block;
    width: 22px;
    height: 3px;
    margin: 3px auto;
    background: var(--hover-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.menu-icon:hover .bar {
    background: var(--hover-color);
    box-shadow: 0 0 10px var(--hover-color);
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--hover-color);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--hover-color);
}

/* Responsive Social Icons */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    .social-icons a:hover {
        transform: translateY(-3px) scale(1.05);
    }

    .social-icons a i {
        font-size: 1.3rem;
    }

    .social-icons a:hover i {
        transform: scale(1.1) rotate(360deg);
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 0.8rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .social-icons a i {
        font-size: 1.2rem;
    }
}

/* Responsive Navigation Menu */
@media (max-width: 768px) {
    .navlist {
        padding: 1rem;
    }

    .navlist a {
        padding: 0.8rem 1.2rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        margin: 0.3rem 0;
        border-radius: 10px;
        background: rgba(56, 189, 248, 0.05);
    }

    .navlist a:hover {
        transform: translateY(-2px) scale(1.02);
        background: rgba(56, 189, 248, 0.1);
    }

    .navlist a::before {
        border-radius: 10px;
    }

    .navlist a.active {
        background: rgba(56, 189, 248, 0.15);
        transform: scale(1.02);
    }
}

/* Responsive Menu Icon */
@media (max-width: 768px) {
    .menu-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .menu-icon .bar {
        width: 20px;
        height: 2.5px;
    }

    .menu-icon:hover {
        transform: translateY(-2px) scale(1.03);
    }

    .menu-icon.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-icon.active .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .menu-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }

    .menu-icon .bar {
        width: 18px;
        height: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .social-icons a:hover {
        transform: none;
    }

    .social-icons a:active {
        transform: translateY(-3px) scale(1.05);
    }

    .navlist a:hover {
        transform: none;
    }

    .navlist a:active {
        transform: translateY(-2px) scale(1.02);
    }

    .menu-icon:hover {
        transform: none;
    }

    .menu-icon:active {
        transform: translateY(-2px) scale(1.03);
    }
}

/* Add smooth transitions for all interactive elements */
.social-icons a,
.navlist a,
.menu-icon,
.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Add active state styles for touch devices */
.social-icons a:active,
.navlist a:active,
.menu-icon:active {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improve accessibility for focus states */
.social-icons a:focus-visible,
.navlist a:focus-visible,
.menu-icon:focus-visible {
    outline: 2px solid var(--hover-color);
    outline-offset: 2px;
}

/* Add loading state for menu icon */
.menu-icon.loading .bar {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Add ripple effect for touch devices */
.social-icons a::after,
.navlist a::after,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.social-icons a:active::after,
.navlist a:active::after,
.menu-icon:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}


