/* Baraem Landing Page Styles */

/* ==========================================
   Variables and Root Settings
   ========================================== */
:root {
    --primary-color: #5c6bc0;
    --primary-dark: #3949ab;
    --primary-light: #7986cb;
    --secondary-color: #f8f9fc;
    --accent-color: #26a69a;
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --info-color: #42a5f5;
    --danger-color: #ef5350;
    --purple-color: #ab47bc;
    --text-dark: #2d3748;
    --text-muted: #6c757d;
    --bg-light: #ffffff;
    --bg-surface: #f8f9fc;
    --border-light: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #00897b 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --vh: 1vh; /* Fallback for mobile viewport height */
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #7986cb;
    --primary-dark: #5c6bc0;
    --primary-light: #9fa8da;
    --secondary-color: #1e1e2e;
    --accent-color: #4db6ac;
    --success-color: #81c784;
    --warning-color: #ffb74d;
    --info-color: #64b5f6;
    --danger-color: #e57373;
    --purple-color: #ba68c8;
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-light: #181826;
    --bg-surface: #1e1e2e;
    --border-light: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #26a69a 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Base Styles
   ========================================== */
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure text selection works in all content areas */
section,
.container,
.row,
.col,
.card,
.card-body,
p,
h1, h2, h3, h4, h5, h6,
span,
div:not(.floating-elements):not([class*="shape"]):not([class*="background"]) {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Ensure form inputs work properly */
input,
textarea,
select,
.form-control,
.form-select {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    pointer-events: auto;
    cursor: text;
}

/* Ensure buttons have proper cursor */
button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    cursor: pointer;
    pointer-events: auto;
}

/* Disable text selection only for decorative elements */
.floating-elements,
[class*="-shape"],
[class*="-background"],
.scroll-indicator {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* Navigation and interactive elements */
.navbar-toggler {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    cursor: pointer;
}

/* Dark Mode Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Body */
[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Enhanced Dark Mode Text Fixes */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-dark) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] li {
    color: var(--text-dark);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .lead {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .card-body p,
[data-theme="dark"] .card-body span,
[data-theme="dark"] .card-body div {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .list-unstyled li {
    color: var(--text-muted) !important;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Theme Toggle */
.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Mobile Utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-mb-4 {
        margin-bottom: 1.5rem;
    }
}

/* Touch Device Optimizations */
.touch-device .hover-lift:hover,
.touch-device .hover-scale:hover,
.touch-device .hover-glow:hover {
    transform: none;
}

.touch-device .touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Soft Background Colors with Dark Mode */
.bg-primary-soft {
    background-color: rgba(92, 107, 192, 0.1) !important;
}

[data-theme="dark"] .bg-primary-soft {
    background-color: rgba(121, 134, 203, 0.15) !important;
}

.bg-success-soft {
    background-color: rgba(102, 187, 106, 0.1) !important;
}

[data-theme="dark"] .bg-success-soft {
    background-color: rgba(102, 187, 106, 0.15) !important;
}

.bg-info-soft {
    background-color: rgba(66, 165, 245, 0.1) !important;
}

[data-theme="dark"] .bg-info-soft {
    background-color: rgba(66, 165, 245, 0.15) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 167, 38, 0.1) !important;
}

[data-theme="dark"] .bg-warning-soft {
    background-color: rgba(255, 167, 38, 0.15) !important;
}

.bg-danger-soft {
    background-color: rgba(239, 83, 80, 0.1) !important;
}

[data-theme="dark"] .bg-danger-soft {
    background-color: rgba(239, 83, 80, 0.15) !important;
}

.bg-purple-soft {
    background-color: rgba(171, 71, 188, 0.1) !important;
}

[data-theme="dark"] .bg-purple-soft {
    background-color: rgba(171, 71, 188, 0.15) !important;
}

.text-purple {
    color: var(--purple-color) !important;
}

.bg-purple {
    background-color: var(--purple-color) !important;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: var(--transition);
}

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

.hover-scale {
    transition: var(--transition);
}

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

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(92, 107, 192, 0.3);
}

[data-theme="dark"] .hover-glow:hover {
    box-shadow: 0 0 20px rgba(121, 134, 203, 0.4);
}

/* Avatar Sizes */
.avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

/* Icon Containers */
.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Loading Screen
   ========================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(92, 107, 192, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar {
    background-color: rgba(24, 24, 38, 0.95);
    border-bottom-color: var(--border-light);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(24, 24, 38, 0.98) !important;
}

.navbar-brand h4 {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    color: var(--text-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Mobile Navigation Enhancements */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--text-dark);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 24px;
    position: relative;
}

.navbar-toggler-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    box-shadow: 0 -6px 0 var(--text-dark), 0 6px 0 var(--text-dark);
    transition: var(--transition);
}

.navbar-toggler.collapsed .navbar-toggler-icon::before {
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 0 var(--text-dark);
}

.mobile-lang-selector {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
}

/* Enhanced Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-light);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-light);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--border-radius);
        margin-bottom: 0.25rem;
    }
    
    .nav-link:hover {
        background: var(--bg-surface);
    }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.8) 0%, rgba(92, 107, 192, 0.05) 100%);
    overflow: hidden;
    padding-top: 120px;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(24, 24, 38, 0.9) 0%, rgba(121, 134, 203, 0.1) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.1) 0%, rgba(92, 107, 192, 0.05) 100%);
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: -2s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    animation-delay: -4s;
}

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

.hero-title {
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.feature-pills .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.hero-dashboard {
    max-width: 400px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-dashboard {
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid var(--border-light);
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    width: 120px;
    backdrop-filter: blur(10px);
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 20%;
    left: -10%;
    animation: float 4s ease-in-out infinite reverse;
}

.floating-card-3 {
    top: 30%;
    left: -5%;
    animation: float 5s ease-in-out infinite;
    animation-delay: -2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, rgba(92, 107, 192, 0.02) 100%);
    overflow: hidden;
}

[data-theme="dark"] .features-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(121, 134, 203, 0.05) 100%);
}

.features-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.feature-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.05) 0%, rgba(92, 107, 192, 0.02) 100%);
    animation: float 12s ease-in-out infinite;
}

.feature-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.feature-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: -6s;
}

.feature-card {
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    border-color: rgba(92, 107, 192, 0.2);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.benefits-card {
    border: 1px solid rgba(92, 107, 192, 0.1);
    position: relative;
    z-index: 1;
}

.benefit-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(92, 107, 192, 0.1);
}

.benefit-item:last-child {
    border-bottom: none;
}

/* ==========================================
   Statistics Section
   ========================================== */
.statistics-section {
    position: relative;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.03) 0%, #ffffff 50%, rgba(92, 107, 192, 0.03) 100%);
    overflow: hidden;
}

[data-theme="dark"] .statistics-section {
    background: linear-gradient(135deg, rgba(121, 134, 203, 0.08) 0%, var(--bg-light) 50%, rgba(121, 134, 203, 0.08) 100%);
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.stats-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.05) 0%, rgba(92, 107, 192, 0.02) 100%);
    animation: float 15s ease-in-out infinite;
}

