/* ==========================================================================
   Alex M. Rivera — Portfolio
   Shared stylesheet for all pages (index, about, business, research,
   experience, contact). Edit here once, it applies everywhere.
   ========================================================================== */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1420;
    --bg-elevated: #161c2c;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text-primary: #f8fafc;
    --text-secondary: #ccd3e0;
    --text-tertiary: #8792a8;
    --accent-cyan: #22d3ee;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-teal: #2dd4bf;
    --accent-amber: #f59e0b;
    --accent-orange: #fb923c;
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow-glow: 0 20px 60px -15px rgba(34, 211, 238, 0.25);

    /* Default (mixed) gradient — used on Home, About, Experience, Contact */
    --gradient-main: linear-gradient(120deg, var(--accent-teal), var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    --gradient-accent-solid: var(--accent-cyan);
}

/* Business pages lean warm/amber — entrepreneurship identity */
body.theme-business {
    --gradient-main: linear-gradient(120deg, #fbbf24, var(--accent-amber), var(--accent-orange), #f97316);
    --gradient-accent-solid: var(--accent-amber);
    --shadow-glow: 0 20px 60px -15px rgba(245, 158, 11, 0.28);
}

/* Research pages lean cool/cyan-teal — scientific identity */
body.theme-research {
    --gradient-main: linear-gradient(120deg, var(--accent-teal), var(--accent-cyan), var(--accent-blue));
    --gradient-accent-solid: var(--accent-cyan);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .brand-font { font-family: 'Sora', 'Inter', sans-serif; }

::selection { background: var(--accent-cyan); color: #06121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.10), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(168, 85, 247, 0.10), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(45, 212, 191, 0.08), transparent 45%);
    pointer-events: none;
    transition: background 0.6s ease;
}
body.theme-business::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.10), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.10), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(249, 115, 22, 0.08), transparent 45%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

a { color: inherit; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--gradient-main);
    background-size: 300% 300%;
    animation: pulseGradient 1.4s ease infinite, spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Buttons */
.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 0.65rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-main);
    background-size: 250% 250%;
    color: #06121a;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); background-position: 100% 50%; }
.btn-secondary {
    border: 1.5px solid var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(6px);
}
.btn-secondary:hover { border-color: var(--gradient-accent-solid); color: var(--gradient-accent-solid); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%;
    background-color: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--border-primary); background-color: rgba(10, 14, 23, 0.92); }

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }

.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.logo-text { background: var(--gradient-main); background-size: 250% 250%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulseGradient 6s ease infinite; }
.logo-icon {
    width: 36px; height: 36px;
    background: var(--gradient-main); background-size: 250% 250%;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #06121a; font-size: 0.95rem;
    animation: pulseGradient 6s ease infinite;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--gradient-main);
    transition: width 0.3s 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-cta { margin-left: 0.25rem; }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.4rem; cursor: pointer;
    z-index: 1100;
}

/* Sections */
section { padding: 6.5rem 0; position: relative; }
.section-alt { background-color: var(--bg-secondary); }
.section-tight { padding: 3.5rem 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gradient-accent-solid);
    background: color-mix(in srgb, var(--gradient-accent-solid) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--gradient-accent-solid) 30%, transparent);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}
.eyebrow i { font-size: 0.7rem; }

