
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    overflow-x: hidden;
}

.element {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    /*transition: all 0.3s ease;*/
    cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.element:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s infinite ease-in-out;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.download-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.download-btn:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.category-item{
    cursor: pointer;
}

.feature-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.category-pill {
    transition: all 0.3s ease;
}

.category-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.screenshot {
    transition: all 0.5s ease;
    transform-origin: center;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.slider-nav-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-item.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Critical: Set explicit aspect ratio */
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* YouTube iframe wrapper - Use modern aspect-ratio instead of padding hack */
.youtube-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    /* Fallback for older browsers */
    /*height: 56.25vw;*/
    max-height: calc(100vw * 0.5625);
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .video-container {
        width: 90%;
        max-width: 90%;
        margin: auto;
        /* Force specific dimensions on mobile */
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .youtube-wrapper {
        width: 100%;
        /* Use viewport width calculation for mobile */
        height: calc(100vw * 0.5625);
        aspect-ratio: 16 / 9;
        position: relative;
        display: block;
        /* Remove padding-bottom approach on mobile */
        padding-bottom: 0;
    }

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

/* Extra small screens */
@media (max-width: 480px) {
    .video-container {
        aspect-ratio: 16 / 9;
    }

    .youtube-wrapper {
        height: calc(100vw * 0.5625);
        max-width: 90%;
        margin: auto;
        min-height: 200px;
    }
}

/* For container queries support */
@container (max-width: 768px) {
    .youtube-wrapper {
        height: calc(100cqw * 0.5625);
    }
}

/* Pulse animation for play button */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Hide thumbnail when video is playing */
.video-playing #video-thumbnail,
.video-playing #play-button {
    display: none !important;
}

/* Ensure youtube wrapper is visible when playing */
.video-playing .youtube-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
}

/* Pulse animation for play button */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}
.slider-container {
    position: relative;
    overflow: hidden;
}

.mySwiper {
    padding: 50px 0;
    overflow: visible;
}

.swiper-slide {
    width: 250px;
    height: 500px;
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center slide - largest and most prominent */
.swiper-slide-active {
    transform: scale(1.1) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Slides immediately next to center */
.swiper-slide-next,
.swiper-slide-prev {
    transform: scale(0.9);
    z-index: 8;
    opacity: 0.8;
}

/* Slides further from center */
.swiper-slide-next + .swiper-slide,
.swiper-slide-prev + .swiper-slide {
    transform: scale(0.8);
    z-index: 6;
    opacity: 1;
}

/* All other slides */
.swiper-slide {
    transform: scale(0.7);
    z-index: 4;
    opacity: 0.6;
}

/* Custom pagination */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #f97316;
    transform: scale(1.2);
}

/* Hide navigation arrows for cleaner look */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* Container adjustments */
.swiper-container {
    overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-slide {
        width: 200px;
        height: 320px;
    }

    .mySwiper {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 180px;
        height: 280px;
    }
}

.grayed {
    filter: grayscale(100%) !important;
    opacity: 0.3 !important;
}
.highlighted {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 15s linear infinite; /* Slower */
}
