* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    color: inherit;
}

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --primary-color: #2E86C1;
    --secondary-color: #22c55e;
    --accent: #36f51d;
    --accent-soft: rgba(54, 245, 29, 0.15);
    --background-color: #021a2e;
    --surface: #032540;
    --text-color: #f1f5f9;
    --text-muted: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --space-section: clamp(3rem, 5vw, 4.5rem);
    --space-block: clamp(1rem, 2vw, 1.5rem);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.25);
    --transition: 0.25s ease;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--secondary-color);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem; /* device-based from html; keeps body text readable */
    background: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Device-based readable base: 16px min, scales up on larger screens */
html {
    font-size: clamp(16px, 1.8vw + 12px, 20px);
    overflow-x: hidden;
}

.header {
    position: fixed;
    left: 0;
    top: 0;
    padding: 1.25rem 5%;
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-left: max(5%, env(safe-area-inset-left));
    padding-right: max(5%, env(safe-area-inset-right));
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(2, 26, 46, 0.85);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    transition: background var(--transition), border-color var(--transition);
}

.header.sticky {
    background: rgba(2, 26, 46, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 0.02em;
    padding: 0.35rem 0;
    border-radius: var(--radius-sm);
    transform: translateX(-100%);
    opacity: 0;
    animation: RightSlide 1s ease forwards;
    transition: color var(--transition);
}

.logo:hover,
.logo:focus-visible {
    color: var(--accent);
}

.menu-btn {
    display: none; /* shown on small screens via media query */
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: var(--card-bg);
    color: var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.menu-btn:hover {
    background: var(--accent-soft);
    color: var(--text-color);
}

.menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.menu-btn i {
    font-size: 1.6rem;
}

@keyframes RightSlide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.navbar a {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0 1.25rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    transform: translateY(-100px);
    opacity: 0;
    animation: TopSlide 1s ease forwards;
    animation-delay: calc(.15s * var(--vlr));
    border-radius: var(--radius-sm);
}

.navbar a:hover {
    color: var(--text-color);
}

.navbar a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@keyframes TopSlide {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.navbar a.active {
    color: var(--accent);
    font-weight: 600;
}

section {
    padding: var(--space-section) 5% 2rem;
    min-height: auto;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-8px);
}

section.start-animation .section-label {
    animation: top 0.6s ease forwards;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: var(--space-block);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transform: translateY(-100px);
    opacity: 0;
}

section.start-animation .title {
    animation: top 1s ease forwards;
}

.title span {
    color: var(--accent);
    font-weight: 700;
}

.about,
.contact,
.skills {
    overflow: hidden;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-content {
    max-width: 70rem;
}

.text-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    color: var(--text-color);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.15;
    transform: translateY(-100px);
    opacity: 0;
    animation: RightSlide 1s ease forwards;
    animation-delay: 1s;
}

.text-animation {
    position: relative;
    width: 100%;
    max-width: 40rem;
    margin: 1.25rem 0;
}

.text-animation h2 {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--text-muted);
    transform: translateY(-100px);
    opacity: 0;
    animation: TopSlide 1s ease forwards;
    animation-delay: 1.2s;
}

.typed-text {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { background-color: var(--accent); }
    50% { background-color: transparent; }
}

.text-content p{
    font-size: 1.4rem;
    margin: 1rem 0;
    transform: translateX(100px);
    opacity: 0;
    animation: leftSlide 1s ease forwards;
    animation-delay: 1.4s;
}
@keyframes leftSlide{
    0%{
        transform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
.btn-section{
    width: 32.5rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}
.btn-section::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: #0f0a0a;
    height: 100%;
    width: 100%;
    z-index: 2;
    animation: Slide 1s ease forwards;
    animation-delay: 1.6s;
}
@keyframes Slide{
    0%{
        width: 100%;
    }
    100%{
        width: 0;
    }
}
.btn {
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--background-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 12px rgba(54, 245, 29, 0.25);
}

.btn:hover {
    background: #2dff2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 245, 29, 0.35);
}

.btn:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.btn-submit {
    margin-top: 1rem;
    min-width: 12rem;
    /* Neutral shadow so green glow doesn’t appear as a stray line at bottom */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.social-media {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
}

.social-media a:hover {
    color: var(--text-color);
    background: var(--accent-soft);
    border-color: rgba(54, 245, 29, 0.3);
    transform: translateY(-2px);
}

.social-media a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-media a:nth-child(1) { color: #1DA1F2; }
.social-media a:nth-child(1):hover { color: #1DA1F2; }
.social-media a:nth-child(2) { color: #0a66c2; }
.social-media a:nth-child(2):hover { color: #0a66c2; }
.social-media a:nth-child(3):hover { color: var(--text-color); }
.home img {
    width: min(30vw, 320px);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.05);
    animation: Scale 1s ease forwards;
    scale: 0;
    animation-delay: 1s;
}
@keyframes Scale{
    0%{
        scale: 0;
    }
    100%{
        scale: 1;
    }
}
/* about section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 3rem;
    gap: 1.5rem;
}
@keyframes top{
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
.about img{
    height: 25rem;
    width: 25rem;
    background: rgba(255,255,255,.1);
    border: .2rem solid rgba(255,255,255,.3);
    border-radius: 50%;
    filter: drop-shadow(0 0 8rem #084f70);
    scale: 0;
}
section.start-animation .aboutImg{
    animation: scaleout 1s ease forwards;
}
@keyframes scaleout{
    0%{
       scale: 0;
    }
    100%{
     scale: 1;
    }
}
.text-content2{
    text-align: center;
}
.text-content2 h2{
    font-size: 2.6rem;
    transform: translatex(-100px);
    opacity: 0;
}
section.start-animation .text-content2 h2{
    animation: Right 1s ease forwards;
}
@keyframes Right{
    0%{
        transform: translatex(-100px);
        opacity: 0;
    }
    100%{
        transform: translatex(0px);
        opacity: 1;
    }
}
.text-content2 p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto 2rem;
    max-width: 42rem;
    color: var(--text-muted);
    transform: translatex(100px);
    opacity: 0;
}
section.start-animation .text-content2 p{
    animation: Left 1s ease forwards;
}
@keyframes Left{
    0%{
        transform: translatex(100px);
        opacity: 0;
    }
    100%{
        transform: translatex(0px);
        opacity: 1;
    }
}
.text-content2 .btn{
    padding: .9rem .5rem;
    transform: translateY(100px);
    opacity: 0;
}
section.start-animation .text-content2 .btn{
    animation: Bottoms 1s ease forwards;
}
@keyframes Bottoms{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translatey(0px);
        opacity: 1;
    }
}
/* education section */
.row{
    display: flex;
    column-gap: 4rem;
    flex-wrap: wrap;
}
.column{
    flex: 1 1 30rem;
}
.column:nth-child(1){
    opacity: 0;
    transform: translateX(-100px);
}
section.start-animation .column:nth-child(1){
    animation: Right 1s ease forwards;
    animation-delay: 1.2s;
}
.column:nth-child(2){
    opacity: 0;
    transform: translateX(100px);
}
section.start-animation .column:nth-child(2){
    animation: Left 1s ease forwards;
    animation-delay: 1.2s;
}
.column h2{
    font-size: 2.5rem ;
    margin: 2rem 0 1rem 1.96rem;
    transform: translateY(-100px);
    opacity: 0;
}
section.start-animation .column h2{
    animation: top 1s ease forwards;
    animation-delay: 1.2s;
}
.box{
    border-left: .2rem solid #65dbff;
}
.education-content {
    padding-left: 1.9rem;
}
.education-content .content{
    padding: 1.5rem;
    border: .2rem solid #37fdcc;
    background: rgba(255,255,255,.1);
    border-radius: .5rem;
    margin-bottom: 2rem;
    position: relative;
}
.content::before{
    content: "";
    position: absolute;
    left: -2.8rem;
    top: -1.5rem;
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 50%;
    background: #27c1fd;
}
.content .year{
    font-size: 1.5rem;
    color: #00f7ff;
}
.content .year i{
    color: #34ffff;
    font-size: 1.5rem;
    margin-left: .5rem;
}
.content h3{
    font-size: 1.7rem;
    letter-spacing: .05rem;
    margin: .5rem 0;
}
.content p{
    font-size: 1.5rem;
}
/* skill-content */
.wrapper{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}
.skill-title{
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-100px);
}
section.start-animation .skill-title{
    animation: top 1s ease forwards;
    animation-delay: 1.2s;
}
.skill-content {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}
.skill-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 50rem;
    color: var(--text-color);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(54, 245, 29, 0.25);
}
.skill-box1{
    opacity: 0;
    transform: translateX(-100px);
}
section.start-animation .skill-box1{
    animation:  Right 1s ease forwards;
    animation-delay: 1.2s;
}
.skill-box2{
    opacity: 0;
    transform: translateX(100px);
}
section.start-animation .skill-box2{
    animation:Left 1s ease forwards;
    animation-delay: 1.4s;
}
.single-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    padding: 0 1rem;
    color: #ffffff;
}
.single-skill:first-child {
    margin-top: 0;
}
.single-skill:last-child {
    margin-bottom: 0;
}
.skill-circle {
    position: relative;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.skill-circle::before {
    content: '';
    position: absolute;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: #022038;
}
.skill-circle .skill-progress {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: conic-gradient(#36f51d var(--progress), transparent var(--progress));
    mask: radial-gradient(transparent 5.5rem, #000 5.6rem);
    -webkit-mask: radial-gradient(transparent 5.5rem, #000 5.6rem);
}
.skill-circle .skill-percentage {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}
.skill-info {
    flex: 1;
    padding-left: 2rem;
}
.skill-info .topic {
    font-size: 1.6rem;
    font-weight: 500;
    background: linear-gradient(45deg, #36f51d, #2edefd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(54, 245, 29, 0.3);
    margin-bottom: 0.5rem;
}
.skill-info .skill-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}
/* Animation for skill circles */
@keyframes skillProgress {
    from {
        --progress: 0%;
    }
    to {
        --progress: var(--target-progress);
    }
}
.skill-circle .skill-progress {
    animation: skillProgress 1.5s ease-out forwards;
}
/* Responsive styles for skill circles */
@media screen and (max-width: 768px) {
    .skill-circle {
        width: 10rem;
        height: 10rem;
    }
    .skill-circle::before {
        width: 8.5rem;
        height: 8.5rem;
    }
    .skill-circle .skill-progress {
        width: 10rem;
        height: 10rem;
        mask: radial-gradient(transparent 4.2rem, #000 4.3rem);
        -webkit-mask: radial-gradient(transparent 4.2rem, #000 4.3rem);
    }
    .skill-circle .skill-percentage {
        font-size: 2rem;
    }
    .skill-info .topic {
        font-size: 1.4rem;
    }
    .skill-info .skill-description {
        font-size: 1.3rem;
    }
}
@media screen and (max-width: 576px) {
    .skill-circle {
        width: 8rem;
        height: 8rem;
    }
    .skill-circle::before {
        width: 6.8rem;
        height: 6.8rem;
    }
    .skill-circle .skill-progress {
        width: 8rem;
        height: 8rem;
        mask: radial-gradient(transparent 3.4rem, #000 3.5rem);
        -webkit-mask: radial-gradient(transparent 3.4rem, #000 3.5rem);
    }
    .skill-circle .skill-percentage {
        font-size: 1.8rem;
    }
    .skill-info .topic {
        font-size: 1.3rem;
    }
    .skill-info .skill-description {
        font-size: 1.2rem;
    }
}
/* contact section */
.contact-form,
section form {
    max-width: 32rem;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
    text-align: left;
}

.input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.input-box input {
    flex: 1 1 14rem;
    min-width: 0;
}

.contact-form input,
.contact-form textarea,
section form input,
section form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
section form input::placeholder,
section form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus,
section form input:focus,
section form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea,
section form textarea {
    resize: vertical;
    min-height: 7rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 4rem 5% 4rem;
        min-height: auto;
    }
    
    .contact form {
        max-width: 100%;
        padding: 0;
    }
    
    .input-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-box input {
        width: 100%;
        margin: 0;
    }
    
    input, textarea {
        padding: 1.2rem;
        margin: 0.5rem 0;
        font-size: 1.4rem;
    }
    
    .contact .btn {
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 576px) {
    .contact {
        padding: 3rem 4% 3rem;
    }
    
    input, textarea {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    .contact .btn {
        font-size: 1.3rem;
    }
}

/* footer */
footer{
    padding: 2rem 3%;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

/* Footer Animations */
.footer-social-link {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: #fff;
    margin: 0 1.5rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0077B5, #333);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: 0.3s ease;
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* LinkedIn Footer */
.footer-social-link:nth-child(1) {
    color: #0077B5;
}

.footer-social-link:nth-child(1):hover {
    color: #fff;
}

/* GitHub Footer */
.footer-social-link:nth-child(2) {
    color: #fff;
}

.footer-social-link:nth-child(2):hover {
    color: #fff;
}

/* X (Twitter) Footer */
.site-footer .footer-social-link:nth-child(3) {
    color: #1DA1F2;
}

.site-footer .footer-social-link:nth-child(3):hover {
    color: #fff;
}

.footer-text {
    transform: translateY(50px);
    opacity: 0;
    animation: footerSlideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes footerSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add a subtle gradient animation to the footer background */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(2, 32, 56, 0.8), rgba(15, 10, 10, 0.8));
    animation: footerGradient 8s ease infinite;
    z-index: -1;
}

@keyframes footerGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add a subtle glow effect to social icons */
.footer-social-link i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(54, 245, 16, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.footer-social-link:hover i::after {
    width: 30px;
    height: 30px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .project-container {
        max-width: 95%;
    }
    .project-card {
        margin: 10px;
    }
    .profile-image {
        width: 350px;
        height: 450px;
    }
}

@media screen and (max-width: 991px) {
    .header {
        padding: 1.5rem 5%;
    }
    section {
        padding: 5rem 5% 1.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .freelancing {
        padding: 4rem 5% 2rem;
    }
    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
        gap: 2rem;
    }
    .home .text-content {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    .text-content h1 {
        font-size: 4rem;
    }
    .text-animation {
        max-width: 35rem;
        margin: 2rem auto;
    }
    .text-animation h2 {
        font-size: 2.8rem;
    }
    .social-media {
        justify-content: center;
    }
    .about {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    .about img {
        width: 20rem;
        height: 20rem;
        margin-bottom: 1.5rem;
    }
    .wrapper {
        flex-direction: column;
        gap: 4rem;
    }
    .skill-content {
        width: 100%;
    }
    .skill-box {
        padding: 4rem 2rem;
    }
    .project-container {
        padding: 10px;
    }
    .project-card {
        margin: 10px 5px;
    }
    .profile-image {
        width: 300px;
        height: 400px;
        margin: 2rem auto;
    }
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    .navbar {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        padding: 1rem 5%;
        background: #022038;
        border-top: 1px solid rgba(255,255,255,.1);
        border-bottom: .2rem solid rgba(255,255,255,.1);
        display: none;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.2);
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        margin: 2rem 0;
        font-size: 2rem;
        text-align: center;
    }
    .text-content h1 {
        font-size: 3.5rem;
    }
    .text-animation {
        max-width: 30rem;
    }
    .text-animation h2 {
        font-size: 2.4rem;
    }
    .title {
        font-size: 3.5rem;
    }
    .about img {
        width: 18rem;
        height: 18rem;
    }
    .text-content2 p {
        font-size: 1.4rem;
        padding: 0 2rem;
    }
    .skill-title {
        font-size: 2rem;
    }
    .single-skill span {
        font-size: 1.4rem;
    }
    .contact {
        padding-top: 4rem;
        min-height: auto;
        padding-bottom: 4rem;
    }
    .contact form {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
    .input-box {
        flex-direction: column;
        gap: 1rem;
    }
    .input-box input {
        width: 100%;
        margin: 0.5rem 0;
    }
    input, textarea {
        width: 100%;
        padding: 1.2rem;
        margin: 0.5rem 0;
        font-size: 1.4rem;
    }
    .contact .btn {
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
        font-size: 1.4rem;
    }
    .project-content h3 {
        font-size: 1.8rem;
    }
    .project-content p {
        font-size: 1.3rem;
    }
    .project-tech span {
        font-size: 1.2rem;
    }
    .project-links .btn {
        padding: 6px 12px;
        font-size: 1.2rem;
    }
    .profile-image {
        width: 280px;
        height: 360px;
    }
    .freelancing {
        padding: 3.5rem 4% 2rem;
    }
    .freelancing .section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    .service-card {
        padding: 2rem;
    }
    .service-card h3 {
        font-size: 1.5rem;
    }
    .service-card p {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    .header {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 2.5rem;
    }
    .menu-btn i {
        font-size: 1.5rem;
    }
    section {
        padding: 4rem 5% 1.5rem;
    }
    .text-content h1 {
        font-size: 3rem;
    }
    .text-animation {
        max-width: 25rem;
    }
    .text-animation h2 {
        font-size: 2rem;
    }
    .title {
        font-size: 3rem;
    }
    .about img {
        width: 15rem;
        height: 15rem;
    }
    .text-content2 p {
        font-size: 1.3rem;
    }
    .skill-title {
        font-size: 1.8rem;
    }
    .single-skill span {
        font-size: 1.3rem;
    }
    .input-box {
        flex-direction: column;
        gap: 1rem;
    }
    .input-box input {
        width: 100%;
    }
    input, textarea {
        font-size: 1.3rem;
    }
    .btn {
        width: 100%;
        font-size: 1.3rem;
    }
    .project-card {
        margin: 10px 0;
        min-width: 0;
        min-height: 360px;
    }
    .project-img {
        height: 200px;
        min-height: 180px;
    }
    .project-content {
        padding: 15px;
    }
    .project-content h3 {
        font-size: 1.6rem;
    }
    .project-content p {
        font-size: 1.2rem;
    }
    .project-tech {
        gap: 5px;
    }
    .project-tech span {
        font-size: 1.1rem;
        padding: 4px 8px;
    }
    .project-links {
        flex-direction: column;
    }
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
    .owl-nav {
        display: none;
    }
    .profile-image {
        width: 250px;
        height: 320px;
    }
}

@media screen and (max-width: 375px) {
    .text-content h1 {
        font-size: 2.8rem;
    }
    .text-animation {
        max-width: 20rem;
    }
    .text-animation h2 {
        font-size: 1.8rem;
    }
    .title {
        font-size: 2.8rem;
    }
    .about img {
        width: 12rem;
        height: 12rem;
    }
    .text-content2 p {
        font-size: 1.2rem;
    }
    .skill-title {
        font-size: 1.6rem;
    }
    .single-skill span {
        font-size: 1.2rem;
    }
    .project-img {
        height: 180px;
    }
    .project-content h3 {
        font-size: 1.4rem;
    }
    .project-content p {
        font-size: 1.1rem;
    }
    .project-tech span {
        font-size: 1rem;
    }
    .profile-image {
        width: 220px;
        height: 280px;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    section {
        padding: 5rem 5% 2rem;
    }
    .home, .about, .skills, .contact {
        min-height: auto;
        padding-top: 10rem;
    }
    .navbar {
        max-height: 80vh;
        overflow-y: auto;
    }
    .about img {
        width: 15rem;
        height: 15rem;
    }
    .wrapper {
        gap: 2rem;
    }
    .skill-box {
        padding: 3rem 2rem;
    }
    .project-container {
        padding: 5px;
    }
    .project-card {
        margin: 5px;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .text-animation h2 {
        -webkit-text-stroke: 0.5px #1aff05;
    }
}

/* Print Styles */
@media print {
    .header,
    .social-media,
    .btn,
    footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    section {
        padding: 2rem;
    }
    .text-content h1,
    .title {
        color: black;
    }
    .text-animation h2 {
        color: black;
        -webkit-text-stroke: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .navbar a:hover,
    .navbar a.active {
        color: #36f510;
    }
    .social-media i:hover::after {
        top: 0;
    }
    .btn:hover::before {
        top: 0;
    }
    .project-card:hover {
        transform: none;
    }
    .project-card:hover .project-img img {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #022038;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skills Section Layout Improvements */
.skills {
    padding: var(--space-section) 5% 2.5rem;
    background: var(--background-color);
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.skill-content {
    width: 100%;
}

.skill-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    height: 100%;
    color: #ffffff;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(54, 245, 29, 0.2);
    border-color: rgba(54, 245, 29, 0.4);
}

.single-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    padding: 0 1rem;
    color: #ffffff;
}

.single-skill:first-child {
    margin-top: 0;
}

.single-skill:last-child {
    margin-bottom: 0;
}

.single-skill .topic {
    font-size: 1.6rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(54, 245, 29, 0.3);
}

.bar-side {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    height: 1rem;
    border-radius: 50rem;
    position: relative;
    overflow: hidden;
    margin: 0 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 50rem;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(54, 245, 29, 0.5);
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.bar-1 {
    width: 85%;
    background: linear-gradient(90deg, #36f51d, #2edefd);
}

.bar-2 {
    width: 80%;
    background: linear-gradient(90deg, #2edefd, #36f51d);
}

.bar-3 {
    width: 75%;
    background: linear-gradient(90deg, #36f51d, #2edefd);
}

/* Responsive Layout */
@media screen and (max-width: 991px) {
    .wrapper {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .skill-box {
        padding: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .skills {
        padding: 4rem 4% 2rem;
    }

    .wrapper {
        padding: 1rem;
    }

    .skill-box {
        padding: 2rem;
    }

    .single-skill {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }

    .single-skill .topic {
        font-size: 1.4rem;
        color: #ffffff;
    }

    .bar-side {
        height: 0.8rem;
        margin: 0 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .skills {
        padding: 3rem 3% 2rem;
    }

    .wrapper {
        gap: 2rem;
    }

    .skill-box {
        padding: 1.5rem;
    }

    .single-skill {
        margin: 1.5rem 0;
    }

    .single-skill .topic {
        font-size: 1.3rem;
        color: #ffffff;
    }

    .bar-side {
        height: 0.7rem;
        margin: 0 1rem;
    }
}

/* Projects Section */
.projects {
    padding: var(--space-section) 0 2rem;
    background: var(--background-color);
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin: 12px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
    min-height: 380px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(54, 245, 29, 0.3);
    box-shadow: var(--shadow-hover);
}

.project-img {
    width: 100%;
    height: clamp(200px, 22vmin, 260px);
    min-height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--surface);
    flex-shrink: 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.25rem 1.35rem;
    flex-grow: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.project-content p {
    font-size: clamp(0.875rem, 1.2vw, 0.95rem);
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: var(--surface);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: auto;
}

.project-links .btn:hover {
    background: #2dff2d;
    color: var(--background-color);
}

/* Owl Carousel Custom Styles */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.owl-prev, .owl-next {
    background: rgba(54, 245, 29, 0.2) !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    transition: all 0.3s ease;
    border: 0.1rem solid rgba(54, 245, 29, 0.3);
}

.owl-prev:hover, .owl-next:hover {
    background: rgba(54, 245, 29, 0.8) !important;
    box-shadow: 0 0 10px rgba(54, 245, 29, 0.5);
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    border: 0.1rem solid rgba(255, 255, 255, 0.3);
}

.owl-dot.active {
    background: #36f51d !important;
    box-shadow: 0 0 10px rgba(54, 245, 29, 0.5);
}

/* Freelancing / Services Section */
.freelancing {
    padding: var(--space-section) 5% 2.5rem;
    min-height: auto;
    background: var(--background-color);
}

.freelancing .section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin: -0.25rem auto 1.5rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(54, 245, 29, 0.25);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.freelance-cta {
    text-align: center;
    padding: 1rem 1rem 0;
}

.freelance-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.freelance-cta .btn {
    display: inline-flex;
}

/* Site footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    padding-left: max(5%, env(safe-area-inset-left));
    padding-right: max(5%, env(safe-area-inset-right));
    text-align: center;
}

.site-footer .social-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    margin: 0;
}

.site-footer .footer-social-link:hover {
    color: var(--text-color);
    background: var(--accent-soft);
}

.site-footer .footer-text {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

/* Profile Image Styles */
.profile-image {
    position: relative;
    width: 350px;
    height: 450px;
    margin-left: 2rem;
    animation: fadeIn 1s ease forwards;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(54, 245, 29, 0.3);
    box-shadow: 0 0 15px rgba(54, 245, 29, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover img {
    border-color: #36f51d;
    box-shadow: 0 0 20px rgba(54, 245, 29, 0.4);
}

/* Responsive styles for profile image */
@media screen and (max-width: 1200px) {
    .profile-image {
        width: 300px;
        height: 400px;
    }
}

@media screen and (max-width: 991px) {
    .profile-image {
        width: 280px;
        height: 360px;
        margin: 2rem auto;
    }
}

@media screen and (max-width: 768px) {
    .profile-image {
        width: 260px;
        height: 340px;
    }
}

@media screen and (max-width: 576px) {
    .profile-image {
        width: 240px;
        height: 320px;
    }
}

@media screen and (max-width: 375px) {
    .profile-image {
        width: 220px;
        height: 300px;
    }
}

/* About Section Image Styles */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.about-image {
    position: relative;
    width: 350px;
    height: 450px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(54, 245, 29, 0.3);
    box-shadow: 0 0 20px rgba(54, 245, 29, 0.2);
    transition: all 0.3s ease;
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(54, 245, 29, 0.2);
    border-radius: 25px;
    z-index: -1;
    transition: all 0.3s ease;
}

.profile-image:hover img,
.about-image:hover img {
    border-color: #36f51d;
    box-shadow: 0 0 30px rgba(54, 245, 29, 0.4);
}

.profile-image:hover .image-border,
.about-image:hover .image-border {
    border-color: #36f51d;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styles for both images */
@media screen and (max-width: 1200px) {
    .profile-image {
        width: 300px;
        height: 400px;
    }
    .about-image {
        width: 300px;
        height: 400px;
    }
}

@media screen and (max-width: 991px) {
    .profile-image {
        width: 280px;
        height: 360px;
        margin: 2rem auto;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        width: 280px;
        height: 360px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 5% 1.5rem;
        min-height: auto;
    }

    .home {
        padding-top: 4.5rem;
        gap: 1.5rem;
    }

    .about {
        padding-top: 3rem;
        gap: 1.25rem;
    }

    .skills {
        padding-top: 3rem;
    }

    .projects {
        padding-top: 3rem;
    }

    .contact {
        padding-top: 3rem;
    }

    .title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .text-content2 {
        padding: 0 1rem;
    }

    .text-content2 p {
        font-size: 1.4rem;
        margin: 1.5rem 0;
    }

    .wrapper {
        gap: 2rem;
    }

    .skill-box {
        padding: 2rem;
    }

    .project-container {
        padding: 1rem;
    }

    .project-card {
        margin: 1rem 0;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .project-content p {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .project-tech {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .project-tech span {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }

    .project-links {
        gap: 0.8rem;
    }

    .project-links .btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    form {
        margin: 1rem 0;
    }

    .input-box {
        gap: 1rem;
    }

    input, textarea {
        margin: 0.5rem 0;
        padding: 1.2rem;
    }

    .btn {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 5rem 4% 2rem;
    }

    .home {
        padding-top: 5rem;
    }

    .about {
        padding-top: 3rem;
    }

    .skills {
        padding-top: 3rem;
    }

    .projects {
        padding-top: 3rem;
    }

    .contact {
        padding-top: 3rem;
    }

    .title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .text-content h1 {
        font-size: 2.8rem;
    }

    .text-animation h2 {
        font-size: 2rem;
    }

    .text-content2 p {
        font-size: 1.3rem;
        margin: 1.2rem 0;
    }

    .skill-box {
        padding: 1.5rem;
    }

    .single-skill {
        margin: 1.5rem 0;
    }

    .project-card {
        margin: 0.8rem 0;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.4rem;
    }

    .project-content p {
        font-size: 1.2rem;
    }

    .project-tech span {
        font-size: 1rem;
    }

    .project-links .btn {
        font-size: 1.1rem;
    }
    .freelancing {
        padding: 5rem 4% 2.5rem;
    }
    .freelancing .section-subtitle {
        font-size: 1.3rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.4rem;
    }
    .service-card p {
        font-size: 1.2rem;
    }
    .freelance-cta p {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 375px) {
    section {
        padding: 4rem 3% 1.5rem;
    }

    .home {
        padding-top: 4rem;
    }

    .about {
        padding-top: 2.5rem;
    }

    .skills {
        padding-top: 2.5rem;
    }

    .projects {
        padding-top: 2.5rem;
    }

    .contact {
        padding-top: 2.5rem;
    }

    .title {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }

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

    .text-animation h2 {
        font-size: 1.8rem;
    }

    .text-content2 p {
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    .skill-box {
        padding: 1.2rem;
    }

    .single-skill {
        margin: 1.2rem 0;
    }

    .project-card {
        margin: 0.6rem 0;
    }

    .project-content {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 1.1rem;
    }

    .project-tech span {
        font-size: 0.9rem;
    }

    .project-links .btn {
        font-size: 1rem;
    }
    .freelancing {
        padding: 4rem 3% 2rem;
    }
    .freelancing .section-subtitle {
        font-size: 1.2rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }
    .service-card p {
        font-size: 1.1rem;
    }
}

/* Profile Image Styles */
.aboutImg {
    height: clamp(12rem, 28vw, 18rem);
    width: clamp(12rem, 28vw, 18rem);
    max-width: 100%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
    object-fit: cover;
}

.aboutImg:hover {
    border-color: rgba(54, 245, 29, 0.4);
    box-shadow: 0 0 24px var(--accent-soft);
    transform: scale(1.02);
}

.aboutImg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(54, 245, 29, 0.2);
    border-radius: 22px;
    z-index: -1;
    transition: all 0.3s ease;
}

.aboutImg:hover::before {
    border-color: #36f51d;
    transform: scale(1.05);
}

/* Responsive styles for profile image */
@media screen and (max-width: 1200px) {
    .aboutImg {
        height: 22rem;
        width: 22rem;
    }
}

@media screen and (max-width: 991px) {
    .aboutImg {
        height: 20rem;
        width: 20rem;
    }
}

@media screen and (max-width: 768px) {
    .aboutImg {
        height: 18rem;
        width: 18rem;
    }
}

@media screen and (max-width: 576px) {
    .aboutImg {
        height: 16rem;
        width: 16rem;
    }
}

@media screen and (max-width: 375px) {
    .aboutImg {
        height: 14rem;
        width: 14rem;
    }
}

/* Fix for image loading */
.project-img img {
    min-height: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Image loading placeholder */
.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(54, 245, 29, 0.1), rgba(2, 32, 56, 0.2));
    z-index: 1;
}

/* Skills Section Enhanced Colors */
.skill-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(54, 245, 29, 0.2);
    border-color: rgba(54, 245, 29, 0.4);
}

.single-skill {
    margin: 2.5rem 0;
}

.single-skill .topic {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}
.single-skill .topic:first-child {
    color: var(--text-color);
}
.single-skill .topic:last-child {
    color: var(--text-muted);
    font-weight: 600;
}

.bar-side {
    background: rgba(255, 255, 255, 0.1);
    height: 1rem;
    border-radius: 50rem;
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 50rem;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(54, 245, 29, 0.5);
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.bar-1 {
    width: 85%;
    background: linear-gradient(90deg, #36f51d, #2edefd);
}

.bar-2 {
    width: 80%;
    background: linear-gradient(90deg, #2edefd, #36f51d);
}

.bar-3 {
    width: 75%;
    background: linear-gradient(90deg, #36f51d, #2edefd);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .skill-box {
        padding: 2rem;
    }

    .single-skill .topic {
        font-size: 1.4rem;
        color: #ffffff;
    }

    .bar-side {
        height: 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    .skill-box {
        padding: 1.5rem;
    }

    .single-skill .topic {
        font-size: 1.3rem;
        color: #ffffff;
    }

    .bar-side {
        height: 0.7rem;
    }
}
