﻿/* ── SHARED PORTFOLIO STYLES ── */
:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card2: #16161f;
    --accent: #6effc8;
    --accent2: #a78bfa;
    --text: #f0f0f8;
    --text-muted: #7a7a9a;
    --border: rgba(255,255,255,0.07);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(110,255,200,0.07) 0%, transparent 70%); top: -200px; left: -100px; animation: glow-move1 12s ease-in-out infinite alternate; }
.bg-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%); bottom: 0; right: -100px; animation: glow-move2 14s ease-in-out infinite alternate; }
@keyframes glow-move1 { to { transform: translate(80px, 60px); } }
@keyframes glow-move2 { to { transform: translate(-60px, -80px); } }

/* ── NAVBAR ── */
.navbar-custom { background: rgba(10,10,15,0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand-custom { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--text) !important; text-decoration: none; letter-spacing: -0.5px; }
.navbar-brand-custom span { color: var(--accent); }
.nav-link-custom { color: var(--text-muted) !important; font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 0.4rem 1rem !important; border-radius: 6px; transition: color 0.25s, background 0.25s; }
.nav-link-custom:hover { color: var(--text) !important; background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--accent); color: #0a0a0f !important; border-radius: 8px; font-weight: 600; padding: 0.45rem 1.2rem !important; transition: opacity 0.2s, transform 0.2s; }
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); color: #0a0a0f !important; }
.navbar-toggler-custom { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.7rem; color: var(--text); cursor: pointer; }

/* ── BUTTONS ── */
.btn-primary-custom { background: var(--accent); color: #0a0a0f; border: none; border-radius: 10px; padding: 0.75rem 1.8rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; cursor: pointer; }
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(110,255,200,0.25); opacity: 0.9; color: #0a0a0f; }
.btn-secondary-custom { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1.8rem; font-weight: 500; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.btn-secondary-custom:hover { border-color: var(--accent); background: rgba(110,255,200,0.05); transform: translateY(-2px); color: var(--text); }

/* ── SECTION LABELS ── */
section { position: relative; z-index: 1; }
.section-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.section-divider { border: none; height: 1px; background: var(--border); margin: 4rem 0; }

/* ── CARDS ── */
.card-dark { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem; }

/* ── TAGS ── */
.tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 100px; background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); color: var(--accent2); display: inline-flex; }
.tag-green { background: rgba(110,255,200,0.08); border-color: rgba(110,255,200,0.2); color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--transition), transform 0.7s var(--transition); }
.reveal.visible { opacity: 1; transform: none; }
.anim-fade { animation: fadeIn 0.8s var(--transition) both; }
.anim-up { animation: fadeUp 0.8s var(--transition) both; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; font-size: 0.82rem; color: var(--text-muted); }

/* ── PROJECT GALLERY ── */
.gallery-grid { display: grid; gap: 1rem; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { border-radius: 12px; overflow: hidden; background: var(--bg-card2); border: 1px solid var(--border); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.3s, transform 0.3s; position: relative; }
.gallery-item:hover { border-color: rgba(110,255,200,0.3); transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .placeholder { color: var(--text-muted); text-align: center; font-size: 0.85rem; padding: 1.5rem; }
.gallery-item .placeholder i { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; color: var(--border); }

/* ── LIGHTBOX ── */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: none; color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(110,255,200,0.15); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid.cols-2 { grid-template-columns: 1fr; }
    .section-divider { margin: 3rem 0; }
}
@media (max-width: 480px) {
    .gallery-grid.cols-3 { grid-template-columns: 1fr; }
}