/* 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;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 0.9;
}

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

.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 */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 6rem;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
}

.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;
}

/* 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;
}

/* Testimonials */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.testimonial-btn:hover {
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* 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;
}

.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;
}

/* 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;
    }
    .testimonial-track {
        gap: 2rem;
    }
    .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: 90%;
    }
    .section {
        padding: 5rem 0;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .section-header {
        margin-bottom: 3rem;
    }

    /* Navigation */
    .nav-toggle {
        display: block;
    }
    .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);
    }
    .nav-menu.active {
        transform: translateX(0);
    }

    /* Hero */
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Grids */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    /* About stats - prevent overlap */
    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: space-around;
    }
    .stat {
        text-align: center;
        min-width: 100px;
    }

    /* Contact */
    .contact-item {
        font-size: 0.95rem;
        word-break: break-word;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
    .contact-socials {
        justify-content: center;
    }

    /* Testimonials */
    .testimonials-slider {
        max-width: 100%;
        overflow: hidden;
    }
    .testimonial-quote {
        font-size: 1.2rem;
    }

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

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

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

/* Mobile Landscape - 480px to 599px */
@media (max-width: 599px) {
    html {
        font-size: 14px;
    }
    .section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .service-card {
        padding: 1.25rem 0.75rem;
    }
    .service-title {
        font-size: 0.95rem;
    }
    .service-desc {
        display: none;
    }
    .work-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    .stat-number {
        font-size: 3rem;
    }
    .testimonial-quote {
        font-size: 1.05rem;
    }
}

/* Mobile Portrait - 320px to 479px */
@media (max-width: 479px) {
    html {
        font-size: 13px;
    }
    .container {
        width: 92%;
        padding: 0 0.5rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .section-desc {
        font-size: 0.95rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    .logo-main {
        font-size: 1.5rem;
    }
    .nav-menu {
        max-width: 100%;
    }

    /* Hero */
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.1;
    }
    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .hero-actions .btn {
        padding: 0.85rem 1.5rem;
    }

    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.5rem;
    }

    /* Work filters */
    .work-filters {
        gap: 0.4rem;
    }
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* About stats */
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }

    /* Services */
    .service-card {
        padding: 2rem 1.5rem;
    }
    .service-title {
        font-size: 1.3rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    .testimonial-quote {
        font-size: 1rem;
        margin: 1rem 0 1.5rem;
    }

    /* Contact form */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.5rem 1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }

    /* Artists */
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .artist-card-image {
        width: 110px;
        height: 110px;
    }
    .artist-card-name {
        font-size: 1.1rem;
    }
    .artist-whatsapp-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile - Below 360px */
@media (max-width: 359px) {
    html {
        font-size: 12px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
    }
    .logo-main {
        font-size: 1.3rem;
    }
}

/* 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 */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

/* 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;
    }
}
