/* HudaLabs - Premium Islamic Learning Reimagined */
/* Main Stylesheet */

/* Material Symbols Settings */
.material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Islamic Pattern Background */
.islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5.878 18.09h19.022l-15.39 11.18 5.878 18.09L30 36.18l-15.388 11.18 5.878-18.09L5.1 18.09h19.022L30 0z' fill='%23006b54' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Glass Premium Effect */
.glass-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 107, 84, 0.08);
}

/* Gold Gradient */
.gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E0AC 50%, #D4AF37 100%);
}

/* Text Gradient Primary */
.text-gradient-primary {
    background: linear-gradient(135deg, #006b54 0%, #1FAB89 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Mesh Background */
.hero-mesh {
    background-color: #fcfdfc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(167,72%,90%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(45,64%,92%,1) 0, transparent 50%);
}

/* Floating Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

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

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}

.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* Feature Card Glow Effect */
.feature-card-glow {
    position: relative;
}

.feature-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

/* Bounce Slow Animation (for achievement card) */
.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

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

/* Glass Card Effect - Islamic Style */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 107, 84, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 107, 84, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Islamic Pattern Stripe */
.islamic-stripe {
    background: linear-gradient(90deg, #006b54 0%, #1FAB89 50%, #006b54 100%);
    position: relative;
    overflow: hidden;
}

.islamic-stripe::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='0' cy='20' r='3'/%3E%3Ccircle cx='40' cy='20' r='3'/%3E%3Ccircle cx='20' cy='0' r='3'/%3E%3Ccircle cx='20' cy='40' r='3'/%3E%3Cpath d='M10 10L20 20L10 30L0 20z'/%3E%3Cpath d='M30 10L40 20L30 30L20 20z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    animation: pattern-scroll 20s linear infinite;
}

@keyframes pattern-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 400px 0; }
}

/* Card Badge */
.card-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Features Background */
.features-bg {
    background: linear-gradient(180deg, #f5efe6 0%, #e8dfd3 50%, #f5efe6 100%);
    position: relative;
}

.features-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l8.66 15h17.32l8.66 15-8.66 15h-17.32L40 60l-8.66-15H14.02l-8.66-15 8.66-15h17.32L40 0z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* 3D Carousel Styles */
.carousel-section {
    background: linear-gradient(180deg, #0a1f1a 0%, #050505 50%, #0a1f1a 100%);
}

.carousel-card {
    position: absolute;
    cursor: pointer;
    width: 55vw;
    max-width: 280px;
    aspect-ratio: 9/16;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    -webkit-user-drag: none;
}

@media (min-width: 768px) {
    .carousel-card {
        max-width: 320px;
    }
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.carousel-card-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-card.active .carousel-card-border {
    opacity: 1;
    border-color: rgba(0, 107, 84, 0.5);
}

.carousel-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.carousel-dot {
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 2rem;
    background-color: #006b54;
}

/* Testimonials Indicators */
.testimonial-indicator {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    padding: 0;
    border-radius: 9999px;
    background: rgba(0, 107, 84, 0.28);
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.testimonial-indicator[aria-selected="true"] {
    width: 1.8rem;
    background: #006b54;
}

/* ============================================
   Custom SVG Cursor Styles - Using Actual SVG Files
   ============================================ */

@media (min-width: 768px) {
    /* Default Arrow Cursor */
    body.custom-cursor-enabled {
        cursor: url('corsor/Arrow.svg') 9 4, auto;
    }
    
    /* Pointer Hand Cursor - For interactive elements */
    body.custom-cursor-enabled a,
    body.custom-cursor-enabled button,
    body.custom-cursor-enabled [role="button"],
    body.custom-cursor-enabled .carousel-card,
    body.custom-cursor-enabled .glass-card,
    body.custom-cursor-enabled .download-card,
    body.custom-cursor-enabled .store-badge,
    body.custom-cursor-enabled input[type="submit"],
    body.custom-cursor-enabled input[type="button"],
    body.custom-cursor-enabled select,
    body.custom-cursor-enabled label[for] {
        cursor: url('corsor/Pointer.svg') 16 5, pointer;
    }
    
    /* Open Hand / Grab Cursor */
    body.custom-cursor-enabled [data-cursor="grab"],
    body.custom-cursor-enabled .draggable {
        cursor: url('corsor/Grab.svg') 16 16, grab;
    }
    
    /* Grabbing Hand Cursor - Closed fist */
    body.custom-cursor-enabled [data-cursor="grabbing"],
    body.custom-cursor-enabled .dragging {
        cursor: url('corsor/Grabbed.svg') 16 16, grabbing;
    }
    
    /* Text / I-Beam Cursor - For text inputs */
    body.custom-cursor-enabled input[type="text"],
    body.custom-cursor-enabled input[type="email"],
    body.custom-cursor-enabled input[type="password"],
    body.custom-cursor-enabled input[type="search"],
    body.custom-cursor-enabled input[type="tel"],
    body.custom-cursor-enabled input[type="url"],
    body.custom-cursor-enabled input[type="number"],
    body.custom-cursor-enabled textarea,
    body.custom-cursor-enabled [contenteditable="true"] {
        cursor: url('corsor/Text.svg') 16 16, text;
    }
}

/* ============================================
   Mobile-First Responsive Styles
   ============================================ */

/* Small screens optimization */
@media (max-width: 640px) {
    /* Reduce blur effects for better mobile performance */
    .blur-\[100px\], .blur-\[150px\], .blur-\[80px\], .blur-\[60px\] {
        filter: blur(40px);
    }
    
    /* Carousel card adjustments */
    .carousel-card {
        max-width: 220px;
    }
    
    /* Better touch targets */
    button:not(.carousel-dot):not(.testimonial-indicator), a {
        min-height: 44px;
    }

    /* Keep slider dots compact on mobile */
    #testimonials-indicators .testimonial-indicator,
    #carousel-indicators .carousel-dot {
        min-height: 0;
        min-width: 0;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .carousel-card {
        max-width: 180px;
        width: 50vw;
    }
}
