/* ============================================================
   KodaKodra Portfolio — Global Styles
   Signature system: sections are labeled like Laravel migration
   filenames (// 2026_07_07_000001_create_x_table.php), tying the
   visual language directly to how this developer actually works.
   Mobile-first. No inline styles. PSR-12 naming philosophy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300&display=swap');

:root {
    --bg:            #0a0c12;
    --bg-2:          #0e131c;
    --bg-card:       #121a26;
    --bg-card-hover: #17202f;
    --accent:        #f0c060;      /* gold — primary */
    --accent-dim:    #c9a03d;
    --accent-glow:   rgba(240, 192, 96, 0.12);
    --gold:          #f0c060;
    --teal:          #6fd6c4;      /* secondary — used only for "live/ok" states */
    --text:          #eef1f6;
    --text-muted:    #93a3c2;
    --text-dim:      #57647d;
    --border:        rgba(240, 192, 96, 0.16);
    --border-hover:  rgba(240, 192, 96, 0.5);
    --font-display:  'Syne', sans-serif;
    --font-body:     'DM Sans', sans-serif;
    --font-mono:     'DM Mono', monospace;
    --radius:        10px;
    --radius-sm:     6px;
    --transition:    0.2s ease;
    --nav-h:         68px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* Faint schema/ER dot-grid — the page's quiet background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(240, 192, 96, 0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -8px -8px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 70%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===================== Navigation ===================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links { display: none; gap: 2.25rem; list-style: none; }
.nav__links a {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 0.25rem 0;
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--accent); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__burger span {
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 12, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
    flex-direction: column;
    gap: 1.1rem;
    z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.nav__mobile a.active,
.nav__mobile a:hover { color: var(--accent); }

@media (min-width: 769px) {
    .nav__links { display: flex; }
    .nav__burger { display: none; }
    .nav__mobile { display: none !important; }
}

.page { padding-top: var(--nav-h); }

/* ===================== Migration-style labels ===================== */
/* Signature element: every section is "commented" like a Laravel
   migration filename — grounded in how this developer actually
   structures his own work (Migration → Model → Policy → Controller). */
.migration-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.migration-label::before { content: '//'; color: var(--accent-dim); }
.migration-label__file { color: var(--accent); }

.section-heading {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.text-muted-custom { color: var(--text-muted); }

/* ===================== Badges / tags ===================== */
.badge-custom {
    background: rgba(240, 192, 96, 0.1);
    border: 1px solid rgba(240, 192, 96, 0.25);
    color: var(--accent);
    padding: 0.32rem 0.85rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    display: inline-block;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: rgba(240, 192, 96, 0.08);
    border: 1px solid rgba(240, 192, 96, 0.2);
    color: var(--accent);
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    display: inline-block;
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn--primary {
    background: var(--accent);
    color: #0a0c12;
    font-weight: 600;
}
.btn--primary:hover {
    background: #f5cd77;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 192, 96, 0.22);
}
.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--accent);
}
.btn--outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.btn-group { display: flex; flex-wrap: wrap; }

/* ===================== Hero ===================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero__eyebrow .cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
    vertical-align: text-bottom;
}
@media (prefers-reduced-motion: reduce) {
    .hero__eyebrow .cursor { animation: none; }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(2.6rem, 8vw, 4.4rem);
    line-height: 1.05;
}
.hero__title .accent { color: var(--accent); }

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s both;
}
@media (max-width: 768px) { .hero__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; opacity: 0.6; } }
.hero__scroll span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-line { animation: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ===================== Stats ===================== */
.stats {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 2rem 0;
}
.stat-col { border-right: 1px solid var(--border); }
.stat-col:last-child { border-right: none; }
.stat { padding: 1.1rem 0.5rem; }
.stat__number {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    font-size: 1.5rem;
    word-break: keep-all;
}
.stat__label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    line-height: 1.3;
}
@media (min-width: 768px) {
    .stat__number { font-size: 1.8rem; }
    .stat__label { font-size: 0.68rem; }
}

/* ===================== Feature / value cards ===================== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.feature-card__icon { font-size: 1.7rem; color: var(--accent); margin-bottom: 1rem; }
.feature-card__title { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.5rem; }

/* ===================== Skill cards ===================== */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
    transition: all var(--transition);
}
.skill-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.skill-card--highlight { border-color: rgba(111, 214, 196, 0.35); }
.skill-card--highlight:hover { border-color: rgba(111, 214, 196, 0.6); }
.skill-card__icon { font-size: 1.7rem; margin-bottom: 1rem; color: var(--accent); }
.skill-card--highlight .skill-card__icon { color: var(--teal); }
.skill-card__title {
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.skill-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.skill-card__tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-card--highlight .tag { border-color: rgba(111, 214, 196, 0.3); color: var(--teal); background: rgba(111, 214, 196, 0.08); }

.pill-new {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: #0a0c12;
    background: var(--teal);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ===================== Project cards ===================== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.project-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0.6rem 0 0.5rem; }
.project-card__desc { font-size: 0.85rem; color: var(--text-muted); flex-grow: 1; }
.project-card__tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.callout-strip {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.callout-strip i { color: var(--accent); margin-top: 0.15rem; }

/* ===================== CTA strip ===================== */
.cta-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}

/* ===================== About page ===================== */
.about-body p { margin-bottom: 1.1rem; color: var(--text-muted); }
.about-body strong { color: var(--text); }
.highlight { color: var(--accent); font-weight: 600; }

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    height: 100%;
    transition: all var(--transition);
}
.philosophy-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.philosophy-card__title { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; }
.philosophy-card__body { font-size: 0.85rem; color: var(--text-muted); }

.timeline {
    padding-left: 1.25rem;
    border-left: 1px solid var(--border);
}
.timeline-item { margin-bottom: 1.5rem; position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.timeline-item__year { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }
.timeline-item__title { font-weight: 700; font-size: 0.9rem; margin-top: 0.15rem; }

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.info-card__header {
    background: #161d2b;
    padding: 0.65rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.info-card__body { padding: 0.3rem 1rem 0.4rem; }
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row__label { font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); white-space: nowrap; }
.info-row__value { font-size: 0.8rem; text-align: right; }
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 0.4rem;
    animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* ===================== Contact page ===================== */
.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}
.contact-link-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateX(4px); }
.contact-link-card__icon { font-size: 1.4rem; color: var(--accent); width: 1.5rem; text-align: center; }
.contact-link-card__title { font-weight: 700; font-size: 0.9rem; }
.contact-link-card__value { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.availability-banner {
    background: linear-gradient(135deg, rgba(111, 214, 196, 0.09), transparent);
    border: 1px solid rgba(111, 214, 196, 0.25);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.availability-banner__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .availability-banner__dot { animation: none; } }
.availability-banner__title { font-family: var(--font-display); font-weight: 700; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ===================== Footer ===================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.4rem clamp(1.25rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 3.5rem;
    font-family: var(--font-mono);
}
.footer__links a { margin-left: 1.25rem; color: inherit; transition: color var(--transition); }
.footer__links a:first-child { margin-left: 0; }
.footer__links a:hover { color: var(--accent); }

/* ===================== Animations & reveal ===================== */
.anim-fade-up { animation: fadeUp 0.6s both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.3s; }
[data-reveal] { opacity: 0; }
[data-reveal].anim-fade-up { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .anim-fade-up, [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; }
}
