/* ════════════════════════════════════════
   PORTFOLIO — style.css
   Theme: Terminal / Monochrome / Frog
   Fonts: Space Mono (headings) + DM Sans (body)
════════════════════════════════════════ */

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

:root {
    --black:    #0a0a0a;
    --white:    #f5f5f0;
    --gray-100: #1a1a1a;
    --gray-200: #2a2a2a;
    --gray-400: #555;
    --gray-600: #888;
    --mono:     'Space Mono', monospace;
    --sans:     'DM Sans', sans-serif;
    --max:      1160px;
    --section:  clamp(60px, 10vw, 10px);
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: var(--section) 24px; max-width: var(--max); margin: 0 auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--mono); letter-spacing: -0.5px; line-height: 1.1; }

.section-label-number{
    font-size:30px;
    color: var(--gray-400);
    font-family:Arial, Helvetica, sans-serif
}

.section-label {
    font-family: var(--mono);
    letter-spacing: 3px;
    color: var(--gray-600);
    /* border: 1px solid var(--gray-200); */
    display: inline-block;
    padding: 4px 0;
    margin-bottom: 32px;
}

.section-label h2{
    font-size: 28px;
}

.section-label small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-top: 4px;
}

.section-heading {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ── Buttons ── */
.btn {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    padding: 14px 28px;
    border: 1px solid var(--white);
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
    display:inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 3px 8px;
    border: 1px solid var(--gray-400);
    color: var(--gray-600);
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}
.nav-logo:hover { opacity: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    padding: 6px 14px;
    color: var(--gray-600);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { border: 1px solid var(--gray-400); }
.nav-links .nav-cta {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 6px 16px;
}
.nav-links .nav-cta:hover { background: var(--white); color: var(--black); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero { display: flex; flex-direction: column; justify-content: center; gap: 40px; }

.hero-status {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    width: fit-content;
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-headline {
    font-size: clamp(40px, 8vw, 88px);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 28px;
}
.outline-text {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

.hero-sub {
    color: var(--gray-600);
    /* max-width: 480px; */
    margin-bottom: 36px;
    font-size: 16px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Mascot */
.mascot-frame {
    position: relative;
    border: 1px solid var(--gray-200);
    padding: 24px;
    background: var(--gray-100);
}
.mascot-speech {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--gray-600);
    text-align: center;
    margin-top: 8px;
}

.detail-page {
    padding-top: 32px;
    padding-bottom: 80px;
}

.detail-hero {
    padding: 0 24px 50px;
    display: grid;
    gap: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-hero-top {
    display: flex;
    justify-content: flex-start;
}

.detail-back-link {
    min-width: 180px;
}

.detail-hero-copy {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-label {
    display: inline-flex;
    align-items: center;
    /* padding: 10px 16px; */
    /* background: var(--gray-200); */
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    /* border-radius: 6px; */
    text-transform: uppercase;
}

.detail-title {
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.01;
    letter-spacing: -1px;
    margin: 0;
}

.detail-description {
    max-width: 780px;
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.9;
}

.detail-image-panel {
    padding: 52px 24px 0;
}

.detail-hero-image {
    width: 100%;
    display: block;
    border-radius: 28px;
    border: 1px solid var(--gray-200);
    object-fit: cover;
    min-height: 420px;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 64px 24px 50px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-summary-card,
.detail-tech-card {
    
}

.detail-media-section{
    padding-top:0;
}

.detail-summary-card .section-label,
.detail-tech-card .section-label,
.detail-media-section .section-label {
    margin-bottom: 24px;
}

.detail-summary-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.9;
}

.tech-list {
    
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0px 0 0;
}

.media-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.media-preview {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.media-caption {
    padding: 15px 0;
}

.media-caption-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray-600);
    margin-bottom: 6px;
    display: block;
}

.media-caption-text{
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    color:#FFF;
}

.detail-cta-section {
    padding: 56px 24px 0;
    text-align: center;
}

.detail-cta-button {
    min-width: 260px;
    padding: 18px 32px;
}

@media (max-width: 900px) {
    .detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .detail-page {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .detail-hero,
    .detail-image-panel,
    .detail-summary-grid,
    .detail-media-section,
    .detail-cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-title {
        font-size: clamp(32px, 10vw, 50px);
    }

    .detail-description {
        font-size: 1rem;
    }
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about {
    border: 1px solid var(--gray-200);
    /* padding: 48px; */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 480px;
}

.about-stats {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--gray-600);
}
.about-stats li span { color: var(--white); margin-right: 8px; }

.image-placeholder {
    border: 1px solid var(--gray-200);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}
.img-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-400);
}

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.skills-grid, .skills-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--gray-200);
}

.skill-card {
    background: var(--black);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skill-card h3 {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 2px;
    padding-bottom: 12px;
}

.skill-row { display: flex; flex-direction: column; gap: 6px; }
.skill-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
}
.skill-name { color: var(--gray-600); }
.skill-pct { color: var(--white); }

.skill-bar {
    height: 2px;
    background: var(--gray-200);
    width: 100%;
}
.skill-fill {
    height: 100%;
    background: var(--white);
    transition: width 1s ease;
}

/* ════════════════════════════════════════
   WORKS PEEK
════════════════════════════════════════ */
.works-peek-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.peek-link {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-600);
    transition: color 0.2s;
}
.peek-link:hover { color: var(--white); }

.peek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
}

.peek-card { background: var(--black); }
.peek-thumb {
    background: var(--gray-100);
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--gray-200);
}
.peek-info { padding: 24px; }
.peek-info h4 { font-size: 16px; margin-bottom: 8px; }
.peek-info p { font-size: 14px; color: var(--gray-600); }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact {
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.contact-frog {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}
.frog-bubble {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    border: 1px solid var(--gray-400);
    padding: 4px 10px;
    color: var(--gray-600);
}

.contact-email {
    font-size: clamp(28px, 5vw, 52px);
    letter-spacing: -1px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--white);
    display: inline-block;
    padding-bottom: 4px;
}

