/* ============================================================
   César Zaldivar – About Me Portfolio Page
   Custom styles — import or merge into your site's style.css
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --navy:       #0f172a;
    --navy-light: #1e293b;
    --teal:       #06b6d4;
    --teal-dark:  #0891b2;
    --teal-glow:  rgba(6, 182, 212, 0.15);
}

/* ── Base ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero – Geometric Background Pattern ───────────────────── */
.hero-pattern {
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%,         rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%,         rgba(6, 182, 212, 0.08) 0%, transparent 35%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Typing Cursor ──────────────────────────────────────────── */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--teal);
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ── Scroll Fade-In Sections ────────────────────────────────── */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Card Hover (lift + teal shadow) ───────────────────────── */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(6, 182, 212, 0.12),
        0 4px  16px rgba(0, 0, 0, 0.06);
}

/* ── Experience Timeline ────────────────────────────────────── */
.timeline-line {
    position:   absolute;
    left:       20px;
    top:        0;
    bottom:     0;
    width:      2px;
    background: linear-gradient(to bottom, var(--teal), rgba(6, 182, 212, 0.15));
}

@media (min-width: 768px) {
    .timeline-line {
        left:      50%;
        transform: translateX(-50%);
    }
}

.timeline-dot {
    width:         14px;
    height:        14px;
    border-radius: 50%;
    background:    var(--teal);
    border:        3px solid var(--navy);
    box-shadow:    0 0 0 3px var(--teal);
    position:      absolute;
    left:          14px;
    top:           24px;
    z-index:       2;
}

@media (min-width: 768px) {
    .timeline-dot {
        left:      50%;
        transform: translateX(-50%);
    }
}

/* ── Tools Pill Badge ───────────────────────────────────────── */
.pill-badge {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.pill-badge:hover {
    background-color: rgba(6, 182, 212, 0.15);
    transform:        scale(1.05);
}

/* ── Stat Card Glow ─────────────────────────────────────────── */
.stat-glow {
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-glow:hover {
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.3),
        0 8px 30px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* ── Custom Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background:    #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* ── Nav Link Underline Slide ───────────────────────────────── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content:    '';
    position:   absolute;
    bottom:     -2px;
    left:       0;
    width:      0;
    height:     2px;
    background: var(--teal);
    transition: width 0.3s ease;
}

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