html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

:root{
    --bg0:#070A12;
    --bg1:#0B1220;
    --card: rgba(255,255,255,0.06);
    --card2: rgba(255,255,255,0.09);
    --border: rgba(255,255,255,0.10);
    --text:#E6E9F2;
    --muted:#A8B0C2;
    --accent:#6D5EF9;
    --accent2:#2DD4BF;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

body{
    background:
        radial-gradient(1200px 700px at 20% 10%, rgba(109,94,249,0.26), transparent 60%),
        radial-gradient(900px 600px at 85% 18%, rgba(45,212,191,0.18), transparent 58%),
        radial-gradient(900px 650px at 50% 85%, rgba(99,102,241,0.12), transparent 65%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
    color: var(--text);
    line-height: 1.65;
}

a{
    text-decoration: none;
    color: var(--text);
}

a:hover{
    text-decoration: none;
    opacity: 0.92;
}

header{
    background: rgba(10, 14, 26, 0.55);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1{
    font-size: 1.6rem;
    letter-spacing: 0.4px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-subtitle{
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 6px;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.15s;
}

nav{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a{
    padding: 8px 12px;
    border-radius: 10px;
    color: rgba(230,233,242,0.86);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

nav a:hover{
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
    transform: translateY(-1px);
}

.content{
    position: absolute;
    top: 92px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 26px 18px 40px;
}

section{
    max-width: 980px;
    margin: 46px auto;
    padding: 0 12px;
}

section h2, section h3, section h4{
    margin-bottom: 14px;
    color: var(--text);
}

section h3{
    font-size: 1.25rem;
    letter-spacing: 0.2px;
}

section h4{
    font-size: 1.02rem;
    color: rgba(230,233,242,0.92);
}

section p{
    margin-bottom: 14px;
    color: rgba(230,233,242,0.86);
}
.hero {
    padding: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-text {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        grid-row: 2;
        text-align: center;
    }

    .hero-visual {
        grid-row: 1;
        margin-top: 20px;
    }
}

.hero{
    text-align: center;
    padding: 26px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before{
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(800px 320px at 25% 0%, rgba(109,94,249,0.20), transparent 55%),
        radial-gradient(650px 260px at 80% 10%, rgba(45,212,191,0.14), transparent 55%);
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
}

.hero > *{
    position: relative;
    z-index: 1;
}

.hero h2{
    font-size: 1.55rem;
    margin: 10px 0 14px;
    letter-spacing: 0.25px;
}

.hero p{
    max-width: 760px;
    margin: 0 auto 18px auto;
    color: rgba(230,233,242,0.80);
}

.profile-pic{
    width: 140px;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 14px;

    opacity: 0.75;
    filter: grayscale(20%) contrast(95%) brightness(0.9);
    
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.hero .buttons{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero .buttons a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.15px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(135deg, rgba(109,94,249,0.35), rgba(45,212,191,0.16));
    box-shadow: 0 10px 22px rgba(0,0,0,0.30);
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.hero .buttons a:hover{
    transform: translateY(-2px);
    filter: brightness(1.07);
    border-color: rgba(255,255,255,0.20);
}

.skills{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.skill-item{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 10px 12px;
    text-align: center;
    border-radius: 14px;
    font-weight: 700;
    color: rgba(230,233,242,0.92);
    box-shadow: 0 10px 18px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    cursor: default;
}

.skill-item:hover{
    transform: translateY(-2px);
    border-color: rgba(109,94,249,0.35);
    background: rgba(255,255,255,0.08);
}

.project{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 18px 18px;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
    margin-bottom: 16px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.project:hover{
    transform: translateY(-3px);
    border-color: rgba(45,212,191,0.28);
    background: rgba(255,255,255,0.075);
}

.project h4{
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.project h4 a{
    color: var(--text);
}

.project h4 a:hover{
    color: rgba(230,233,242,0.96);
}

.project-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.15px;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(135deg, rgba(45,212,191,0.22), rgba(109,94,249,0.26));
    box-shadow: 0 12px 24px rgba(0,0,0,0.30);
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.project-link:hover{
    transform: translateY(-2px);
    filter: brightness(1.07);
    border-color: rgba(255,255,255,0.20);
}

.contact p{
    margin-bottom: 10px;
    color: rgba(230,233,242,0.84);
}

.contact a{
    color: rgba(230,233,242,0.92);
    border-bottom: 1px solid rgba(109,94,249,0.35);
    padding-bottom: 1px;
}

.contact a:hover{
    border-bottom-color: rgba(45,212,191,0.45);
}

footer{
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 18px 14px;
    margin-top: 48px;
    font-size: 0.92rem;
    color: rgba(230,233,242,0.70);
    border-radius: 18px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideInLeft {
    from { transform: translateX(-40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 820px){
    header{
        padding: 12px 16px;
        gap: 10px;
        align-items: flex-start;
    }
    header h1{
        font-size: 1.45rem;
    }
    .content{
        top: 104px;
        padding: 22px 14px 40px;
    }
    nav{
        gap: 10px;
    }
}

@media (max-width: 520px){
    header{
        flex-direction: column;
        align-items: stretch;
    }
    nav{
        justify-content: center;
        
    }
    .profile-pic{
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }
    .hero h2{
        font-size: 1.35rem;
    }
    .hero .buttons a{
        width: 100%;
    }
}

@media (max-width: 420px){
    nav{
        display: none;
        
    }
}

@media (prefers-reduced-motion: reduce){
    *{
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}