/* Landing Page Variables */
:root {
    --primary-color: #e91e63;
    --primary-rgb: 233, 30, 99;
    --secondary-color: #2c3e50;
    --accent-color: #8e44ad;
    --text-color: #34495e;
    --bg-color: #ffffff;
    --hero-bg: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    --card-bg: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.1);
    --transition-base: all 0.3s ease;
}

[data-bs-theme="dark"] {
    --text-color: #ecf0f1;
    --bg-color: #0f172a;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.2);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.4);
}

/* Global Styles for Landing */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Animations */
/* fadeInUp and float are inherited from style.css */

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* 
   Using CSS Animation for better reliability than JS-only visibility.
   Uses fadeInUp from style.css
*/
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

@supports (min-height: 100dvh) {
    .hero-section {
        min-height: 100dvh;
    }
}

.hero-blob {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(233,30,99,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

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

.hero-title {
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-size: 2.5rem; /* Mobile default */
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4.5rem; /* Display-3 equivalent */
    }
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

/* Feature Cards */
.features-section,
.testimonials-section,
.app-section {
    padding: 100px 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

[data-bs-theme="dark"] .feature-card {
    border-color: rgba(255,255,255,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

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

.feature-card h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    background: #c2185b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--card-bg);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .btn-outline-custom {
    color: white;
    border-color: rgba(255,255,255,0.2);
}

[data-bs-theme="dark"] .btn-outline-custom:hover {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

/* Mockup Container */
.mockup-container {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: translateY(-10px);
}

@media (max-width: 991.98px) {
    .mockup-container {
        margin-top: 3rem;
    }
}

/* Testimonials */
.testimonial-card {
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card-1 {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
}

.testimonial-card-2 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

.testimonial-card-3 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

/* Auth Pages Styles */
.auth-hero-section {
    background: linear-gradient(90deg, #fd3f6b 0%, #a445b2 100%) !important;
    position: relative;
    overflow: hidden;
}

.auth-hero-blob {
    display: block !important; /* Re-enabled for depth */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    opacity: 0.6;
}

/* Auth Form Styles */
.country-selector-wrapper {
    flex: 0 0 35%;
}

.phone-input-field {
    flex: 1;
}

@media (max-width: 576px) {
    .country-selector-wrapper {
        flex: 0 0 40%;
    }
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background-color: #fff;
}

.auth-header {
    background: white;
    color: #333;
    padding: 30px 30px 0 30px;
    text-align: center;
}

.auth-header h3 {
    color: #fd3f6b;
    font-weight: 800 !important;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: #fd3f6b;
    box-shadow: 0 0 0 3px rgba(253, 63, 107, 0.1);
}

.btn-auth {
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #fd3f6b 0%, #a445b2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Dark mode adjustments for Auth */
[data-bs-theme="dark"] .form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: white;
}

[data-bs-theme="dark"] .auth-card {
    background-color: #1e293b;
}

[data-bs-theme="dark"] .auth-header {
    background-color: #1e293b;
    color: white;
}

/* Responsive Borders for Stats Strip */
.stats-section {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
}

.stats-card {
    padding: 2rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Mobile: Border bottom for first 2 items */
@media (max-width: 767.98px) {
    .stats-section .col-md-4:not(:last-child) {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    [data-bs-theme="dark"] .stats-section .col-md-4:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .features-section, .testimonials-section, .app-section {
        padding: 60px 0;
    }
    
    .hero-blob {
        width: 600px;
        height: 600px;
        top: -20%;
        right: -30%;
    }
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .text-muted {
    color: #cbd5e1 !important;
}

/* Desktop: Border left/right for middle item */
@media (min-width: 768px) {
    .border-md-x {
        border-left: 1px solid rgba(0,0,0,0.05) !important;
        border-right: 1px solid rgba(0,0,0,0.05) !important;
    }
    [data-bs-theme="dark"] .border-md-x {
        border-left: 1px solid rgba(255,255,255,0.05) !important;
        border-right: 1px solid rgba(255,255,255,0.05) !important;
    }
}

