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

:root {

    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --violet-500: #8b5cf6;
    --violet-400: #c4b5fd;
    --emerald-500: #10b981;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --violet-600: #7c3aed;
    --emerald-600: #059669;

    --bg-app: #020617;
    --bg-section: #020617;
    --bg-surface: #1c274f;
    --bg-elevated: #212d58;
    --bg-input: #212d58;

    --text-primary: #ffffff;
    --text-secondary: #a5b4cb;
    --text-muted: #7d8a9e;
    --text-accent: #818cf8;

    --heading-primary: #ffffff;
    --heading-accent-bg: linear-gradient(90deg, var(--indigo-500), var(--violet-500));

    --border-subtle: rgba(255, 255, 255, 0.10);
    --border-light: rgba(255, 255, 255, 0.14);

    --shadow-card: 0 4px 36px rgba(0, 0, 0, 0.70), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-card-hover: 0 12px 56px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-topbar: 0 2px 8px rgba(0, 0, 0, 0.50);

    --topbar-bg: rgba(2, 6, 23, 0.90);
    --topbar-text: var(--white);
    --topbar-text-secondary: rgba(255, 255, 255, 0.72);
    --topbar-divider: rgba(255, 255, 255, 0.10);

    --drawer-bg: #020617;
    --drawer-item-color: #a5b4cb;
    --drawer-item-hover-bg: rgba(255, 255, 255, 0.05);
    --drawer-item-hover-color: var(--white);
    --drawer-item-active-bg: rgba(99, 102, 241, 0.15);
    --drawer-item-active-color: var(--indigo-400);
    --drawer-priv-color: #94a3b8;
    --drawer-priv-hover: #cbd5e1;
    --drawer-available-color: var(--emerald-500);

    --hero-gradient: linear-gradient(165deg, #010309 0%, #020617 40%, #081228 70%, #020617 100%);
    --hero-glow-bg: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    --hero-grid-color: rgba(255, 255, 255, 0.03);
    --hero-text-primary: var(--white);
    --hero-text-secondary: #a5b4cb;
    --hero-text-muted: #7d8a9e;
    --hero-social-color: rgba(255, 255, 255, 0.38);
    --hero-social-border: rgba(255, 255, 255, 0.10);
    --hero-social-hover-bg: rgba(99, 102, 241, 0.12);
    --hero-social-hover-border: rgba(99, 102, 241, 0.30);
    --hero-social-hover-color: var(--indigo-400);

    --btn-secondary-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-border: rgba(255, 255, 255, 0.15);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.14);
    --btn-secondary-hover-border: rgba(255, 255, 255, 0.25);
    --btn-soon-bg: rgba(255, 255, 255, 0.06);
    --btn-soon-color: #64748b;

    --skill-icon-bg: rgba(255, 255, 255, 0.08);
    --skill-item-color: #e2e8f0;

    --prev-line-bg: rgba(255, 255, 255, 0.10);
    --placeholder-bg: rgba(255, 255, 255, 0.08);
    --placeholder-color: #7d8a9e;

    --form-label: #a5b4cb;
    --form-input-bg: #212d58;
    --form-input-text: #f1f5f9;
    --form-input-border: rgba(255, 255, 255, 0.12);
    --form-input-focus-border: var(--indigo-500);
    --form-input-focus-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    --form-input-error-border: #ef4444;

    --feedback-success-bg: rgba(16, 185, 129, 0.12);
    --feedback-success-text: #34d399;
    --feedback-success-border: rgba(16, 185, 129, 0.25);
    --feedback-error-bg: rgba(239, 68, 68, 0.12);
    --feedback-error-text: #f87171;
    --feedback-error-border: rgba(239, 68, 68, 0.25);

    --footer-bg: #01040a;
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-text: #94a3b8;
    --footer-text-hover: #f1f5f9;
    --footer-logo-color: var(--white);
    --footer-col-title: #a5b4cb;
    --footer-social-hover-color: var(--indigo-400);
    --footer-social-hover-border: rgba(99, 102, 241, 0.30);
    --footer-social-hover-bg: rgba(99, 102, 241, 0.10);

    --lightbox-bg: rgba(0, 0, 0, 0.92);
    --lightbox-nav-bg: rgba(255, 255, 255, 0.08);
    --lightbox-nav-hover: rgba(255, 255, 255, 0.20);
    --lightbox-counter: rgba(255, 255, 255, 0.6);

    --overlay-bg: rgba(0, 0, 0, 0.55);

    --tag-bg-opacity: 22%;
    --tag-border-opacity: 32%;

    --badge-bg: #182440;
    --badge-border: transparent;
    --badge-color: #e2e8f0;
    --badge-hover-bg: var(--indigo-600);
    --badge-hover-color: var(--white);

    --scroll-dot-bg: rgba(255, 255, 255, 0.18);
    --about-photo-border: rgba(255, 255, 255, 0.15);
    --about-highlight-color: var(--indigo-400);
    --feature-dot-color: var(--emerald-500);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --topbar-height: 64px;
    --drawer-width: 260px;

    --h-scale: clamp(0, calc((100dvh - 400px) / 300px), 1);
}

