/**
 * Portfolio Elements for Elementor
 * Stylesheet
 */

/* ============================================
   Portfolio Item - Base Styles
   ============================================ */

.portfolio-item {
    --portfolio-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
}

.portfolio-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.portfolio-item__link:hover,
.portfolio-item__link:focus {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Media Container
   ============================================ */

.portfolio-item__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a2e;
    border-radius: 12px;
}

/* Aspect Ratios */
.portfolio-item__aspect--1-1 {
    aspect-ratio: 1 / 1;
}

.portfolio-item__aspect--4-3 {
    aspect-ratio: 4 / 3;
}

.portfolio-item__aspect--16-9 {
    aspect-ratio: 16 / 9;
}

.portfolio-item__aspect--21-9 {
    aspect-ratio: 21 / 9;
}

.portfolio-item__aspect--9-16 {
    aspect-ratio: 9 / 16;
}

/* Media Inner Container */
.portfolio-item__media-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--portfolio-transition);
    will-change: transform;
}

/* Hover Scale Effect */
.portfolio-item__media:hover .portfolio-item__media-inner {
    transform: scale(1.1);
}

/* Overlay */
.portfolio-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color var(--portfolio-transition);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item__media:hover .portfolio-item__overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Overlay Content */
.portfolio-item__overlay-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--portfolio-transition), transform var(--portfolio-transition);
}

.portfolio-item__media:hover .portfolio-item__overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item__overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.portfolio-item__overlay-icon svg {
    fill: currentColor;
    width: 1em;
    height: 1em;
}

/* ============================================
   Image Styles
   ============================================ */

.portfolio-item__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   Video Styles
   ============================================ */

.portfolio-item__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-item__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* ============================================
   Project Info Section
   ============================================ */

.portfolio-item__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 16px;
    padding: 0 4px;
}

.portfolio-item__info-left {
    flex: 1 1 auto;
    min-width: 0;
}

/* Title */
.portfolio-item__title {
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Description */
.portfolio-item__description {
    margin: 6px 0 0 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   Badges
   ============================================ */

.portfolio-item__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 60%;
}

.portfolio-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    background-color: #6366f1;
    border-radius: 6px;
    border: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background-color 0.35s ease, 
                color 0.35s ease,
                border-color 0.35s ease;
}

/* Badge Color Variants - Can be overridden by inline styles */
.portfolio-item__badge--web-design {
    background-color: #6366f1;
}

.portfolio-item__badge--artwork {
    background-color: #ec4899;
}

.portfolio-item__badge--photo {
    background-color: #14b8a6;
}

.portfolio-item__badge--video {
    background-color: #f97316;
}

