/* ===== متغيرات CSS ===== */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-icon-1: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-icon-2: linear-gradient(135deg, #f093fb, #f5576c);
    --gradient-icon-3: linear-gradient(135deg, #4facfe, #00f2fe);
    --gradient-icon-4: linear-gradient(135deg, #43e97b, #38f9d7);
    --gradient-icon-5: linear-gradient(135deg, #fa709a, #fee140);
    --gradient-icon-6: linear-gradient(135deg, #a8edea, #fed6e3);

    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-feature: 0 25px 50px rgba(0,0,0,0.2);
    --shadow-app: 0 25px 50px rgba(0,0,0,0.3);
}

/* ===== الخلفيات المتدرجة ===== */
.gradient-bg {
    background: var(--gradient-primary);
}

/* ===== بطاقات الميزات ===== */
.feature-card {
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-feature);
}

/* ===== نموذج التطبيق ===== */
.app-mockup {
    background: linear-gradient(145deg, #1f2937, #374151);
    border-radius: 25px;
    padding: 20px;
    box-shadow: var(--shadow-app);
    animation: float 6s ease-in-out infinite;
}

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

/* ===== الفقاعات المتحركة ===== */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: bubble 15s infinite;
}

@keyframes bubble {
    0% {
        transform: translateY(100vh) scale(0);
    }
    100% {
        transform: translateY(-100vh) scale(1);
    }
}

.bubble:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    left: 35%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    left: 50%;
    width: 40px;
    height: 40px;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    left: 70%;
    width: 100px;
    height: 100px;
    animation-delay: 8s;
}

.bubble:nth-child(6) {
    left: 85%;
    width: 30px;
    height: 30px;
    animation-delay: 10s;
}

/* ===== تأثير النبض ===== */
.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }
    80%, 100% {
        opacity: 0;
    }
}

/* ===== أزرار التحميل ===== */
.download-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

/* ===== تأثير الموجة (Ripple) ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== الخلفيات المتدرجة للأيقونات ===== */
.icon-gradient-1 { background: var(--gradient-icon-1); }
.icon-gradient-2 { background: var(--gradient-icon-2); }
.icon-gradient-3 { background: var(--gradient-icon-3); }
.icon-gradient-4 { background: var(--gradient-icon-4); }
.icon-gradient-5 { background: var(--gradient-icon-5); }
.icon-gradient-6 { background: var(--gradient-icon-6); }

/* ===== حاوية الفيديو ===== */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-app);
}

/* ===== Swiper Slider ===== */
.swiper-slide img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-button-next,
.swiper-button-prev {
    color: #667eea !important;
}

.swiper-pagination-bullet-active {
    background: #667eea !important;
}

/* ===== عرض الساعة ===== */
.clock-display {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* ===== تحسينات الاستجابة ===== */
@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .app-mockup {
        padding: 15px;
    }

    .bubble {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .download-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .feature-card {
        padding: 24px;
    }
}

/* ===== تحسينات الأداء ===== */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .download-btn,
    .app-mockup,
    .bubble,
    .pulse-ring {
        animation: none;
        transition: none;
    }

    .feature-card:hover,
    .download-btn:hover {
        transform: none;
    }
}

/* Video Preview Styles */
.video-preview-wrapper {
    animation: float 6s ease-in-out infinite;
}

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

.play-button {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.video-preview:hover .play-button {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* Ripple Animation for Play Button */
@keyframes ripple-play {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Modal Animations */
.video-modal-container {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Shadow */
.shadow-3xl {
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .play-button .relative {
        width: 60px;
        height: 60px;
    }

    .app-video-preview {
        height: 300px;
    }

    .w-64 {
        width: 200px;
    }
}
.video-preview-wrapper {
    animation: float 6s ease-in-out infinite;
}

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

.play-button {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.video-preview:hover .play-button {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Reduced Ripple Animation */
@keyframes ripple-play {
    0% {
        transform: scale(0.9);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal Animations */
.video-modal-container {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Shadow */
.shadow-3xl {
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .play-button .relative {
        width: 60px;
        height: 60px;
    }

    .app-video-preview {
        height: 300px;
    }

    .w-64 {
        width: 200px;
    }
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    animation: ripple-expand 0.4s ease-out;
    pointer-events: none;
}

@keyframes ripple-expand {
    to {
        transform: scale(2);
        opacity: 0;
    }
}
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
.grid-container {
    max-width: 1200px;  /* Change this to 1400px or 1600px */
}
.grid-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Change 320px to 280px or 300px */
}
.pulse-ring {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(2.33);
        opacity: 0;
    }
}

.clock-display {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.app-mockup {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.chart-bar {
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.notification-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-item:hover {
    background-color: rgba(55, 65, 81, 0.8);
    border-left-color: #3b82f6;
    transform: translateX(4px);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch; /* This makes all items stretch to same height */
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.preview-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid cell */
}

.preview-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #e2e8f0;
}
.grid-container {

}


.app-mockup {
    flex: 1; /* This makes the mockup expand to fill available space */
    display: flex;
    flex-direction: column;
}

.app-mockup > div {
    flex: 1; /* Makes the inner content div expand */
    display: flex;
    flex-direction: column;
}
.screenshot-area {
    position: relative;
    overflow: hidden;
}

.screenshot-area.screenshot-2 {
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center bottom;
}

.screenshot-slider-1 .swiper-slide {
    position: relative;
}

.screenshot-slider-1 .swiper-slide::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 50.06%, rgba(0, 0, 0, 0.85) 97.53%);
    z-index: 2;
}

.screenshot-slider-1 .swiper-pagination {
    width: auto;
    height: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
    margin-inline: auto;
    padding: 30px 25px 60px;
    bottom: -50px;
    border-radius: 50%;
    background-color: #007bff; /* Replace with your primary color */
}

.screenshot-slider-1 .swiper-pagination .swiper-pagination-bullet {
    background-color: #ffffff;
    opacity: 0.5;
    transform: translateY(-5px);
}

.screenshot-slider-1 .swiper-pagination .swiper-pagination-bullet-active {
    width: 10px;
    background-color: #ffffff;
    opacity: 1;
}

.screenshot-slider-1 .swiper-pagination .swiper-pagination-bullet:hover {
    background-color: #ffffff;
    opacity: 1;
}

.swiper-scrollbar {
    z-index: 999;
    background-color: rgba(0, 123, 255, 0.5); /* Replace with your primary color rgba */
    width: 100%;
    left: 0;
    top: 0;
    position: static;
    border-radius: 0;
}

.swiper-scrollbar .swiper-scrollbar-drag {
    background-color: #007bff; /* Replace with your primary color */
}

.screenshot-slider .swiper-slide {
    overflow: hidden;
}

#screenshot-slider-4 .swiper-slide {
    transform-origin: bottom !important;
}

#screenshot-slider-4 .swiper-slide img {
    transform-origin: bottom !important;
}

.screenshot-slider.shadow-none .swiper-slide {
    overflow: unset;
}

.screenshot-slider.shadow-none .swiper-slide *:not(img) {
    width: 0;
}

.screenshot-slider.shadow-none img {
    filter: drop-shadow(rgba(0, 0, 0, 0.1) 0px 10px 10px);
}
