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

:root {
    --bg: #FDF7F4;
    --surface: #FFF0F5;
    --surface2: #F5EEF8;
    --rose: #E8A0B4;
    --rose-deep: #C9728E;
    --lavender: #C3A8D1;
    --lav-deep: #9B7BB5;
    --peach: #F4B9A0;
    --peach-deep: #D9836A;
    --mint: #A8D5C2;
    --text: #3D2C35;
    --muted: #8C6E7B;
    --line: rgba(200, 160, 177, 0.25);
    --white: #FFFAFB;

    --section-pad-x: 4rem;
    --section-pad-y: 6rem;
    --nav-pad-x: 4rem;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    cursor: auto;
    min-width: 320px;
}

img, video, svg {
    max-width: 100%;
    display: block;
}


.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--rose-deep);
    color: #fff;
    padding: 8px 16px;
    z-index: 200;
    transition: top 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }


nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--nav-pad-x);
    background: rgba(253, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rose-deep);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--rose-deep); }

.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 1.3rem;
    color: var(--rose-deep);
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.nav-toggle:hover {
    background: var(--surface);
    border-color: var(--rose);
}


.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.hero-bg-circle.c1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}
.hero-bg-circle.c2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(195, 168, 209, 0.2) 0%, transparent 70%);
    bottom: 0;
    left: 200px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 5rem var(--section-pad-x);
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.hero-greeting::before {
    content: '✦';
    font-size: 0.6rem;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 0.5rem;
}
.hero-name span {
    color: var(--rose-deep);
    font-style: italic;
}

.hero-role {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--lav-deep);
    margin-bottom: 1.75rem;
}

.hero-desc {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--rose-deep), var(--lav-deep));
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(201, 114, 142, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 114, 142, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--rose-deep);
    border: 1.5px solid var(--rose);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.btn-outline:hover {
    background: var(--rose);
    color: #fff;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 2rem 0;
}

.hero-card {
    width: min(310px, 90%);
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--line);
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(200, 160, 177, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--rose), var(--lavender), var(--peach));
    border-radius: 0 0 4px 4px;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--lavender));
    padding: 3px;
    flex-shrink: 0;
}
.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-letters {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--rose-deep);
}

.hero-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.hero-card-role {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.badge-rose { background: #FDE8EF; color: var(--rose-deep); }
.badge-lav  { background: #EDE5F5; color: var(--lav-deep); }
.badge-peach{ background: #FDEEE8; color: var(--peach-deep); }
.badge-mint { background: #E3F5EE; color: #3D8E6E; }

.hero-card-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
}

.hero-card-stat {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.hcs-item { text-align: center; }
.hcs-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rose-deep);
}
.hcs-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}
.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
    animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}


section {
    padding: var(--section-pad-y) var(--section-pad-x);
}

.sec-label {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose-deep);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sec-label::before {
    content: '✦';
    font-size: 0.55rem;
}

.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.sec-title em {
    font-style: italic;
    color: var(--rose-deep);
}


.about { background: var(--surface); }

.about-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

.about-body {
    font-size: 0.92rem;
    line-height: 2;
    color: var(--muted);
}
.about-body p + p { margin-top: 1.2rem; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-pill {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(200, 160, 177, 0.08);
}
.stat-pill-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--rose-deep);
    line-height: 1;
}
.stat-pill-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    font-weight: 500;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 16px rgba(200, 160, 177, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(200, 160, 177, 0.15);
}

.about-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ic-rose  { background: #FDE8EF; }
.ic-lav   { background: #EDE5F5; }
.ic-mint  { background: #E3F5EE; }

.about-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.about-card-body {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
}


.skills-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.skill-group {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 16px rgba(200, 160, 177, 0.07);
}

.skill-group-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.skill-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-rose  { background: var(--rose-deep); }
.dot-lav   { background: var(--lav-deep); }
.dot-peach { background: var(--peach-deep); }
.dot-mint  { background: #3D8E6E; }

.skill-group-title-text {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.skill-tag {
    font-size: 0.76rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg);
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}
.skill-tag:hover {
    background: var(--rose-deep);
    color: #fff;
    border-color: var(--rose-deep);
    transform: scale(1.04);
}


.projects { background: var(--surface2); }

.projects-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.proj-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(195, 168, 209, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(195, 168, 209, 0.2);
}

.proj-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.proj-emoji { font-size: 1.8rem; line-height: 1; }
.proj-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--lavender);
    opacity: 0.35;
    line-height: 1;
}

.proj-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.proj-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.proj-tech {
    font-size: 0.68rem;
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.proj-link {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose-deep);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
    margin-top: auto;
}
.proj-link:hover { gap: 0.7rem; }
.proj-link::after { content: '→'; }


.edu-inner {
    max-width: 780px;
    margin: 0 auto;
}

.edu-timeline {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
.edu-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--rose), var(--lavender), var(--mint));
}

