/* NYAMBEGA SHOT IT - Videographer Portfolio
   Dark Cinematic Theme
   ========================================================================== */

:root {
    --color-bg: #0a0a0a;
    --color-bg-offset: #121212;
    --color-bg-card: #1a1a1a;
    --color-primary: #e74c3c;
    --color-primary-hover: #c0392b;
    --color-text-main: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-border: #2a2a2a;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

em {
    font-style: italic;
    color: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.section-desc {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Loader styles moved to animation system section at bottom */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.nav--scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex-shrink: 0;
    line-height: 1;
    text-align: left;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 0.9;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
}

.nav-link--cta {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-primary);
}

.nav-link--cta:hover {
    background-color: transparent;
    border-color: var(--color-text-main);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
    margin-bottom: 5px;
    transition: var(--transition-smooth);
}

/* Hero - add space below fixed header so NYAMBEGA SHOT IT never overlaps */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 88px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 75%);
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-tag {
    font-size: clamp(0.68rem, 1.9vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: clamp(1.5px, 0.4vw, 5px);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 6rem);
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-title span {
    display: block;
    white-space: nowrap;
}

.hero-description {
    max-width: 600px;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff00ff);
    background-size: 200% auto;
    animation: rgbText 3s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes rgbText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff00ff);
    background-size: 100% 300%;
    animation: rgbScrollBg 3s linear infinite;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff00ff);
    background-size: 100% 300%;
    animation: rgbScrollBg 3s linear infinite, scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(2px);
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@keyframes rgbScrollBg {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% 300%; }
}

/* Showreel */
.showreel-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    position: relative;
    cursor: pointer;
}

.showreel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.play-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(230, 230, 230, 0.1);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.showreel-player:hover .play-btn {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.showreel-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

/* Showreel Embed */
.showreel-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border: 1px solid var(--color-border);
    background-color: #000;
}

.showreel-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.showreel-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.showreel-close-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

/* Showreel Video Embed (uploaded video) */
.showreel-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border: 1px solid var(--color-border);
    background-color: #000;
}

.showreel-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Work Portfolio */
.work-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    background-color: var(--color-bg-card);
    transition: var(--transition-smooth);
}

.work-card.hidden {
    display: none;
}

.work-card-media {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.work-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.work-card-view {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2.5px solid var(--color-primary);
    padding-bottom: 4px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.work-card:hover .work-card-placeholder {
    transform: scale(1.05);
}

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

.work-card:hover .work-card-view {
    transform: translateY(0);
}

.work-card-info {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-top: none;
}

.work-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 600;
}

.work-card-title {
    font-size: 1.75rem;
    margin: 0.5rem 0;
    text-transform: uppercase;
}

.work-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* View More Button */
.view-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-more-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateY(2px);
}

.view-more-count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0;
    text-transform: none;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text p strong {
    color: var(--color-text-main);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.25rem;
}

