/* ============================================================
   HOME.CSS — index.html only
   ============================================================ */

/* ----------------------------------------------------------
   HERO — always dark
   ---------------------------------------------------------- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: var(--dark); padding-top: 64px;
}

#grid-canvas {
    position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto; padding: 4rem 2rem;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--green); border: 1.5px solid var(--green-border);
    padding: 0.4rem 1rem; margin-bottom: 2rem;
    opacity: 0; animation: hFadeUp 0.6s ease 0.3s forwards;
}

.hero-name {
    font-family: var(--font-sans); font-weight: 800;
    line-height: 0.9; letter-spacing: -0.03em;
    color: var(--on-dark); margin-bottom: 1.5rem; overflow: hidden;
}

.hero-name .line-1,
.hero-name .line-2 {
    display: block;
    font-size: clamp(3.5rem, 10vw, 9rem);
    opacity: 0; transform: translateY(60px);
}

.hero-name .line-1 { animation: hSlideUp 0.8s cubic-bezier(0.2,0,0,1) 0.5s forwards; }
.hero-name .line-2 {
    -webkit-text-stroke: 2px var(--on-dark); color: transparent;
    animation: hSlideUp 0.8s cubic-bezier(0.2,0,0,1) 0.65s forwards;
}

@keyframes hSlideUp { to { opacity:1; transform:translateY(0); } }
@keyframes hFadeUp  { to { opacity:1; } }

.hero-subtitle {
    font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
    color: var(--green); min-height: 1.5rem; margin-bottom: 1.5rem;
    opacity: 0; animation: hFadeUp 0.6s ease 1s forwards;
}
.hero-subtitle::after { content: '|'; animation: blink 1s step-start infinite; }

.hero-desc {
    font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.9;
    color: var(--on-dark-2); max-width: 560px; margin-bottom: 2.5rem;
    opacity: 0; animation: hFadeUp 0.6s ease 1.1s forwards;
}

.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0; animation: hFadeUp 0.6s ease 1.3s forwards;
}

/* Hero outline button override — on dark bg */
.hero-cta .btn-outline {
    color: var(--on-dark-2); border-color: rgba(240,240,238,0.3);
}
.hero-cta .btn-outline:hover {
    background: rgba(240,240,238,0.1); color: var(--on-dark);
    border-color: rgba(240,240,238,0.6);
}

.hero-scroll {
    position: absolute; bottom: 2rem; right: 3rem;
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--on-dark-3); writing-mode: vertical-rl; flex-direction: column-reverse;
    opacity: 0; animation: hFadeUp 0.6s ease 1.6s forwards;
}

.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, transparent, var(--on-dark-3));
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { transform:scaleY(0.5); opacity:0.5; }
    50%      { transform:scaleY(1); opacity:1; }
}

/* ----------------------------------------------------------
   STATS
   ---------------------------------------------------------- */
.stats {
    background: var(--bg-card);
    padding: 5rem 0;
    border-bottom: 1.5px solid var(--bd);
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    border: 1.5px solid var(--bd); box-shadow: var(--sh-md);
}

.stat-item {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--bg-raised);
    border-right: 1.5px solid var(--bd);
    transition: background var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-card); }

.stat-number {
    font-family: var(--font-sans); font-size: 3rem; font-weight: 800;
    color: var(--text-1); line-height: 1; margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}

/* ----------------------------------------------------------
   FEATURED PROJECTS
   ---------------------------------------------------------- */
.featured { padding: 6rem 0; background: var(--bg); }

.featured-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 2px; background: var(--bd);
    box-shadow: var(--sh-md);
}

.featured-card {
    background: var(--bg-raised); display: block; overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
}
.featured-card:hover { transform: translateY(-5px); z-index: 2; box-shadow: var(--sh-lg); }

.featured-img {
    height: 220px; background-size: cover; background-position: center;
    background-color: var(--dark); position: relative; overflow: hidden;
}

.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,0.7));
}

.featured-badge {
    position: absolute; top: 1rem; left: 1rem;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--green-dim); color: #000; padding: 0.28rem 0.7rem;
}

.featured-body {
    padding: 1.75rem;
    border-top: 1.5px solid var(--bd);
}

.featured-body h3 {
    font-family: var(--font-sans); font-size: 1.15rem; font-weight: 800;
    margin-bottom: 0.5rem; color: var(--text-1);
}

.featured-body p {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
    line-height: 1.75; color: var(--text-2); margin-bottom: 1rem;
}

.featured-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.featured-tags span {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--green-muted); color: var(--green-dim);
    padding: 0.22rem 0.6rem; border: 1.5px solid var(--green-border);
}

/* ----------------------------------------------------------
   ABOUT STRIP — always dark
   ---------------------------------------------------------- */
.about-strip {
    padding: 6rem 0; background: var(--dark2);
    border-top: 1.5px solid rgba(255,255,255,0.06);
    border-bottom: 1.5px solid rgba(255,255,255,0.06);
}

.strip-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}

.strip-text .section-tag { color: var(--green); }

.strip-text h2 {
    font-family: var(--font-sans); font-size: clamp(1.6rem,3vw,2.2rem);
    font-weight: 800; color: var(--on-dark); line-height: 1.2;
    margin-bottom: 1.25rem; letter-spacing: -0.02em;
}

.strip-text p {
    font-family: var(--font-mono); font-size: 0.83rem; font-weight: 700;
    line-height: 1.9; color: var(--on-dark-2); margin-bottom: 2rem;
}

.strip-code {
    background: rgba(0,0,0,0.45); border: 1.5px solid rgba(255,255,255,0.1);
    padding: 2rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 2;
    box-shadow: var(--sh-md);
}
.code-line   { white-space: nowrap; color: var(--on-dark-2); }
.code-indent { padding-left: 1.5rem; }
.code-kw     { color: #ff79c6; }
.code-var    { color: #50fa7b; }
.code-key    { color: #8be9fd; }
.code-str    { color: #f1fa8c; }
.code-bool   { color: #bd93f9; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .stats-grid    { grid-template-columns: repeat(2,1fr); }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-card:last-child { grid-column: span 2; }
    .strip-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card:last-child { grid-column: auto; }
    .hero-cta { flex-direction: column; }
    .hero-name .line-2 { -webkit-text-stroke: 1.5px var(--on-dark); }
    .strip-code { font-size: 0.72rem; }
}
