/* ============================================
   EUGENIO QUINTERO — PORTFOLIO
   Dark theme, recruiter-friendly custom layout
   ============================================ */

:root {
    --bg-primary:    #0f172a;
    --bg-secondary:  #1e293b;
    --bg-card:       #1e293b;
    --bg-card-hover: #263347;
    --border:        #334155;
    --border-hover:  #4b637a;
    --accent:        #38bdf8;
    --accent-2:      #818cf8;
    --accent-dim:    rgba(56, 189, 248, 0.08);
    --gradient:      linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --shadow:        0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
    --radius:        14px;
    --radius-sm:     8px;
    --ease:          0.25s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:     'Fira Code', 'Courier New', monospace;
    --nav-h:         68px;
}

/* ---- Reset ---- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Utility ---- */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.55rem auto 0;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--ease);
    line-height: 1;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}
.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.22);
}

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

.btn-large { padding: 0.9rem 2.2rem; font-size: 1rem; }

/* ---- Navigation ---- */

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    transition: background var(--ease), box-shadow var(--ease);
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2.25rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--ease);
}

/* ---- Hero ---- */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 2rem) 2rem 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 15% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 85% 25%, rgba(129, 140, 248, 0.07) 0%, transparent 65%),
        var(--bg-primary);
}

/* dot grid */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    text-align: center;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(140deg, #f1f5f9 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.typed-text {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
}

.typed-cursor {
    color: var(--accent);
    font-weight: 300;
    font-size: 1.1em;
    animation: blink 1s step-end infinite;
}

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

.hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.25rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--ease);
}
.hero-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    animation: bounce 2.2s ease infinite;
    z-index: 1;
}
.scroll-down:hover { color: var(--accent); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    55%       { transform: translateX(-50%) translateY(9px); }
}

/* ---- About ---- */

#about {
    padding: 7rem 0;
    background: var(--bg-secondary);
}

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

.photo-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    aspect-ratio: 1 / 1;
    background: var(--bg-primary);
    transition: border-color var(--ease);
}
.photo-frame:hover { border-color: var(--accent); }

.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--text-muted);
}

/* glow bar under photo */
.photo-frame::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--ease);
}
.photo-frame:hover::after { opacity: 1; }

.about-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.85;
    font-size: 0.97rem;
}

.about-stats {
    display: flex;
    gap: 1.25rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.4rem;
    min-width: 88px;
    transition: border-color var(--ease), transform var(--ease);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.detail-item i { width: 14px; text-align: center; font-size: 0.85rem; }
.detail-item a { color: var(--text-secondary); }
.detail-item a:hover { color: var(--accent); }

/* ---- Skills ---- */

#skills {
    padding: 7rem 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.08);
}

.skill-category-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.skill-category h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-category ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-chip {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.28rem 0.65rem;
    border-radius: 20px;
    cursor: default;
    transition: all var(--ease);
}
.skill-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---- Projects ---- */

#projects {
    padding: 7rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* featured card spans full width */
.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

/* project image area */
.project-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.project-card:not(.featured) .project-image {
    aspect-ratio: 16 / 9;
}

.project-card.featured .project-image {
    min-height: 300px;
}

.project-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 1.75rem;
    transition: transform 0.4s ease;
}

.project-card.featured .project-image img {
    object-fit: cover;
    padding: 0;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

/* hover overlay with link */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ease);
    backdrop-filter: blur(2px);
}
.project-card:hover .project-overlay { opacity: 1; }

.overlay-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all var(--ease);
}
.overlay-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* project text */
.project-info {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.project-card.featured .project-info {
    padding: 2.25rem;
    justify-content: center;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* colored tags per tech */
.tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}
.tag.sql          { background: rgba(96, 165, 250, 0.12); color: #93c5fd; border-color: rgba(96, 165, 250, 0.25); }
.tag.mysql        { background: rgba(34, 211, 238, 0.1);  color: #67e8f9; border-color: rgba(34, 211, 238, 0.25); }
.tag.tableau      { background: rgba(251, 146, 60, 0.12); color: #fdba74; border-color: rgba(251, 146, 60, 0.25); }
.tag.excel        { background: rgba(74, 222, 128, 0.1);  color: #86efac; border-color: rgba(74, 222, 128, 0.25); }
.tag.python       { background: rgba(147, 197, 253, 0.1); color: #bfdbfe; border-color: rgba(147, 197, 253, 0.25); }
.tag.bi           { background: rgba(251, 191, 36, 0.1);  color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
.tag.scraping     { background: rgba(192, 132, 252, 0.1); color: #d8b4fe; border-color: rgba(192, 132, 252, 0.25); }
.tag.powerbi      { background: rgba(243, 156, 18, 0.12); color: #fbbf24; border-color: rgba(243, 156, 18, 0.3); }
.tag.featured-tag { background: rgba(56, 189, 248, 0.1);  color: var(--accent); border-color: rgba(56, 189, 248, 0.3); }

.project-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.project-card.featured .project-info h3 { font-size: 1.45rem; }

.project-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
}
.project-card.featured .project-info p { font-size: 0.96rem; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.2rem;
    transition: gap var(--ease), color var(--ease);
}
.project-link i { font-size: 0.75rem; transition: transform var(--ease); }
.project-link:hover { color: var(--accent); gap: 0.7rem; }
.project-link:hover i { transform: translateX(2px); }
.project-links-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Certifications ---- */

#certifications {
    padding: 7rem 0;
    background: var(--bg-primary);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.08);
}

.cert-logo {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(234, 67, 53, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ea4335;
}
.cert-logo.microsoft {
    background: rgba(0, 120, 215, 0.12);
    color: #0078d7;
}

.cert-issuer {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.cert-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cert-info p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.cert-verify {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.cert-verify:hover { opacity: 0.75; }

.cert-progress {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- Contact ---- */

#contact {
    padding: 7rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.contact-content {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--ease);
}
.contact-links a:hover { color: var(--accent); }

/* ---- Footer ---- */

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

footer p { font-size: 0.82rem; color: var(--text-muted); }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ---- Scroll reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---- Responsive ---- */

@media (max-width: 820px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-photo { max-width: 200px; margin: 0 auto; }
    .about-stats  { justify-content: center; }
    .detail-item  { justify-content: center; }

    .project-card.featured {
        grid-column: 1;
        grid-template-columns: 1fr;
    }
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }
    .nav-toggle { display: flex; }

    #about, #skills, #certifications, #projects, #contact { padding: 5rem 0; }

    .hero-cta { flex-direction: column; align-items: center; }
}