[data-theme="light"] {
    --bg-app: #f2f5f9;
    --bg-section: #e2e7ef;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-input: #ffffff;

    --text-primary: #020617;
    --text-secondary: #374151;
    --text-muted: #4b5563;
    --text-accent: #2563eb;

    --heading-primary: #020617;

    --border-subtle: #b4bcc9;
    --border-light: #a7afbb;

    --shadow-card: 0 4px 36px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 12px 56px rgba(0, 0, 0, 0.22);
    --shadow-topbar: 0 2px 8px rgba(0, 0, 0, 0.10);

    --topbar-bg: rgba(242, 245, 249, 0.93);
    --topbar-text: #020617;
    --topbar-text-secondary: rgba(2, 6, 23, 0.65);
    --topbar-divider: rgba(2, 6, 23, 0.10);

    --drawer-bg: #ffffff;
    --drawer-item-color: #374151;
    --drawer-item-hover-bg: rgba(2, 6, 23, 0.05);
    --drawer-item-hover-color: #020617;
    --drawer-item-active-bg: rgba(99, 102, 241, 0.08);
    --drawer-item-active-color: #4f46e5;
    --drawer-priv-color: #4b5563;
    --drawer-priv-hover: #1e293b;

    --hero-gradient: linear-gradient(165deg, #d4dae4 0%, #e2e7ef 40%, #eaedf4 70%, #f2f5f9 100%);
    --hero-glow-bg: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    --hero-grid-color: rgba(2, 6, 23, 0.03);
    --hero-text-primary: #020617;
    --hero-text-secondary: #374151;
    --hero-text-muted: #4b5563;
    --hero-social-color: rgba(2, 6, 23, 0.52);
    --hero-social-border: rgba(2, 6, 23, 0.10);
    --hero-social-hover-bg: rgba(99, 102, 241, 0.08);
    --hero-social-hover-border: rgba(99, 102, 241, 0.20);
    --hero-social-hover-color: #4f46e5;

    --btn-secondary-bg: rgba(15, 23, 42, 0.05);
    --btn-secondary-border: rgba(15, 23, 42, 0.12);
    --btn-secondary-hover-bg: rgba(15, 23, 42, 0.09);
    --btn-secondary-hover-border: rgba(15, 23, 42, 0.18);
    --btn-soon-bg: #e2e8f0;
    --btn-soon-color: #94a3b8;

    --skill-icon-bg: rgba(2, 6, 23, 0.07);
    --skill-item-color: #1e293b;

    --prev-line-bg: #b4bcc9;
    --placeholder-bg: #dde2eb;
    --placeholder-color: #374151;

    --form-label: #374151;
    --form-input-bg: #ffffff;
    --form-input-text: #020617;
    --form-input-border: #b4bcc9;
    --form-input-focus-border: var(--indigo-500);
    --form-input-focus-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
    --form-input-error-border: #ef4444;

    --feedback-success-bg: #ecfdf5;
    --feedback-success-text: #047857;
    --feedback-success-border: #a7f3d0;
    --feedback-error-bg: #fef2f2;
    --feedback-error-text: #dc2626;
    --feedback-error-border: #fecaca;

    --footer-bg: #ffffff;
    --footer-border: #b4bcc9;
    --footer-text: #4b5563;
    --footer-text-hover: #020617;
    --footer-logo-color: #020617;
    --footer-col-title: #374151;
    --footer-social-hover-color: #4f46e5;
    --footer-social-hover-border: rgba(99, 102, 241, 0.25);
    --footer-social-hover-bg: rgba(99, 102, 241, 0.08);

    --lightbox-bg: rgba(0, 0, 0, 0.85);
    --lightbox-nav-bg: rgba(255, 255, 255, 0.15);
    --lightbox-nav-hover: rgba(255, 255, 255, 0.30);
    --lightbox-counter: rgba(255, 255, 255, 0.6);

    --overlay-bg: rgba(0, 0, 0, 0.30);

    --tag-bg-opacity: 18%;
    --tag-border-opacity: 22%;

    --badge-bg: #c4cddb;
    --badge-border: transparent;
    --badge-color: #1e293b;
    --badge-hover-bg: var(--indigo-600);
    --badge-hover-color: var(--white);

    --scroll-dot-bg: #b4bcc9;
    --about-photo-border: #b4bcc9;
    --about-highlight-color: #4f46e5;
    --drawer-available-color: #059669;
    --feature-dot-color: #059669;
}

html {
    font-size: 16px;
    overflow: hidden;
    height: 100%;
    background: var(--bg-app);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-app);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100%;
    transition: background 0.35s ease, color 0.35s ease;
}