.section-title { text-align: center; margin-bottom: 3.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title.left { text-align: left; margin-left: 0; }
.section-title h2 {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem;
    display: inline-flex; align-items: center; gap: 0.75rem; justify-content: center;
}
.section-title.left h2 { justify-content: flex-start; }
.section-title .grad-text { background: var(--gradient-main); background-size: 250% 250%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title p { color: var(--text-tertiary); font-size: 1.05rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }
.reveal-delay-3.visible { transition-delay: 0.24s; }
.reveal-delay-4.visible { transition-delay: 0.32s; }

/* Page header (inner pages hero) */
.page-header {
    padding-top: 9.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header .eyebrow { }
.page-header h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; }
.page-header p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.page-header .blob { opacity: 0.25; }

/* Hero (home only) */
#home { padding-top: 10rem; padding-bottom: 4rem; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: 0.35; }
.blob-1 { width: 420px; height: 420px; background: var(--accent-cyan); top: -100px; right: -80px; animation: float1 14s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: var(--accent-purple); bottom: -120px; left: -100px; animation: float2 16s ease-in-out infinite; }
.blob-3 { width: 260px; height: 260px; background: var(--accent-amber); top: 40%; left: 55%; animation: float1 12s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, -40px) scale(1.08); } }

.hero-content { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }

.hero-text h1 { font-size: 3.2rem; line-height: 1.15; font-weight: 800; margin-bottom: 0.75rem; }
.hero-role {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 1.25rem; min-height: 1.8rem;
    background: var(--gradient-main); background-size: 250% 250%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: pulseGradient 6s ease infinite;
}
.hero-text > p.hero-desc { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 540px; }

.hero-contact { display: flex; gap: 1rem; margin-bottom: 2.25rem; flex-wrap: wrap; }

.hero-socials { display: flex; gap: 0.9rem; }
.social-btn {
    width: 42px; height: 42px; border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-primary);
    background: var(--bg-glass);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
}
.social-btn:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); transform: translateY(-3px); }

/* Hero visual (photo) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.photo-frame {
    width: 320px; height: 320px; border-radius: 50%;
    background: var(--gradient-main); background-size: 250% 250%;
    animation: pulseGradient 8s ease infinite;
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    box-shadow: var(--shadow-glow);
}
.photo-frame img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.floating-badge {
    position: absolute;
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    font-size: 0.85rem;
    animation: bob 5s ease-in-out infinite;
}
.floating-badge i { font-size: 1rem; }
.badge-1 { top: 4%; left: -10%; color: var(--accent-amber); animation-delay: 0s; }
.badge-2 { bottom: 10%; right: -12%; color: var(--accent-purple); animation-delay: 1.2s; }
.badge-3 { bottom: -6%; left: 8%; color: var(--accent-teal); animation-delay: 2.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.badge-title { color: var(--text-primary); font-weight: 700; display: block; }
.badge-sub { color: var(--text-tertiary); font-size: 0.75rem; }

.scroll-cue {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: var(--text-tertiary); font-size: 1.3rem;
    animation: bob 2.4s ease-in-out infinite;
}

/* Stats bar */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; margin-top: 4rem;
    padding: 2rem; border-radius: 1.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    background: var(--gradient-main); background-size: 250% 250%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: pulseGradient 6s ease infinite;
}
.stat-label { color: var(--text-tertiary); font-size: 0.85rem; margin-top: 0.35rem; }

/* Two Paths (Business vs Research) */
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.path-card {
    border-radius: 1.5rem;
    padding: 2.75rem 2.25rem;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: all 0.35s ease;
}
.path-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.path-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0.85; z-index: -1;
}
.path-business::before { background: linear-gradient(160deg, rgba(245,158,11,0.14), rgba(15,20,32,0.4)); }
.path-research::before { background: linear-gradient(160deg, rgba(34,211,238,0.14), rgba(15,20,32,0.4)); }
.path-icon {
    width: 60px; height: 60px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1.5rem; color: #06121a;
}
.path-business .path-icon { background: linear-gradient(120deg, #fbbf24, var(--accent-amber)); }
.path-research .path-icon { background: linear-gradient(120deg, var(--accent-teal), var(--accent-cyan)); }
.path-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.path-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.98rem; }
.path-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; }
.path-business .path-link { color: var(--accent-amber); }
.path-research .path-link { color: var(--accent-cyan); }
.path-link i { transition: transform 0.25s ease; font-size: 0.8rem; }
.path-card:hover .path-link i { transform: translateX(4px); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }
.about-visual {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(160deg, var(--bg-elevated), var(--bg-secondary));
    border: 1px solid var(--border-primary);
    overflow: hidden;
}
.about-visual img { width: 100%; border-radius: 1rem; display: block; object-fit: cover; max-height: 460px; }

