/* ============================================================
   HugoCodesNet — V3 REDESIGN
   Business / corporate refinement. No serif italics, single
   primary accent, hairline borders, refined editorial layout.
   ============================================================ */

/* ---------- Refined palette overrides ---------------------- */
:root {
    --bg:           #0b0f1e;
    --bg-soft:      #10162a;
    --bg-alt:       #141a30;
    --panel:        rgba(255, 255, 255, 0.025);
    --panel-2:      rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.07);
    --panel-border-soft: rgba(255, 255, 255, 0.04);

    --text:         #f0f3fa;
    --text-dim:     #aab4cc;
    --text-mute:    #7180a0;

    /* Single primary accent. Other accents kept but used sparingly. */
    --accent:       #5ee0c1;
    --accent-soft:  rgba(94, 224, 193, 0.12);
    --accent-line:  rgba(94, 224, 193, 0.30);
}

body {
    background:
        radial-gradient(700px 400px at 80% -5%, rgba(94, 224, 193, 0.07), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, rgba(108, 184, 255, 0.05), transparent 60%),
        linear-gradient(180deg, #0b0f1e 0%, #0c1020 100%);
}

/* Kill the .serif font everywhere — fallback to clean sans */
.serif {
    font-family: var(--font-sans) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Cursor halo — much more subtle */
#cursor-halo {
    width: 400px; height: 400px;
    background: radial-gradient(circle,
        rgba(94, 224, 193, 0.08) 0%,
        transparent 60%);
    filter: blur(20px);
}

/* ============================================================
   TYPOGRAPHY — premium corporate
   ============================================================ */
body { font-feature-settings: "ss01" 1, "cv11" 1; letter-spacing: -0.005em; }

h1, h2, h3 { letter-spacing: -0.025em; }

/* ============================================================
   BUTTONS — refined, professional
   ============================================================ */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out, ease),
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: #0b1322;
    box-shadow: 0 10px 24px -10px rgba(94, 224, 193, 0.55);
}
.btn-primary:hover {
    background: #6eecd0;
    box-shadow: 0 16px 30px -10px rgba(94, 224, 193, 0.7);
}
.btn-primary i { font-size: 1rem; transition: transform 0.25s var(--ease-out); }
.btn-primary:hover i { transform: translateX(3px); }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--panel-border);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}

/* ============================================================
   HERO V3 — editorial, asymmetric, premium
   ============================================================ */
.hero-v3 {
    position: relative;
    min-height: 100vh;
    padding: 7rem 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-v3-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-v3-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 30%, transparent 80%);
}
.hero-v3-glow {
    position: absolute;
    top: 20%; right: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 224, 193, 0.10), transparent 65%);
    filter: blur(60px);
    animation: float-slow 18s ease-in-out infinite;
}

.hero-v3-inner { position: relative; z-index: 2; width: 100%; }

.hero-v3-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--panel-border-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-v3-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--text-dim);
}
.dot-static {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.hero-v3-location i { margin-right: 0.3rem; color: var(--accent); }

.hero-v3-grid-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-v3-grid-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-v3-aside { order: -1; max-width: 260px; }
}

.hero-v3-text { min-width: 0; }

.hero-v3-headline {
    font-family: var(--font-sans);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 1.75rem;
}
.hero-v3-headline .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}
.hero-v3-headline .line-muted {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.82em;
    margin-top: 0.4em;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Word reveal */
.hero-v3 .word-anim { transition-delay: calc(var(--i, 0) * 60ms); }
.hero-v3.is-loaded .word-anim { transform: translateY(0); }

.hero-v3-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 36rem;
    margin: 0 0 2rem;
}

.hero-v3-actions {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-v3-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--panel-border-soft);
}
.hero-v3-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1rem;
    border-right: 1px solid var(--panel-border-soft);
}
.hero-v3-stats li:last-child { border-right: 0; padding-right: 0; }
.hero-v3-stats li + li { padding-left: 1rem; }
.hero-v3-stat-val {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    font-feature-settings: "tnum" 1;
}
.hero-v3-stat-val small {
    font-size: 0.6em;
    color: var(--accent);
    font-weight: 700;
    margin-left: 0.05em;
}
.hero-v3-stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
@media (max-width: 600px) {
    .hero-v3-stats { grid-template-columns: 1fr; }
    .hero-v3-stats li { border-right: 0; border-bottom: 1px solid var(--panel-border-soft); padding: 1rem 0; }
    .hero-v3-stats li + li { padding-left: 0; }
    .hero-v3-stats li:last-child { border-bottom: 0; }
}

/* Aside — photo with caption */
.hero-v3-aside { display: flex; justify-content: center; }
.hero-v3-photo {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    background: var(--bg-soft);
    box-shadow:
        0 30px 80px -30px rgba(0,0,0,0.7),
        0 0 0 1px rgba(94, 224, 193, 0.08);
    transition: transform 0.6s var(--ease-out);
}
.hero-v3-photo:hover { transform: translateY(-4px); }
.hero-v3-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 0.8s var(--ease-out);
}
.hero-v3-photo:hover img { transform: scale(1.04); }
.hero-v3-photo figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, transparent, rgba(8, 12, 24, 0.92));
    display: flex; flex-direction: column; gap: 0.15rem;
}
.hero-v3-photo-label {
    color: #fff; font-weight: 600; font-size: 1rem;
}
.hero-v3-photo-sub {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero-v3-scroll {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-mute);
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 3;
}
.hero-v3-scroll-line {
    width: 1px; height: 32px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
    50%      { transform: scaleY(1);   opacity: 1; }
}
.hero-v3-scroll:hover { color: var(--text); }

