/* ===== BRAND THEME — bird.png backgrounds & beautification ===== */

:root {
    --aurora-1: rgba(108, 71, 255, 0.18);
    --aurora-2: rgba(56, 189, 248, 0.14);
    --aurora-3: rgba(236, 72, 153, 0.12);
    --aurora-4: rgba(251, 191, 36, 0.08);
    --glow-purple: 0 0 60px rgba(108, 71, 255, 0.35);
    --glow-blue: 0 0 80px rgba(56, 189, 248, 0.25);
}

/* Layered aurora background */
.bg-layers {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.aurora {
    position: absolute; border-radius: 50%; filter: blur(90px);
    opacity: 0.7; animation: auroraMove 18s ease-in-out infinite alternate;
}
.aurora-a {
    width: 55vw; height: 55vw; top: -20%; left: -15%;
    background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
}
.aurora-b {
    width: 45vw; height: 45vw; top: 10%; right: -10%;
    background: radial-gradient(circle, var(--aurora-2) 0%, transparent 70%);
    animation-delay: -6s;
}
.aurora-c {
    width: 40vw; height: 40vw; bottom: -10%; left: 25%;
    background: radial-gradient(circle, var(--aurora-3) 0%, transparent 70%);
    animation-delay: -12s;
}
.aurora-d {
    width: 35vw; height: 35vw; bottom: 20%; right: 20%;
    background: radial-gradient(circle, var(--aurora-4) 0%, transparent 70%);
    animation-delay: -9s;
}
@keyframes auroraMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.08); }
}

/* Floating bird watermark */
.bird-watermark {
    position: fixed; pointer-events: none; z-index: -1;
    opacity: 0.04; filter: blur(0.5px);
    animation: birdDrift 25s ease-in-out infinite;
}
.bird-watermark-1 {
    width: 420px; top: 8%; right: -5%;
    animation-delay: 0s;
}
.bird-watermark-2 {
    width: 280px; bottom: 15%; left: -3%;
    animation-delay: -12s; opacity: 0.03;
}
@keyframes birdDrift {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Dot grid overlay */
.dot-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(108, 71, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

/* Enhanced mesh */
.mesh-bg {
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(108, 71, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #f8faff 0%, #eef2ff 40%, #f8faff 100%) !important;
}

/* Logo glow in navbar */
.site-logo-nav {
    height: 102px !important; max-width: 140px !important;
    filter: drop-shadow(0 0 12px rgba(108, 71, 255, 0.35))
            drop-shadow(0 4px 8px rgba(12, 1, 33, 0.1));
    transition: filter 0.4s ease, transform 0.4s ease;
}
.navbar-brand:hover .site-logo-nav {
    filter: drop-shadow(0 0 20px rgba(108, 71, 255, 0.55))
            drop-shadow(0 6px 14px rgba(108, 71, 255, 0.2));
    transform: scale(1.04);
}
.site-logo-footer {
    height: 106px !important; max-width: 140px !important;
    filter: drop-shadow(0 0 24px rgba(108, 71, 255, 0.4));
}

/* Hero bird showcase */
.hero-bird-showcase {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 560px; perspective: 1200px;
}
.hero-bird-glow {
    position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: conic-gradient(from 180deg, #6c47ff, #38bdf8, #ec4899, #fbbf24, #6c47ff);
    filter: blur(55px); opacity: 0.45;
    animation: glowPulse 4s ease-in-out infinite;
}
.hero-bird-ring {
    position: absolute; width: 500px; height: 500px;
    border: 2px solid rgba(108, 71, 255, 0.15);
    border-radius: 50%;
    animation: ringSpin 25s linear infinite;
}
.hero-bird-ring::before {
    content: ''; position: absolute; inset: 30px;
    border: 1px dashed rgba(56, 189, 248, 0.25); border-radius: 50%;
}
.hero-bird-img {
    position: relative; z-index: 3; width: min(480px, 95%);
    max-height: 520px; object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(108, 71, 255, 0.35))
            drop-shadow(0 0 50px rgba(56, 189, 248, 0.2));
    animation: birdHeroFloat 5s ease-in-out infinite;
}
.hero-monstera-plant {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 105%);
    max-height: 380px;
    object-fit: contain;
    object-position: center top;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    animation: monsteraPlantFade 6s ease-in-out infinite;
}
.hero-monstera-leaves {
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: min(580px, 105%);
    max-height: 320px;
    object-fit: contain;
    object-position: center bottom;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    animation: monsteraLeavesFade 5s ease-in-out infinite;
}
@keyframes monsteraPlantFade {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(6px); }
}
@keyframes monsteraLeavesFade {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(-6px); }
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.12); opacity: 0.55; }
}
@keyframes birdHeroFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
}