.service-card {
    background-color: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    padding: 2rem 1.25rem;
    transition: var(--transition-smooth);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.contact-item svg {
    color: var(--color-primary);
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.social-link:hover {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--color-bg-offset);
    border: 1px solid var(--color-border);
    padding: 3rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
}

.contact-form textarea {
    resize: none;
}

/* Footer */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links a:hover {
    color: var(--color-text-main);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==================== PREMIUM ANIMATION SYSTEM ==================== */

/* --- Base reveal states --- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-rotate {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal        { transform: translateY(60px); }
.reveal-left   { transform: translateX(-80px); }
.reveal-right  { transform: translateX(80px); }
.reveal-scale  { transform: scale(0.85); }
.reveal-rotate { transform: rotate(-3deg) translateY(40px); }

/* --- Revealed states --- */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed,
.reveal-rotate.revealed {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

/* --- Stagger delay for grid children (set via JS data-stagger) --- */
[data-stagger] {
    transition-delay: calc(var(--stagger-i, 0) * 0.1s);
}

/* --- Text line reveal (hero headlines) --- */
.text-reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.revealed span {
    transform: translateY(0);
}

/* --- Hero entrance sequence --- */
.hero-tag.reveal      { transition-delay: 0.2s; }
.hero-title .reveal   { transition-delay: 0.4s; }
.hero-description.reveal { transition-delay: 0.65s; }
.hero-actions.reveal  { transition-delay: 0.85s; }

/* --- Parallax wrapper (driven by JS) --- */
.parallax {
    will-change: transform;
}

/* --- Section divider line animation --- */
.section-divider {
    width: 0;
    height: 2px;
    background: var(--color-primary);
    margin: 0 auto;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-divider.revealed {
    width: 80px;
}

/* --- Card tilt on hover --- */
.tilt-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Magnetic button effect --- */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Smooth number counter --- */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --- Work card stagger --- */
.work-grid .work-card:nth-child(3n+1) { transition-delay: 0.0s; }
.work-grid .work-card:nth-child(3n+2) { transition-delay: 0.1s; }
.work-grid .work-card:nth-child(3n)   { transition-delay: 0.2s; }

/* --- Services grid stagger --- */
.services-grid .service-card:nth-child(1) { transition-delay: 0.0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.32s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.40s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.48s; }
.services-grid .service-card:nth-child(8) { transition-delay: 0.56s; }

/* --- Artist card stagger --- */
.artists-grid .artist-card:nth-child(1) { transition-delay: 0.0s; }
.artists-grid .artist-card:nth-child(2) { transition-delay: 0.08s; }
.artists-grid .artist-card:nth-child(3) { transition-delay: 0.16s; }
.artists-grid .artist-card:nth-child(4) { transition-delay: 0.24s; }
.artists-grid .artist-card:nth-child(5) { transition-delay: 0.32s; }

/* --- Loader premium upgrade --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-line {
    width: 180px;
    height: 2px;
    background-color: #222;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: loading 1.2s infinite ease-in-out;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

@keyframes loading {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* Artists Section */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

/* Override grid for marquee mode */
.marquee-container .artists-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.artist-card {
    text-align: center;
    transition: var(--transition-smooth);
}

.artist-card:hover {
    transform: translateY(-5px);
}

.artist-card-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: var(--transition-smooth);
    background-color: var(--color-bg-offset);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-card:hover .artist-card-image {
    border-color: var(--color-primary);
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.artist-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.artist-card-role {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.artist-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.artist-whatsapp-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    color: #fff;
}

/* Artist Request Contact Button */
.artist-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.artist-request-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* ==================== REQUEST CONTACT MODAL ==================== */

.request-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

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

.request-contact-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.request-contact-modal.active .request-contact-content {
    transform: translateY(0);
}

.request-contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.request-contact-close:hover {
    color: var(--color-text-main);
}

.request-contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.request-contact-header svg {
    margin-bottom: 1rem;
}

.request-contact-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.request-contact-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.request-contact-field {
    margin-bottom: 1.25rem;
}

.request-contact-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.request-contact-field input,
.request-contact-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.request-contact-field input:focus,
.request-contact-field textarea:focus {
    border-color: var(--color-primary);
}

.request-contact-field textarea {
    resize: none;
}

.request-contact-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.request-contact-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.request-contact-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.request-contact-submit:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

/* Responsive Request Contact Modal */
@media (max-width: 479px) {
    .request-contact-content {
        padding: 1.5rem;
    }
    .request-contact-header h3 {
        font-size: 1.5rem;
    }
}

/* ==================== ARTIST MARQUEE SYSTEM ==================== */

.marquee-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-container {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.marquee-container .artists-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    transition: transform 0.1s linear;
    cursor: grab;
    user-select: none;
}

.marquee-container .artists-grid:active {
    cursor: grabbing;
}

.marquee-container .artists-grid .artist-card {
    flex-shrink: 0;
    width: 200px;
}

/* Fade edges */
.marquee-fade {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%);
}

/* Direction buttons */
.marquee-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 3;
}

.marquee-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.marquee-btn:active {
    transform: scale(0.95);
}

.marquee-btn.paused {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Dragging state */
.marquee-container .artists-grid.dragging {
    transition: none;
}

/* Paused state indicator */
.marquee-wrapper.auto-paused .marquee-fade-left,
.marquee-wrapper.auto-paused .marquee-fade-right {
    opacity: 0.5;
}

/* Responsive marquee */
@media (max-width: 767px) {
    .marquee-wrapper {
        gap: 0.5rem;
    }
    .marquee-btn {
        width: 40px;
        height: 40px;
    }
    .marquee-btn svg {
        width: 18px;
        height: 18px;
    }
    .marquee-container .artists-grid .artist-card {
        width: 160px;
    }
    .marquee-fade {
        width: 40px;
    }
}

@media (max-width: 479px) {
    .marquee-container .artists-grid .artist-card {
        width: 140px;
    }
    .marquee-container .artists-grid {
        gap: 1.25rem;
    }
}

/* Nav mobile backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Nav toggle X animation */
.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);
}

/* Responsive Design - Optimized for All Screen Sizes */

/* Large Desktop - 1440px and above */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .section-title {
        font-size: 4rem;
    }
}

/* Desktop - 1200px to 1439px */
@media (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }
}