.about-text h3 { font-size: 1.9rem; margin-bottom: 1.1rem; font-weight: 700; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.1rem; }
.about-highlights { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: 0.85rem; }
.about-highlights li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-secondary); }
.about-highlights i { color: var(--accent-teal); margin-top: 0.2rem; }

/* Identity split bar (About) */
.identity-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.identity-pill {
    padding: 1.1rem 1.3rem; border-radius: 0.9rem; border: 1px solid var(--border-primary);
    background: var(--bg-glass);
}
.identity-pill .identity-role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 0.3rem; }
.identity-pill .identity-name { font-weight: 700; font-size: 1.02rem; }
.identity-pill.amber { border-color: rgba(245,158,11,0.3); }
.identity-pill.cyan { border-color: rgba(34,211,238,0.3); }

/* Focus Areas / Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 1.1rem;
    padding: 2rem 1.6rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(160deg, rgba(34,211,238,0.08), rgba(168,85,247,0.08));
    transition: opacity 0.35s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 56px; height: 56px; border-radius: 0.85rem;
    background: var(--gradient-main); background-size: 250% 250%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #06121a; margin-bottom: 1.25rem;
    position: relative; z-index: 1;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.service-card p { color: var(--text-tertiary); font-size: 0.92rem; position: relative; z-index: 1; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.skill-category {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 1.1rem;
    padding: 1.75rem;
}
.skill-category-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }
.skill-category-head i { color: var(--accent-cyan); font-size: 1.1rem; }
.skill-category h3 { font-size: 1.05rem; font-weight: 700; }

.skill-item { margin-bottom: 1.1rem; }
.skill-item:last-child { margin-bottom: 0; }
.skill-name-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.88rem; }
.skill-name { color: var(--text-secondary); }
.skill-percent { color: var(--text-tertiary); }
.skill-bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 9999px; overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; border-radius: 9999px; background: var(--gradient-main); background-size: 250% 250%; transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Founders grid (Business) */
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.founder-card {
    background: var(--bg-glass); border: 1px solid var(--border-primary); border-radius: 1.1rem;
    padding: 1.75rem; text-align: center; transition: all 0.3s ease;
}
.founder-card.is-you { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.founder-card:hover { transform: translateY(-4px); }
.founder-avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800;
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(251,146,60,0.25));
    border: 1px solid rgba(245,158,11,0.3); color: var(--accent-amber);
    overflow: hidden;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.founder-card p { color: var(--text-tertiary); font-size: 0.85rem; }

/* Product card (Business - Vórtice) */
.product-card {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(17,24,39,0.4));
    border: 1px solid var(--border-primary); border-radius: 1.5rem; padding: 2.5rem;
    margin-top: 2rem;
}
.product-visual {
    aspect-ratio: 1; border-radius: 1.2rem;
    background: linear-gradient(150deg, #f59e0b, #ea580c);
    display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(6,18,26,0.85);
}
.product-specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.5rem 0; }
.product-specs li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.9rem; }
.product-specs i { color: var(--gradient-accent-solid); }

/* Press / Media grid */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.press-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--bg-glass); border: 1px solid var(--border-primary); border-radius: 1rem;
    padding: 1.4rem; text-decoration: none; color: inherit; transition: all 0.3s ease;
}
.press-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.press-icon {
    width: 42px; height: 42px; border-radius: 0.6rem; flex-shrink: 0;
    background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25);
    display: flex; align-items: center; justify-content: center; color: var(--accent-amber);
}
.press-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; line-height: 1.35; }
.press-card span { color: var(--text-tertiary); font-size: 0.8rem; }