/* ============================================================
   SECTION HEADERS V3 — big numbered, no italic
   ============================================================ */
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}
.section-header h2 span {
    color: var(--accent);
    font-weight: 800;
}
.section-index {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-mute);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding-left: 1.4rem;
    position: relative;
}
.section-index::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 1rem; height: 1px;
    background: var(--accent);
    transform: translateY(-50%);
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 38rem;
    line-height: 1.5;
}

/* ============================================================
   MARQUEE V3 — slower, subtler, single line
   ============================================================ */
.marquee-section {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--panel-border-soft);
    border-bottom: 1px solid var(--panel-border-soft);
}
.marquee-section .marquee-reverse { display: none; }
.marquee-track { animation-duration: 60s; gap: 2.5rem; }
.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.marquee-item i { font-size: 1.1rem; opacity: 0.85; }
.marquee-sep { color: var(--text-mute); opacity: 0.3; }

/* ============================================================
   CARDS — refined hairline borders, less gimmick
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 1px 0 0 rgba(255,255,255,0.04) inset;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out);
}
.glass:hover {
    border-color: var(--accent-line);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-2px);
}
.glass::before { display: none !important; } /* kill v1 gradient border */

/* Skills */
.skill-card { padding: 1.5rem; }
.skill-head i {
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
    color: var(--accent) !important;
}
.skill-card:nth-child(n) .skill-head i {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border-color: var(--accent-line) !important;
}
.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
}
.chip:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-line);
}

/* Expertise — single accent, no rainbow */
.expertise-card { padding: 1.65rem; }
.exp-icon,
.expertise-card:nth-child(n) .exp-icon {
    width: 44px; height: 44px;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.expertise-card:hover .exp-icon { transform: none !important; }
.expertise-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: #fff; }
.expertise-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; margin: 0; }

/* Education */
.edu-card { padding: 1.5rem; }
.edu-period {
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
}
.edu-inst i, .edu-note i { color: var(--accent); }

/* Timeline */
.timeline::before {
    background: linear-gradient(180deg, var(--accent), transparent) !important;
    opacity: 0.5;
}
.timeline-node {
    background: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent) !important;
}
.timeline-period {
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
}
.timeline-meta i { color: var(--accent); }
.timeline-bullets li::marker { color: var(--accent); }

/* Contact cards — single accent */
.contact-card,
.contact-card:nth-child(n) .contact-icon {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}
.contact-card {
    background: rgba(255, 255, 255, 0.022) !important;
    color: var(--text);
}
.contact-icon {
    border: 1px solid var(--accent-line);
}
.contact-card:hover .contact-arrow { color: var(--accent); }

/* About stats — corporate edit */
.about-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
}
.about-stats > div {
    border-left: 1px solid var(--panel-border-soft) !important;
    border-image: none !important;
}
.about-stats > div:first-child { border-left: 0 !important; padding-left: 0; }
.about-stats strong,
.about-stats > div:nth-child(n) strong {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    font-size: 1.85rem !important;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: -0.03em;
    font-feature-settings: "tnum" 1;
}
.about-stats span { color: var(--text-mute); font-size: 0.82rem; }

/* ============================================================
   CODE SHOWCASE V3 — refined
   ============================================================ */
.code-panel-v2 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--panel-border);
}
.code-head-v2 { background: rgba(255,255,255,0.02); }
.code-tab-v2 i { color: var(--text-mute); }
.code-tab-v2.is-active i { color: var(--accent); }
.code-tab-v2.is-active { border-color: var(--accent-line); background: var(--accent-soft); }
.code-tab-v2 .tab-arrow { color: var(--accent); }
.code-meta-v2 h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   CTA BANNER V3
   ============================================================ */
.cta-banner-v3 {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    text-align: center;
}
.cta-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(94, 224, 193, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
    border-top: 1px solid var(--panel-border-soft);
    border-bottom: 1px solid var(--panel-border-soft);
}
.cta-inner-v3 { position: relative; z-index: 1; }
.cta-eyebrow-v3 {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--accent); letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.cta-title-v3 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 1rem;
}
.cta-accent { color: var(--accent); }
.cta-sub-v3 {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 38rem;
    margin: 0 auto 2rem;
}
.cta-buttons-v3 { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER V3 — refined editorial
   ============================================================ */
.footer-mega {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 14vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--accent);
    -webkit-text-stroke: 0;
    margin: 0 0 2.5rem;
    text-shadow: 0 0 40px rgba(94, 224, 193, 0.25);
}
.footer-mega-accent {
    color: #fff;
    -webkit-text-stroke: 0;
}

/* ============================================================
   NAV — refined hover
   ============================================================ */
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-cta {
    background: var(--accent) !important;
    color: #0b1322 !important;
    border-color: transparent !important;
}
.nav-cta:hover { background: #6eecd0 !important; }

/* ============================================================
   Misc — remove old gimmicks
   ============================================================ */
.glitch::before, .glitch::after { display: none !important; }
#matrix-rain { display: none !important; }
.hero-matrix { display: none !important; }

/* About identity tile refinement */
.about-photo { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.about-photo-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem 1.1rem;
    font-family: var(--font-mono); font-size: .82rem;
    color: var(--text); line-height: 1.4;
    background: linear-gradient(180deg, transparent, rgba(8,12,24,0.92));
}
.about-photo-overlay .prompt { color: var(--accent); margin-right: 0.25rem; }
.about-photo-overlay strong { color: #fff; font-weight: 600; }
.about-photo-overlay .role-line { color: var(--accent); font-size: 0.78rem; }
