/* ============================================================
   Fox Dev Portfolio — style.css
   ============================================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --fox-orange: #ff6b35;
    --fox-amber: #ffb347;
    --fox-dark: #1a0a00;
    --fox-brown: #3d1a00;
    --bg: #0d0d0d;
    --bg-alt: #111111;
    --surface: #1a1a1a;
    --surface2: #242424;
    --border: #2e2e2e;
    --text: #f0ede8;
    --text-muted: #8a8a8a;
    --text-dim: #555;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --glow: 0 0 24px rgba(255, 107, 53, 0.25);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--fox-orange);
    border-radius: 3px;
}

/* ── Selection ── */
::selection {
    background: var(--fox-orange);
    color: #000;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fox-orange);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fox-orange);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.nav-links a:hover {
    color: var(--fox-orange);
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

/* ── Avatar ── */
.avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Fox ears */
.fox-ear {
    position: absolute;
    top: -22px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 22px 40px 22px;
    border-color: transparent transparent var(--fox-orange) transparent;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.6));
    z-index: 2;
}

.ear-left {
    left: 20px;
    transform: rotate(-12deg);
}
.ear-right {
    right: 20px;
    transform: rotate(12deg);
}

/* Inner ear (lighter tip) */
.fox-ear::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 22px 10px;
    border-color: transparent transparent #ffb347 transparent;
}

.avatar-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--fox-orange);
    box-shadow:
        var(--glow),
        0 0 0 6px rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-fallback {
    display: none;
    font-size: 5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fox-brown), var(--fox-dark));
}

/* Status badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ── Bio ── */
.bio {
    flex: 1;
}

.bio-name {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--fox-orange) 0%, var(--fox-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tag {
    color: var(--fox-orange);
}

.bio-text {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

/* ── Links ── */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    background: var(--fox-orange);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
    cursor: pointer;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: #ff7a48;
}

.link-btn--outline {
    background: transparent;
    border-color: var(--fox-orange);
    color: var(--fox-orange);
}

.link-btn--outline:hover {
    background: var(--fox-orange);
    color: #fff;
}

/* ── Scroll Hint ── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    animation: fade-in 1s 1.5s both;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--fox-orange);
    border-bottom: 2px solid var(--fox-orange);
    transform: rotate(45deg);
    animation: bounce-arrow 1.6s infinite;
}

@keyframes bounce-arrow {
    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(5px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 6rem 2rem;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.section-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
}

.paw {
    font-size: 1.4rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.github-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gh-input-row {
    display: flex;
    gap: 0.5rem;
}

.github-meta input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    outline: none;
    transition: border-color var(--transition);
    width: 180px;
}

.github-meta input:focus {
    border-color: var(--fox-orange);
}

.github-meta button {
    background: var(--fox-orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition:
        background var(--transition),
        transform var(--transition);
}

.github-meta button:hover {
    background: #ff7a48;
    transform: scale(1.04);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--fox-orange);
    box-shadow: var(--glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-name svg {
    color: var(--fox-orange);
    flex-shrink: 0;
}

.project-fork-badge {
    font-size: 0.68rem;
    font-family: "JetBrains Mono", monospace;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    color: var(--text-muted);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fox-orange);
    display: inline-block;
}

.project-placeholder {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    padding: 2.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.projects-error {
    grid-column: 1/-1;
    text-align: center;
    color: #f87171;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    padding: 1.5rem;
}

/* Skeleton loader */
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skel {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--surface2) 25%, #2e2e2e 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skel-title {
    height: 18px;
    width: 65%;
}
.skel-desc {
    height: 12px;
    width: 100%;
}
.skel-desc2 {
    height: 12px;
    width: 80%;
}
.skel-lang {
    height: 12px;
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.skill-cat-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fox-orange);
    margin-bottom: 0.85rem;
}

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

.skill-tag {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-family: "JetBrains Mono", monospace;
    color: var(--text-muted);
    transition:
        color var(--transition),
        border-color var(--transition);
}

.skill-tag:hover {
    color: var(--fox-orange);
    border-color: var(--fox-orange);
}

.skill-tag--gold {
    border-color: rgba(255, 179, 71, 0.4);
    color: var(--fox-amber);
}

/* Fun stats */
.fun-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fun-stat {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 1rem;
}

.fun-stat-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.stat-bar {
    height: 8px;
    background: var(--surface2);
    border-radius: 999px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fox-orange), var(--fox-amber));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-fill--red {
    background: linear-gradient(90deg, #f87171, #fb923c);
}
.stat-fill--green {
    background: linear-gradient(90deg, #4ade80, #86efac);
}
.stat-fill--dim {
    background: linear-gradient(90deg, #555, #777);
}

.fun-stat-val {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--fox-amber);
    white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-sub {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .bio-text {
        margin: 0 auto 1.75rem;
    }

    .links {
        justify-content: center;
    }

    .navbar {
        padding: 0 1.25rem;
    }
    .nav-links {
        gap: 1.2rem;
    }

    .fun-stat {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .fun-stat-label {
        text-align: left;
    }
}

@media (max-width: 400px) {
    .nav-links {
        display: none;
    }
}

.construction-banner {
    font-size: clamp(1rem, 2vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10rem;
}