/* Laptop - 1024px to 1199px */
@media (max-width: 1199px) {
    html {
        font-size: 15px;
    }
    .container {
        max-width: 960px;
    }
    .hero-title {
        font-size: 4.5rem;
    }
    .section-title {
        font-size: 3.2rem;
    }
    .about-grid, .contact-grid {
        gap: 3rem;
    }
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Tablet Landscape - 768px to 1023px */
@media (max-width: 1023px) {
    html {
        font-size: 14px;
    }
    .container {
        width: 92%;
        max-width: 720px;
    }
    .section {
        padding: 6rem 0;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .hero-title {
        font-size: 4rem;
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    .showreel-info {
        font-size: 0.8rem;
    }
    .contact-item {
        font-size: 1rem;
    }
}

/* Tablet Portrait - 600px to 767px */
@media (max-width: 767px) {
    html { font-size: 14px; }
    .container { width: min(92%, 720px); padding: 0 16px; margin: 0 auto; }
    .section { padding: 5rem 0; }
    .section-title { font-size: 2.5rem; line-height: 1.1; }
    .section-header { margin-bottom: 3rem; text-align: center; }
    .section-desc { margin-left: auto; margin-right: auto; }

    /* Navigation - one-column logo stays aligned */
    .nav { padding: 0.9rem 0; }
    .nav--scrolled { padding: 0.75rem 0; }
    .nav-container { width: min(92%, 720px); max-width: 100%; padding: 0 16px; box-sizing: border-box; min-height: 52px; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
    .nav-toggle span { margin-bottom: 5px; }
    .nav-menu {
        position: fixed; top: 0; right: 0; width: 100%; max-width: 320px; height: 100vh; height: 100dvh;
        background-color: var(--color-bg); flex-direction: column; justify-content: center; gap: 2rem;
        transform: translateX(100%); transition: var(--transition-smooth); z-index: 99;
        padding: 2rem; border-left: 1px solid var(--color-border); align-items: flex-start;
    }
    .nav-menu.active { transform: translateX(0); }

    /* Hero - keep space below header */
    .hero { min-height: 70vh; padding-top: 72px; }
    .hero-content { width: min(92%, 720px); padding: 0 16px; }
    .hero-title { font-size: 3.2rem; line-height: 0.95; }
    .hero-description { font-size: 1rem; line-height: 1.6; max-width: 100%; }
    .hero-actions { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Grids - same gutter as container */
    .work-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .about-image-placeholder { aspect-ratio: 16/10; }

    .about-stats { flex-wrap: wrap; gap: 1.5rem; justify-content: space-around; border-top: 1px solid var(--color-border); padding-top: 1.75rem; }
    .stat { text-align: center; min-width: 100px; flex: 1; }

    .contact-item { font-size: 0.95rem; word-break: break-word; gap: 1rem; }
    .contact-form { padding: 2rem 1.5rem; }
    .contact-socials { justify-content: flex-start; gap: 1rem; }

    .showreel-placeholder { padding: 1.5rem; }
    .showreel-info { font-size: 0.75rem; letter-spacing: 1px; }

    .footer-top { flex-direction: column; gap: 2rem; text-align: center; align-items: center; }
    .footer-links { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }

    .artists-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; }
    .marquee-container .artists-grid { grid-template-columns: none; }
    .artist-card-image { width: 130px; height: 130px; }
}

/* Mobile Landscape - 480px to 599px */
@media (max-width: 599px) {
    html { font-size: 14px; }
    .container { width: min(92%, 560px); padding: 0 16px; }
    .nav-container { width: min(92%, 560px); }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-tag { letter-spacing: clamp(1px,0.8vw,3px); white-space: nowrap; font-size: clamp(0.62rem,2vw,0.85rem); }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .service-card { padding: 1.5rem 1rem; }
    .service-title { font-size: 1rem; }
    .service-desc { font-size: 0.8rem; line-height: 1.5; }
    .work-filters { flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
    .filter-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
    .stat-number { font-size: 3rem; }
}

/* Mobile Portrait - 320px to 479px */
@media (max-width: 479px) {
    html { font-size: 13px; }
    .container { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; }
    .section { padding: 3.25rem 0; }
    .section-title { font-size: 2rem; line-height: 1.15; }
    .section-header { margin-bottom: 2rem; }
    .section-desc { font-size: 0.95rem; line-height: 1.6; }

    /* Navigation - keep logo in one column, professional tight fit */
    .nav { padding: 0.75rem 0; }
    .nav-container { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; min-height: 48px; gap: 0.75rem; }
    .nav-logo { gap: 0; }
    .logo-main { font-size: 1.55rem; line-height: 0.9; }
    .logo-sub { font-size: 0.6rem; letter-spacing: 3.5px; margin-top: 1px; }
    .nav-menu { max-width: 100%; padding: 2rem 1.5rem; }

    /* Hero - aligns to same 16px gutter + header space */
    .hero { min-height: 68vh; padding-top: 64px; }
    .hero-content { width: 100%; padding: 0 16px; box-sizing: border-box; }
    .hero-title { font-size: 2.4rem; line-height: 0.95; }
    .hero-tag { font-size: clamp(0.55rem, 3vw, 0.7rem); letter-spacing: clamp(0.5px, 0.3vw, 1.6px); margin-bottom: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-description { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.75rem; }
    .hero-actions .btn { padding: 0.9rem 1.25rem; font-size: 1.1rem; }

    .btn { font-size: 0.9rem; padding: 0.85rem 1.25rem; }

    .work-filters { gap: 0.35rem; justify-content: center; }
    .filter-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }

    .work-grid { gap: 1.5rem; }
    .work-card-info { padding: 1.25rem; }

    .about-grid, .contact-grid { gap: 2rem; }
    .about-stats { flex-direction: row; gap: 1rem; justify-content: space-between; }
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.7rem; letter-spacing: 1px; }

    .services-grid { gap: 0.75rem; }
    .service-card { padding: 1.5rem 1rem; }
    .service-title { font-size: 1.05rem; }
    .service-desc { display: block; font-size: 0.82rem; }

    .contact-form { padding: 1.5rem 1.25rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-item { gap: 0.9rem; }
    .contact-socials { gap: 0.85rem; }

    .footer { padding: 2.5rem 0 1.5rem; }
    .footer-top { gap: 1.5rem; }
    .footer-links { gap: 1rem 1.5rem; }
    .footer-bottom { padding-top: 1.25rem; }

    .artists-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .marquee-container .artists-grid { grid-template-columns: none; gap: 1rem; }
    .marquee-wrapper { gap: 0.5rem; }
    .marquee-btn { width: 36px; height: 36px; }
    .artist-card-image { width: 105px; height: 105px; }
    .artist-card-name { font-size: 1.05rem; }
    .artist-whatsapp-btn, .artist-request-btn { padding: 0.45rem 0.9rem; font-size: 0.78rem; }

    .showreel-embed, .showreel-video-embed { aspect-ratio: 16/10; }
}

/* Extra small - 375px (iPhone SE, etc.) */
@media (max-width: 390px) {
    .container { padding: 0 14px; }
    .nav-container { padding: 0 14px; }
    .hero-content { padding: 0 14px; }
    .hero-title { font-size: 2.15rem; }
    .section-title { font-size: 1.85rem; }
    .logo-main { font-size: 1.4rem; }
    .logo-sub { font-size: 0.55rem; letter-spacing: 3px; }
    .services-grid { gap: 0.6rem; }
    .service-card { padding: 1.25rem 0.85rem; }
    .work-grid { gap: 1.25rem; }
    .artist-card-image { width: 95px; height: 95px; }
}

/* Small Mobile - Below 360px */
@media (max-width: 359px) {
    html { font-size: 12px; }
    .container { padding: 0 12px; }
    .nav-container { padding: 0 12px; }
    .hero-content { padding: 0 12px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .btn { padding: 0.75rem 1rem; font-size: 0.85rem; }
    .logo-main { font-size: 1.3rem; }
    .logo-sub { font-size: 0.5rem; letter-spacing: 2.5px; }
    .service-card { padding: 1.15rem 0.75rem; }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .section {
        padding: 3rem 0;
    }
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .nav-menu {
        padding: 1rem;
        gap: 1rem;
    }
}

/* Prevent horizontal overflow on all devices - site was shifting left on mobile */
html {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}
body {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    position: relative;
}

* {
    min-width: 0;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure grid items don't overflow */
.work-grid, .services-grid, .stats-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero, .section, .nav, .footer {
    max-width: 100vw;
    overflow-x: clip;
}

/* Video Modal Responsive */
#videoPlayerModal {
    padding: 1rem;
}
#videoPlayerModal .modal-video-wrapper {
    width: 90%;
    max-width: 900px;
}
@media (max-width: 767px) {
    #videoPlayerModal h3 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    #videoPlayerModal .modal-video-wrapper {
        width: 95%;
    }
    #videoPlayerModal button {
        top: 10px;
        right: 10px;
        font-size: 2rem !important;
    }
}
@media (max-width: 479px) {
    #videoPlayerModal h3 {
        font-size: 1.1rem !important;
    }
}
