/* Palette:
   deep:  #885053
   accent: #FE5F55
   indigo: #777DA7
   mint:  #94C9A9
   pale:  #C6ECAE
*/

:root {
    --color-deep: #885053;
    --color-accent: #FE5F55;
    --color-indigo: #777DA7;
    --color-mint: #94C9A9;
    --color-pale: #C6ECAE;
    --bg: #FBFBFC;
    --text: #222431;
    --muted: #6b6f7a;
    --glass: rgba(255, 255, 255, 0.6);
    --radius: 12px;
}

*,
:where(*::before, *::after) {
    box-sizing: border-box
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #FBFDFB 0%, #EEF9F0 50%, #E6F4EA 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    -webkit-font-feature-settings: "kern" 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-family: monospace;
}

/* support plain header h1 (your HTML uses <header><h1>) */
header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-deep);
    letter-spacing: 0.4px;
}

header h1 span {
    color: var(--color-accent)
}

/* support plain nav elements (your pages use <nav> without classes) */
header nav,
nav {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: all .18s
}

nav a:hover {
    color: var(--color-deep);
    background: var(--glass)
}

/* header inner layout + avatar */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--color-pale);
    box-shadow: 0 6px 18px rgba(136, 80, 83, 0.08)
}

header h1 .small {
    display: inline-block;
    margin-left: .45rem;
    font-weight: 600;
    color: var(--muted);
    font-size: .88rem
}

/* mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: .4rem .6rem;
    border-radius: 8px;
    color: var(--color-deep);
    cursor: pointer
}

.menu-toggle:focus {
    outline: 2px solid rgba(120, 80, 80, 0.18)
}

/* active link */
nav a.active {
    color: var(--color-accent);
    font-weight: 700;
    position: relative
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-mint));
    border-radius: 3px
}

/*animations */
@keyframes floaty {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }

    100% {
        transform: translateY(0)
    }
}

/* fade in utility*/
.fade-in {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp .6s ease forwards
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none
    }
}

/* responsive tweaks for nav */
@media (max-width:680px) {
    .menu-toggle {
        display: inline-block
    }

    header nav {
        display: none
    }

    header nav.open {
        display: flex;
        flex-direction: column;
        gap: .6rem;
        margin-top: .8rem
    }

    header {
        padding: .7rem 0
    }

    .avatar {
        width: 40px;
        height: 40px
    }
}

/* preserved utility classes for future use */
.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-deep);
    letter-spacing: 0.4px
}

.logo span {
    color: var(--color-accent)
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    transition: all .18s
}

.nav a:hover {
    color: var(--color-deep);
    background: var(--glass)
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3.2rem 0
}

.hero-left {
    flex: 1
}

.hero-heading {
    font-size: clamp(1.6rem, 3.6vw, 3.6rem);
    margin: 0 0 .5rem;
    color: var(--color-deep);
    line-height: 1.05
}

.hero-heading .accent-text {
    color: var(--color-accent);
    display: inline-block;
    margin-left: .15rem;
    text-shadow: 0 6px 20px rgba(254, 95, 85, 0.06)
}

.hero-sub {
    color: var(--muted);
    margin: 0 0 1.25rem
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600
}

.btn-primary {
    background: #FE5F55;
    color: white;
    box-shadow: 0 10px 30px rgba(136, 80, 83, 0.12);
    border: 1px solid rgba(255, 95, 85, 0.08)
}

.btn-ghost {
    background: transparent;
    color: var(--color-deep);
    border: 1px solid rgba(136, 80, 83, 0.08)
}

.hero-right {
    flex: 0 0 340px;
    display: grid;
    place-items: center
}

.hero-card {
    width: 100%;
    background: linear-gradient(180deg, var(--color-pale), rgba(255, 255, 255, 0.9));
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(23, 23, 28, 0.06);
    border: 1px solid rgba(117, 125, 167, 0.06);
    text-align: left
}

.hero-card img {
    display: block;
    margin-bottom: .6rem
}

/* decorative accent behind hero */
.hero-accent {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    opacity: .06;
    background: radial-gradient(circle at 10% 30%, var(--color-mint) 0%, transparent 12%), radial-gradient(circle at 90% 70%, var(--color-indigo) 0%, transparent 15%);
    border-radius: 18px;
}

/* make hero visually pop on page */
.hero-wrap {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 243, 242, 0.7) 0%, rgba(255, 255, 255, 0.6) 100%);
    padding: 2rem;
    border-radius: 18px
}

/* Projects grid */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.25rem 0 1rem
}

.section-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-deep)
}

.section-sub {
    color: var(--muted);
    font-size: .95rem
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 1rem
}

.project-card {
    background: linear-gradient(180deg, #ffffff, #fbfeff);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(34, 36, 49, 0.04);
    box-shadow: 0 6px 22px rgba(20, 24, 40, 0.04);
    transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s ease
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(20, 24, 40, 0.12)
}

.project-media {
    width: 100%;
    height: 160px;
    display: block;
    object-fit: cover;
    background: linear-gradient(180deg, var(--color-pale), var(--color-mint))
}

.project-body {
    padding: 1rem
}

.project-card h4 {
    margin: .2rem 0 .45rem;
    font-size: 1.05rem
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem
}

.project-links {
    display: flex;
    gap: .5rem;
    margin-top: .85rem;
    align-items: center
}

.project-links a {
    font-weight: 600;
    color: var(--color-deep);
    text-decoration: none;
    padding: .4rem .55rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(34, 36, 49, 0.04)
}

.project-links a:hover {
    background: linear-gradient(90deg, var(--color-pale), var(--color-mint));
    border-color: transparent
}

.tag {
    background: linear-gradient(90deg, var(--color-pale), var(--color-mint));
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .8rem;
    color: var(--color-deep)
}

/* empty-state image support */
.project-media:empty {
    display: grid;
    place-items: center;
    color: rgba(34, 36, 49, 0.1);
    font-weight: 700
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.2rem;
    align-items: start;
    margin-top: 1.6rem
}

.bio {
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(136, 80, 83, 0.04);
    box-shadow: 0 6px 18px rgba(20, 24, 40, 0.04)
}

.skills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.skill {
    background: var(--color-mint);
    color: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .45rem .7rem;
    border-radius: 8px;
}

.skill img {
    width: 1.25em;
    height: 1.25em;

    display: block;
    object-fit: contain;
}

/* Contact */
.contact-card {
    background: linear-gradient(180deg, #fff, #fcfff7);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 201, 169, 0.12)
}

form {
    display: grid;
    gap: .6rem
}

input,
textarea,
button {
    font: inherit
}

input,
textarea {
    padding: .6rem .75rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 36, 49, 0.08);
    background: white
}

textarea {
    min-height: 110px;
    resize: vertical
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    color: var(--muted);
    border-top: 1px solid rgba(34, 36, 49, 0.04);
    margin-top: 2.5rem
}

/* Utilities */
.center {
    text-align: center
}

.muted {
    color: var(--muted)
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(6px)
}

/* Responsive */
@media (max-width:900px) {
    .about {
        grid-template-columns: 1fr
    }

    .hero {
        flex-direction: column;
        text-align: center
    }

    .hero-right {
        order: -1
    }
}

@media (max-width:520px) {
    .container {
        padding: 1.2rem
    }

    .nav {
        display: none
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* End of stylesheet */