a {
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--blue-600);
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-pad {
    padding: 1rem 0 2rem;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 0.75rem;
    z-index: 200;
    flex-shrink: 0;
    gap: 0.5rem;
    transition: background 0.35s ease, box-shadow 0.3s;
}

.topbar.scrolled {
    box-shadow: var(--shadow-topbar);
}

.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.topbar-hamburger:hover {
    background: var(--drawer-item-hover-bg);
}

.topbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--topbar-text-secondary);
    border-radius: 1px;
    margin: 4px 0;
    transition: all 0.3s;
}

.topbar-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.topbar-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.topbar-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.topbar-brand {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--topbar-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-divider {
    width: 1px;
    height: 20px;
    background: var(--topbar-divider);
    flex-shrink: 0;
    margin: 0 0.25rem;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--topbar-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--topbar-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--drawer-item-hover-bg);
    color: var(--topbar-text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.topbar-spacer {
    flex: 1;
}

.drawer {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--drawer-width);
    height: calc(100dvh - var(--topbar-height));
    background: var(--drawer-bg);
    border-right: 1px solid var(--border-subtle);
    z-index: 150;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;

    transform: translateX(0);
}

.drawer-header {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.drawer-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.drawer-name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--topbar-text);
    line-height: 1.3;
}

.drawer-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--drawer-item-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-available {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--drawer-available-color);
    margin-top: 0.5rem;
}

.drawer-available-dot {
    width: 5px;
    height: 5px;
    background: var(--drawer-available-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
    flex-shrink: 0;
}

.drawer-menu {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    color: var(--drawer-item-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.drawer-item:hover {
    background: var(--drawer-item-hover-bg);
    color: var(--drawer-item-hover-color);
}

.drawer-item.active {
    background: var(--drawer-item-active-bg);
    color: var(--drawer-item-active-color);
}

.drawer-item.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--indigo-500);
    border-radius: 0 3px 3px 0;
}

.drawer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: currentColor;
}

.drawer-icon svg {
    width: 22px;
    height: 22px;
}

.drawer-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.drawer-priv {
    font-size: 0.75rem;
    color: var(--drawer-priv-color);
    transition: color 0.2s;
}

.drawer-priv:hover {
    color: var(--drawer-priv-hover);
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 140;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.drawer-overlay.visible {
    opacity: 1;
}

.main-content {
    height: calc(100dvh - var(--topbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
}

.fragment {
    display: none;
    min-height: 100%;
}

.fragment.active {
    display: block;
    animation: fragmentSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-layout {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100dvh - var(--topbar-height));
    transition: background 0.35s ease;
}

@keyframes fragmentSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fragment.active {
        animation: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--indigo-500);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: var(--indigo-600);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--topbar-text);
    border: 1.5px solid var(--btn-secondary-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
    color: var(--topbar-text);
    transform: translateY(-2px);
}

.btn-soon {
    background: var(--btn-soon-bg);
    color: var(--btn-soon-color);
    border: 1.5px solid var(--btn-soon-bg);
    cursor: default;
    pointer-events: none;
}

.btn-lg {
    padding: 0.9375rem 2.25rem;
    font-size: 1rem;
}

#fragment-inicio {
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: var(--hero-glow-bg);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(1rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: clamp(0rem, calc(24vh - 7.5rem), 4rem);
}

.hero-group-middle {
    padding-bottom: calc(0.4rem * var(--h-scale));
    width: 100%;
}

.hero-group-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hero-text-secondary);
    margin-bottom: 0.25rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: calc(1.5rem + 1.75rem * var(--h-scale));
    font-weight: 800;
    line-height: 1.1;
    color: var(--hero-text-primary);
    letter-spacing: -0.03em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--blue-400), var(--violet-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: calc(0.9375rem + 0.25rem * var(--h-scale));
    font-weight: 500;
    color: var(--hero-text-secondary);
    margin-bottom: calc(0.5rem + 0.25rem * var(--h-scale));
}

