*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* smooth scrolling*/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body
{
    background:#0f172a;
    color:#e2e8f0;
    line-height:1.6;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    transition: background 0.35s ease, color 0.35s ease;
}

body::before,
body::after{
    content: "";
    position: fixed;
    inset: -12%;
    pointer-events: none;
    z-index: -1;
}

body::before{
    background:
        radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 28%),
        radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 24%),
        radial-gradient(circle at 74% 72%, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0) 26%),
        radial-gradient(circle at 24% 82%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 24%);
    filter: blur(18px) saturate(125%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
}

body::after{
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at center, rgba(148, 163, 184, 0.08) 0%, rgba(148, 163, 184, 0) 58%);
    background-size: 180% 180%, 140% 140%;
    mix-blend-mode: screen;
    opacity: 0.72;
    animation: meshShift 22s linear infinite;
}

@keyframes auroraDrift {
    0%{
        transform: translate3d(-2%, -1%, 0) scale(1) rotate(0deg);
    }
    35%{
        transform: translate3d(3%, 2%, 0) scale(1.08) rotate(6deg);
    }
    68%{
        transform: translate3d(-1%, 4%, 0) scale(1.04) rotate(-5deg);
    }
    100%{
        transform: translate3d(2%, -3%, 0) scale(1.1) rotate(3deg);
    }
}

@keyframes meshShift {
    0%{
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.58;
    }
    50%{
        transform: translate3d(1.5%, -1%, 0) scale(1.06);
        opacity: 0.8;
    }
    100%{
        transform: translate3d(-1.5%, 1%, 0) scale(1);
        opacity: 0.62;
    }
}

/* Navbar */
nav{
    position: sticky;
    top:0;
    background: transparent;
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding:14px 18px 10px;
    z-index:1000;
    align-items: center;
    width: 100%;
}

.menu-toggle{
    display: none;
    position: absolute;
    top: 14px;
    left: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-toggle:hover{
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.46);
    border-color: rgba(56, 189, 248, 0.32);
}