.stats-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
}

.stats-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: 10%;
    animation-delay: -5s;
}

.stats-shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: -10s;
}

.stat-card {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    color: var(--text-dark);
}

.achievement-badge {
    transition: var(--transition);
}

.achievement-badge:hover {
    transform: scale(1.05);
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, rgba(92, 107, 192, 0.02) 100%);
    overflow: hidden;
}

[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(121, 134, 203, 0.05) 100%);
}

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.testimonial-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.03) 0%, rgba(92, 107, 192, 0.01) 100%);
    animation: float 20s ease-in-out infinite;
}

.testimonial-shape-1 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 5%;
}

.testimonial-shape-2 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

.testimonial-card {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rating i {
    font-size: 1rem;
    margin: 0 1px;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, rgba(92, 107, 192, 0.02) 100%);
    overflow: hidden;
}

[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(121, 134, 203, 0.05) 100%);
}

/* Contact Form Specific Fixes */
.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select,
#contactForm input,
#contactForm textarea,
#contactForm select {
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    pointer-events: auto !important;
    cursor: text !important;
    z-index: 10;
    position: relative;
}

#contactForm input[type="radio"],
#contactForm input[type="checkbox"] {
    cursor: pointer !important;
    z-index: 10;
    position: relative;
}

#contactForm label {
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    z-index: 5;
    position: relative;
}