/* Responsibilities list (Business) */
.responsibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.responsibility-item {
    display: flex; gap: 0.85rem; padding: 1.1rem 1.2rem; border-radius: 0.85rem;
    background: var(--bg-glass); border: 1px solid var(--border-primary); font-size: 0.9rem; color: var(--text-secondary);
}
.responsibility-item i { color: var(--accent-amber); margin-top: 0.15rem; flex-shrink: 0; }

/* Publications (Research) */
.pub-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.pub-card {
    background: var(--bg-elevated); border: 1px solid var(--border-primary); border-radius: 1rem;
    padding: 1.5rem 1.75rem; transition: all 0.3s ease;
}
.pub-card:hover { border-color: rgba(34,211,238,0.3); }
.pub-type { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-cyan); background: rgba(34,211,238,0.1); padding: 0.2rem 0.6rem; border-radius: 0.3rem; margin-bottom: 0.6rem; }
.pub-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; }
.pub-meta { color: var(--text-tertiary); font-size: 0.88rem; margin-bottom: 0.6rem; }
.pub-authors { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 0.8rem; }
.pub-authors strong { color: var(--text-primary); }
.pub-link { color: var(--accent-cyan); text-decoration: none; font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.pub-link i { font-size: 0.75rem; }

/* Projects (Research) */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 1.1rem;
    overflow: hidden;
    transition: all 0.35s ease;
}
.project-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,0.4); }
.project-thumb {
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: rgba(255,255,255,0.9);
    position: relative;
}
.thumb-1 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.thumb-2 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.thumb-3 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.thumb-4 { background: linear-gradient(135deg, #059669, #047857); }
.project-body { padding: 1.5rem; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.9rem; gap: 0.5rem; }
.project-status { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.status-in-progress { background: rgba(234, 179, 8, 0.15); color: #facc15; border-color: rgba(234, 179, 8, 0.3); }
.status-completed { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.status-published { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.project-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { color: var(--text-secondary); margin-bottom: 1.1rem; font-size: 0.92rem; }
.project-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-tertiary); font-size: 0.82rem; padding-top: 1rem; border-top: 1px solid var(--border-primary); }
.project-tag { background: rgba(255,255,255,0.06); padding: 0.25rem 0.65rem; border-radius: 0.4rem; }
.project-link { color: var(--accent-cyan); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.project-link i { font-size: 0.75rem; transition: transform 0.25s ease; }
.project-link:hover i { transform: translateX(3px); }

/* Timeline (Experience) */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(var(--accent-amber), var(--accent-cyan), var(--accent-purple));
    opacity: 0.35;
}
.timeline-item { position: relative; padding-left: 4rem; margin-bottom: 2.25rem; }
.timeline-dot {
    position: absolute; left: 11px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-primary); border: 3px solid var(--gradient-accent-solid);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gradient-accent-solid) 15%, transparent);
}
.timeline-item.type-business .timeline-dot { border-color: var(--accent-amber); box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
.timeline-item.type-research .timeline-dot { border-color: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(34,211,238,0.15); }
.timeline-item.type-education .timeline-dot { border-color: var(--accent-purple); box-shadow: 0 0 0 4px rgba(168,85,247,0.15); }
.timeline-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.75rem;
}
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; gap: 1rem; flex-wrap: wrap; }
.timeline-title-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.timeline-title { font-size: 1.3rem; font-weight: 700; }
.timeline-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.18rem 0.55rem; border-radius: 9999px; }
.timeline-tag.business { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.timeline-tag.research { background: rgba(34,211,238,0.15); color: var(--accent-cyan); }
.timeline-tag.education { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.timeline-company { color: var(--text-secondary); font-size: 1rem; margin-bottom: 0.25rem; font-weight: 600; }
.timeline-location { color: var(--text-tertiary); font-size: 0.92rem; }
.timeline-period {
    color: var(--text-primary); font-family: 'Sora', monospace; font-size: 0.85rem; font-weight: 600;
    background: rgba(255,255,255,0.06); padding: 0.3rem 0.8rem; border-radius: 9999px; white-space: nowrap;
}
.timeline-list { list-style: none; }
.timeline-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.7rem; color: var(--text-secondary); font-size: 0.95rem; }
.timeline-bullet { width: 6px; height: 6px; background: var(--accent-teal); border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }
.timeline-quote { color: var(--text-secondary); font-style: italic; font-size: 0.95rem; }

.subsection-title { display: flex; align-items: center; gap: 0.75rem; font-size: 1.75rem; font-weight: 700; margin: 4rem 0 2rem; justify-content: center; }
.subsection-title i { color: var(--accent-purple); }

/* Achievements */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.achievement-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}
.achievement-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.achievement-icon {
    width: 60px; height: 60px; margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(168,85,247,0.15));
    border: 1px solid var(--border-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent-cyan);
}
.achievement-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; font-weight: 700; }
.achievement-card p { color: var(--text-tertiary); font-size: 0.85rem; }