.hero-desc {
    font-size: calc(0.8125rem + 0.1875rem * var(--h-scale));
    color: var(--hero-text-secondary);
    width: 100%;
    line-height: calc(1.4 + 0.35 * var(--h-scale));
    margin-bottom: calc(0.5rem + 0.5rem * var(--h-scale));
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: calc(0.6875rem + 0.125rem * var(--h-scale));
    color: var(--hero-text-secondary);
    flex-wrap: wrap;
}

.hero-meta-dot {
    color: var(--hero-text-muted);
    font-weight: 300;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: calc(0.5rem + 0.25rem * var(--h-scale));
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(34px + 4px * var(--h-scale));
    height: calc(34px + 4px * var(--h-scale));
    border-radius: 50%;
    color: var(--hero-social-color);
    border: 1.5px solid var(--hero-social-border);
    transition: all 0.25s;
}

.hero-social a:hover {
    color: var(--hero-social-hover-color);
    border-color: var(--hero-social-hover-border);
    background: var(--hero-social-hover-bg);
}

#fragment-about {
    background: var(--bg-section);
    padding: 0 1.5rem;
    transition: background 0.35s ease;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--heading-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.03em;
    transition: color 0.35s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--heading-accent-bg);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-body {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.about-text-col {
    max-width: 720px;
    margin: 0 auto;
}

.about-photo-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about-photo-small {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
}

.about-photo-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--about-photo-border);
    display: block;
    transition: border-color 0.35s ease;
}

.about-photo-text {
    flex: 1;
    min-width: 0;
}

.about-text-col p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
    transition: color 0.35s ease;
}

.about-highlight-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--about-highlight-color);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.highlight-bar {
    width: 3px;
    height: 20px;
    background: var(--indigo-500);
    border-radius: 2px;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.about-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--badge-color);
    background: var(--badge-bg);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--badge-border);
    transition: all 0.25s;
}

.about-badge:hover {
    background: var(--badge-hover-bg);
    color: var(--badge-hover-color);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 2rem auto 0;
}

.about-card {
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.35s ease;
    box-shadow: var(--shadow-card);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.about-card-icon {
    display: inline;
    vertical-align: middle;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.about-card-title {
    display: inline;
    vertical-align: middle;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-card-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

#fragment-skills.active,
#fragment-about.active,
#fragment-projects.active,
#fragment-contact.active {
    background: var(--bg-section);
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    transition: background 0.35s ease;
}

#fragment-skills.active > .container,
#fragment-about.active > .container,
#fragment-projects.active > .container,
#fragment-contact.active > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#fragment-skills.active .skills-grid {
    margin-top: auto;
    margin-bottom: auto;
}

#fragment-contact.active > .container {
    min-height: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0 1.25rem 1.25rem;
    transition: all 0.3s ease, background 0.35s ease;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.skill-topbar {
    height: 4px;
    margin: 0 -1.25rem 0;
    width: calc(100% + 2.5rem);
}

.skill-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--skill-icon-bg);
    color: var(--icon-color, var(--blue-400));
}

.skill-cat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.875rem 0 0.875rem;
    transition: color 0.35s ease;
}

.skill-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 250px) {
    .skill-items {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 500px) {
    .skill-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .skill-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--skill-item-color);
    padding: 0.25rem 0;
    transition: color 0.35s ease;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skill-count {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

@media (min-width: 600px) {
    .skill-card {
        display: grid;
        grid-template-columns: 6px minmax(120px, 1fr) 3fr;
        grid-template-rows: 1fr auto;
        padding: 0;
        gap: 0;
    }

    .skill-topbar {
        grid-column: 1;
        grid-row: 1 / -1;
        width: auto;
        height: auto;
        margin: 0;
        border-radius: 16px 0 0 16px;
        align-self: stretch;
    }

    .skill-cat-title {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: stretch;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
        margin: 0;
        border-right: 1px solid var(--border-subtle);
    }

    .skill-title-label {
        text-align: center;
        line-height: 1.3;
    }

    .skill-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .skill-items {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        padding: 1.25rem 1.25rem 0 1.25rem;
        margin: 0;
    }

    .skill-count {
        grid-column: 3;
        grid-row: 2;
        padding: 0.5rem 1.25rem 1.25rem;
        text-align: left;
    }
}

#fragment-projects {
    background: var(--bg-section);
    padding: 0 1.5rem;
    transition: background 0.35s ease;
}

.prev-projects-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 3.5rem;
    justify-content: center;
}

