/* ====================================================
   DIGITAL GODDA - Premium Style Sheet
   The official digital infrastructure of Godda district
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --dg-navy: #071A52;
    --dg-electric: #0F6FFF;
    --dg-cyan: #00F5FF;
    --dg-green: #2E7D32;
    --dg-dark: #0B132B;
    --dg-dark-gray: #1C2541;
    --dg-light: #F8F9FA;
    --dg-white: #FFFFFF;
    
    --dg-body-font: 'Inter', sans-serif;
    --dg-head-font: 'Poppins', sans-serif;
    
    --dg-glass-bg: rgba(255, 255, 255, 0.85);
    --dg-glass-border: rgba(255, 255, 255, 0.4);
    --dg-glass-shadow: 0 8px 32px 0 rgba(7, 26, 82, 0.08);
}

body {
    font-family: var(--dg-body-font);
    background-color: var(--dg-light);
    color: var(--dg-navy);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dg-head-font);
    font-weight: 700;
}

/* ==========================================
   GLASSMORPHISM CORE COMPONENTS
   ========================================== */

.glass-card {
    background: var(--dg-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--dg-glass-border);
    border-radius: 16px;
    box-shadow: var(--dg-glass-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px 0 rgba(15, 111, 255, 0.15);
    border-color: rgba(15, 111, 255, 0.3);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================
   HERO & SEARCH COMPONENT STYLE
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(7, 26, 82, 0.9) 0%, rgba(11, 19, 43, 0.95) 100%), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--dg-white);
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 111, 255, 0.1) 0%, transparent 60%);
    animation: rotateBg 30s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-search-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero-search-input {
    background: transparent;
    border: none;
    color: var(--dg-white);
    font-size: 1.1rem;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-input:focus {
    box-shadow: none;
    background: transparent;
    color: var(--dg-white);
}

/* ==========================================
   INTERACTIVE BUTTONS & ACCENTS
   ========================================== */

.btn-premium {
    background: linear-gradient(135deg, var(--dg-electric) 0%, var(--dg-cyan) 100%);
    color: var(--dg-white);
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-family: var(--dg-head-font);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 111, 255, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
    color: var(--dg-white);
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid var(--dg-electric);
    color: var(--dg-electric);
    border-radius: 30px;
    padding: 8px 22px;
    font-family: var(--dg-head-font);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-premium:hover {
    background: var(--dg-electric);
    color: var(--dg-white);
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--dg-electric) 0%, var(--dg-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   CATEGORY ACCENT SYSTEM (Navy/Green alternations)
   ========================================== */

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* Alternate brand icons styling */
.category-card:nth-child(odd) .category-icon-wrapper {
    background: rgba(7, 26, 82, 0.1);
    color: var(--dg-navy);
}

.category-card:nth-child(even) .category-icon-wrapper {
    background: rgba(46, 125, 50, 0.1);
    color: var(--dg-green);
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: var(--dg-electric);
    color: var(--dg-white);
}

/* ==========================================
   TRUST BADGES & CHIP SYSTEM
   ========================================== */

.trust-badge-verified {
    background: rgba(46, 125, 50, 0.15);
    color: var(--dg-green);
    border: 1px solid rgba(46, 125, 50, 0.3);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-premium-listing {
    background: rgba(15, 111, 255, 0.15);
    color: var(--dg-electric);
    border: 1px solid rgba(15, 111, 255, 0.3);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Floating AI Chat Assistant Panel */
.ai-chat-bubble {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dg-navy) 0%, var(--dg-electric) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px 0 rgba(7, 26, 82, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dg-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-bubble:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 40px 0 rgba(15, 111, 255, 0.5);
}

.floating-whatsapp {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 8px 32px 0 rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dg-white);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ==========================================
   MOBILE EXPERIENCE (PWA Navigation)
   ========================================== */

@media (max-width: 768px) {
    .pwa-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(7, 26, 82, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    }
    
    .pwa-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
        color: rgba(7, 26, 82, 0.6);
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .pwa-nav-item i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }
    
    .pwa-nav-item.active, .pwa-nav-item:hover {
        color: var(--dg-electric);
    }
    
    body {
        padding-bottom: 75px; /* Prevent content occlusion */
    }
}

/* ==========================================
   PREMIUM SaaS ANIMATION MODULE
   ========================================== */

/* Page Load Slide-up Card Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* Delay card animation cascades */
.col-md-4:nth-child(1) .glass-card { animation-delay: 0.1s; }
.col-md-4:nth-child(2) .glass-card { animation-delay: 0.2s; }
.col-md-4:nth-child(3) .glass-card { animation-delay: 0.3s; }
.col-lg-4:nth-child(1) .glass-card { animation-delay: 0.1s; }
.col-lg-4:nth-child(2) .glass-card { animation-delay: 0.2s; }
.col-lg-4:nth-child(3) .glass-card { animation-delay: 0.3s; }

/* Pulse animation on Verified trust checks */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.trust-badge-verified {
    animation: pulseGlow 2s infinite;
}

/* Floating animation on floating buttons and elements */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.floating-whatsapp {
    animation: floating 4s ease-in-out infinite;
}

.ai-chat-bubble {
    animation: floating 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Smooth zoom-in on hover images */
.glass-card img {
    transition: transform 0.5s ease;
}

.glass-card:hover img {
    transform: scale(1.05);
}

