/* ═══════════════════════════════════
   RAVISTUDIO — Portfolio Styles
   Cinematic · Editorial · Minimal
   ═══════════════════════════════════ */

:root {
    --black: #0a0a0a;
    --surface: #111111;
    --card: #161616;
    --card-hover: #1c1c1c;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --white: #f2f2f0;
    --gray: #999;
    --muted: #555;
    --accent: #d4a843;
    --accent-dim: rgba(212,168,67,0.15);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 14px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--surface);
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 140px 0; }

/* ─── Scroll Reveal ─────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: 0.35s var(--ease);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(10,10,10,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.5px;
    transition: 0.3s;
    border-radius: 8px;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--white) !important;
    color: var(--black) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--black) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.7);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10,10,10,0.3) 0%,
            rgba(10,10,10,0.6) 50%,
            var(--black) 100%
        );
}

.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 28px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    color: var(--white);
}

.hero-title .thin {
    font-weight: 300;
    color: var(--gray);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

/* ─── Hero Video Showcase ──────── */
.hero-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.showcase-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.showcase-category-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.showcase-player {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid rgba(212, 168, 67, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(212, 168, 67, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: transform 0.15s ease-out, border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    width: 100%;
}

.showcase-player:hover {
    border-color: rgba(212, 168, 67, 0.45);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(212, 168, 67, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.showcase-player::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 280px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.09) 0%, transparent 80%);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    border-radius: 18px;
}

.showcase-player:hover::after {
    opacity: 1;
}

/* Ambient warm highlight glow behind player */
.showcase-player::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at top right, rgba(212,168,67,0.2) 0%, transparent 65%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

.showcase-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #000000;
}

.showcase-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Invisible click blocker (no video dimming or inner blur) */
.showcase-vignette {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    z-index: 2;
    background: transparent;
}

.showcase-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 6px;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
}

.showcase-counter {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 1.5px;
}

.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 22px 14px;
}

.showcase-dots {
    display: flex;
    gap: 8px;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    border: none;
    cursor: pointer;
    transition: 0.35s var(--ease);
    padding: 0;
}

.showcase-dot:hover {
    background: var(--gray);
    transform: scale(1.3);
}

.showcase-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(212,168,67,0.5);
    transform: scale(1.2);
}

.showcase-portfolio-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.showcase-portfolio-link:hover {
    color: var(--white);
    transform: translateY(1px);
}

.showcase-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.showcase-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e8c56a);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: 0.35s var(--ease);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212,168,67,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════
   ABOUT
   ═══════════════════════════════════ */
.about { border-top: 1px solid var(--border); }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
    letter-spacing: -0.01em;
}

.about-text {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: left;
}

.about-text strong { color: var(--accent); font-weight: 500; }

.about-cta-text {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 500;
    margin-top: 16px;
}

/* ═══════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════ */
.portfolio { background: var(--surface); }

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.portfolio-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Filters */
.portfolio-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: 0.3s;
    letter-spacing: 0.3px;
}

.filter-btn:hover { color: var(--white); }

.filter-btn.active {
    color: var(--black);
    background: var(--accent);
    border-color: var(--accent);
}

/* Video Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.portfolio-item {
    transition: 0.5s var(--ease);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    position: absolute;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: 0.35s var(--ease);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.card-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.card-media img,
.youtube-container .youtube-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.portfolio-card:hover .card-media img,
.portfolio-card:hover .youtube-thumb {
    transform: scale(1.06);
    filter: brightness(0.5);
}

/* Info overlay that slides up */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    transform: translateY(10px);
    opacity: 0;
    transition: 0.35s var(--ease);
    z-index: 3;
}

.portfolio-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.card-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.card-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Play button */
.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: 0.35s var(--ease);
}

.portfolio-card:hover .card-overlay { opacity: 1; }

.card-play {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    transition: 0.3s;
}

.card-play:hover { background: var(--accent); border-color: var(--accent); }

/* YouTube container */
.youtube-container {
    position: relative;
    background: var(--card);
    width: 100%;
    height: 100%;
}

.youtube-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: var(--card);
}

.youtube-placeholder .card-play { opacity: 1; }