.prev-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--prev-line-bg);
}

.prev-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.scroll-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0.5rem 0;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--scroll-dot-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--indigo-500);
    width: 24px;
    border-radius: 4px;
}

.prev-project-icon {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.75rem;
    line-height: 1;
    margin-right: 0.5rem;
}

.project-card {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 20px;
    transition: box-shadow 0.3s, background 0.35s ease;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.project-card + .project-card {
    margin-top: 2rem;
}

.project-info {
    padding: 1.25rem 1.5rem;
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tag-color, var(--violet-400));
    background: color-mix(in srgb, var(--tag-color, var(--violet-500)) var(--tag-bg-opacity), transparent);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--tag-color, var(--violet-500)) var(--tag-border-opacity), transparent);
    transition: all 0.2s;
}

.project-tag:hover {
    background: color-mix(in srgb, var(--tag-color, var(--violet-500)) 80%, black);
    color: var(--white);
}

[data-theme="light"] .project-tag {
    color: color-mix(in srgb, var(--tag-color, var(--violet-500)) 62%, black);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-features {
    list-style: none;
    margin-bottom: 1.75rem;
}

.project-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1.375rem;
    position: relative;
    line-height: 1.5;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--feature-dot-color);
}

.project-side {
    border-top: 1px solid var(--border-subtle);
    padding: 0.5rem 1.5rem;
}

.project-card-arduino .project-info {
    padding: 0.5rem 1.5rem;
}

.project-card-arduino .project-side {
    padding: 0.5rem 1.5rem;
}

.project-card-arduino .project-tech-badges {
    margin-bottom: 0;
}

.project-image {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-surface);
}

.project-screenshot {
    width: 96%;
    height: auto;
    display: block;
    min-width: 0;
}

.project-gallery {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.project-gallery img {
    flex: 1 1 0;
    max-width: 120px;
    min-width: 0;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

.project-info .arduino-title {
    font-size: 1rem;
}

.project-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 96%;
    max-height: 160px;
    aspect-ratio: 16 / 9;
    background: var(--placeholder-bg);
    color: var(--placeholder-color);
    text-align: center;
    border-radius: 8px;
}

.project-image-placeholder span:first-child {
    font-size: 3rem;
    display: block;
}

.project-image-placeholder span:last-child {
    font-size: 0.875rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.projects-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.projects-footer a {
    font-weight: 600;
}

#fragment-contact {
    background: var(--bg-section);
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    transition: background 0.35s ease;
}

.contact-desc {
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .btn-lg {
    align-self: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--form-label);
    margin-bottom: 0.375rem;
    transition: color 0.35s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid var(--form-input-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--form-input-text);
    background: var(--form-input-bg);
    transition: all 0.25s, background 0.35s ease, border-color 0.35s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--form-input-focus-border);
    box-shadow: var(--form-input-focus-shadow);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--form-input-error-border);
}

.form-feedback {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: none;
}

.form-feedback.success {
    display: block;
    background: var(--feedback-success-bg);
    color: var(--feedback-success-text);
    border: 1px solid var(--feedback-success-border);
}

.form-feedback.error {
    display: block;
    background: var(--feedback-error-bg);
    color: var(--feedback-error-text);
    border: 1px solid var(--feedback-error-border);
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    margin-top: auto;
    padding: 3rem 0 0;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand-col .footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--footer-logo-color);
    letter-spacing: -0.02em;
}

.footer-brand-col p {
    font-size: 0.8125rem;
    color: var(--footer-text);
    line-height: 1.6;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-col-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--footer-col-title);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-col a {
    font-size: 0.8125rem;
    color: var(--footer-text);
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: var(--footer-text-hover);
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--footer-text);
    border: 1.5px solid var(--footer-border);
    transition: all 0.2s;
}