.contact-sub {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-600);
    /* margin-bottom: 40px; */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.social-links a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gray-600);
    transition: color 0.2s;
}
.social-links a:hover { color: var(--white); }

/* ════════════════════════════════════════
   WORKS PAGE
════════════════════════════════════════ */
.page-header {
    padding-top: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}
.page-header h1 { font-size: clamp(32px, 6vw, 64px); letter-spacing: -2px; margin-bottom: 16px; }
.page-header-sub { color: var(--gray-600); max-width: 480px; }

.works-filter { padding: 32px 24px; max-width: var(--max); margin: 0 auto; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1px solid var(--gray-400);
    background: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active { background: var(--white); color: var(--black); border-color: var(--white); }

.works-grid-section { padding-top: 0; }
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* gap: 1px; */
    /* background: var(--gray-200);
    border: 1px solid var(--gray-200); */
}

.project-card {
    background: var(--black);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
}
.project-card:hover { z-index: 1; outline: 1px solid var(--white); }
.project-card.hidden { display: none; }

.project-thumb {
    background: var(--gray-100);
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.project-year {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray-400);
}

.project-body { padding: 24px 24px 60px; position: relative; flex: 1 1 auto; }
.project-body h3 { font-size: 18px; margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--gray-600); margin-bottom: 4px; }
.project-link {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--white);
    display: inline-block;
    margin-top: 16px;
    transition: color 0.2s;
}
.project-link:hover { color: var(--white); }

/* CTA inside project-body pinned to card bottom */
.project-cta {
    position: absolute;
    bottom: 18px;
    left: 24px;
}

/* Skills divider on works page */
.skills-full { border-top: 1px solid var(--gray-200); }
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gray-600);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--gray-200);
    padding: 24px;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-copy { font-size: 12px; color: var(--gray-400); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray-600);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-mascot { display: none; }
    .hero-headline { font-size: clamp(36px, 12vw, 64px); }
    .about { padding: 32px 24px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .works-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-status   { animation: fadeUp 0.5s ease both; }
.hero-headline { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub      { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions  { animation: fadeUp 0.5s 0.3s ease both; }
/* .hero-mascot   { animation: fadeUp 0.5s 0.4s ease both; } */
