/* ─────────────────────────────────────
   PROJECTS PAGE — projects.css
───────────────────────────────────── */

/* ── Page hero ── */
.proj-hero {
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 10% 80px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.proj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.proj-hero::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(37,99,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.proj-hero .page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.proj-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin: 12px 0 20px;
    background: linear-gradient(135deg, #fff 40%, #4d8aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proj-hero .page-hero-sub {
    font-family: 'Outfit', sans-serif;
    color: #888ea8;
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}


/* ── Project sections ── */
.project-section {
    padding: 100px 8%;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.proj-alt {
    background: #0f0f0f;
}

.proj-inner {
    max-width: 980px;
    margin: 0 auto;
}

/* meta tags */
.proj-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.proj-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(37,99,255,0.1);
    border: 1px solid rgba(37,99,255,0.25);
    color: #4d8aff;
}

.proj-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.proj-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #888ea8;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 36px;
}

/* feature pills */
.proj-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.proj-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #161616;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #aaa;
    transition: border-color 0.2s, color 0.2s;
}

.proj-feature:hover {
    border-color: rgba(37,99,255,0.3);
    color: white;
}

.proj-feature i {
    color: #4d8aff;
    font-size: 13px;
}

/* tech stack */
.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.proj-stack span {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #555;
    padding: 4px 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    text-transform: uppercase;
}


/* ══════════════════════════
   VIDEO SECTION
══════════════════════════ */

.proj-video-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
}

.proj-video-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #4d8aff;
    text-transform: uppercase;
    background: rgba(37,99,255,0.05);
}

.proj-video-label i { font-size: 14px; }

.proj-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.proj-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* custom play overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 3;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.play-btn {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(37,99,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 40px rgba(37,99,255,0.5);
    padding-left: 4px; /* optical center for play icon */
}

.play-btn:hover {
    transform: scale(1.12);
    background: #2563ff;
    box-shadow: 0 0 60px rgba(37,99,255,0.8);
}

.video-overlay p {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* no video placeholder */
.proj-video-container.no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #111;
}

.proj-video-container.no-video::after {
    content: 'Video coming soon';
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
}


/* ══════════════════════════
   SCREENSHOT SECTION
══════════════════════════ */

.proj-screenshot-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d0d0d;
}

.proj-screenshot-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #40e0a0;
    text-transform: uppercase;
    background: rgba(0,200,120,0.05);
}

.proj-screenshot {
    position: relative;
    overflow: hidden;
}

.proj-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.proj-screenshot:hover img {
    filter: brightness(0.6);
    transform: scale(1.02);
}

/* overlay on hover */
.screenshot-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.3);
}

.proj-screenshot:hover .screenshot-overlay {
    opacity: 1;
}

.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: #111;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* screenshot placeholder when no image */
.proj-screenshot.placeholder {
    min-height: 300px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-screenshot.placeholder::after {
    content: 'Screenshot coming soon';
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
}


/* ── Projects CTA ── */
.proj-cta {
    padding: 100px 8%;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.proj-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.proj-cta-inner h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    margin: 12px 0 16px;
}

.proj-cta-inner p {
    font-family: 'Outfit', sans-serif;
    color: #888ea8;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* active nav link */
.nav-links a.active {
    color: rgba(255,255,255,0.6);
}

/* ── Footer reuse from home.css ── */
footer {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 80px 8% 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-logo {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-brand p {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    max-width: 220px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h5 {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 6px;
}

.footer-links-group a {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-group a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #333;
    letter-spacing: 1px;
}

.footer-stack { letter-spacing: 2px; }

.btn-primary {
    background: #2563ff;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(37,99,255,0.3);
}

.btn-primary:hover {
    background: #4d8aff;
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(37,99,255,0.5);
}


/* ── Mobile ── */
@media (max-width: 768px) {
    .proj-hero { padding: 110px 6% 60px; }
    .proj-hero h1 { font-size: clamp(32px, 9vw, 48px); }
    .project-section { padding: 60px 5%; }
    .proj-title { font-size: clamp(24px, 7vw, 36px); }
    .proj-desc  { font-size: 14px; }
    .proj-features { gap: 8px; }
    .proj-feature  { font-size: 12px; padding: 7px 12px; }
    .play-btn { width: 60px; height: 60px; font-size: 20px; }
    .footer-top    { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 5% 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; padding: 20px 5%; text-align: center; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .proj-cta-inner h2 { font-size: 26px; }
}
