/* ============================================================
   DIOARI.COM — stylesheet
   ============================================================ */

/* === VARIABLES === */
:root {
    --bg-primary:    #0d1117;
    --bg-secondary:  #161b22;
    --bg-card:       #1c2128;
    --border:        #30363d;
    --accent:        #00d4aa;
    --accent-dim:    rgba(0, 212, 170, 0.1);
    --accent-hover:  #00b899;
    --accent-2:      #7c3aed;
    --text-primary:  #e6edf3;
    --text-secondary:#8b949e;
    --text-muted:    #484f58;
    --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:     'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    --radius:        12px;
    --radius-sm:     6px;
    --transition:    0.25s ease;
    --nav-height:    68px;
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 8px 28px rgba(0, 212, 170, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--accent-hover); }

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

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* === UTILITY === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-height);
    z-index: 200;
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 1;
}
.nav-logo:hover { color: var(--text-primary); opacity: 0.85; }

.logo-bracket { color: var(--accent); }
.logo-dot     { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 201;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0d1117;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner dentro del botón */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gradiente oscuro en los bordes del hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 212, 170, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at bottom, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
    animation: heroFadeIn 0.8s ease both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.hero-name {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 28px;
    min-height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.title-prefix { color: var(--accent); }

.cursor-blink {
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto 36px;
    max-width: 580px;
}

.hero-link {
    color: var(--accent);
    font-weight: 500;
}
.hero-link:hover { opacity: 0.8; }

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Stats bar */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding: 20px 36px;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
    flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    animation: heroFadeIn 1s ease 1.2s both;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; }
}

/* ============================================================
   SECCIONES — COMUNES
   ============================================================ */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 12px;
    max-width: 560px;
    line-height: 1.7;
}

/* === REVEAL ANIMATION === */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
    background: var(--bg-secondary);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-text strong { color: var(--text-primary); font-weight: 600; }
.about-text em     { color: var(--accent); font-style: normal; }

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.badge {
    padding: 5px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 100px;
    font-size: 0.76rem;
    color: var(--accent);
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* Terminal card */
.terminal-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    background: var(--bg-card);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.terminal-body { padding: 20px 22px; }

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.t-prompt { color: var(--accent); }
.t-cmd    { color: var(--text-primary); }

.terminal-output {
    margin: 10px 0 14px;
    padding-left: 10px;
    border-left: 2px solid var(--border);
}

.terminal-output pre {
    white-space: pre-wrap;
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.82rem;
}

.t-key  { color: #7dd3fc; }
.t-val  { color: #86efac; }
.t-bool { color: #fb923c; }

.cursor-terminal {
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills { background: var(--bg-primary); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-card:hover {
    border-color: rgba(0, 212, 170, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.skill-card h3 {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list li {
    color: var(--text-secondary);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.skill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Tech stack */
.tech-stack {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 0;
}

.tech-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 5px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: border-color var(--transition), color var(--transition);
    cursor: default;
    user-select: none;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projects {
    background: var(--bg-secondary);
    position: relative;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    align-items: start;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 212, 170, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.project-card.featured {
    border-color: rgba(0, 212, 170, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    font-size: 2rem;
    line-height: 1;
}

.project-link {
    color: var(--text-secondary);
    opacity: 1;
    transition: color var(--transition);
}
.project-link:hover { color: var(--accent); }

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-role {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 4px;
    font-size: 0.74rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.86rem;
    font-family: var(--font-mono);
    opacity: 1;
    transition: transform var(--transition), opacity var(--transition);
    margin-top: 4px;
}
.project-cta:hover {
    transform: translateX(4px);
    opacity: 0.75;
    color: var(--accent);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg-primary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.contact-item h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 0.92rem;
    opacity: 1;
    transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 212, 170, 0.07);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(0, 212, 170, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

/* === FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.required { color: var(--accent); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.form-feedback.success {
    color: #4ade80;
    padding: 12px 16px;
    max-height: 100px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-feedback.error {
    color: #f87171;
    padding: 12px 16px;
    max-height: 100px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 44px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.84rem;
    opacity: 1;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-family: var(--font-mono);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
    section { padding: 72px 0; }

    /* Nav mobile */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 28px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 199;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link { font-size: 1rem; }

    .nav-toggle { display: flex; }

    /* Grids */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    /* Hero */
    .hero-stats {
        gap: 20px;
        padding: 16px 24px;
    }

    .stat-number { font-size: 1.4rem; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