/* Image container */
.image-container {
    position: relative;
    background: var(--card);
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.portfolio-card:hover .image-container img {
    transform: scale(1.06);
    filter: brightness(0.5);
}

/* ═══════════════════════════════════
   SKILLS
   ═══════════════════════════════════ */
.skills { border-top: 1px solid var(--border); }

.skills-header {
    margin-bottom: 56px;
}

.skills-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.skills-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tool-card {
    padding: 28px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    transform-origin: left;
}

.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */
.contact {
    background: var(--surface);
    text-align: center;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 48px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--white);
    transition: 0.35s var(--ease);
    text-decoration: none;
}

.contact-pill:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.contact-pill svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.footer a { color: var(--accent); }

/* ═══════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.lightbox-modal.active { opacity: 1; visibility: visible; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.94);
    backdrop-filter: blur(24px);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    z-index: 10001;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.18);
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    z-index: 10001;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.lightbox-modal.active .lightbox-content { transform: scale(1); }

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    object-fit: contain;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; padding-bottom: 60px; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
    .portfolio-item.featured { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section { padding: 100px 0; }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.35s;
    }

    .nav-links.active { opacity: 1; pointer-events: auto; }
    .nav-links a { font-size: 1.1rem; }
    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .portfolio-header { flex-direction: column; align-items: flex-start; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .contact-links { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════════════ */
.music-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,22,22,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    color: var(--gray);
    cursor: pointer;
    transition: 0.3s var(--ease);
}

.music-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.music-toggle.playing {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(212,168,67,0.15);
}



/* ═══════════════════════════════════
   CUSTOM CURSOR & DYNAMIC EFFECTS
   ═══════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor .portfolio-card,
    body.has-custom-cursor .contact-pill,
    body.has-custom-cursor .filter-btn {
        cursor: none !important;
    }
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.custom-cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(212, 168, 67, 0.35);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.3s var(--ease), 
                height 0.3s var(--ease), 
                border-color 0.3s var(--ease), 
                background-color 0.3s var(--ease);
}

/* Hover States for Interactive Elements */
body.cursor-hover .custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--white);
}

body.cursor-hover .custom-cursor-ring {
    width: 58px;
    height: 58px;
    border-color: var(--accent);
    background: rgba(212, 168, 67, 0.06);
}

/* Cursor Glow Spotlight (Ambient background glow) */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle 250px at center, rgba(212, 168, 67, 0.04) 0%, rgba(212, 168, 67, 0) 80%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

body.has-custom-cursor:hover .cursor-glow {
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #ffd066 100%);
    z-index: 1001;
    transition: width 0.05s ease-out;
}

/* 3D Card Tilt & Spotlight Shine */
.portfolio-card,
.tool-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out, box-shadow 0.35s var(--ease);
}

/* Shine effect overlay */
.portfolio-card::before,
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 180px at var(--x, 0) var(--y, 0), rgba(255, 255, 255, 0.08) 0%, transparent 80%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.portfolio-card:hover::before,
.tool-card:hover::before {
    opacity: 1;
}

/* Category Filter Count Sup */
.filter-btn sup {
    font-size: 0.65rem;
    margin-left: 3px;
    opacity: 0.65;
    color: inherit;
    font-weight: 500;
}

/* Responsive Hide for Mobile and Tablet Touch Interaction */
@media (hover: none) or (pointer: coarse) {
    .custom-cursor-dot,
    .custom-cursor-ring,
    .cursor-glow {
        display: none !important;
    }
    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor .portfolio-card {
        cursor: auto !important;
    }
}

/* Hero Cinematic Particle Canvas */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ambient slow-pulsing light leak in hero background */
.hero-light-leak {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, rgba(212, 168, 67, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
    animation: hero-pulse-leak 14s ease-in-out infinite alternate;
}

@keyframes hero-pulse-leak {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-8%, 4%) scale(1.12);
        opacity: 0.8;
    }
    100% {
        transform: translate(4%, -4%) scale(0.95);
        opacity: 0.4;
    }
}

@media (hover: none) or (pointer: coarse) {
    .hero-canvas,
    .hero-light-leak {
        display: none !important;
    }
}