.menu-toggle-line{
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle-line:nth-child(1){
    top: 13px;
}

.menu-toggle-line:nth-child(2){
    top: 20px;
}

.menu-toggle-line:nth-child(3){
    top: 27px;
}

.menu-toggle.active .menu-toggle-line:nth-child(1){
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-toggle-line:nth-child(2){
    opacity: 0;
}

.menu-toggle.active .menu-toggle-line:nth-child(3){
    top: 20px;
    transform: rotate(-45deg);
}

nav ul {
    list-style:none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.theme-toggle{
    position: absolute;
    top: 14px;
    right: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.32);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.theme-toggle:hover{
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.46);
    border-color: rgba(56, 189, 248, 0.32);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.theme-toggle:hover .theme-toggle-orb{
    transform: rotate(24deg) scale(1.14);
}

.theme-toggle:active{
    transform: translateY(0) scale(0.96);
}

.theme-toggle-orb{
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
    animation: themeOrbFloat 3.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.theme-toggle-orb::before{
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.theme-toggle-orb::after{
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

@keyframes themeOrbFloat {
    0%, 100%{
        transform: rotate(0deg) scale(1);
    }
    35%{
        transform: rotate(10deg) scale(1.04);
    }
    60%{
        transform: rotate(-8deg) scale(0.98);
    }
}

.nav-pill{
    transition: box-shadow 0.65s ease, background-color 0.65s ease;
    transform-origin: center;
}

.nav-pill.scrolled{
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

nav h2{
    font-size: 1.1rem;
    margin: 0;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

nav ul li{
    display: inline-block;
    margin-left: 0;
}

nav ul li a{
    text-decoration: none;
    color:#e2e8f0;
    transition: color 0.35s ease, transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
    font-size: 1rem;
    position: relative;
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    overflow: hidden;
}

nav ul li a:hover{
    color:#38bdf8;
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.12);
 }

nav ul li a::after{
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    background: #38bdf8;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
 }

nav ul li a:hover::after{
    transform: scaleX(1);
 }

nav ul li a:active{
    transform: translateY(0) scale(0.96);
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.1);
 }

nav ul li a:focus-visible{
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Home */
.home
{
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    padding: 40px 18px 56px;
    margin: 0;
    scroll-margin-top: 0;
}

.hero-content{
    max-width: 1200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    text-align: left;
    padding-left: 44px;
}

.hero-text{
    flex: 1;
    min-width: 0;
}

.hero-tag{
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.08);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-name{
    margin-bottom: 10px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    padding-bottom: 4px;
    color: transparent;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 52%, #d9f1ff 70%, #7dd3fc 86%, #f8fcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(18px);
    animation: heroNameReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-role{
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: heroSubReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-role-label{
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: Arial, sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-role-dynamic{
    display: inline-block;
    min-width: 100%;
    margin: 0;
    margin-left: 0;
    color: #f8fafc;
    font-weight: 800;
    font-size: clamp(1rem, 2.7vw, 1.85rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform-origin: left bottom;
    opacity: 0;
    transform: translateY(22px);
}

.hero-role-dynamic.pop{
    animation: heroRolePop 0.35s cubic-bezier(0.25, 0.9, 0.3, 1) forwards;
}

.hero-role-dynamic.fade-out{
    animation: heroRoleFadeOut 0.28s ease-in forwards;
}

.hero-text p{
    margin-bottom: 12px;
}

@keyframes heroNameReveal {
    0%{
        opacity: 0;
        transform: translateY(18px);
        letter-spacing: -0.08em;
    }
    100%{
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -0.04em;
    }
}

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

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

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


/* Profile image (circle + glow)*/
.profile-img{
    width:230px;
    height:230px;
    display: block;
    border-radius:50%;
    border:3px solid #38bdf8;
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.22);
    flex-shrink: 0;
    margin-left: 0;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-img:hover{
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.28);
}

 /*Buttons*/
 .buttons a{
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    padding:10px 20px;
    margin:5px;
    border-radius:999px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, background 0.45s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
    will-change: transform, box-shadow;
 }

 .buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
 }

 .buttons a::before{
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 90%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
 }

 .button-icon{
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
 }

 .github-button:hover .button-icon{
    transform: translateY(-1px) scale(1.12) rotate(12deg);
    filter: drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18));
 }

 .resume-button:hover .download-icon{
    transform: translateY(-1px) scale(1.05);
    filter: none;
 }

 .buttons a span{
    position: relative;
    z-index: 1;
 }

 .buttons a:hover{
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.3);
    filter: brightness(1.05);
 }

 .buttons a:hover::before{
    left: 130%;
 }

 .buttons a:active{
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.22);
 }

 .resume-button.downloading{
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.34);
 }

 .resume-button.downloading .download-icon{
    animation: downloadArrow 0.75s cubic-bezier(0.22, 1, 0.36, 1);
 }

 .resume-button.downloading span{
    animation: downloadPulse 0.75s ease;
 }

.social-links{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.social-icon-link{
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    text-decoration: none;
    color: #8b96b8;
    background: linear-gradient(180deg, rgba(19, 27, 47, 0.95), rgba(13, 18, 35, 0.96));
    border: 1px solid rgba(90, 105, 150, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(2, 6, 23, 0.28);
    transition: transform 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.facebook-icon-link{
    color: #f4f8ff;
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(2, 6, 23, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.12);
    animation: facebookFloat 2.8s ease-in-out infinite;
}

.social-icon-link:hover{
    transform: translateY(-3px);
    color: #dbe7ff;
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 6, 23, 0.34);
}

.facebook-icon-link:hover{
    transform: translateY(-4px) scale(1.06);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(37, 99, 235, 0.28), 0 0 20px rgba(96, 165, 250, 0.22);
}

.social-icon-link:active{
    transform: translateY(-1px);
}

.social-icon{
    width: 20px;
    height: 20px;
}

.facebook-icon-link .social-icon{
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

@keyframes facebookFloat {
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-3px);
    }
}

 @keyframes downloadArrow {
    0%{
        transform: translateY(0);
        opacity: 1;
    }
    35%{
        transform: translateY(6px);
        opacity: 0.85;
    }
    55%{
        transform: translateY(-8px);
        opacity: 0;
    }
    56%{
        transform: translateY(-10px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
 }

 @keyframes downloadPulse {
    0%{
        letter-spacing: 0;
    }
    50%{
        letter-spacing: 0.5px;
    }
    100%{
        letter-spacing: 0;
    }
 }

 @media (max-width: 700px){
    .hero-content{
        flex-direction: column;
        text-align: center;
    }
 }
 
 /* Sections */
 section {
    padding: 25px;
    max-width: 800px;
    margin:auto;
    width: 100%;
 }

.about{
    padding-top: 60px;
}

 h2{
    margin-bottom:20px;
    color: #38bdf8;
 }

 /*Skills*/
 .skill-box{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
 }

 .skill-item{
    min-width: 88px;
    background:#1e293b;
    padding: 9px 11px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
 }

 .skill-item:hover{
    transform: translateY(-5px) scale(1.025);
    background: linear-gradient(135deg, #243247, #1e293b);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.32);
 }

 .skill-item span{
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
 }

 .skill-icon{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transform-origin: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
 }

 .skill-item:hover .skill-icon{
    transform: translateY(-1px) rotate(-7deg) scale(1.14);
    filter: drop-shadow(0 8px 14px rgba(56, 189, 248, 0.18));
 }

 /* Projects*/
 .project-card{
    background:#1e293b;
    padding:20px;
    margin-bottom:4px;
    border-radius:10px;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
  }

 .project-card:hover{
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
 }

 .contact-intro,
 .contact-email{
    margin-bottom: 16px;
 }

 .contact-email a{
    color: #38bdf8;
    text-decoration: none;
 }

 .contact-form{
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
 }

 .hidden-field{
    display: none;
 }

 .contact-form input,
 .contact-form textarea{
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: #1e293b;
    color: #e2e8f0;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  }

 .contact-form input::placeholder,
 .contact-form textarea::placeholder{
    color: #94a3b8;
 }

 .contact-form input:hover,
 .contact-form textarea:hover{
    border-color: #38bdf8;
    background: #243247;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3), 0 0 0 3px rgba(56, 189, 248, 0.12);
  }

 .contact-form input:focus,
 .contact-form textarea:focus{
    border-color: #38bdf8;
    background: #243247;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), 0 14px 28px rgba(15, 23, 42, 0.22);
  }

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

 .contact-form button{
    width: fit-content;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
 }

 .contact-form button:hover{
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.28);
    filter: brightness(1.05);
 }

.contact-form button:active{
    transform: translateY(0) scale(0.98);
}

.image-popup{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2100;
}

.image-popup.show{
    opacity: 1;
    visibility: visible;
}

.image-popup-content{
    position: relative;
    max-width: min(92vw, 520px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.full-profile-img{
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 80vh;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 4px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
}

.image-popup-close{
    position: absolute;
    top: -48px;
    right: 0;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-popup-close:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(14, 165, 233, 0.26);
}

.success-popup{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
 }

 .success-popup.show{
    opacity: 1;
    visibility: visible;
 }

 .success-card{
    width: min(100%, 420px);
    background: linear-gradient(160deg, #1e293b, #0f172a);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
 }

 .success-popup.show .success-card{
    transform: translateY(0) scale(1);
 }

 .success-icon{
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.28);
 }

 .success-card h3{
    margin-bottom: 12px;
    color: #f8fafc;
 }

 .success-card p{
    margin-bottom: 20px;
    color: #cbd5e1;
 }

 .success-card button{
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
 }

 .success-card button:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.28);
    filter: brightness(1.05);
 }

@media (max-width: 700px){
    html {
        scroll-padding-top: 20px;
    }

    nav{
        position: sticky;
        top: 0;
        padding: 10px 14px 62px;
        justify-content: center;
        width: 100%;
    }

    .menu-toggle{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        top: 10px;
        left: 14px;
    }

    nav ul{
        position: absolute;
        top: 58px;
        left: 14px;
        width: min(220px, calc(100vw - 28px));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.62);
        border: 1px solid rgba(148, 163, 184, 0.18);
        backdrop-filter: blur(14px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    .theme-toggle{
        position: absolute;
        top: 10px;
        right: 14px;
        margin: 0;
        width: 40px;
        height: 40px;
    }

    .nav-pill.open{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li{
        flex: 1 1 auto;
    }

    nav ul li a{
        display: block;
        width: 100%;
        font-size: 0.94rem;
        white-space: nowrap;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .nav-pill.scrolled{
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .nav-pill.scrolled.open{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero-content{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        padding-left: 0;
    }

    .home{
        min-height: auto;
        padding: 28px 18px 40px;
    }

    .hero-text{
        width: 100%;
        text-align: center;
    }

    .hero-role-dynamic{
        min-width: 100%;
        font-size: clamp(0.95rem, 5.2vw, 1.55rem);
    }

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

    .contact{
        text-align: center;
    }

    .contact-form{
        align-items: center;
    }

    .contact-form input,
    .contact-form textarea{
        transform: none;
    }

    .contact-form input:hover,
    .contact-form textarea:hover,
    .contact-form input:focus,
    .contact-form textarea:focus{
        transform: none;
    }

    .buttons{
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 8px;
    }

    .buttons a{
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        margin: 0;
        padding: 9px 10px;
        font-size: 0.88rem;
        gap: 6px;
    }

    .buttons a span{
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .buttons .button-icon{
        width: 16px;
        height: 16px;
    }

    .profile-img{
        width: 185px;
        height: 185px;
    }

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

    .skill-item{
        width: auto;
        min-width: 100px;
        justify-content: center;
    }

    .image-popup{
        padding: 18px;
    }

    .image-popup-content{
        max-width: min(94vw, 360px);
    }

    .image-popup-close{
        top: -52px;
        padding: 9px 16px;
    }

    .success-card{
        padding: 28px 20px;
    }
}

 /*Scroll Animations*/
 .fade-in{
    opacity:0;
    transform:translateY(40px) scale(0.985);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

 .fade-in.show{
    opacity:1;
    transform:translateY(0) scale(1);
 }

 /*Footer*/
footer{
    text-align: center;
    padding:20px;
    background:#1e293b;
}

body[data-theme="light"]{
    background: #f4f8fc;
    color: #1e293b;
}

body[data-theme="light"]::before{
    background:
        radial-gradient(circle at 16% 20%, rgba(125, 211, 252, 0.36) 0%, rgba(125, 211, 252, 0) 30%),
        radial-gradient(circle at 84% 18%, rgba(250, 204, 21, 0.22) 0%, rgba(250, 204, 21, 0) 22%),
        radial-gradient(circle at 76% 72%, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 25%),
        radial-gradient(circle at 22% 84%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 26%);
    filter: blur(16px) saturate(120%);
}

body[data-theme="light"]::after{
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at center, rgba(191, 219, 254, 0.2) 0%, rgba(191, 219, 254, 0) 58%);
    mix-blend-mode: normal;
    opacity: 0.85;
}

body[data-theme="light"] nav ul{
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] nav ul li a{
    color: #1e293b;
}

body[data-theme="light"] .theme-toggle{
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(245, 158, 11, 0.26);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.48) inset;
}

body[data-theme="light"] .menu-toggle{
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.16);
}

body[data-theme="light"] .menu-toggle-line{
    background: #0f172a;
}

body[data-theme="light"] .theme-toggle:hover{
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.68) inset;
}

body[data-theme="light"] .theme-toggle-orb{
    background: radial-gradient(circle at 35% 35%, #fff7cc 0%, #facc15 42%, #f59e0b 78%, #ea580c 100%);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.5), 0 6px 16px rgba(245, 158, 11, 0.3);
}

body[data-theme="light"] .theme-toggle-orb::before{
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: transparent;
    border: 1.5px solid rgba(245, 158, 11, 0.78);
    opacity: 1;
    transform: translate(-50%, -50%);
}

body[data-theme="light"] .theme-toggle-orb::after{
    opacity: 1;
    transform: scale(1);
    border: 1.5px dashed rgba(250, 204, 21, 0.62);
}

body[data-theme="light"] .theme-toggle:hover .theme-toggle-orb{
    transform: rotate(-26deg) scale(1.18);
}

body[data-theme="light"] .hero-name{
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 45%, #2563eb 78%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-theme="light"] .hero-role-label,
body[data-theme="light"] .contact-form input::placeholder,
body[data-theme="light"] .contact-form textarea::placeholder{
    color: #64748b;
}

body[data-theme="light"] .hero-role-dynamic,
body[data-theme="light"] .skill-item span,
body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea{
    color: #0f172a;
}

body[data-theme="light"] .hero-text p,
body[data-theme="light"] .project-card p,
body[data-theme="light"] .about p,
body[data-theme="light"] .contact-intro,
body[data-theme="light"] .success-card p{
    color: #334155;
}

body[data-theme="light"] h2,
body[data-theme="light"] .contact-email a{
    color: #0284c7;
}

body[data-theme="light"] .skill-item,
body[data-theme="light"] .project-card,
body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea,
body[data-theme="light"] footer{
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(148, 163, 184, 0.18);
}

body[data-theme="light"] .about,
body[data-theme="light"] .projects,
body[data-theme="light"] .contact{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.14);
}

body[data-theme="light"] .skill-item:hover{
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.24);
}

body[data-theme="light"] .contact-form input:hover,
body[data-theme="light"] .contact-form textarea:hover,
body[data-theme="light"] .contact-form input:focus,
body[data-theme="light"] .contact-form textarea:focus{
    background: #eff6ff;
}

body[data-theme="light"] .social-icon-link{
    color: #334155;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.98));
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 24px rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .facebook-icon-link{
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.24);
}

body[data-theme="light"] .profile-img{
    border-color: #38bdf8;
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.22);
}

body[data-theme="light"] .image-popup{
    background: rgba(226, 232, 240, 0.7);
}

body[data-theme="light"] .success-popup{
    background: rgba(226, 232, 240, 0.72);
}

body[data-theme="light"] .success-card{
    background: linear-gradient(160deg, #ffffff, #f8fafc);
    color: #0f172a;
    box-shadow: 0 24px 50px rgba(148, 163, 184, 0.28);
}
