/* Tajawal font is loaded via /css/fonts.css */

* {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Colors */
:root {
    --royal-green: linear-gradient(135deg, #006A4E 0%, #004d38 100%);
    --gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --black: #000000;
    --white: #FFFFFF;
    
    /* New Gradient Colors */
    --gradient-yellow: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-green: linear-gradient(135deg, #006A4E 0%, #004d38 100%);
    
    /* Gradient Background Classes */
    --bg-gradient-yellow: bg-gradient-yellow;
    --bg-gradient-green: bg-gradient-green;
}

/* Glassmorphism Base */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.slide-animation {
    animation: slideIn 0.8s ease-out;
}

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

/* Gradient Backgrounds */
.gradient-bg {
    background: var(--royal-green);
}

/* New Gradient Classes */
.bg-gradient-yellow {
    background: var(--gold);
}

.bg-gradient-green {
    background: var(--royal-green);
}

.bg-gradient-red {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.text-gradient-yellow {
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: var(--royal-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tailwind CSS Compatible Classes */
.from-yellow-400-to-yellow-600 {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.from-green-500-to-green-700 {
    background: linear-gradient(135deg, #006A4E 0%, #004d38 100%);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Scroll Animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Enhanced Project Cards */
.project-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Statistics */
.stat-card {
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.stat-card:hover::after {
    opacity: 1;
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: var(--royal-green);
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 106, 78, 0.3);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.5s ease-out;
}

/* Enhanced Glass Effect */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Fix for mobile viewport */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Ensure all elements fit within viewport */
    .w-full {
        max-width: 100vw;
    }
    
    /* Fix for images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile optimizations */
    .project-card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
}

/* Swiper Custom Styles */
.stores-swiper {
    overflow: hidden;
    padding: 1rem 0;
    width: 100%;
}

.stores-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.stores-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Custom Navigation Buttons */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: static !important;
    margin: 0 !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
    display: none !important;
}

/* Custom Pagination */
.swiper-pagination-custom {
    position: static !important;
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1rem !important;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    background: rgba(0, 106, 78, 0.3) !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: rgba(0, 106, 78, 0.8) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 106, 78, 0.2) !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    background: var(--gold) !important;
    color: #000 !important;
    font-weight: 700 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
}

/* Slide Content Animations */
.stores-swiper .swiper-slide .space-y-8 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stores-swiper .swiper-slide .space-y-8.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stores-swiper .swiper-slide img {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stores-swiper .swiper-slide img.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Ensure images are stable */
.stores-swiper .swiper-slide img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Mobile Animation Adjustments */
@media (max-width: 768px) {
    .stores-swiper .swiper-slide .space-y-8 {
        transform: translateY(20px);
    }
    
    .stores-swiper .swiper-slide img {
        transform: translateY(20px) scale(0.95);
    }
}

/* Ensure pagination is visible */
.swiper-pagination-custom {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* App Store Buttons Enhanced */
.app-store-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.app-store-button:hover::before {
    left: 100%;
}

.app-store-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Image Effects */
.stores-swiper .swiper-slide .relative img {
    filter: brightness(1.1) contrast(1.05);
    transition: all 0.3s ease;
}

.stores-swiper .swiper-slide:hover .relative img {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.02);
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
    .stores-swiper .swiper-slide:hover .relative img {
        filter: brightness(1.1) contrast(1.05);
        transform: none;
    }
    
    /* Make images larger on mobile */
    .stores-swiper .swiper-slide .relative img {
        object-fit: cover !important;
        object-position: center;
    }
}

/* Fix border radius for images */
.stores-swiper .swiper-slide .relative {
    border-radius: 1.5rem;
    overflow: hidden;
}

.stores-swiper .swiper-slide .relative img {
    border-radius: 1.5rem !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Ensure border radius is always applied */
.stores-swiper .swiper-slide .relative > div {
    border-radius: 1.5rem;
    overflow: hidden;
}

/* Mobile Responsive Swiper */
@media (max-width: 1024px) {
    .stores-swiper .swiper-slide .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .stores-swiper .swiper-slide .space-y-8 {
        order: 2;
        text-align: center;
    }
    
    .stores-swiper .swiper-slide .relative {
        order: 1;
    }
}

@media (max-width: 768px) {
    .stores-swiper {
        padding: 0.5rem 0;
        overflow: hidden;
    }
    
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 40px !important;
        height: 40px !important;
    }
    
    .swiper-pagination-custom .swiper-pagination-bullet {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .stores-swiper .swiper-slide {
        min-height: auto;
        padding: 0.5rem 0;
    }
    
    .stores-swiper .swiper-slide .grid {
        gap: 1rem;
    }
    
    .stores-swiper .swiper-slide .relative img {
        height: 200px !important;
    }
    
    .stores-swiper .swiper-slide h3 {
        font-size: 1.75rem !important;
    }
    
    .stores-swiper .swiper-slide p {
        font-size: 0.9rem !important;
    }
    
    .stores-swiper .swiper-slide .space-y-4 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .stores-swiper .swiper-slide .relative img {
        height: 180px !important;
    }
    
    .stores-swiper .swiper-slide h3 {
        font-size: 1.5rem !important;
    }
    
    .stores-swiper .swiper-slide p {
        font-size: 0.85rem !important;
    }
    
    .swiper-pagination-custom .swiper-pagination-bullet {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}

/* Parallax Effect */
.parallax-image {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Loading Animation */
.swiper-slide-loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.swiper-slide-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Store Icons Animation */
@keyframes floatIcons {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(-1deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(1deg); 
    }
}

.floating-icon {
    animation: floatIcons 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.1) !important;
    opacity: 0.4 !important;
}

/* Responsive adjustments for floating icons */
@media (max-width: 768px) {
    .floating-icon {
        animation-duration: 8s;
    }
    
    /* Hide some icons on mobile for better performance */
    .floating-icon:nth-child(odd) {
        display: none;
    }
}

/* Features Circle Styling */
.features-circle li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-circle li > i {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #006A4E 0%, #004d38 100%);
    color: #fff;
}
.bg-clip-text {
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
