/* ── PAGE-SPECIFIC: portfolio.html ── */

/* ── CYBERPUNK BACKGROUND ── */
.cyber-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
#gridCanvas, #rainCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.scanlines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    opacity: 0.4;
}
.neon-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}
.neon-bloom-1 {
    width: 500px; height: 500px;
    top: -100px; left: -100px;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    animation: bloomDrift1 20s ease-in-out infinite;
}
.neon-bloom-2 {
    width: 400px; height: 400px;
    bottom: -100px; right: -100px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    animation: bloomDrift2 18s ease-in-out infinite;
}
@keyframes bloomDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, 60px); }
}
@keyframes bloomDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, -80px); }
}

/* ── GLASS OVERRIDES ── */
.glass-glow:hover {
    border-color: rgba(0, 255, 245, 0.3);
    box-shadow: 0 0 40px rgba(0, 255, 245, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* ── SCROLL PROGRESS (override) ── */
.scroll-progress {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: none;
}

/* ── SECTION TITLE (override font) ── */
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.section-title .gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

/* ── PORTFOLIO ── */
.portfolio {
    padding: 8rem 0;
    position: relative;
}
.portfolio-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 3rem;
    text-align: center;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.portfolio-card:hover {
    border-color: rgba(0, 255, 245, 0.25);
    box-shadow: 0 0 40px rgba(0, 255, 245, 0.08);
    transform: translateY(-4px);
}
.portfolio-card-wide { grid-column: 1 / -1; }
.portfolio-card .card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.portfolio-card h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
}
.portfolio-card h3 .gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.portfolio-card .company-line {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-pink);
    margin-bottom: 0.75rem;
}
.portfolio-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.portfolio-card .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}
.portfolio-card .tag-list .tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}
.portfolio-card .card-logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.75rem;
    padding: 3px;
    border-radius: 8px;
    vertical-align: middle;
    background-color: rgba(255,255,255,0.95);
    background-clip: content-box;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    max-width: 252px;
    margin: 0 auto;
}
.video-container video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.portfolio-closer {
    text-align: center;
    padding: 3rem 0;
}
.portfolio-closer p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--neon-cyan), #00d4a0);
    color: var(--bg-deep);
    transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 255, 245, 0.3); }
.page-intro {
    padding: 8rem 0 4rem;
    text-align: center;
}

/* ── UTILITY CLASSES ── */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.m0 { margin: 0; }
.section-head-sm { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.flex-row { display: flex; flex-direction: row; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }
.flex-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.gap-2 { gap: 2rem; }

.flex-1 { flex: 1; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.9rem; }
.text-mono-xs { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; text-decoration: none; }

.logo-thumb { width: 58px; height: 58px; object-fit: contain; padding: 3px; border-radius: 10px; background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.2); }

.logo-wall-img { background: rgba(5,5,15,0.9); border: 1px solid rgba(255,255,255,0.1); padding: 4px; border-radius: 8px; backdrop-filter: blur(6px); }

/* ── LOGO WALL MARQUEE ── */
.logo-wall {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logo-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}
.logo-track:hover {
    animation-play-state: paused;
}
.logo-track img {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.info-box { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 10px; }
.info-box-cyan { background: rgba(0,255,245,0.05); border: 1px solid rgba(0,255,245,0.1); }
.info-box-pink { background: rgba(255,45,149,0.05); border: 1px solid rgba(255,45,149,0.1); }
.info-icon { font-size: 1.2rem; }
.info-text { font-size: 0.88rem; color: var(--text-secondary); }
.featured-inner-col { flex-direction: column; align-items: center; text-align: center; }
.p-sm-muted { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.h3-sm { margin: 0; font-size: 1.2rem; }
.p-xs-muted { margin: 0; font-size: 0.85rem; }
.company-line-sm { margin-bottom: 0.5rem; }
.section-head-mb { margin-bottom: 1.5rem; }
.section-label-center { text-align: center !important; }
.page-intro-p { max-width: 900px; margin-bottom: 0.75rem; }
.logo-90 { width: 90px; height: 90px; object-fit: contain; border-radius: 10px; background: rgba(5,5,15,0.9); border: 1px solid rgba(255,255,255,0.1); padding: 8px; backdrop-filter: blur(10px); transition: transform 0.3s, background 0.3s; }
.logo-90:hover { transform: scale(1.1); background: rgba(5,5,15,1); }

/* ── NEON SVG BORDER TRACE (Marketing Cards) ── */
/* ── FOOTER (override for portfolio) ── */
.footer-logo {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.footer-links a:hover { color: var(--text-primary); }

/* ── WEB PROJECTS ── */
.web-section { padding: 6rem 0; position: relative; overflow: hidden; }
.web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.web-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 2rem 1.5rem; transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease; backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 100px; min-width: 0; overflow: hidden; }
.web-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(0,255,245,0.15); transform: translateY(-4px); }
.web-card .card-label { font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 1px; margin: 0; font-weight: 500; white-space: normal; overflow: visible; word-break: break-all; max-width: 100%; }
.web-card .card-label a { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.web-card.featured { grid-column: 1 / -1; background: rgba(0,255,245,0.03); border-color: rgba(0,255,245,0.1); display: block; text-align: center; padding: 1.75rem; }
.web-card.featured:hover { border-color: rgba(0,255,245,0.25); }
.web-card.featured .featured-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.web-card.featured .featured-inner .featured-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.2); padding: 4px; }
.web-card.featured .card-label { margin-bottom: 0.5rem; }
.web-card.featured h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text-primary); }
.web-card.featured p { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card-wide { grid-column: span 1; }
    .portfolio { padding: 5rem 0; }
    .page-intro { padding: 5rem 0 2rem; }
    .web-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .web-card { padding: 1.5rem 1rem; }
    .web-card .card-label { white-space: normal; overflow: visible; text-overflow: unset; }
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 768px) {
    .card-max-wide { max-width: 100% !important; margin: 0 auto !important; }
    .web-grid { grid-template-columns: 1fr; gap: 1rem; }
    .web-card { padding: 1.5rem 1.25rem; min-height: 70px; overflow: visible; }
    .web-card .card-label { font-size: 0.88rem; letter-spacing: 0.5px; white-space: normal; overflow: visible; text-overflow: unset; }
    .web-section { padding: 4rem 0 !important; }
    .web-card.featured .featured-inner { flex-direction: column; text-align: center; }
    .logo-track { gap: 1.5rem; }
    .logo-track img { height: 36px; }
    .card-logo { transform: scale(1) !important; width: 36px; height: 36px; }
    .portfolio-card-wide { flex-direction: column !important; }
    .portfolio-card-wide > div { width: 100%; }
}
@media (max-width: 480px) {
    .grid-max-800 { max-width: 100% !important; }
    .card-max-800 { max-width: 100% !important; }
    .portfolio-card { padding: 1.5rem; }
    .web-grid { grid-template-columns: 1fr; gap: 1rem; }
    .web-card { padding: 1.25rem 1rem; min-height: 65px; overflow: visible; }
    .web-card .card-label { font-size: 0.82rem; letter-spacing: 0.3px; white-space: normal; overflow: visible; text-overflow: unset; }
    .page-intro { padding: 6rem 0 2rem !important; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .logo-track { gap: 1rem; }
    .logo-track img { height: 28px; }
    .web-card.featured .featured-inner { flex-direction: column; text-align: center; }
}
