/*
 * Help Daily (HDSWS) - Premium Redesigned Stylesheet
 * Inspired by Stripe, Notion, Apple design aesthetics
 */

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

:root {
    /* Color Palette */
    --primary-color: #16a34a;
    --primary-hover: #15803d;
    --secondary-color: #2563eb;
    --secondary-hover: #1d4ed8;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    
    --bg-color: #f8fafc;
    --card-color: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global resets & typography */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    color: var(--text-muted);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Premium Stripe/Apple Redesign Extensions */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.gradient-heading {
    background: linear-gradient(135deg, #0f172a 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-glow {
    transition: var(--transition-smooth);
}
.hover-glow:hover {
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.1) !important;
    transform: translateY(-5px);
}

.floating-glass-card {
    animation: floatCard 6s ease-in-out infinite;
}

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

.section-svg-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: 10;
}
.section-svg-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Premium Sticky Custom Navbar */
.custom-navbar {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    transition: var(--transition-smooth);
}

.custom-navbar.navbar-scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand img.site-logo {
    max-height: 38px;
}

.navbar-brand .logo-heart {
    font-size: 20px;
}

.navbar-brand .logo-text {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
    border-radius: 20px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(22, 163, 74, 0.05);
}


/* Premium Card Designs */
.bg-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass-card {
    background: var(--card-color);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color) !important;
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium) !important;
}

/* Button aesthetics */
.btn-primary-custom {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
}

.btn-secondary-custom {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border: none;
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Forms Floating Label Styling */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    background-color: var(--card-color);
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    background-color: var(--card-color);
    color: var(--text-color);
}

/* Table overrides */
.table {
    color: var(--text-color);
}

.table th {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 14px;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

/* Hero Section */
.carousel-item {
    height: 75vh;
    min-height: 480px;
}

.carousel-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
}

.carousel-caption-custom h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Media Queries for perfect responsiveness */
@media (max-width: 768px) {
    .carousel-caption-custom h1 {
        font-size: 2.2rem;
    }
    .carousel-item {
        height: 65vh;
    }
}

/* Stats Counter Grid */
.stat-box {
    text-align: center;
    padding: 24px;
    background-color: var(--card-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 30px;
    right: 30px;
    background-color: #22c55e;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* Footer custom styles */
.mega-footer {
    background-color: #0b0f19;
    border-top: 1px solid #1f2937;
}

.footer-menu a {
    color: #9ca3af;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #1f2937;
    color: #f3f4f6;
    border-radius: 50%;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Breadcrumbs Section */
.breadcrumb-bg {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.03) 0%, rgba(37, 99, 235, 0.03) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Gallery lightboxes */
.gallery-item-wrap {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.gallery-item-wrap img {
    transition: var(--transition-smooth);
}

.gallery-item-wrap:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 163, 74, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: white;
    font-size: 20px;
}

.gallery-item-wrap:hover .gallery-overlay {
    opacity: 1;
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 380px;
    background-color: var(--card-color);
    color: var(--text-color);
    z-index: 1000;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* Testimonial Section Styling */
.testimonial-card {
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--card-color);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
