/* ============================================================
   devyarod.com — style.css
   Inspirado en lusion.co: oscuro, inmersivo, minimalista
   ============================================================ */

:root {
    --bg:        #080810;
    --bg2:       #0d0d1a;
    --bg3:       #12121f;
    --surface:   #1a1a2e;
    --border:    rgba(255,255,255,0.06);
    --text:      #e8e8f0;
    --muted:     rgba(232,232,240,0.45);
    --accent:    #6c63ff;
    --accent2:   #00d4aa;
    --grad:      linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
}

/* ── CANVAS ───────────────────────────────────────────────── */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── CURSOR ───────────────────────────────────────────────── */
#cursor {
    position: fixed;
    width: 6px; height: 6px;
    background: var(--accent2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}
#cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid rgba(108,99,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
    width: 48px; height: 48px;
    border-color: var(--accent);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 500;
    transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
    background: rgba(8,8,16,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo { text-decoration: none; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-dev    { color: var(--accent); }
.logo-yarod  { color: var(--text); }
.logo-dot    { color: var(--accent2); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 400; transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 9px 22px; border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--surface); border-color: var(--accent); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    width: 22px; height: 1.5px; background: var(--text); display: block;
    transition: 0.3s;
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 400;
    flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mob-link {
    color: var(--text); text-decoration: none;
    font-size: 2rem; font-weight: 600;
}

/* ── SECTIONS COMMON ──────────────────────────────────────── */
.section {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 120px 50px;
}

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

.eyebrow {
    display: block; font-size: 0.75rem; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent2); margin-bottom: 12px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600; line-height: 1.1;
    letter-spacing: -1px; color: var(--text);
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 160px 50px 80px;
    max-width: 1100px; margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent2); margin-bottom: 24px; font-weight: 500;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 700; line-height: 0.95;
    letter-spacing: -3px; margin-bottom: 32px;
}
.hero-title .line { display: block; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.muted-text { color: rgba(232,232,240,0.3); }

.hero-sub {
    font-size: 1.1rem; color: var(--muted); line-height: 1.7;
    max-width: 520px; margin-bottom: 40px; font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }

.btn-primary {
    padding: 14px 32px; border-radius: 100px;
    background: var(--grad); color: #fff;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-ghost {
    padding: 14px 32px; border-radius: 100px;
    border: 1px solid var(--border); color: var(--text);
    text-decoration: none; font-weight: 400; font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); }

