:root{
    color-scheme: dark;
    font-family:'Poppins',sans-serif;
    font-size:16px;
    background:#090b11;
    color:#e8e6f0;
}

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

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    background:radial-gradient(circle at top left,#1d1f2d 0%,#090b11 35%,#06070c 100%);
    color:#e8e6f0;
    overflow-x:hidden;
}

.page-glow{
    position:fixed;
    inset:0;
    pointer-events:none;
    background:radial-gradient(circle at 15% 20%,rgba(147,111,210,0.22),transparent 16%),
      radial-gradient(circle at 85% 20%,rgba(137,105,212,0.18),transparent 18%),
      radial-gradient(circle at 50% 90%,rgba(96,72,144,0.18),transparent 20%);
    z-index:-1;
}

header{
    position:fixed;
    inset:0 0 auto;
    z-index:1000;
    backdrop-filter:blur(24px);
    background:rgba(12,14,22,0.72);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.container{
    width:min(1160px,calc(100% - 2rem));
    margin:0 auto;
}

nav.nav-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    padding:22px 0;
}

.logo{
    color:#e8e6f0;
    font-size:1.15rem;
    letter-spacing:0.1em;
    font-weight:700;
}

nav ul{
    display:flex;
    gap:32px;
    list-style:none;
    flex-wrap:wrap;
}

nav a{
    color:rgba(232,230,240,0.88);
    text-decoration:none;
    font-size:0.95rem;
    position:relative;
    transition:color 0.25s ease;
}

nav a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:rgba(193,161,255,0.95);
    transition:width 0.25s ease;
}

nav a:hover{
    color:#f7f4ff;
}

nav a:hover::after{
    width:100%;
}

.hero{
    display:grid;
    grid-template-columns:minmax(0,560px) minmax(340px,420px);
    justify-content:center;
    align-items:center;
    gap:3rem;
    min-height:calc(100vh - 86px);
    padding:60px 0 48px;
}

.hero-text{
    max-width:600px;
}

.hero-eyebrow{
    display:inline-block;
    color:rgba(229,225,255,0.75);
    letter-spacing:0.18em;
    font-size:0.85rem;
    text-transform:uppercase;
    margin-bottom:1.4rem;
    margin-top:0.8rem;
}

.hero-title{
    font-size:clamp(3rem,6vw,4.6rem);
    line-height:1.02;
    letter-spacing:-0.04em;
    margin-bottom:0.85rem;
}

.hero-name{
    font-weight:800;
    color:#d9c7ff;
}

.hero-initial{
    font-weight:500;
    font-size:0.65em;
    color:#c8b0ff;
}

.hero-subtitle{
    color:#dcd7f4;
    font-size:1.2rem;
    font-weight:500;
    margin-bottom:1.25rem;
}

.hero-description{
    max-width:650px;
    color:#d4cfe6;
    line-height:1.75;
    margin-bottom:1.5rem;
    font-weight:400;
}

.hero-accent{
    color:#6c4aa1;
    font-weight:600;
}

.hero-summary{
    max-width:520px;
    margin-bottom:2rem;
}

.hero-summary p{
    font-size:1rem;
    line-height:1.9;
    color:#e9ddff;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
    margin-bottom:1.8rem;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    border:none;
    border-radius:999px;
    font-weight:700;
    padding:0.95rem 2.1rem;
    transition:transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn.primary{
    background:linear-gradient(135deg,rgba(147,111,210,0.95),rgba(121,89,190,0.95));
    color:#fff;
    box-shadow:0 20px 40px rgba(121,89,190,0.24);
}

.btn.secondary{
    background:rgba(255,255,255,0.08);
    color:#e8e6f0;
    border:1px solid rgba(255,255,255,0.16);
    box-shadow:0 12px 30px rgba(0,0,0,0.22);
}

.btn:hover{
    transform:translateY(-2px);
}

.btn.primary:hover{
    box-shadow:0 24px 60px rgba(121,89,190,0.32);
}

.btn.secondary:hover{
    box-shadow:0 22px 50px rgba(0,0,0,0.28);
    border-color:rgba(147,111,210,0.28);
}

.hero-socials{
    display:flex;
    gap:1rem;
}

.hero-socials a{
    width:52px;
    height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    color:#e8e6f0;
    transition:transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter:blur(18px);
}

.hero-socials a:hover{
    transform:translateY(-4px);
    background:rgba(147,111,210,0.2);
    border-color:rgba(147,111,210,0.35);
    color:#fff;
}

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

.visual-card{
    position:relative;
    width:min(280px,100%);
}

.visual-glow{
    display:none;
}

.profile-image{
    width:100%;
    border-radius:50%;
    overflow:hidden;
}

.profile-image img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
}

.visual-tags{
    display:flex;
    justify-content:center;
    gap:0.75rem;
    flex-wrap:wrap;
    margin-top:1.4rem;
}

.visual-tags span{
    display:inline-flex;
    align-items:center;
    gap:0.45rem;
    padding:0.75rem 1rem;
    border-radius:999px;
    background:rgba(140,109,177,0.12);
    color:#d6c6ff;
    font-size:0.94rem;
}

.section{
    padding:80px 0;
}