.edu-item {
    padding: 0 0 2.5rem 3.5rem;
    position: relative;
}
.edu-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(200, 160, 177, 0.2);
}
.edu-year {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rose-deep);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.edu-degree {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}


.contact { background: var(--surface); }

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 2.5rem;
    align-items: start;
}

.contact-body {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.c-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.25s;
    box-shadow: 0 2px 10px rgba(200, 160, 177, 0.07);
}
.c-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(200, 160, 177, 0.18);
    border-color: var(--rose);
}
.c-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.c-link-text { flex: 1; }
.c-link-arrow { color: var(--rose); font-size: 0.9rem; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(220, 195, 210, 0.55);
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 18px 60px rgba(200, 160, 177, 0.1);
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.f-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.f-input,
.f-textarea {
    width: 100%;
    min-width: 0;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    padding: 0.95rem 1.1rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}
.f-input:focus,
.f-textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(232, 160, 180, 0.15);
    transform: translateY(-1px);
}

.btn-send {
    background: linear-gradient(135deg, var(--rose-deep), var(--lav-deep));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.95rem 2rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    align-self: flex-start;
    min-width: 170px;
    box-shadow: 0 4px 18px rgba(201, 114, 142, 0.3);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 114, 142, 0.4);
}
.btn-send:disabled { opacity: 0.8; cursor: not-allowed; }
.btn-send.success  { background: #3D8E6E; }

.contact-status {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    color: var(--rose-deep);
    min-height: 1.25rem;
}
.contact-status.success { color: #3D8E6E; }
.contact-status.error   { color: #D05A6C; }


footer {
    background: var(--text);
    color: rgba(255, 250, 251, 0.5);
    text-align: center;
    padding: 1.5rem var(--section-pad-x);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}
footer span { color: var(--rose); }


.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (min-width: 1400px) {
    :root {
        --section-pad-x: 6rem;
        --nav-pad-x: 6rem;
    }
    .hero-text { padding-left: var(--section-pad-x); }
    .about-grid { gap: 6rem; }
    .contact-grid { gap: 6rem; }
}


@media (max-width: 1099px) {
    :root {
        --section-pad-x: 3rem;
        --nav-pad-x: 3rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 3rem;
    }
    .hero-text {
        padding: 5rem var(--section-pad-x) 2rem;
        align-items: flex-start;
    }
    .hero-visual {
        justify-content: center;
        padding: 0 var(--section-pad-x) 2rem;
    }
    .hero-card {
        width: min(360px, 100%);
    }
    .scroll-hint { display: none; }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-form { max-width: 100%; }
}


@media (max-width: 899px) {
    :root {
        --section-pad-x: 2rem;
        --section-pad-y: 4rem;
        --nav-pad-x: 1.5rem;
    }

    /* Nav: hamburger */
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 250, 251, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        padding: 1.5rem 2rem;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }
    .nav-links.active { display: flex; }
    .nav-links li {
        border-bottom: 1px solid var(--line);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 0.9rem 0;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero { padding-top: 64px; }
    .hero-text { padding: 3.5rem var(--section-pad-x) 2rem; }
    .hero-desc { max-width: 100%; }
    .hero-visual { display: none; }

    /* Buttons full on small tablet */
    .hero-btns { gap: 0.75rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-cards { margin-top: 0; }

    /* Skills grid 2 col */
    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    /* Projects grid */
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form { max-width: 100%; }
}


@media (max-width: 599px) {
    :root {
        --section-pad-x: 1.5rem;
        --section-pad-y: 3.5rem;
        --nav-pad-x: 1.25rem;
    }

    /* Nav */
    .nav-logo { font-size: 1.15rem; }

    /* Hero */
    .hero { min-height: 100svh; padding-top: 60px; }
    .hero-text { padding: 3rem var(--section-pad-x) 2rem; }
    .hero-name {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }
    .hero-role { font-size: clamp(1rem, 4.5vw, 1.3rem); }
    .hero-desc { font-size: 0.88rem; margin-bottom: 2rem; }
    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
    }
    .hero-btns { flex-direction: column; gap: 0.75rem; }

    /* Section titles */
    .sec-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

    /* About stats 2 col */
    .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-pill { padding: 1rem 0.75rem; }
    .stat-pill-num { font-size: 1.6rem; }

    /* About card layout — stack icon above text if very narrow */
    .about-card { padding: 1.25rem; gap: 0.75rem; }

    /* Skills single col */
    .skills-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Projects single col */
    .projects-grid { grid-template-columns: 1fr; }

    /* Education */
    .edu-timeline::before { left: 14px; }
    .edu-item { padding-left: 3rem; }
    .edu-dot { width: 30px; height: 30px; font-size: 0.85rem; }
    .edu-degree { font-size: 1.1rem; }

    /* Contact */
    .contact-links { gap: 0.7rem; }
    .c-link { padding: 0.85rem 1rem; font-size: 0.82rem; }
    .contact-form { padding: 1.5rem 1.25rem; border-radius: 20px; }
    .btn-send {
        width: 100%;
        align-self: stretch;
        padding: 1rem 1.5rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem var(--section-pad-x);
        font-size: 0.68rem;
    }
}


@media (max-width: 479px) {
    :root {
        --section-pad-x: 1.1rem;
        --section-pad-y: 3rem;
        --nav-pad-x: 1rem;
    }

    /* Nav */
    .nav-logo { font-size: 1.05rem; }
    .nav-links { padding: 1rem 1.25rem; }
    .nav-links a { font-size: 0.82rem; padding: 0.8rem 0; }

    /* Hero */
    .hero-text { padding: 2.5rem var(--section-pad-x) 1.5rem; }
    .hero-greeting { font-size: 0.72rem; }
    .hero-name { font-size: clamp(2rem, 11vw, 2.6rem); }
    .hero-role { font-size: clamp(0.95rem, 4vw, 1.15rem); margin-bottom: 1.25rem; }
    .hero-desc { font-size: 0.84rem; margin-bottom: 1.75rem; line-height: 1.8; }

    /* Section titles */
    .sec-title { font-size: clamp(1.45rem, 7.5vw, 2rem); }
    .sec-label { font-size: 0.65rem; }

    /* About stats squeeze */
    .about-stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .stat-pill { padding: 0.85rem 0.6rem; border-radius: 12px; }
    .stat-pill-num { font-size: 1.4rem; }
    .stat-pill-label { font-size: 0.62rem; }

    /* About card on very small screen */
    .about-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.75rem;
    }
    .about-card-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
    .about-card-title { font-size: 0.88rem; }
    .about-card-body { font-size: 0.75rem; }

    /* Skills */
    .skill-group { padding: 1.25rem; }
    .skill-tag { font-size: 0.72rem; padding: 0.3rem 0.72rem; }

    /* Projects */
    .proj-card { padding: 1.4rem; }
    .proj-title { font-size: 1.1rem; }
    .proj-desc { font-size: 0.8rem; }
    .proj-num { font-size: 2rem; }

    /* Education */
    .edu-item { padding-left: 2.75rem; padding-bottom: 2rem; }
    .edu-degree { font-size: 1rem; }

    /* Contact form */
    .contact-form { padding: 1.25rem 1rem; border-radius: 16px; }
    .f-input, .f-textarea {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    /* Footer */
    footer { font-size: 0.64rem; letter-spacing: 0.05em; }
}


@media (max-width: 359px) {
    :root {
        --section-pad-x: 0.9rem;
        --section-pad-y: 2.5rem;
        --nav-pad-x: 0.9rem;
    }

    .hero-name { font-size: clamp(1.8rem, 12vw, 2.4rem); }
    .sec-title { font-size: 1.4rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }

    /* Skill tags compact */
    .skill-tags { gap: 0.35rem; }
    .skill-tag { font-size: 0.68rem; padding: 0.28rem 0.6rem; }

    /* Hero card stats tighter */
    .hcs-num { font-size: 1.2rem; }
    .hcs-label { font-size: 0.58rem; }
}


@supports (height: 100dvh) {
    .hero { min-height: 100dvh; }
}


@media (hover: none) and (pointer: coarse) {
    .about-card:hover,
    .proj-card:hover,
    .btn-primary:hover,
    .btn-outline:hover,
    .btn-send:hover,
    .c-link:hover,
    .skill-tag:hover,
    .proj-link:hover {
        transform: none;
    }
    .skill-tag:hover {
        background: var(--bg);
        color: var(--muted);
        border-color: var(--line);
    }
    .c-link:hover {
        box-shadow: 0 2px 10px rgba(200, 160, 177, 0.07);
        border-color: var(--line);
    }
}


@media print {
    nav, .scroll-hint, .hero-visual, .hero-btns { display: none; }
    body { background: #fff; color: #000; }
    section { padding: 2rem 1rem; page-break-inside: avoid; }
    .hero { min-height: auto; padding-top: 0; display: block; }
    .fade-in { opacity: 1; transform: none; }
    .contact-form { box-shadow: none; border: 1px solid #ccc; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.7rem; color: #555; }
    a.btn-primary::after,
    a.btn-outline::after,
    .proj-link::after,
    .c-link::after,
    .nav-logo::after { content: none; }
}