/* Modern Kulturely Theme - Clean Global Design */
:root {
    /* Primary Brand Colors - Modern Blue/Purple Gradient */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-blue: #667eea;
    --primary-purple: #764ba2;
    --primary-dark: #4c63d2;
    
    /* Secondary Colors - Clean Grays and Whites */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text Colors - High Contrast */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows and Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: var(--bg-secondary);
}

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

.nav-link:hover::after {
    width: 80%;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-xl);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.925rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

/* Modern Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid #e2e8f0;
    padding: var(--space-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--space-xl);
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

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

.hero-section h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    color: #ffffff !important;
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-section .text-gradient {
    color: #fbbf24 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Feature Sections */
.features-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: white;
    font-size: 1.5rem;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.badge-primary {
    background: var(--primary-gradient);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    background: var(--bg-primary);
    margin-top: var(--space-sm);
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.dropdown-item i {
    color: var(--primary-blue);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: var(--space-2xl);
}

footer h6 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--primary-blue);
    transform: translateX(2px);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: var(--space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
    }
    
    .card-body {
        padding: var(--space-lg);
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading States */
.spinner-border {
    color: var(--primary-blue);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--info);
    border-left: 4px solid var(--info);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--error);
    border-left: 4px solid var(--error);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

.bg-gradient {
    background: var(--primary-gradient);
}

.shadow-primary {
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.1), 0 4px 6px -4px rgba(102, 126, 234, 0.1);
}

.hero-section *,
.gradient-bg *,
.bg-primary *,
.bg-gradient * {
    color: #ffffff !important;
    text-shadow: none;
}

/* Ensure readability on all card components */
.card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
    color: #1a202c !important;
    font-weight: 600;
}

.card-text {
    color: #4a5568 !important;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 500;
}
.nav-link {
    font-weight: 500;
}

.btn {
    font-weight: 500;
}

.btn-primary {
    color: #ffffff !important;
}

.btn-outline-primary {
    color: #ffffff !important;
}

/* Alert and badge readability */
.alert {
    text-shadow: none;
    color: #1a202c !important;
    font-weight: 500;
}

.badge {
    font-weight: 600;
}

.form-label {
    color: #2d3748 !important;
    font-weight: 500;
}

.stats-number {
    color: #1a202c !important;
    font-weight: 700;
}

.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container p {
    color: #1a202c !important;
}

/* Section backgrounds for better contrast */
section:not(.hero-section) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.feature-icon {
    color: var(--primary-blue) !important;
}

/* Footer enhanced readability */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5, footer h6 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #cbd5e1;
}

footer p {
    color: #94a3b8;
}

footer .text-white {
    color: #ffffff !important;
}

/* Premium feature indicators */
.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-shadow: none;
    margin-left: 0.5rem;
}

/* Emoji Grid Styling */
.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.emoji-item {
    font-size: 1.5rem;
    padding: 0.5rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.emoji-item:hover {
    border-color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.emoji-item.selected {
    border-color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Country Card Styling */
.country-card {
    transition: all 0.3s ease;
    border: 2px solid #e0e6ed;
    cursor: pointer;
}

.country-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.country-card.selected {
    border-color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Learning Pathway Styling */
.learning-pathway {
    position: relative;
}

.learning-module {
    transition: all 0.3s ease;
}

.learning-module:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.scenario-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.unique-feature {
    border-left: 4px solid var(--primary-blue);
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    margin: 1rem 0;
}

.exclusive-tag {
    background: linear-gradient(45deg, #e53e3e, #f56565);
    color: white !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    text-shadow: none;
}