.footer-social-icons a:hover {
    color: var(--footer-social-hover-color);
    border-color: var(--footer-social-hover-border);
    background: var(--footer-social-hover-bg);
}

.footer-social-icons a svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--footer-text);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    cursor: default;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lightbox-nav-bg);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    padding: 0;
}

.lightbox-nav:hover {
    background: var(--lightbox-nav-hover);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--lightbox-counter);
    font-size: 0.875rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.lightbox-nav.hidden,
.lightbox-counter.hidden {
    display: none;
}

@media (min-width: 1024px) {

    .topbar-hamburger {
        display: none;
    }

    .drawer {
        transform: translateX(0);
    }

    .drawer-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: var(--drawer-width);
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .hero-greeting {
        font-size: 1.125rem;
    }

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

    .hero-desc {
        font-size: 1.125rem;
    }

    .hero-meta {
        font-size: 0.9375rem;
    }
}

@media (max-width: 1023px) {

    .topbar-hamburger {
        display: block;
    }

    .drawer {
        transform: translateX(-100%);
    }

    .drawer.open {
        transform: translateX(0);
    }

    .drawer-overlay {
        display: block;
        pointer-events: none;
    }

    .drawer-overlay.visible {
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 899px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 599px) {

    .hero-name {
        font-size: 2.5rem;
    }

    .about-photo-row {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 1.25rem;
    }

    .about-highlight-line {
        justify-content: flex-start;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand-col p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media (min-width: 600px) {
    .project-card {
        grid-template-columns: 13fr 7fr;
        grid-template-rows: auto;
    }

    .project-info {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .project-info .project-links {
        justify-content: center;
    }

    .project-side {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        border-top: none;
        border-left: 1px solid var(--border-subtle);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .project-image {
        flex: none;
    }

    .project-screenshot {
        max-height: 160px;
        width: auto;
        object-fit: contain;
    }

    .project-image-placeholder {
        max-height: 160px;
        width: auto;
    }

    .project-card-arduino {
        grid-template-columns: 3fr 1fr;
    }

    .project-card-arduino .project-side {
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 768px) {

    .section-title {
        font-size: 1.75rem;
    }

    .section-pad {
        padding: 0.5rem 0 2rem;
    }

    .main-content {
        overflow-x: visible;
    }

    .prev-projects-label {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-glow {
        display: none;
    }

    .prev-text {
        white-space: normal;
        text-align: center;
    }

    .prev-line {
        max-width: 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-meta {
        font-size: 0.75rem;
        gap: 0.375rem;
        margin-bottom: 1.25rem;
    }

    .hero-desc {
        margin-bottom: 1rem;
    }

    .hero-links {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .hero-name {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .hero-title {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .hero-greeting {
        font-size: 0.875rem;
    }

    .hero-desc {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .hero-meta {
        font-size: 0.6875rem;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.75rem;
    }

    .hero-social a {
        width: 34px;
        height: 34px;
    }

    .hero-social {
        gap: 0.5rem;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
    }

    .project-links .btn {
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .skill-item {
        font-size: 0.8125rem;
    }

    .project-info {
        padding: 1rem;
    }

    .project-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .project-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .project-features li {
        font-size: 0.8125rem;
    }

    .project-tag {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }

    .project-links .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .projects-footer {
        margin-top: 1.5rem;
        font-size: 0.8125rem;
    }

    .prev-line {
        display: none;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 2rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {

    .topbar {
        height: 36px;
    }

    :root {
        --topbar-height: 36px;
    }

    .hero-content {
        padding: 0 1.5rem 0.75rem;
    }

    .hero-group-top,
    .hero-group-middle {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-group-bottom {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(0rem, calc(24vh - 7.5rem), 4rem);
    }

    .hero-greeting,
    .hero-name,
    .hero-title,
    .hero-desc,
    .hero-meta {
        text-align: center;
    }

    .hero-links {
        margin-bottom: 0.25rem;
    }

    .hero-social {
        display: inline-flex;
        gap: 0.375rem;
    }

    .hero-links .btn {
        padding: 0.375rem 0.875rem;
    }

    .about-photo-row {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
    }

    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-photo-small,
    .about-photo-img {
        width: 80px;
        height: 80px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .project-info {
        padding: 0.75rem 1rem;
    }

    .project-links {
        padding: 0.75rem;
        gap: 0.375rem;
    }

    .project-links .btn {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }
}