:root {
    --bg: #0f172a;
    --surface: #111827;
    --muted: #cbd5e1;
    --text: #e5e7eb;
    --accent: #38bdf8;
    --card: #1f2937;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), #060b1b 60%);
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #000;
    padding: .5rem 1rem
}

/*Header and Navigation*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid #1f2937;
}

.nav__toggle {
    display: none;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
}

.logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-size: 1.25rem;
}

.logo span {
    color: var(--accent);
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav__links a {
    text-decoration: none;
    color: var(--muted);
    padding: .4rem .6rem;
    border-radius: .5rem;
    transition: background-color .2s color .2s;
}

.nav__links a:hover {
    background: var(--card);
    color: var(--text);
}

.nav__toggle {
    display: none;
    border: 1px solid #2c3244;
    background: var(--card);
    color: var(--text);
    padding: .4rem .6rem;
    border-radius: .5rem;
}

/*Person Section*/
.person {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 2rem;
    padding: 4.5rem 0 0;
}

.person__text h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin: .2rem 0 .5rem;
}

.tagline {
    color: var(--muted);
}

.accent {
    color: var(--accent);
}

.cta {
    display: flex;
    gap: .8rem;
    margin-top: 1rem;
}

.person__img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.person__img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    transition: transform .4s ease, box-shadow .4s ease;
}

.person__img::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
    z-index: -1;
    filter: blur(20px);
    opacity: .45;
    animation: glowPulse 4s infinite alternate;
}

.person__img img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        filter: blur(14px);
    }

    100% {
        opacity: 0.6;
        filter: blur(26px);
    }
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid #2c3244;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn img {
    width: 20px;
    height: 20px;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    background: var(--accent);
}

.icon-btn:hover img {
    filter: brightness(0) invert(100);
}

/*Bubbles*/

.bubble {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
    opacity: .65;
    animation: float 6s ease-in-out infinite;
}

.bubble--one {
    width: 25px;
    height: 25px;
    top: 80%;
    right: -18px;
    animation-delay: 0s;
}

.bubble--two {
    width: 16px;
    height: 16px;
    bottom: 8%;
    left: -18px;
    animation-delay: 1.2s;
}

.bubble--three {
    width: 18px;
    height: 18px;
    top: 52%;
    left: -22px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    border: 1px solid #2c3244;
    background: var(--accent);
    color: #001018;
    padding: .6rem 1rem;
    border-radius: .6rem;
    text-decoration: none;
    display: inline-block;
    transition: transform .15s ease, box-shadow .15s ease
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25)
}

.btn--ghost {
    background: transparent;
    color: var(--text)
}

.btn--small {
    padding: .45rem .75rem;
    font-size: .9rem
}

/* Wave divider */
.wave svg {
    display: block;
    width: 100%;
    height: 80px
}

.wave path {
    fill: #0d1832
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem
}

.card {
    background: var(--card);
    border: 1px solid #2c3244;
    border-radius: 15px;
    padding: 1rem;
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/*Projects Section*/
.projects__grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, 1fr);
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #2c3244;
}

.project .techLabel {
    color: var(--muted);
}

/*Skills*/
.skills__grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, 1fr);
}


/* Form */
.form {
    max-width: 640px
}

.form__row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem
}



input,
select,
textarea {
    padding: .6rem;
    border-radius: .6rem;
    border: 1px solid #2c3244;
    background: #0b1226;
    color: var(--text)
}

.form__note {
    color: var(--muted);
    font-size: .95rem
}

/* Footer */
.site-footer {
    margin-top: 2.5rem;
    border-top: 1px solid #1f2937;
    background: #0a1327
}

.footer__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0
}

.socials {
    list-style: none;
    display: flex;
    gap: .8rem;
    margin: 0;
    padding: 0
}

.socials a {
    color: var(--muted);
    text-decoration: none
}

.socials a:hover {
    color: var(--text)
}

/* Responsive */
@media (max-width: 900px) {
    .person {
        grid-template-columns: 1fr;
        place-items: center;
        text-align: center;
        padding-top: 2.5rem;
    }

    .cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: .6rem;
    }

    .about__grid {
        grid-template-columns: 1fr
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 640px) {
    .nav {
        position: relative;
        z-index: 20;
    }

    /* keep menu above hero */
    .nav__toggle {
        display: inline-flex;
    }

    /* show button on mobile */

    .nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 56px;
        /* below header */
        display: none;
        /* hidden by default */
        flex-direction: column;
        gap: .4rem;
        padding: .8rem;
        background: #0b1226;
        border-bottom: 1px solid #1f2937;
        width: 100%;
    }

    .nav__links.open {
        display: flex;
    }

    /* shown when toggled */

    .projects__grid {
        grid-template-columns: 1fr
    }

    .skills__grid {
        grid-template-columns: 1fr
    }

}