/* Global Styles */
body {
    font-family: var(--ke-font-family);
    font-size: var(--ke-base-font-size);
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Overrides */
body.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --ke-footer-bg: #000000;
}

body.dark-mode .card,
body.dark-mode .bg-white,
body.dark-mode .dropdown-menu {
    background-color: #1e1e1e !important;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .text-dark {
    color: #e0e0e0 !important;
}

body.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom {
    border-color: #333 !important;
}

body.dark-mode .bg-light {
    background-color: #181818 !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--ke-heading-font);
}

a {
    color: var(--link-color);
}

.container {
    max-width: var(--ke-container-width);
}

/* Component Overrides */
.btn,
.form-control,
.card,
.alert,
.dropdown-menu {
    border-radius: var(--ke-border-radius) !important;
}

.btn {
    padding: var(--ke-btn-padding);
}

/* Navbar Styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: var(--ke-navbar-text);
}

/* Footer Styling */
.footer {
    margin-top: auto;
    background-color: var(--ke-footer-bg);
    color: var(--ke-footer-text);
    padding: 20px 0;
}

/* Card Styles */
.ke-card {
    background: #fff;
    border-radius: var(--ke-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.ke-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ke-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ke-card-media img.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ke-card:hover .ke-card-media img.cover {
    transform: scale(1.05);
}

.ke-card-logo {
    position: absolute;
    top: 170px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ke-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ke-card-body {
    padding: 1.5rem;
    padding-top: 2rem;
}

.ke-rating-pill {
    background: #fff8e1;
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modern Home Page Styles */
.home-hero-modern {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 10rem;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
}

.home-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(109, 40, 217, 0.8) 100%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.hero-title-modern {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-desc-modern {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Glass Search Card */
.glass-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.glass-search-card .form-control {
    border: 2px solid transparent;
    background: #f8f9fa;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glass-search-card .form-control:focus {
    background: #fff;
    border-color: var(--ke-primary);
    box-shadow: 0 0 0 4px rgba(var(--ke-primary-rgb), 0.1);
}

.glass-search-card .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ke-primary);
    font-size: 1.1rem;
}

.glass-search-card .btn-search {
    padding: 1rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.glass-search-card .btn-search:hover {
    transform: translateY(-2px);
}

/* Features Section */
.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(var(--ke-primary-rgb), 0.1);
    color: var(--ke-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--ke-primary);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: #fff;
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--ke-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--ke-gradient);
    padding: 6rem 0;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

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

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 991px) {
    .home-hero-modern {
        padding-top: 6rem;
        padding-bottom: 8rem;
        text-align: center;
    }
    
    .hero-desc-modern {
        margin-left: auto;
        margin-right: auto;
    }
    
    .glass-search-card {
        margin-top: -4rem;
        padding: 1.5rem;
    }
}