/* CTA Banner */
.cta-banner {
    position: relative;
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-accent-solid) 14%, transparent), rgba(168,85,247,0.10));
    border: 1px solid var(--border-primary);
}
.cta-banner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.9rem; }
.cta-banner p { color: var(--text-secondary); max-width: 550px; margin: 0 auto 1.75rem; }
.cta-banner .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1.25rem; }
.contact-card {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.4rem; border-radius: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--accent-cyan); transform: translateX(6px); }
.contact-card-icon {
    width: 48px; height: 48px; border-radius: 0.75rem; flex-shrink: 0;
    background: var(--gradient-main); background-size: 250% 250%;
    display: flex; align-items: center; justify-content: center;
    color: #06121a; font-size: 1.1rem;
}
.contact-card-title { font-weight: 700; margin-bottom: 0.15rem; }
.contact-card-sub { color: var(--text-tertiary); font-size: 0.85rem; }

.contact-side {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 1.25rem;
    padding: 2.5rem;
}
.contact-side h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.contact-side p { color: var(--text-secondary); margin-bottom: 1.75rem; }
.availability { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; color: var(--text-secondary); font-size: 0.92rem; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 rgba(74, 222, 128, 0.6); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.contact-note { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-tertiary); font-size: 0.85rem; margin-top: 1.5rem; }
.contact-note i { margin-top: 0.2rem; color: var(--accent-amber); }

/* Footer */
footer { border-top: 1px solid var(--border-primary); padding: 3rem 0 2rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-socials { display: flex; gap: 0.8rem; }
footer p { color: var(--text-tertiary); font-size: 0.9rem; }

.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-main); background-size: 250% 250%;
    color: #06121a; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .hero-content, .about-grid, .contact-grid, .paths-grid, .product-card { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
    .hero-visual { order: -1; margin-bottom: 1rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .identity-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; max-width: 80vw; height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column; justify-content: center; align-items: flex-start;
        gap: 1.6rem; padding: 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border-primary);
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.05rem; }
    .nav-cta { margin-left: 0; }

    .mobile-menu-btn { display: block; }

    .hero-text h1 { font-size: 2.3rem; }
    .hero-role { font-size: 1.05rem; }
    .hero-contact { flex-direction: column; }
    .hero-contact .btn { width: 100%; justify-content: center; }
    .floating-badge { display: none; }
    .photo-frame { width: 220px; height: 220px; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }
    .stat-number { font-size: 1.6rem; }

    .section-title h2, .page-header h1 { font-size: 1.8rem; }
    section { padding: 4rem 0; }
    .page-header { padding-top: 8rem; }

    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 2.75rem; }
    .timeline-dot { left: 1px; }
    .timeline-header { flex-direction: column; }

    .cta-banner { padding: 2.5rem 1.5rem; }
    .cta-banner h2 { font-size: 1.5rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .product-specs { grid-template-columns: 1fr; }
}