/* Ensure form elements are always on top of decorative elements */
#contactForm {
    z-index: 100;
    position: relative;
}

.contact-form-card {
    z-index: 50;
    position: relative;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.03) 0%, rgba(92, 107, 192, 0.01) 100%);
    animation: float 18s ease-in-out infinite;
}

.contact-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.contact-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: -9s;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(92, 107, 192, 0.1);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .contact-form-card {
    background: rgba(30, 30, 46, 0.9);
    border-color: var(--border-light);
}

/* Dark Mode Form Elements */
[data-theme="dark"] .form-control {
    background-color: var(--bg-surface);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-surface);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(121, 134, 203, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

/* Dark Mode Card Elements */
[data-theme="dark"] .card {
    background-color: var(--bg-surface);
    border-color: var(--border-light);
}

[data-theme="dark"] .card-header {
    background-color: rgba(30, 30, 46, 0.8);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .card-body {
    color: var(--text-dark);
}

.contact-info-card {
    border: 1px solid rgba(92, 107, 192, 0.2);
    position: relative;
    z-index: 1;
}

.contact-info-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.contact-info-item:hover {
    background: rgba(92, 107, 192, 0.1);
    transform: translateX(8px);
}

.social-media-card {
    border: 1px solid rgba(92, 107, 192, 0.1);
    position: relative;
    z-index: 1;
}

.social-buttons .btn {
    transition: var(--transition);
}

.social-buttons .btn:hover {
    transform: translateY(-3px);
}

.quick-actions-card {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.1) 0%, rgba(102, 187, 106, 0.05) 100%);
    border: 1px solid rgba(102, 187, 106, 0.2);
    position: relative;
    z-index: 1;
}

/* ==========================================
   School Advantages Section
   ========================================== */
.school-advantages-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, rgba(92, 107, 192, 0.02) 100%);
    overflow: hidden;
}

[data-theme="dark"] .school-advantages-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(121, 134, 203, 0.05) 100%);
}

.school-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.school-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    animation: float 16s ease-in-out infinite;
}

.school-shape-1 {
    width: 350px;
    height: 350px;
    top: 15%;
    right: 5%;
}

.school-shape-2 {
    width: 250px;
    height: 250px;
    bottom: 25%;
    left: 10%;
    animation-delay: -8s;
}

.school-shape-3 {
    width: 180px;
    height: 180px;
    top: 65%;
    right: 25%;
    animation-delay: -4s;
}

.advantage-card {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

.advantage-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.success-story-card {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.success-story-card:hover {
    transform: scale(1.02);
}

/* ==========================================
   Customer Benefits Section
   ========================================== */
.customer-benefits-section {
    position: relative;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.02) 0%, #ffffff 50%, rgba(92, 107, 192, 0.02) 100%);
    overflow: hidden;
}

[data-theme="dark"] .customer-benefits-section {
    background: linear-gradient(135deg, rgba(121, 134, 203, 0.05) 0%, var(--bg-light) 50%, rgba(121, 134, 203, 0.05) 100%);
}

.customer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.customer-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.05) 0%, rgba(66, 165, 245, 0.02) 100%);
    animation: float 14s ease-in-out infinite;
}

.customer-shape-1 {
    width: 320px;
    height: 320px;
    top: 20%;
    right: 8%;
}

.customer-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: 5%;
    animation-delay: -7s;
}

.customer-shape-3 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 30%;
    animation-delay: -3s;
}

.benefit-card {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* App Preview Styles */
.app-feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #34495e;
    border-radius: 2px;
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .screen {
    background: var(--bg-surface);
}

.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    flex-shrink: 0;
}

.app-content {
    flex-grow: 1;
    background: var(--bg-surface);
}

[data-theme="dark"] .app-content {
    background: var(--bg-light);
}

.notification-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #4caf50 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2196f3 100%) !important;
}

/* CTA Card Styles */
.cta-card {
    background: var(--gradient-primary) !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

/* ==========================================
   Parent App Showcase Section
   ========================================== */
.parent-app-section {
    position: relative;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.03) 0%, #ffffff 50%, rgba(92, 107, 192, 0.03) 100%);
    overflow: hidden;
}