/* Sparkle particles container */
#particles {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* Section beautification */
.section-light {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.9) 100%) !important;
    border-top: 1px solid rgba(108, 71, 255, 0.06);
    border-bottom: 1px solid rgba(108, 71, 255, 0.06);
}
.section-wave {
    position: relative;
}
.section-wave::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f8faff' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E") center top / cover no-repeat;
    pointer-events: none;
}

/* Glass cards upgrade */
.feature-card, .testimonial-card, .customer-card, .hub-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.88) 100%) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255, 0.8) !important;
    box-shadow: 0 4px 24px rgba(108, 71, 255, 0.06),
                0 1px 2px rgba(12, 1, 33, 0.04),
                inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* Hero label shimmer */
.hero-label {
    background: linear-gradient(90deg, rgba(108,71,255,0.12), rgba(56,189,248,0.12), rgba(108,71,255,0.12));
    background-size: 200% 100%;
    animation: labelShimmer 4s linear infinite;
    border: 1px solid rgba(108, 71, 255, 0.15);
}
@keyframes labelShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero title sketch decoration */
.hero-title-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 2.25rem;
}
.hero-title-sketch {
    position: absolute;
    left: 0;
    bottom: -28px;
    width: min(200px, 48%);
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    object-fit: contain;
    object-position: left bottom;
    animation: heroTitleSketchFade 5s ease-in-out infinite;
}
@keyframes heroTitleSketchFade {
    0%, 100% { opacity: 0.35; transform: translateY(0) rotate(-3deg); }
    50% { opacity: 0.6; transform: translateY(-10px) rotate(3deg); }
}
.hero-title-wrap .hero-title {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Features section bird gif */
.features-section {
    position: relative;
    overflow: hidden;
}
.features-section-header {
    position: relative;
    overflow: hidden;
}
.features-title-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 0.5rem;
    text-align: center;
}
.features-title-line {
    display: inline-block;
    color: var(--accent);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
}
.features-title-wrap .section-title {
    line-height: 1.2;
    text-align: center;
}
.features-bird-gif {
    position: absolute;
    top: -1rem;
    right: 0;
    width: min(240px, 22vw);
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.92;
    filter: drop-shadow(0 12px 28px rgba(108, 71, 255, 0.3));
}