/* Stats bar */
.stats-bar {
    display: flex; align-items: center; gap: 40px;
    padding: 24px 32px; border-radius: 16px;
    background: var(--bg3); border: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-n { display: block; font-size: 2.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-l { font-size: 0.75rem; color: var(--muted); margin-top: 4px; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── DASHBOARD PREVIEW ────────────────────────────────────── */
.preview-section {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 0 50px 120px;
}
.preview-label {
    font-size: 0.75rem; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase; margin-bottom: 24px;
}
.dashboard {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
}
.db-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: var(--bg3); border-bottom: 1px solid var(--border);
}
.db-dots { display: flex; gap: 6px; }
.db-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.db-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); flex: 1; }
.db-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.db-badge.live { background: rgba(34,197,94,0.12); color: #22c55e; }

.db-body { display: flex; }
.db-sidebar {
    width: 180px; flex-shrink: 0; padding: 20px 0;
    border-right: 1px solid var(--border);
}
.db-nav-item {
    padding: 10px 20px; font-size: 0.82rem; color: var(--muted); cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.db-nav-item:hover, .db-nav-item.active {
    background: rgba(108,99,255,0.08); color: var(--text);
}
.db-content { flex: 1; padding: 20px; }
.db-stats-row { display: flex; gap: 12px; margin-bottom: 20px; }
.db-stat-card {
    flex: 1; padding: 16px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border); text-align: center;
}
.db-stat-n { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.db-stat-l { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.db-table-wrap { overflow-x: auto; }
.db-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.db-table th { color: var(--muted); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.db-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.db-table tr:last-child td { border-bottom: none; }
.db-badge-green { padding: 3px 9px; border-radius: 20px; font-size: 0.7rem; background: rgba(34,197,94,0.12); color: #22c55e; }
.db-badge-yellow { padding: 3px 9px; border-radius: 20px; font-size: 0.7rem; background: rgba(234,179,8,0.12); color: #eab308; }

/* ── SERVICES ─────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.service-card {
    padding: 36px; border-radius: 16px;
    background: var(--bg2); border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.service-icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.service-tags li {
    padding: 3px 10px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.72rem; color: var(--muted);
}

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; gap: 2px; }
.project-item {
    display: flex; align-items: flex-start; gap: 40px;
    padding: 36px 0; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: padding-left 0.3s;
}
.project-item:hover { padding-left: 16px; }
.project-item:hover .project-arrow { color: var(--accent2); }
.project-meta { flex-shrink: 0; width: 140px; }
.project-year { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.project-type { font-size: 0.72rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.project-info { flex: 1; }
.project-info h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.project-info p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
    padding: 3px 10px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.72rem; color: var(--muted);
}
.project-arrow { font-size: 1.5rem; color: var(--border); transition: color 0.3s; margin-top: 8px; }

/* ── STACK ────────────────────────────────────────────────── */
.stack-section { }
.stack-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px; margin-bottom: 48px;
}
.stack-item {
    padding: 20px 16px; border-radius: 12px;
    background: var(--bg2); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--muted); text-align: center;
    transition: border-color 0.2s, color 0.2s;
}
.stack-item:hover { border-color: var(--accent); color: var(--text); }
.stack-icon { font-size: 1.6rem; }

/* Code block */
.code-block {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
}
.code-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; background: var(--bg3);
    border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.code-filename { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
.code-body {
    background: var(--bg2); padding: 28px;
    font-family: var(--font-mono); font-size: 0.85rem;
    line-height: 1.9; overflow-x: auto;
}
.c-comment { color: #4a5568; }
.c-keyword  { color: #a78bfa; }
.c-fn       { color: #60a5fa; }
.c-var      { color: #34d399; }
.c-str      { color: #f59e0b; }
.c-bool     { color: #f87171; }

/* ── PROCESS ──────────────────────────────────────────────── */
.process-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.process-step { padding: 36px; background: var(--bg2); }
.step-num {
    font-size: 3rem; font-weight: 700; color: var(--border);
    line-height: 1; margin-bottom: 16px; font-family: var(--font-mono);
}
.process-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-section { text-align: center; }
.contact-inner {
    padding: 80px; border-radius: 24px;
    background: var(--bg2); border: 1px solid var(--border);
}
.contact-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; letter-spacing: -2px; }
.contact-sub { color: var(--muted); margin-bottom: 40px; font-size: 1rem; }
.contact-links {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-bottom: 40px;
}
.contact-link {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    font-size: 0.9rem; transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: var(--accent); background: var(--surface); }
.btn-large { padding: 18px 48px; font-size: 1rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 48px 50px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.78rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    #navbar { padding: 18px 24px; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 130px 24px 60px; }
    .hero-title { letter-spacing: -2px; }

    .section { padding: 80px 24px; }
    .preview-section { padding: 0 24px 80px; }
    .stats-bar { flex-direction: column; gap: 20px; padding: 24px; }
    .stat-divider { width: 40px; height: 1px; }

    .db-sidebar { display: none; }
    .db-stats-row { flex-direction: column; }

    .project-item { flex-direction: column; gap: 12px; }
    .project-meta { width: auto; }
    .project-arrow { display: none; }

    .contact-inner { padding: 40px 24px; }
    footer { padding: 40px 24px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

    body { cursor: auto; }
    #cursor, #cursor-ring { display: none; }
}