[data-theme="dark"] .parent-app-section {
    background: linear-gradient(135deg, rgba(121, 134, 203, 0.08) 0%, var(--bg-light) 50%, rgba(121, 134, 203, 0.08) 100%);
}

.parent-app-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.app-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.06) 0%, rgba(66, 165, 245, 0.03) 100%);
    animation: float 18s ease-in-out infinite;
}

.app-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
}

.app-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 8%;
    animation-delay: -9s;
}

.app-shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 25%;
    animation-delay: -4s;
}

/* Phone Mockup Styles */
.app-mockup-container {
    position: relative;
    height: 600px;
    z-index: 1;
}

.phone-mockup-main {
    width: 300px;
    height: 600px;
    position: relative;
    z-index: 3;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #34495e;
    border-radius: 3px;
    z-index: 10;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: #34495e;
    border-radius: 2px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .phone-screen {
    background: var(--bg-surface);
}

/* Status Bar */
.status-bar {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    flex-shrink: 0;
}

.signal-icons i {
    margin-left: 4px;
    font-size: 10px;
}

/* App Header */
.app-header {
    flex-shrink: 0;
    background: var(--gradient-primary) !important;
}

.child-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* App Content */
.app-content {
    flex-grow: 1;
    overflow-y: auto;
    background: var(--bg-surface) !important;
}

[data-theme="dark"] .app-content {
    background: var(--bg-light) !important;
}

.summary-card {
    border: none !important;
    box-shadow: 0 4px 15px rgba(92, 107, 192, 0.2);
}

.summary-item i {
    font-size: 1.2rem;
}

.action-card {
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-card i {
    font-size: 1.5rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .activity-item {
    background: rgba(30, 30, 46, 0.8);
    border-color: var(--border-light);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

[data-theme="dark"] .activity-item:hover {
    background: rgba(30, 30, 46, 0.95);
}

.activity-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Bottom Navigation */
.bottom-nav {
    flex-shrink: 0;
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light) !important;
}

.nav-item {
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(92, 107, 192, 0.1);
}

.nav-item.active {
    background: rgba(92, 107, 192, 0.1);
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item small {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Floating Notification */
.floating-notification {
    position: absolute;
    top: 80px;
    right: -80px;
    z-index: 4;
    animation: slideInRight 2s ease-out 1s both;
}

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

.notification-bubble {
    min-width: 200px;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite 3s;
}

/* Secondary Phone (Messages) */
.phone-mockup-secondary {
    position: absolute;
    top: 120px;
    left: -60px;
    width: 180px;
    height: 320px;
    z-index: 2;
    animation: fadeInLeft 1.5s ease-out 2s both;
}

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

.phone-frame-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.messages-header {
    flex-shrink: 0;
    background: var(--gradient-primary) !important;
}

.messages-content {
    flex-grow: 1;
    background: var(--bg-surface);
    font-size: 0.75rem;
}

.message-bubble {
    max-width: 120px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.message-received .message-bubble {
    background: rgba(108, 117, 125, 0.1) !important;
}

[data-theme="dark"] .message-received .message-bubble {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Feature Highlights */
.feature-highlight {
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-highlight:hover {
    transform: translateY(-3px);
}

.feature-highlight .feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Screenshots Gallery */
.screenshot-card {
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.screenshot-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.screenshot-card i {
    opacity: 0.9;
}

/* Enhanced Interactive Mockup Styles */
.enhanced-app-mockup {
    position: relative;
    height: 500px;
}

.interactive-phone {
    width: 280px;
    height: 500px;
    position: relative;
    z-index: 3;
}

.phone-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #34495e;
    border-radius: 2px;
}

.phone-screen-interactive {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .phone-screen-interactive {
    background: var(--bg-surface);
}

.app-header-interactive {
    flex-shrink: 0;
    background: var(--gradient-primary) !important;
}

.child-avatar-interactive {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-content-interactive {
    flex-grow: 1;
    background: var(--bg-surface) !important;
    overflow-y: auto;
}

[data-theme="dark"] .app-content-interactive {
    background: var(--bg-light) !important;
}

.mini-status-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.mini-status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .mini-status-card {
    border-color: var(--border-light);
}

.live-activity-feed {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .live-activity-feed {
    background: rgba(30, 30, 46, 0.7);
    border-color: var(--border-light);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.feed-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .feed-item {
    background: rgba(30, 30, 46, 0.9);
    border-color: var(--border-light);
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(3px);
}

[data-theme="dark"] .feed-item:hover {
    background: rgba(30, 30, 46, 0.95);
}

.feed-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animate-slide-in {
    animation: slideInFromRight 0.8s ease-out;
}

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

.interactive-btn {
    font-weight: 600;
    border-width: 1.5px;
    transition: var(--transition);
}

.interactive-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.bottom-tabs {
    flex-shrink: 0;
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light) !important;
}

.tab-item {
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 4px !important;
}

.tab-item:hover {
    background: rgba(92, 107, 192, 0.1);
}

.tab-item.active {
    background: rgba(92, 107, 192, 0.1);
}

/* Floating Elements */
.floating-message-bubble {
    position: absolute;
    top: 60px;
    right: -120px;
    z-index: 4;
    animation: bounceInRight 1.5s ease-out 2s both;
}

.floating-photo-notification {
    position: absolute;
    bottom: 120px;
    left: -140px;
    z-index: 4;
    animation: bounceInLeft 1.5s ease-out 3s both;
}

@keyframes bounceInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    60% {
        transform: translateX(10px);
        opacity: 1;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-bubble-content,
.photo-notification-content {
    min-width: 180px;
    max-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive for Enhanced Mockup */
@media (max-width: 768px) {
    .enhanced-app-mockup {
        height: 400px;
    }
    
    .interactive-phone {
        width: 240px;
        height: 400px;
    }
    
    .floating-message-bubble {
        right: -80px;
        top: 50px;
    }
    
    .floating-photo-notification {
        left: -100px;
        bottom: 100px;
    }
    
    .message-bubble-content,
    .photo-notification-content {
        min-width: 140px;
        max-width: 160px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .floating-message-bubble,
    .floating-photo-notification {
        display: none;
    }
    
    .interactive-phone {
        width: 220px;
        height: 380px;
    }
}
@media (max-width: 768px) {
    .app-mockup-container {
        height: 500px;
    }
    
    .phone-mockup-main {
        width: 250px;
        height: 500px;
    }
    
    .phone-mockup-secondary {
        width: 150px;
        height: 280px;
        top: 100px;
        left: -40px;
    }
    
    .floating-notification {
        right: -60px;
        top: 70px;
    }
    
    .notification-bubble {
        min-width: 160px;
        font-size: 0.8rem;
    }
    
    .app-shape {
        display: none;
    }
    
    .feature-highlight {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .phone-mockup-main {
        width: 220px;
        height: 440px;
    }
    
    .phone-mockup-secondary {
        width: 130px;
        height: 240px;
        top: 80px;
        left: -30px;
    }
    
    .floating-notification {
        display: none;
    }
}
@media (max-width: 768px) {
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 12px;
    }
    
    .phone-mockup::before {
        width: 50px;
        height: 3px;
    }
    
    .school-shape,
    .customer-shape {
        display: none;
    }
    
    .success-story-card .card-body,
    .benefit-card .card-body,
    .advantage-card .card-body {
        padding: 1.5rem;
    }
}
.footer-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    position: relative;
}

/* Light mode footer text improvements */
.footer-section {
    color: #ffffff;
}

.footer-section h4,
.footer-section h6,
.footer-section .fw-bold {
    color: #ffffff !important;
}

.footer-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-section a.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-section a.text-muted:hover {
    color: #ffffff !important;
}

.footer-section .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.footer-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-section .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.footer-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-links a:hover {
    color: var(--primary-light) !important;
    padding-left: 8px;
}

.newsletter-section .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.newsletter-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter-section .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.newsletter-section .btn-primary {
    background: rgba(92, 107, 192, 0.8) !important;
    border-color: rgba(92, 107, 192, 0.8) !important;
}

.newsletter-section .btn-primary:hover {
    background: rgba(92, 107, 192, 1) !important;
    border-color: rgba(92, 107, 192, 1) !important;
    transform: translateY(-2px);
}

.social-links .btn {
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.social-links .btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-badges .badge {
    margin-bottom: 0.25rem;
}

/* ==========================================
   Floating Elements
   ========================================== */
#backToTop {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet Styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .app-download {
        text-align: center;
        margin-top: 2rem;
    }
    
    .app-download .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .app-download .btn {
        min-width: 200px;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-shape,
    .feature-shape,
    .stats-shape,
    .testimonial-shape,
    .contact-shape {
        display: none;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    /* Typography adjustments */
    .display-5 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-3 {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Card spacing */
    .stat-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .feature-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Contact form */
    .contact-form-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    /* Footer adjustments */
    .footer-section {
        padding: 3rem 0 2rem;
    }
    
    .footer-section .col-lg-4,
    .footer-section .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Ensure footer text visibility on mobile */
    .footer-section .mb-0.text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .footer-legal-links a.text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .footer-legal-links a.text-muted:hover {
        color: #ffffff !important;
    }
    
    /* Floating elements */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    #backToTop {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-dashboard {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-pills {
        justify-content: center;
    }
    
    .feature-pills .badge {
        margin: 0.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .testimonial-card img {
        width: 50px;
        height: 50px;
    }
    
    .rating i {
        font-size: 0.9rem;
    }
    
    /* Contact form mobile */
    .contact-form-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .contact-info-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* App download buttons */
    .app-download-buttons .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Social buttons */
    .social-links .btn,
    .social-buttons .btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .navbar,
    .scroll-indicator,
    .whatsapp-float,
    #backToTop,
    .floating-elements {
        display: none !important;
    }
    
    .hero-section,
    .features-section,
    .statistics-section,
    .testimonials-section,
    .contact-section {
        background: white !important;
        box-shadow: none !important;
    }
}

/* ==========================================
   Touch Device Optimizations
   ========================================== */
.touch-device .hover-lift:hover {
    transform: none;
}

.touch-device .touch-active {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}

.touch-device .hover-scale:hover {
    transform: none;
}

.touch-device .touch-active.hover-scale {
    transform: scale(1.02);
}

.touch-device .hover-glow:hover {
    box-shadow: none;
}

.touch-device .touch-active.hover-glow {
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.2);
}

[data-theme="dark"] .touch-device .touch-active.hover-glow {
    box-shadow: 0 0 15px rgba(121, 134, 203, 0.3);
}

/* ==========================================
   Enhanced Button Styles
   ========================================== */
.btn {
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.theme-toggle {
    border-radius: 25px !important;
    min-width: 45px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Enhanced Cards with Dark Mode
   ========================================== */
.card {
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    transition: var(--transition);
}

.card-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    background: var(--bg-light);
}

/* ==========================================
   Improved Form Styles
   ========================================== */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(92, 107, 192, 0.25);
    background: var(--bg-light);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(121, 134, 203, 0.25);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* ==========================================
   Enhanced Mobile Animations
   ========================================== */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile for better performance */
    .hero-shape,
    .feature-shape,
    .stats-shape,
    .testimonial-shape,
    .contact-shape {
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    /* Optimize hover effects for touch */
    .hover-lift {
        transition: transform 0.2s ease;
    }
    
    .hover-scale {
        transition: transform 0.2s ease;
    }
    
    /* Better button sizing on mobile */
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 38px;
    }
    
    /* Enhanced badge styling */
    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
    
    /* Better card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Improved text readability */
    .text-muted {
        color: var(--text-muted) !important;
    }
}

/* ==========================================
   Accessibility Improvements
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* ==========================================
   Enhanced Mobile App Interface Design
   Based on provided screenshot mockup
   ========================================== */

/* Modern Phone Container */
.modern-phone-container {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    perspective: 1000px;
}

.modern-phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3a);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.modern-phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Notch Design */
.modern-phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
}

/* Screen Container */
.modern-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.modern-status-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-top: 32px;
}

.modern-status-bar .time {
    font-size: 16px;
    font-weight: 700;
}

.modern-status-bar .status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.modern-status-bar .status-icons i {
    font-size: 12px;
}

/* App Header */
.modern-app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] .modern-app-header {
    background: rgba(30, 30, 46, 0.95);
    color: var(--text-dark);
}

.modern-user-profile {
    display: flex;
    align-items: center;
}

.modern-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 18px;
}

.modern-user-info h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

[data-theme="dark"] .modern-user-info h6 {
    color: var(--text-dark);
}

.modern-user-info small {
    color: #7f8c8d;
    font-size: 13px;
}

[data-theme="dark"] .modern-user-info small {
    color: var(--text-muted);
}

.modern-notification-bell {
    position: relative;
    background: rgba(92, 107, 192, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-notification-bell:hover {
    background: rgba(92, 107, 192, 0.2);
    transform: scale(1.1);
}

.modern-notification-bell .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Main Content Area */
.modern-app-content {
    flex: 1;
    background: #f8f9fa;
    padding: 25px 20px;
    overflow-y: auto;
    min-height: 400px;
}

[data-theme="dark"] .modern-app-content {
    background: var(--bg-surface);
}

/* Welcome Card */
.modern-welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.modern-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.modern-welcome-card h5 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.modern-welcome-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Quick Stats Grid */
.modern-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.modern-stat-item {
    background: white;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .modern-stat-item {
    background: var(--bg-light);
    border-color: var(--border-light);
    color: var(--text-dark);
}

.modern-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modern-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 18px;
    color: white;
}

.modern-stat-icon.check-in {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.modern-stat-icon.meals {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.modern-stat-icon.photos {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.modern-stat-item h6 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

[data-theme="dark"] .modern-stat-item h6 {
    color: var(--text-dark);
}

.modern-stat-item small {
    color: #7f8c8d;
    font-size: 12px;
}

[data-theme="dark"] .modern-stat-item small {
    color: var(--text-muted);
}

/* Activity Feed */
.modern-activity-feed {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .modern-activity-feed {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modern-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modern-activity-header h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

[data-theme="dark"] .modern-activity-header h6 {
    color: var(--text-dark);
}

.modern-live-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.modern-activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

[data-theme="dark"] .modern-activity-item {
    border-bottom-color: var(--border-light);
}

.modern-activity-item:hover {
    background: rgba(92, 107, 192, 0.05);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 12px;
}

.modern-activity-item:last-child {
    border-bottom: none;
}

.modern-activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.modern-activity-icon.meal {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.modern-activity-icon.activity {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.modern-activity-icon.photo {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.modern-activity-content {
    flex: 1;
}

.modern-activity-content h6 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

[data-theme="dark"] .modern-activity-content h6 {
    color: var(--text-dark);
}

.modern-activity-content p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

[data-theme="dark"] .modern-activity-content p {
    color: var(--text-muted);
}

.modern-activity-time {
    font-size: 11px;
    color: #bdc3c7;
    font-weight: 500;
}

[data-theme="dark"] .modern-activity-time {
    color: var(--text-muted);
}

/* Bottom Navigation */
.modern-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

[data-theme="dark"] .modern-bottom-nav {
    background: rgba(30, 30, 46, 0.95);
    border-top-color: var(--border-light);
}

.modern-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}

.modern-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    color: #7f8c8d;
}

[data-theme="dark"] .modern-nav-item {
    color: var(--text-muted);
}

.modern-nav-item:hover {
    background: rgba(92, 107, 192, 0.1);
}

.modern-nav-item.active {
    color: #5c6bc0;
}

.modern-nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.modern-nav-item.active i {
    transform: scale(1.2);
    color: #5c6bc0;
}

.modern-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.modern-nav-item.active span {
    color: #5c6bc0;
    font-weight: 600;
}

/* Floating Action Elements */
.modern-floating-message {
    position: absolute;
    top: 120px;
    right: -60px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 12px;
    max-width: 180px;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
    animation: fadeInSlide 2s ease-in-out infinite alternate;
    z-index: 5;
}

.modern-floating-notification {
    position: absolute;
    bottom: 120px;
    left: -50px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 12px;
    max-width: 160px;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    animation: fadeInSlide 2s ease-in-out infinite alternate-reverse;
    animation-delay: 1s;
    z-index: 5;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0.7;
        transform: translateY(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(-8px);
    }
}