:root {
    --bg: radial-gradient(circle at top left, #fef3ff 0, #faf5ff 40%, #f9fafb 100%);
    --surface: #ffffff;
    --surface-soft: #f7f0ff;
    --primary: #a855f7;
    --primary-soft: rgba(168, 85, 247, 0.12);
    --accent: #ec4899;
    --text: #1f2933;
    --text-soft: #6b7280;
    --border-subtle: rgba(148, 163, 184, 0.3);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --nav-height: 72px;
}

:root[data-theme="dark"] {
    --bg: radial-gradient(circle at top left, #0f172a 0, #1e293b 40%, #0f172a 100%);
    --surface: #1e293b;
    --surface-soft: #1e293b;
    --primary: #a855f7;
    --primary-soft: rgba(168, 85, 247, 0.2);
    --accent: #ec4899;
    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
}

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

body {
    margin: 0;
    font-family: "Spline Sans", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

main {
    padding-top: var(--nav-height);
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 120;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom,
            rgba(250, 245, 255, 0.95),
            rgba(250, 245, 255, 0.7),
            transparent);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="dark"] .site-header {
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.95),
            rgba(30, 41, 59, 0.85),
            transparent);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-height);
    position: relative;
}

@media (max-width: 720px) {
    .header-inner {
        justify-content: flex-start;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

@media (max-width: 720px) {
    .nav {
        position: static;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0.75rem;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="dark"] .nav-links {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
    background: rgba(248, 250, 252, 0.95);
    color: var(--text);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .nav-links a:hover {
    background: rgba(51, 65, 85, 0.9);
    color: var(--text);
}

.btn-link {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fefefe !important;
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}

.btn-link:hover {
    background: linear-gradient(135deg, #fb923c, #f472b6);
}

.theme-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.theme-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.theme-icon::before {
    content: "☀️";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

:root[data-theme="dark"] .theme-toggle {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .theme-icon::before {
    content: "🌙";
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 100;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 1);
    /* transform: scale(1.05); */
    transform: translateY(-50%) scale(1.05);
}

:root[data-theme="dark"] .nav-toggle {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.9);
}

:root[data-theme="dark"] .nav-toggle:hover {
    background: rgba(51, 65, 85, 0.95);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
}

.nav-toggle span:first-child {
    margin-top: -6px;
}

.nav-toggle span:last-child {
    margin-top: 6px;
}

.nav-open .nav-toggle span:first-child {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    margin-top: 0;
}

.nav-open .nav-toggle span:last-child {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    margin-top: 0;
}

.nav-open .nav-links {
    display: flex;
}

.hero {
    padding: 4.5rem 0 3.75rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.75rem;
    align-items: center;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    letter-spacing: -0.03em;
}

.hero-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
}

h1 {
    font-size: clamp(2.3rem, 3.1vw, 3.1rem);
    line-height: 1.05;
    margin: 0 0 1.1rem;
}

h2 {
    font-size: 1.7rem;
    margin: 0 0 0.6rem;
}

h3 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
}

.accent {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 38rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.16s ease,
        background 0.16s ease, border-color 0.16s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fdfcff;
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(129, 140, 248, 0.45);
}

.btn.secondary {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text);
}

.btn.secondary:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(226, 232, 240, 0.9);
    color: var(--text-soft);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--text);
}

:root[data-theme="dark"] .btn.secondary {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--text);
}

:root[data-theme="dark"] .btn.secondary:hover {
    background: rgba(51, 65, 85, 0.9);
}

:root[data-theme="dark"] .btn.ghost {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--text-soft);
}

:root[data-theme="dark"] .btn.ghost:hover {
    background: rgba(51, 65, 85, 0.9);
    color: var(--text);
}