.portfolio-item__badge--ecommerce {
    background-color: #10b981;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Stack title and badges earlier */
@media (max-width: 1400px) {
    .portfolio-item__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .portfolio-item__info-left {
        width: 100%;
    }

    .portfolio-item__badges {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .portfolio-item__info {
        padding-bottom: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .portfolio-item__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 24px;
    }

    .portfolio-item__info-left {
        width: 100%;
    }

    .portfolio-item__badges {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .portfolio-item__title {
        font-size: 1rem;
    }

    .portfolio-item__description {
        font-size: 0.8125rem;
    }

    .portfolio-item__badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .portfolio-item__overlay-content {
        font-size: 0.875rem;
    }
}

/* ============================================
   Focus States for Accessibility
   ============================================ */

.portfolio-item__link:focus-visible .portfolio-item__media {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
}

/* ============================================
   Editor Styles
   ============================================ */

.elementor-editor-active .portfolio-item__iframe {
    pointer-events: none;
}

/* ============================================
   Elementor Widget Container Fix
   ============================================ */

/* Ensure widget container doesn't constrain content */
.elementor-widget-portfolio_item {
    width: 100% !important;
}

.elementor-widget-portfolio_item > .elementor-widget-container {
    width: 100% !important;
}

/* ============================================
   Animation Enhancements
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .portfolio-item__media-inner {
        transition: none;
    }

    .portfolio-item__overlay {
        transition: none;
    }

    .portfolio-item__overlay-content {
        transition: none;
    }

    .portfolio-item__badge {
        transition: none;
    }
}

/* ============================================
   Loading State
   ============================================ */

.portfolio-item__media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: portfolio-shimmer 1.5s infinite;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.portfolio-item__media.is-loading::before {
    opacity: 1;
}

@keyframes portfolio-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */

@media (prefers-color-scheme: dark) {
    .portfolio-item__media {
        background-color: #0f0f1a;
    }
}


/* ============================================
   ============================================
   SERVICES SHOWCASE WIDGET
   ============================================
   ============================================ */

/* ============================================
   Services Showcase - Base Styles
   ============================================ */

.services-showcase {
    position: relative;
    width: 100%;
}

.services-showcase__item {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-color, #ffffff);
}

.services-showcase--fullscreen .services-showcase__item {
    height: 100vh;
    min-height: 600px;
}

/* ============================================
   Parallax Stacking Effect
   ============================================ */

.services-showcase--parallax .services-showcase__item {
    position: sticky;
    top: 0;
    z-index: var(--z-index, 1);
}

/* Add shadow to create depth between stacked sections */
.services-showcase--parallax .services-showcase__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.services-showcase--parallax .services-showcase__item:not(:first-child)::after {
    opacity: 1;
}

/* ============================================
   Background Styles
   ============================================ */

.services-showcase__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-showcase__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ============================================
   Content Styles
   ============================================ */

.services-showcase__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
    text-align: center;
}

.services-showcase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin-bottom: 30px;
    color: inherit;
    opacity: 0.9;
}

.services-showcase__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Image/SVG icon variant */
.services-showcase__icon--image {
    font-size: inherit;
}

.services-showcase__icon--image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.services-showcase__title {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.services-showcase__description {
    margin: 0 0 40px 0;
    padding: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
}

/* ============================================
   Button Styles
   ============================================ */

.services-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #1f2937;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-showcase__button:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.services-showcase__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ============================================
   Navigation Dots
   ============================================ */

.services-showcase__nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.services-showcase__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-showcase__dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.services-showcase__dot.is-active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* ============================================
   Entrance Animations (removed default - now controlled via is-visible class)
   ============================================ */

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 1024px) {
    .services-showcase__nav {
        right: 20px;
    }

    .services-showcase__content {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .services-showcase__item {
        min-height: 100vh;
        min-height: 100svh; /* Small viewport height for mobile */
    }

    .services-showcase__nav {
        right: 15px;
        gap: 10px;
    }

    .services-showcase__dot {
        width: 10px;
        height: 10px;
    }

    .services-showcase__content {
        padding: 20px;
    }

    .services-showcase__icon {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .services-showcase__icon--image img {
        width: 60px;
        height: 60px;
    }

    .services-showcase__title {
        font-size: 1.75rem;
    }

    .services-showcase__description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .services-showcase__button {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .services-showcase__content {
        animation: none;
    }

    .services-showcase__button {
        transition: none;
    }

    .services-showcase__dot {
        transition: none;
    }

    .services-showcase--parallax .services-showcase__item {
        position: relative;
    }
}

/* ============================================
   Scroll Snap (applied to html when active)
   ============================================ */

html.services-snap-active {
    scroll-snap-type: y mandatory;
}

html.services-snap-active body {
    scroll-snap-type: y mandatory;
}

.services-showcase--snap .services-showcase__item {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ============================================
   Progress Indicator
   ============================================ */

.services-showcase__progress {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

.services-showcase__progress-fill {
    width: 100%;
    height: 33%;
    background-color: #ffffff;
    border-radius: 6px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 6px;
}

/* ============================================
   Animated Background Gradient
   ============================================ */

.services-showcase__animated-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: animatedGradient 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes animatedGradient {
    0%, 100% {
        transform: translate(0%, 0%) rotate(0deg);
    }
    25% {
        transform: translate(10%, 10%) rotate(90deg);
    }
    50% {
        transform: translate(0%, 20%) rotate(180deg);
    }
    75% {
        transform: translate(-10%, 10%) rotate(270deg);
    }
}

/* Second animated layer for more depth */
.services-showcase--animated-bg .services-showcase__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmerBg 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmerBg {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* ============================================
   Background Patterns
   ============================================ */

.services-showcase__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Dots Pattern */
.services-showcase__pattern--dots {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    color: #ffffff;
}

/* Grid Pattern */
.services-showcase__pattern--grid {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Diagonal Lines Pattern */
.services-showcase__pattern--diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 11px
    );
}

/* Crosses Pattern */
.services-showcase__pattern--crosses {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

.services-showcase__pattern--crosses::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 10px 10px;
}

/* Waves Pattern */
.services-showcase__pattern--waves {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Circuit Pattern */
.services-showcase__pattern--circuit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Content Entrance Animations (DISABLED - content always visible)
   ============================================ */

/* All content always visible */
.services-showcase__icon,
.services-showcase__title,
.services-showcase__description,
.services-showcase__button,
.services-showcase__content {
    opacity: 1 !important;
    transform: none !important;
}


/* ============================================
   Elementor Editor Styles
   ============================================ */

.elementor-editor-active .services-showcase__nav {
    position: absolute;
}

.elementor-editor-active .services-showcase--parallax .services-showcase__item {
    position: relative;
}

.elementor-editor-active .services-showcase__progress {
    position: absolute;
}

/* Show all content in editor */
.elementor-editor-active .services-showcase--anim-stagger .services-showcase__icon,
.elementor-editor-active .services-showcase--anim-stagger .services-showcase__title,
.elementor-editor-active .services-showcase--anim-stagger .services-showcase__description,
.elementor-editor-active .services-showcase--anim-stagger .services-showcase__button,
.elementor-editor-active .services-showcase--anim-fade .services-showcase__content,
.elementor-editor-active .services-showcase--anim-scale .services-showcase__content {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   Fix Elementor Container for Sticky
   ============================================ */

/* Sticky positioning requires no overflow:hidden on ancestors */
.elementor-widget-services_showcase,
.elementor-widget-services_showcase > .elementor-widget-container {
    overflow: visible !important;
}

/* Try to fix common Elementor containers */
.elementor-element:has(.services-showcase),
.elementor-container:has(.services-showcase),
.elementor-section:has(.services-showcase),
.e-con:has(.services-showcase) {
    overflow: visible !important;
}

/* Make widget full width */
.elementor-widget-services_showcase {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   Text Link Widget
   ============================================ */

.text-link-wrapper {
    display: block;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-link__text {
    position: relative;
    display: inline-block;
}

.text-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.text-link__icon svg {
    fill: currentColor;
}

/* Icon Position */
.text-link--icon-before {
    flex-direction: row;
}

.text-link--icon-after {
    flex-direction: row;
}

/* Underline Styles */
.text-link__text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Underline - None */
.text-link--underline-none .text-link__text::after {
    display: none;
}

/* Underline - Always */
.text-link--underline-always .text-link__text::after {
    transform: scaleX(1);
}

/* Underline - On Hover */
.text-link--underline-hover .text-link__text::after {
    transform-origin: left;
}

.text-link--underline-hover:hover .text-link__text::after {
    transform: scaleX(1);
}

/* Underline - Animate Out on Hover */
.text-link--underline-hover-out .text-link__text::after {
    transform: scaleX(1);
    transform-origin: left;
}

.text-link--underline-hover-out:hover .text-link__text::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* Icon Animations */
.text-link--anim-slide-right:hover .text-link__icon {
    transform: translateX(4px);
}

.text-link--anim-slide-up:hover .text-link__icon {
    transform: translateY(-4px);
}

.text-link--anim-scale:hover .text-link__icon {
    transform: scale(1.2);
}

.text-link--anim-rotate:hover .text-link__icon {
    transform: rotate(45deg);
}

/* Icon before - reverse animations */
.text-link--icon-before.text-link--anim-slide-right:hover .text-link__icon {
    transform: translateX(-4px);
}

/* ============================================
   Stats Counter Widget
   ============================================ */

.stats-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
}

.stats-counter__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dividers */
.stats-counter--dividers .stats-counter__item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.1);
}

.stats-counter--dividers .stats-counter__item:last-child::after {
    display: none;
}

/* Number */
.stats-counter__number {
    display: flex;
    align-items: baseline;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stats-counter__prefix,
.stats-counter__suffix {
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.8;
}

.stats-counter__value {
    font-variant-numeric: tabular-nums;
}

/* Label */
.stats-counter__label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    line-height: 1.4;
}

/* Description */
.stats-counter__description {
    font-size: 13px;
    color: #999999;
    margin-top: 5px;
    line-height: 1.5;
}

/* Animation */
.stats-counter--animated .stats-counter__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-counter--animated .stats-counter__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-counter--dividers .stats-counter__item:nth-child(2n)::after {
        display: none;
    }
    
    .stats-counter__number {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stats-counter__number {
        font-size: 32px;
    }
    
    .stats-counter__label {
        font-size: 12px;
    }
    
    .stats-counter--dividers .stats-counter__item::after {
        display: none;
    }
}


/* ============================================
   ============================================
   WEB DESIGN SHOWCASE WIDGET
   ============================================
   ============================================ */

/* ============================================
   Base Layout
   ============================================ */

.web-design-showcase {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
    box-sizing: border-box;
}

.web-design-showcase__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    text-align: center;
}

.web-design-showcase--full-width .web-design-showcase__inner {
    max-width: 100%;
    padding: 0 40px;
}

/* ============================================
   Animated Background (reuses keyframes from Services Showcase)
   ============================================ */

.web-design-showcase__animated-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: animatedGradient 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.web-design-showcase--animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmerBg 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Header (Title + Description)
   ============================================ */

.web-design-showcase__header {
    text-align: center;
    margin-bottom: 48px;
}

.web-design-showcase__title {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
}

.web-design-showcase__description {
    margin: 0;
    padding: 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ============================================
   Carousel Container
   ============================================ */

.web-design-showcase__carousel {
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* ============================================
   Carousel Track & Slides
   ============================================ */

.web-design-showcase__track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.web-design-showcase__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.web-design-showcase__slide {
    flex: 0 0 auto;
    width: calc((100% - 60px) / 4);
    min-width: 0;
}

.web-design-showcase__slide-inner {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    aspect-ratio: var(--slide-aspect-ratio, 9 / 16);
}

/* ============================================
   Slide Image
   ============================================ */

.web-design-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-design-showcase__slide-inner:hover .web-design-showcase__image {
    transform: scale(1.05);
}

/* ============================================
   Browser Frame Mockup
   ============================================ */

.web-design-showcase__slide-inner--browser {
    padding-top: 32px;
    background: #1e1e1e;
}

.web-design-showcase__slide-inner--browser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background-color: #2d2d2d;
    background-image:
        radial-gradient(circle at 16px 16px, #ff5f57 5px, transparent 5px),
        radial-gradient(circle at 36px 16px, #febc2e 5px, transparent 5px),
        radial-gradient(circle at 56px 16px, #28c840 5px, transparent 5px);
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.web-design-showcase__slide-inner--browser::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 76px;
    right: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    z-index: 3;
}

.web-design-showcase__slide-inner--browser .web-design-showcase__image {
    height: calc(100% - 32px);
    border-radius: 0;
}

/* ============================================
   Project Title Overlay
   ============================================ */

.web-design-showcase__slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.web-design-showcase__slide-inner:hover .web-design-showcase__slide-overlay {
    opacity: 1;
}

.web-design-showcase__project-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* ============================================
   Navigation Arrows
   ============================================ */

.web-design-showcase__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.web-design-showcase__arrow:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.web-design-showcase__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.web-design-showcase__arrow:disabled:hover {
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
}

.web-design-showcase__arrow--prev {
    left: 10px;
}

.web-design-showcase__arrow--next {
    right: 10px;
}

.web-design-showcase__arrow svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   Navigation Dots
   ============================================ */

.web-design-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.web-design-showcase__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.web-design-showcase__dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.web-design-showcase__dot.is-active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* ============================================
   Responsive – Tablet
   ============================================ */

@media (max-width: 1024px) {
    .web-design-showcase__inner {
        padding: 0 40px;
    }

    .web-design-showcase__slide {
        width: calc((100% - 20px) / 2);
    }
}

/* ============================================
   Responsive – Mobile
   ============================================ */

@media (max-width: 767px) {
    .web-design-showcase {
        padding: 60px 0;
        min-height: auto;
    }

    .web-design-showcase__inner {
        padding: 0 24px;
    }

    .web-design-showcase__header {
        margin-bottom: 32px;
    }

    .web-design-showcase__slide {
        width: 100%;
    }

    .web-design-showcase__arrow {
        width: 36px;
        height: 36px;
    }

    .web-design-showcase__arrow svg {
        width: 16px;
        height: 16px;
    }

    .web-design-showcase__slide-overlay {
        opacity: 1;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .web-design-showcase__animated-gradient,
    .web-design-showcase--animated-bg::before {
        animation: none;
    }

    .web-design-showcase__track {
        transition: none;
    }

    .web-design-showcase__image {
        transition: none;
    }
}

/* ============================================
   Elementor Editor Overrides
   ============================================ */

.elementor-editor-active .web-design-showcase {
    min-height: auto;
}

/* Full-width within Elementor container */
.elementor-widget-web_design_showcase {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ============================================
   ============================================
   FAQ ACCORDION WIDGET
   ============================================
   ============================================ */

/* ============================================
   Container
   ============================================ */

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* ============================================
   Item
   ============================================ */

.faq-accordion__item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-accordion__item + .faq-accordion__item {
    margin-top: 0;
}

/* Collapse shared borders when stacked with no gap */
.faq-accordion__item:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.faq-accordion__item:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.faq-accordion__item:only-child {
    border-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Restore radius when items have spacing */
.faq-accordion--spaced .faq-accordion__item {
    border-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* ============================================
   Trigger (Question Button)
   ============================================ */

.faq-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    margin: 0;
    border: none;
    background-color: #ffffff;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: background-color 0.2s ease;
}

.faq-accordion__trigger:hover {
    background-color: #f9fafb;
}

.faq-accordion__trigger:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}

.faq-accordion__trigger--icon-left {
    flex-direction: row-reverse;
}

/* ============================================
   Question Text
   ============================================ */

.faq-accordion__question {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2937;
}

/* ============================================
   Toggle Icon
   ============================================ */

.faq-accordion__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-accordion__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.faq-accordion__icon-open {
    display: none;
}

.faq-accordion__icon-closed {
    display: flex;
}

.faq-accordion__item.is-open .faq-accordion__icon-open {
    display: flex;
}

.faq-accordion__item.is-open .faq-accordion__icon-closed {
    display: none;
}

/* Chevron and caret rotate instead of swapping */
.faq-accordion__item.is-open .faq-accordion__icon--rotate {
    transform: rotate(180deg);
}

/* ============================================
   Answer Body
   ============================================ */

.faq-accordion__body {
    background-color: #ffffff;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    border: none;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion__body[hidden] {
    display: block !important;
    height: 0;
    padding: 0 !important;
    overflow: hidden;
}

.faq-accordion__answer {
    padding: 0 24px 24px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
}

.faq-accordion__answer p {
    margin: 0 0 12px 0;
}

.faq-accordion__answer p:last-child {
    margin-bottom: 0;
}

.faq-accordion__answer a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-accordion__answer a:hover {
    color: #4f46e5;
}

.faq-accordion__answer ul,
.faq-accordion__answer ol {
    margin: 0 0 12px 0;
    padding-left: 1.5em;
}

.faq-accordion__answer li {
    margin-bottom: 4px;
}

/* ============================================
   Separator between question and answer
   ============================================ */

.faq-accordion__item.is-open .faq-accordion__trigger {
    border-bottom: 1px solid #f3f4f6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
    .faq-accordion__trigger {
        padding: 16px 20px;
        gap: 12px;
    }

    .faq-accordion__answer {
        padding: 0 20px 20px;
        font-size: 0.875rem;
    }

    .faq-accordion__question {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .faq-accordion__body {
        transition: none;
    }

    .faq-accordion__icon {
        transition: none;
    }
}


/* ============================================================
   NUMBERED HEADING WIDGET
   ============================================================ */

.numbered-heading {
    line-height: 1;
}

/* ============================================
   Inline Layout (number left of heading)
   ============================================ */

.numbered-heading--inline .numbered-heading__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.numbered-heading--inline .numbered-heading__content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   Stacked Layout (number above heading)
   ============================================ */

.numbered-heading--stacked {
    display: flex;
    flex-direction: column;
}

.numbered-heading--stacked .numbered-heading__number {
    margin-bottom: 16px;
}

.numbered-heading[style*="text-align: center"] .numbered-heading__number,
.numbered-heading--stacked[style*="text-align: center"] {
    align-items: center;
}

/* ============================================
   Number Base
   ============================================ */

.numbered-heading__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    box-sizing: border-box;
}

/* ============================================
   Number Styles — Filled Circle
   ============================================ */

.numbered-heading__number--filled-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #6366f1;
    color: #ffffff;
}

/* ============================================
   Number Styles — Outline Circle
   ============================================ */

.numbered-heading__number--outline-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

/* ============================================
   Number Styles — Filled Square
   ============================================ */

.numbered-heading__number--filled-square {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background-color: #6366f1;
    color: #ffffff;
}

/* ============================================
   Number Styles — Outline Square
   ============================================ */

.numbered-heading__number--outline-square {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background-color: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

/* ============================================
   Number Styles — Filled Rounded Square
   ============================================ */

.numbered-heading__number--filled-rounded {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #6366f1;
    color: #ffffff;
}

/* ============================================
   Number Styles — Outline Rounded Square
   ============================================ */

.numbered-heading__number--outline-rounded {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

/* ============================================
   Number Styles — Plain
   ============================================ */

.numbered-heading__number--plain {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 2rem;
    font-weight: 800;
    width: auto;
    height: auto;
}

/* ============================================
   Number Styles — Underline
   ============================================ */

.numbered-heading__number--underline {
    position: relative;
    background: none;
    border: none;
    color: #6366f1;
    font-size: 2rem;
    font-weight: 800;
    width: auto;
    height: auto;
    padding-bottom: 6px;
}

.numbered-heading__number--underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background-color: #6366f1;
}

/* ============================================
   Number Styles — Dot (e.g. "1.")
   ============================================ */

.numbered-heading__number--dot {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 2rem;
    font-weight: 800;
    width: auto;
    height: auto;
}

/* ============================================
   Heading Title
   ============================================ */

.numbered-heading__title {
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

/* ============================================
   Description
   ============================================ */

.numbered-heading__description {
    margin: 8px 0 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
}

/* ============================================
   Stacked center alignment helper
   ============================================ */

.numbered-heading--stacked .numbered-heading__number {
    display: inline-flex;
}

/* ============================================
   Film Grid
   ============================================ */

.film-grid {
    --film-grid-grayscale: 100%;
    --film-grid-brightness: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 0;
}

.film-grid__item {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: #000;
    line-height: 0;
}

.film-grid__item:hover,
.film-grid__item:focus {
    text-decoration: none;
    color: inherit;
}

.film-grid__media {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(0);
    transition: filter 0.4s ease;
}

.film-grid__video {
    pointer-events: none;
}

.film-grid__item:hover .film-grid__media {
    filter: grayscale(var(--film-grid-grayscale)) brightness(var(--film-grid-brightness));
}

.film-grid__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.film-grid__item:hover .film-grid__overlay {
    opacity: 1;
}

.film-grid__title {
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.film-grid__item:hover .film-grid__title {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .film-grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor Editor */
.elementor-editor-active .film-grid__overlay {
    opacity: 1;
}

.elementor-editor-active .film-grid__title {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .film-grid__media,
    .film-grid__overlay,
    .film-grid__title {
        transition: none;
    }
}
