/* Modern Polish CSS for Dudes Creative - 2026 SaaS Aesthetic */

/* 1. CSS Variables */
:root {
    --primary: #2563eb;
    --secondary: #7c3aed;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-light: linear-gradient(180deg, rgba(37,99,235,.06), rgba(124,58,237,.05));

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.35);

    --shadow-sm: 0 2px 6px rgba(0,0,0,.05);
    --shadow-md: 0 12px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 40px 60px rgba(0,0,0,.05);
    
    --transition: all .35s ease;
}

/* Base Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 2. Better Hero Background (Layered Gradients) */
.modern-gradient-bg {
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,.18), transparent 40%),
                radial-gradient(circle at 90% 30%, rgba(124,58,237,.15), transparent 35%),
                linear-gradient(180deg, #ffffff, #f8fbff) !important;
    position: relative;
    overflow: hidden;
}

/* 3. Floating Blur Orbs (Instead of static floating shapes) */
@keyframes float-orb {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    33% { transform: translateY(-30px) translateX(20px) scale(1.05); }
    66% { transform: translateY(20px) translateX(-20px) scale(0.95); }
    100% { transform: translateY(0px) translateX(0px) scale(1); }
}

.banner-area::before,
.banner-area::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: float-orb 12s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}
.banner-area::before {
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.4);
    top: -100px;
    left: -100px;
}
.banner-area::after {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.3);
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

/* Hide old shapes if desired, or let them blend with the orbs */
.banner-shape .shape1,
.banner-shape .shape2,
.banner-shape .shape3,
.banner-shape .shape4,
.banner-shape .shape5 {
    opacity: 0.3; /* Fade old shapes down so new orbs shine */
}

/* 4. Modern Button Effects */
.get-btn.modern-btn,
.default-btn.modern-btn {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #fff !important;
    transition: transform .3s, box-shadow .3s, background .3s !important;
    position: relative;
    overflow: hidden;
}
.get-btn.modern-btn:hover,
.default-btn.modern-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25) !important;
}
/* Button Ripple/Glow effect on hover */
.get-btn.modern-btn::before,
.default-btn.modern-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.get-btn.modern-btn:hover::before,
.default-btn.modern-btn:hover::before {
    opacity: 1;
}

/* 5. Card Hover */
.single-service,
.service-item,
.about-img img,
.banner-img img {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid transparent;
}

.single-service:hover,
.service-item:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-sm), var(--shadow-md), var(--shadow-lg);
}

/* 6. Glassmorphism Navbar */
.is-sticky.navbar-area,
.modern-glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}
.theme-dark .is-sticky.navbar-area {
    background: rgba(18, 18, 18, 0.78) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 8. Better Typography */
.banner-content h1 {
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.08 !important;
}
.banner-content p,
.about-content p,
.article-content p {
    line-height: 1.8 !important;
}

/* 9. Section Dividers (Gradients) */
.about-area,
.services-area,
.brand-area {
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.services-area {
    background: var(--gradient-light) !important;
}

/* 10. Modern Shadows */
.single-service {
    box-shadow: var(--shadow-sm);
}

/* 11. Brand Logo Hover */
.brand-item img {
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.6;
}
.brand-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

/* 7. Scroll Reveal (Pure CSS starting state) */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease;
}
body:hover #cursor-glow {
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .about-area,
    .services-area,
    .brand-area {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .banner-content h1 {
        font-size: 42px !important;
    }
    #cursor-glow {
        display: none;
    }
}

/* Fix for unstyled WhatsApp popup distorting the footer */
.popup-wrapper { display: none !important; }