/* Title gradient animation */
.hero-title {
    background: linear-gradient(135deg, #0c0121 0%, #4c1d95 40%, #0c0121 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 6s linear infinite;
}
@keyframes titleShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Stats section aurora */
.stats-section {
    background: linear-gradient(135deg, #4c1d95 0%, #6c47ff 35%, #7c3aed 60%, #db2777 100%) !important;
    position: relative; overflow: hidden;
}
.stats-section::before {
    content: ''; position: absolute; inset: 0;
    background: var(--site-logo-url) center / 280px no-repeat;
    opacity: 0.06; filter: brightness(2);
    animation: birdDrift 20s ease-in-out infinite;
}

/* Preloader with bird logo */
#preloader {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%) !important;
}
.preloader-logo {
    width: 90px; height: auto;
    animation: preloaderBird 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(108, 71, 255, 0.4));
}
@keyframes preloaderBird {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}
.loader-ring { display: none; }
.preloader-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.preloader-bar {
    width: 120px; height: 3px; background: rgba(108, 71, 255, 0.15);
    border-radius: 3px; overflow: hidden;
}
.preloader-bar span {
    display: block; height: 100%; width: 40%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: preloaderBar 1.2s ease-in-out infinite;
}
@keyframes preloaderBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Page hero glow */
.page-hero {
    background: linear-gradient(180deg, #eef2ff 0%, #f8faff 100%) !important;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 200px;
    background: var(--site-logo-url) center / contain no-repeat;
    opacity: 0.05; pointer-events: none;
}

/* Top bar gradient animation */
.top-bar {
    background: linear-gradient(90deg, #6c47ff, #8b5cf6, #38bdf8, #6c47ff) !important;
    background-size: 300% 100% !important;
    animation: topBarFlow 8s linear infinite !important;
}
@keyframes topBarFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Download box bird accent */
.download-box::after {
    content: ''; position: absolute; bottom: -20px; right: -20px;
    width: 140px; height: 140px;
    background: var(--site-logo-url) center / contain no-repeat;
    opacity: 0.08; pointer-events: none;
}

.hero-bird-showcase .hero-card-float {
    position: absolute; z-index: 4;
}
.hero-bird-showcase .hero-card-1 { top: 5%; right: 0; }
.hero-top-rated-wrap {
    position: absolute;
    bottom: 8%;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
}
.hero-bird-showcase .hero-card-2 {
    position: relative;
    bottom: auto;
    /* left: auto; */
}
.hero-animated-birds {
    width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
    pointer-events: none;
    filter: drop-shadow(0 10px 24px rgba(108, 71, 255, 0.28));
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

/* Footer leaves decoration */
.footer-bottom-wrap {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
}
.footer-bottom-wrap .footer-leaves-img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    align-self: end;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.footer-bottom-wrap .footer-overlay {
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    z-index: 2;
}
.footer-bottom-wrap .footer-community {
    background: transparent;
    border-top: 1px solid rgba(108, 71, 255, 0.12);
    padding-top: 4rem;
}
.footer-bottom-wrap .footer-download {
    position: relative;
    z-index: 2;
    background: transparent;
    padding-bottom: 2rem;
}

/* Footer flying birds */
.footer-flying-birds {
    grid-area: 1 / 1;
    align-self: stretch;
    z-index: 3;
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.footer-bird {
    position: absolute;
    width: 72px;
    height: auto;
    object-fit: contain;
    opacity: 0.82;
    filter: drop-shadow(0 10px 24px rgba(108, 71, 255, 0.28));
    will-change: transform;
}
.footer-bird-1 {
    top: 38%;
    animation: footerBirdFlyRtl 28s linear infinite;
    animation-delay: -9s;
}
.footer-bird-2 {
    top: 52%;
    width: 56px;
    opacity: 0.62;
    animation: footerBirdFlyLtr 22s linear infinite;
}
@keyframes footerBirdFlyLtr {
    0% { transform: translate(-120px, -30px) rotate(-12deg); }
    20% { transform: translate(18vw, 8px) rotate(8deg); }
    40% { transform: translate(38vw, -28px) rotate(-6deg); }
    60% { transform: translate(58vw, 12px) rotate(10deg); }
    80% { transform: translate(78vw, -18px) rotate(-8deg); }
    100% { transform: translate(calc(100% + 120px), -24px) rotate(-12deg); }
}
@keyframes footerBirdFlyRtl {
    0% { transform: scaleX(-1) translate(calc(100% + 120px), 20px) rotate(-12deg); }
    20% { transform: scaleX(-1) translate(78vw, -10px) rotate(8deg); }
    40% { transform: scaleX(-1) translate(58vw, 24px) rotate(-6deg); }
    60% { transform: scaleX(-1) translate(38vw, -16px) rotate(10deg); }
    80% { transform: scaleX(-1) translate(18vw, 14px) rotate(-8deg); }
    100% { transform: scaleX(-1) translate(-120px, 18px) rotate(-12deg); }
}

.footer-bottom-wrap .footer-bottom-bar {
    background: rgba(255, 255, 255, 0.151);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 -8px 32px rgba(108, 71, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 2rem 0 2.5rem;
}
.footer-bottom-wrap .hub-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .bird-watermark { display: none; }
    .hero-bird-showcase { min-height: 380px; }
    .hero-bird-glow { width: 320px; height: 320px; }
    .hero-bird-ring { width: 340px; height: 340px; }
    .hero-bird-img { width: min(340px, 88%); max-height: 380px; }
    .hero-monstera-plant { width: min(300px, 100%) !important; max-height: 220px; top: -4%; }
    .hero-monstera-leaves { width: min(280px, 100%) !important; max-height: 180px; bottom: -2%; }
    .footer-bird { width: 52px; }
    .footer-bird-2 { width: 42px; }
    .hero-title {
        -webkit-text-fill-color: var(--primary);
        background: none;
    }
    .hero-title-sketch { width: min(140px, 55%); bottom: -18px; }
    .features-bird-gif {
        position: relative;
        top: auto;
        right: auto;
        display: block;
        margin: 0 auto 1rem;
        width: min(160px, 70vw);
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .bird-watermark, .hero-bird-glow, .hero-bird-img, .hero-monstera-plant, .hero-monstera-leaves,
    .footer-bird, .hero-label, .hero-title, .hero-title-sketch, .top-bar { animation: none !important; }
}