.btn.full-width {
    width: 100%;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.hero-meta span {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(209, 213, 219, 0.9);
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="dark"] .hero-meta span {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
}

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

.portrait-card {
    position: relative;
    padding: 1.8rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, #fefce8, #fdf2ff 55%, #e0f2fe);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-soft);
    max-width: 340px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="dark"] .portrait-card {
    background: radial-gradient(circle at top left, #1e293b, #0f172a 55%, #1e293b);
    border-color: rgba(51, 65, 85, 0.6);
}

.portrait-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-inline: auto;
    background: conic-gradient(from 180deg,
            rgba(168, 85, 247, 0.2),
            rgba(236, 72, 153, 0.3),
            rgba(45, 212, 191, 0.25),
            rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
}

.portrait-placeholder {
    display: none;
}

.portrait-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}


.section {
    padding: 3.75rem 0;
}

.section-inner {
    border-radius: 32px;
    padding: 2.4rem 2.1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .section-inner {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: var(--shadow-soft);
}

.section.soft-panel .section-inner {
    background: radial-gradient(circle at top left, #fef9c3, #fdf2ff 50%, #e0f2fe);
}

:root[data-theme="dark"] .section.soft-panel .section-inner {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.6);
}

.section-header {
    max-width: 620px;
    margin-bottom: 1.8rem;
}

.section-header p {
    margin: 0;
    color: var(--text-soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

p {
    margin: 0 0 0.9rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fafb, #fef9ff);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .about-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.card {
    border-radius: 22px;
    padding: 1.35rem 1.3rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: var(--shadow-soft);
}

.card-tag {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    background: linear-gradient(135deg, #f97316, #ec4899);
    border: none;
    color: #ffffff;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

:root[data-theme="dark"] .card-tag {
    background: linear-gradient(135deg, #fb923c, #f472b6);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}

.project-card p {
    font-size: 0.9rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    list-style: none;
    margin: 0.7rem 0 0.9rem;
}

.pill-list li {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--text-soft);
}

:root[data-theme="dark"] .pill-list li {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--text-soft);
}

.card-links {
    display: flex;
    gap: 0.8rem;
    font-size: 0.86rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--primary);
    position: relative;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.3);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.16s ease;
}

.text-link:hover::after {
    transform: scaleX(1);
}

.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.skills-column {
    padding: 1.15rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fafb, #f3e8ff);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .skills-column {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

.skills-column .pill-list {
    margin-top: 0.5rem;
}

.resume-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 2.4rem;
    align-items: center;
}

.resume-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
}

.resume-card {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .resume-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

.resume-main {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.resume-meta {
    font-size: 0.88rem;
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.contact-list li {
    display: grid;
    gap: 0.1rem;
}

.contact-form {
    padding: 1.25rem 1.2rem 1.3rem;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .contact-form {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field textarea {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--text);
}

:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field textarea:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(168, 85, 247, 0.6);
}

.field {
    margin-bottom: 0.85rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
}

.field input,
.field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 0.6rem 0.8rem;
    font: inherit;
    resize: vertical;
    background: #ffffff;
    transition: border-color 0.14s ease, box-shadow 0.14s ease,
        background 0.14s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.18);
    background: #ffffff;
}

.form-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.site-footer {
    padding: 1.6rem 0 2.2rem;
}

.footer-inner {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.footer-small {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.85rem;
    color: var(--text-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease,
        background 0.16s ease, border-color 0.16s ease;
}

.social-pill:hover {
    transform: translateY(-1px);
    background: #f9fafb;
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.social-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-linkedin {
    color: #2563eb;
}

.social-instagram {
    color: #db2777;
}

.social-github {
    color: #111827;
}

:root[data-theme="dark"] .social-pill {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.6);
}

:root[data-theme="dark"] .social-pill:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(168, 85, 247, 0.6);
}

:root[data-theme="dark"] .social-github {
    color: #e5e7eb;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        justify-content: center;
        order: -1;
    }

    .section-inner {
        padding-inline: 1.6rem;
    }

    .split,
    .resume-inner,
    .contact-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 130;
    }

    .nav-open .nav-toggle {
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: stretch;
        /* padding: calc(var(--nav-height) + 1rem) 1.5rem 1.75rem; */
        padding: calc(var(--nav-height) + 0rem) 1.8rem 0.1rem;
        width: 100%;
        display: none;
        background: radial-gradient(circle at top,
                rgba(250, 245, 255, 0.98),
                rgba(248, 250, 252, 0.98));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
        z-index: 110;
        gap: 0.5rem;
    }

    :root[data-theme="dark"] .nav-links {
        background: radial-gradient(circle at top,
                rgba(15, 23, 42, 0.98),
                rgba(15, 23, 42, 0.98));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(51, 65, 85, 0.6);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.85rem 1.1rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(226, 232, 240, 0.5);
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    }

    :root[data-theme="dark"] .nav-links a {
        background: rgba(30, 41, 59, 0.6);
        border-color: rgba(51, 65, 85, 0.5);
    }

    :root[data-theme="dark"] .nav-links a:hover {
        background: rgba(51, 65, 85, 0.8);
    }

    .nav-links .btn-link {
        background: linear-gradient(135deg, #f97316, #ec4899);
        color: #ffffff !important;
        border: none;
    }

    .nav-links .btn-link:hover {
        background: linear-gradient(135deg, #fb923c, #f472b6);
        transform: translateX(4px);
    }

    .hero {
        padding-top: 3.5rem;
    }

    .theme-toggle {
        right: 0;
        position: absolute;
    }

    .section {
        padding-block: 3rem;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skills-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.8rem, 100%);
    }

    .section-inner {
        padding-inline: 1.3rem;
    }

    h1 {
        font-size: 2rem;
    }

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