/* ==========================================================================
   VLOME DIGITAL - CORE STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL BACKGROUNDS & EFFECTS
   -------------------------------------------------------------------------- */

/* Grid background with transparent masks for a modern, tech-inspired look */
.grid-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* --------------------------------------------------------------------------
   2. KEYFRAMES & ANIMATIONS
   -------------------------------------------------------------------------- */

/* Fade Up Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade Down Animation */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility classes for trigger animations */
.animate-fade-up { 
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
    opacity: 0; 
    animation-delay: 0.3s; 
}

.animate-fade-down { 
    animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

/* Slow pulsing effect for glowing ambient backgrounds */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* Scroll reveal initial and active states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. NAVIGATION COMPONENTS (LANGUAGE DROPDOWN)
   -------------------------------------------------------------------------- */

/* Hidden by default, styled with glassmorphism */
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 110;
}

/* Show dropdown on hover */
.lang-container:hover .lang-dropdown {
    display: block;
}

/* --------------------------------------------------------------------------
   4. UI ELEMENTS & BUTTONS
   -------------------------------------------------------------------------- */

/* Premium glassmorphism button styling */
.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(115, 115, 115, 0.5);
    box-shadow: 0 0 20px rgba(115, 115, 115, 0.2);
}

/* --------------------------------------------------------------------------
   5. LAYOUTS: BENTO GRID (Services Section)
   -------------------------------------------------------------------------- */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(220px, auto);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 220px;
    }
}

/* --------------------------------------------------------------------------
   6. CAROUSEL: REELS (Portfolio/Showreel Section)
   -------------------------------------------------------------------------- */

/* Horizontal scrolling container with CSS snapping */
.reels-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 2rem 10vw;
    gap: 1.5rem;
    scroll-behavior: smooth;
    align-items: center;
}

@media (min-width: 768px) {
    .reels-carousel {
        padding: 2rem calc(50vw - 160px); 
        gap: 2rem;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.reels-carousel::-webkit-scrollbar {
    display: none;
}

/* Individual reel card styling */
.reel-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 80vw;
    max-width: 320px;
    height: 70vh;
    max-height: 568px;
    position: relative;
    /* Glassmorphism styling consistent with previous sections */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.92);
    opacity: 0.5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Active state for the centered reel card */
.reel-card.is-active {
    transform: scale(1.02);
    opacity: 1;
    z-index: 10;
    /* Soft neon glow effect on active */
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

/* Dark gradient overlay adapted to the dark theme */
.reel-overlay {
    background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.3) 50%, transparent 100%);
}

.reel-video {
    border-radius: 24px;
}

/* --------------------------------------------------------------------------
   7. CAROUSEL: REVIEWS (Client Testimonials Section)
   -------------------------------------------------------------------------- */

/* Specific background styling for reviews section */
.rev-grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}

/* Horizontal scrolling container for reviews */
.rev-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 4rem 20vw; 
    gap: 2rem;
    scroll-behavior: smooth;
    align-items: center;
}

@media (max-width: 768px) {
    .rev-carousel {
        padding: 3rem 10vw;
        gap: 1.25rem;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.rev-carousel::-webkit-scrollbar {
    display: none;
}

/* Individual review card styling */
.rev-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 60vw; 
    max-width: 850px;
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3.5rem 4rem;
    transform: scale(0.88);
    opacity: 0.35;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

@media (max-width: 768px) {
    .rev-card {
        width: 80vw;
        padding: 2.5rem 2rem;
        min-height: 350px;
    }
}

/* Active state for the centered review card */
.rev-card.is-active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(249, 115, 22, 0.03);
}

/* Large decorative quote icon within review cards */
.rev-quote-icon {
    position: absolute;
    top: -15px;
    right: 40px;
    font-size: 140px;
    line-height: 1;
    color: rgba(249, 115, 22, 0.05);
    z-index: 0;
    pointer-events: none;
    transition: color 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

/* Active state for the quote icon */
.rev-card.is-active .rev-quote-icon {
    color: rgba(249, 115, 22, 0.12);
    transform: translateY(0);
}