/* ==========================================================================
   Asaan Optics Optimized CSS - Tailored for 90+ PageSpeed (LCP/FCP)
   ========================================================================== */

/* 1. Base Styles & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* 2. Custom Scrollbar Design */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

.scrolling-touch::-webkit-scrollbar {
    display: none;
}

/* Custom Scrollbar for specific sections like galleries */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 10px;
}

/* 3. Hero Background Pattern */
.hero-bg {
    background-color: #ffffff;
    background-image: radial-gradient(#D32F2F 0.5px, transparent 0.5px), radial-gradient(#D32F2F 0.5px, #ffffff 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 1;
}
/* 4. Core Animations (Reveal & Fade) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
    /* Hints browser to optimize rendering */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Feature Cards Interactivity */
.feature-card {
    transition: all 0.4s ease;
    will-change: transform, box-shadow, border-color;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #D32F2F;
}

/* 6. AI Border Shimmer Effect */
.ai-border {
    position: relative;
}

.ai-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    background: linear-gradient(45deg, #D32F2F, #ff0080, #4CAF50, #D32F2F);
    background-size: 400%;
    animation: shimmer 3s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes shimmer {
    100% {
        background-position: 400% 0;
    }

    /* Defined shimmer keyframes */
}

/* 7. WhatsApp Community Section Layout */
.whatsapp-section {
    padding: 60px 20px;
    background-color: #f9fafb; /* Light Grey Background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.whatsapp-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 20px;
    width: 100%;
        max-width: 1000px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.1);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 20px;
}

.whatsapp-card::before {
    content: '\f232'; /* FontAwesome WhatsApp Icon */
    font-family: "Font Awesome 6 Brands", "FontAwesome", sans-serif;
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 200px;
    color: rgba(37, 211, 102, 0.05);
    z-index: 0;
    transform: rotate(-15deg);
}

.icon-wrapper {
    background-color: #dcfce7;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.icon-wrapper i {
    font-size: 35px;
    color: #25D366;
}

.text-content {
    flex: 1;
    min-width: 300px;
    z-index: 1;
}

.text-content h2 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.text-content p {
    color: #6b7280;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #20bd5a;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid white;
    opacity: 0;
    animation: pulse 2s infinite;
}

.member-count {
    margin-top: 10px;
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 20px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .text-content {
        margin-bottom: 20px;
    }
    .whatsapp-card::before {
        font-size: 150px;
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }
}

/* 8. YouTube Player Container */
#player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 9. Ticker Animation (Hardware Accelerated) */
@keyframes logoTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-logo-ticker {
    display: flex;
    width: max-content;
    animation: logoTicker 35s linear infinite;
    will-change: transform;
        /* Hardware acceleration for smoother animation and less CPU load */
}

.animate-logo-ticker:hover {
    animation-play-state: paused;
}
/* ________________________- */