.section.alt{
    background:rgba(255,255,255,0.04);
    backdrop-filter:blur(18px);
}

.section-title{
    text-align:center;
    margin-bottom:50px;
    font-size:2.5rem;
    color:#c7b5ff;
}

.skills-grid,
.project-container,
.education-grid{
    display:grid;
    gap:1.75rem;
}

.skills-grid,
.education-grid{
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.skill-card,
.project-card,
.experience-card,
.education-card,
.writing-card,
.certificate-card{
    background:rgba(255,255,255,0.08);
    padding:2rem;
    border-radius:24px;
    border:1px solid rgba(255,255,255,0.12);
    transition:transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity:0;
    transform:translateY(24px);
    backdrop-filter:blur(18px);
}

.skill-card.visible,
.project-card.visible,
.experience-card.visible,
.education-card.visible,
.writing-card.visible,
.certificate-card.visible,
.hero-text.visible,
.hero-visual.visible,
.contact-panel.visible,
.contact-links.visible{
    opacity:1;
    transform:translateY(0);
}

.skill-card:hover,
.project-card:hover,
.experience-card:hover,
.education-card:hover,
.writing-card:hover,
.certificate-card:hover{
    transform:translateY(-8px);
    border-color:rgba(147,111,210,0.35);
    box-shadow:0 30px 60px rgba(0,0,0,0.32);
}

.certificate-header{
    display:flex;
    align-items:center;
    gap:0.9rem;
    margin-bottom:1rem;
}

.certificate-header img{
    width:72px;
    height:72px;
    object-fit:contain;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    padding:0.75rem;
    border:1px solid rgba(255,255,255,0.12);
}

.skill-card{
    text-align:center;
}

.skill-card i{
    font-size:2.3rem;
    margin-bottom:1rem;
    color:#8c6db1;
}

.project-container{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:2.5rem;
    margin-top:1.5rem;
}

.section-description{
    max-width:760px;
    margin:0 auto 1.5rem;
    color:#d9d4ff;
    line-height:1.8;
    text-align:center;
    font-size:1rem;
}

.project-card h3{
    margin-bottom:1rem;
    font-size:1.4rem;
}

.project-card p,
.experience-card p,
.education-card p,
.writing-card p{
    color:#e9ddff;
    line-height:1.8;
}

.tech-tags{
    margin:1.5rem 0;
    display:flex;
    flex-wrap:wrap;
    gap:0.75rem;
}

.tech-tags span{
    display:inline-block;
    padding:0.7rem 1rem;
    background:rgba(140,109,177,0.12);
    border-radius:999px;
    color:#d6c6ff;
    font-size:0.9rem;
}

.project-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    background:linear-gradient(135deg,#8c6db1,#b29ddf);
    color:#faf7ff;
    padding:0.95rem 1.5rem;
    border-radius:999px;
    font-weight:700;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.project-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 40px rgba(140,109,177,0.2);
}

.writing-card .project-btn{
    margin-top:1.5rem;
}

.project-meta{
    color:#b6a6da;
    font-size:0.95rem;
    margin-top:0.5rem;
}

.experience-card span{
    display:inline-block;
    margin-top:0.75rem;
    color:#7b629d;
    font-size:0.95rem;
}

footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1.5rem;
    opacity:0;
    transform:translateY(24px);
}

.contact-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:1rem;
}

.contact-panel{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1.5rem;
    opacity:0;
    transform:translateY(24px);
}

.contact-email{
    padding:14px 24px !important;
    display:inline-flex;
    align-items:center;
    gap:0.75rem;
    width:auto;
}

.contact-email i{
    font-size:1rem;
}

.contact-links a{
    width:72px;
    height:72px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    color:#e8e6f0;
    font-size:1.55rem;
    transition:transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border:1px solid rgba(255,255,255,0.12);
    backdrop-filter:blur(14px);
}

.contact-links a:hover{
    transform:translateY(-6px);
    background:rgba(147,111,210,0.18);
    border-color:rgba(147,111,210,0.4);
    color:#fff;
}

footer{
    text-align:center;
    padding:2.25rem 0;
    color:rgba(216,207,235,0.75);
    font-size:0.98rem;
}

.footer-email{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    color:rgba(216,207,235,0.85);
    font-size:0.95rem;
}

.footer-email a{
    color:inherit;
    text-decoration:none;
}

.footer-email i{
    font-size:0.95rem;
    color:#c7b5ff;
}

@media(max-width:960px){
    .hero{
        grid-template-columns:1fr;
        padding:82px 0 54px;
    }

    .hero-text,
    .hero-visual{
        width:100%;
    }

    nav ul{
        gap:18px;
    }
}

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

    .hero{
        gap:2rem;
        padding-top:100px;
    }

    .hero-title{
        font-size:3.2rem;
    }
}

@media(max-width:640px){
    .container{
        width:calc(100% - 2rem);
    }

    .hero-eyebrow{
        font-size:0.78rem;
    }

    .hero-subtitle{
        font-size:1.15rem;
    }

    .hero-chips{
        justify-content:center;
    }

    .project-card,
    .experience-card,
    .education-card,
    .writing-card{
        padding:1.6rem;
    }
}
