/**
 * SEO Landing Pages - Modern UI/UX Styles
 * Optimized for conversion and user engagement
 * Ezzy Delivery Qatar
 */

/* ===================================
   1. ROOT VARIABLES & BRAND COLORS
   =================================== */
:root {
    --primary-color: #ffde00;
    --primary-dark: #e6c700;
    --secondary-color: #1a1a1a;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;

    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #ffffff;

    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;

    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.2);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   2. GLOBAL IMPROVEMENTS
   =================================== */
.seo-landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===================================
   3. HERO SECTION ENHANCEMENTS
   =================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.05) 0%, rgba(255, 222, 0, 0.1) 100%);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

/* Animated gradient badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===================================
   4. BUTTON ENHANCEMENTS
   =================================== */
.btn {
    border-radius: var(--border-radius);
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-dark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

.btn-dark:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-dark:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ===================================
   5. CARD ENHANCEMENTS
   =================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    overflow: hidden;
    background: var(--bg-white);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2rem;
}

/* Feature cards with icons */
.feature-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    transition: transform var(--transition-normal);
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* ===================================
   6. STATISTICS COUNTERS
   =================================== */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.1) 0%, rgba(255, 222, 0, 0.05) 100%);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.stat-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   7. ACCORDION IMPROVEMENTS
   =================================== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--bg-white);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius) !important;
    transition: all var(--transition-normal);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    box-shadow: none;
}

.accordion-button:hover {
    background: var(--bg-light);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 222, 0, 0.25);
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   8. BREADCRUMB STYLING
   =================================== */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===================================
   9. SECTION TITLES & HEADERS
   =================================== */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* ===================================
   10. FLOATING ELEMENTS & ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease;
}

.stagger-animation > * {
    animation: fadeInUp 0.6s ease;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   11. PRICING CARDS
   =================================== */
.pricing-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* ===================================
   12. CTA SECTIONS
   =================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 222, 0, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===================================
   13. ICONS & BADGES STYLING
   =================================== */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.1) 0%, rgba(255, 222, 0, 0.2) 100%);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.icon-wrapper:hover {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(255, 222, 0, 0.2) 0%, rgba(255, 222, 0, 0.3) 100%);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ===================================
   14. IMAGE ENHANCEMENTS
   =================================== */
.hero-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    animation: slideInRight 1s ease;
}

.hero-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   15. RESPONSIVE UTILITIES
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* ===================================
   16. LOADING & PERFORMANCE
   =================================== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ===================================
   17. TRUST SIGNALS & SOCIAL PROOF
   =================================== */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-color);
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

/* ===================================
   18. COVERAGE MAP STYLING
   =================================== */
.coverage-badge {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-fast);
    margin: 0.25rem;
}

.coverage-badge:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   19. UTILITY CLASSES
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.shadow-hover {
    transition: box-shadow var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ===================================
   20. SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}
