/* Global Styles - Unified Theme */
:root {
    /* Primary Brand Colors - Gradient Purple Theme */
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Secondary Colors */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Neutral Colors */
    --light-color: #f8f9fa;
    --dark-color: #1a1a2e;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --bg-color: #ffffff;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.2);
    --shadow-xl: 0 25px 70px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    font-family: var(--font-family);
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    padding-top: 76px; /* Account for fixed navbar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-weight: var(--font-weight-bold);
}

h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
}

p, span, a, li, div {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    letter-spacing: -0.01em;
}

.navbar-brand,
.btn,
.nav-link {
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
}

/* Navigation Bar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
}

.navbar-nav {
    gap: 1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

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

.navbar-nav .dropdown-menu {
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--light-color);
    padding-left: 1.5rem;
}

.navbar-nav .dropdown-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.navbar-nav .dropdown-item small {
    font-size: 0.85rem;
}

/* Language Switcher Flags */
.navbar-nav .dropdown-toggle img,
.navbar-nav .dropdown-item img {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-nav .dropdown-item {
    display: flex;
    align-items: center;
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Hero Section - Refined SaaS Clean */
.hero-section {
    background: 
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%),
        linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: -76px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
}

@media (min-width: 1200px) {
    .hero-section h1 {
        white-space: nowrap;
    }
}

.hero-img-main {
    position: relative;
    z-index: 1;
    max-height: 450px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    mask-image: linear-gradient(to bottom, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-img-main:hover {
    transform: scale(1.02) translateY(-10px);
}

.hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    z-index: 1;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.active-students {
    top: 15%;
    right: -20px;
    animation: float-y 4s ease-in-out infinite;
}

.revenue {
    bottom: 15%;
    left: -20px;
    animation: float-y 4s ease-in-out infinite 1s;
}

@media (max-width: 991px) {
    .active-students, .revenue {
        position: relative;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 10px auto;
        max-width: 250px;
    }
}

.floating-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
}

.floating-card.active-students {
    top: 10%;
    right: -5%;
    animation: float-y 4s ease-in-out infinite;
}

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

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

.bg-success-soft { background-color: rgba(40, 167, 69, 0.1); }
.bg-primary-soft { background-color: rgba(102, 126, 234, 0.1); }

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

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-up:nth-child(1) { animation-delay: 0.1s; }
.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.3s; }
.animate-up:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

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

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    min-width: 160px;
    font-weight: 600;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Business Types Section */
.business-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.business-icon i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

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

/* Features Section */
.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

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

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Pricing Section - Refined */
.pricing-section {
    background: #fdfdfd;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.pricing-card-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(118, 75, 178, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(118, 75, 178, 0.2);
    z-index: 10;
}

.pricing-card-body {
    padding: 3rem 2.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
}

.pricing-subtitle {
    color: #718096;
    font-size: 0.9rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -1px;
}

.price-period {
    color: #718096;
    font-weight: 500;
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #38a169;
    margin-right: 12px;
    font-size: 1rem;
}

.btn-pricing-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(118, 75, 178, 0.3);
    opacity: 0.9;
}

.btn-pricing-outline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 700;
    border-radius: 12px;
}

.btn-pricing-outline:hover {
    background: #edf2f7;
    color: #1a202c;
    border-color: #cbd5e0;
}

@media (max-width: 992px) {
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-card-body {
        padding: 2rem 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
}

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

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        min-height: 350px;
        margin-top: 3rem;
    }
    
    .hero-image-animated {
        max-width: 100%;
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0 30px;
        min-height: 75vh;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-image {
        min-height: 280px;
        margin-top: 2rem;
        padding: 10px;
    }
    
    .hero-image-animated {
        max-height: 320px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}

/* Language Dropdown */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    font-family: var(--font-family);
}

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

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

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

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

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

/* Footer */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--dark-color) 0%, #16213e 100%) !important;
}

.footer-brand {
    font-weight: 700;
    color: white;
}

.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links.list-inline {
    display: inline-flex;
    gap: 1.5rem;
}

.footer-links.list-inline li {
    margin: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-links.list-inline {
        justify-content: center;
    }
    
    .text-md-end {
        text-align: center !important;
    }
}

/* Partner Logos Section */
.partner-logos-section {
    overflow: hidden;
    position: relative;
    padding: 60px 0;
    background: #ffffff;
}

.partner-logos-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-logos-track {
    display: flex;
    animation: scroll-logos 40s linear infinite;
    gap: 4rem;
    align-items: center;
    will-change: transform;
}

.partner-logo-item {
    flex-shrink: 0;
    padding: 0 2rem;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    min-width: 180px;
    cursor: pointer;
}

.partner-logo i {
    font-size: 2.5rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    color: #333;
}

.partner-logo span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.partner-logo:hover i {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

.partner-logo:hover span {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary-color);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logos-section .text-uppercase {
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pause animation on hover */
.partner-logos-wrapper:hover .partner-logos-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .partner-logo {
        min-width: 140px;
        padding: 1rem 1.5rem;
    }
    
    .partner-logo i {
        font-size: 2rem;
    }
    
    .partner-logo span {
        font-size: 0.8rem;
    }
    
    .partner-logos-track {
        gap: 2rem;
    }
    
    .partner-logo-item {
        padding: 0 1rem;
    }
    
    .partner-logos-track {
        animation-duration: 30s;
    }

    .hero-filter-bar {
        max-width: 620px;
    }
    
    .hero-image-animated {
        animation: float 6s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-20px); }
    }
    
    .app-mockup {
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    }
    
    footer a:hover {
        color: #fff !important;
        text-decoration: underline;
    }
}

/* ===== SELECT2 DROPDOWN FIX ===== */

/* The dropdown container */
.select2-container--default .select2-dropdown {
    border: 2px solid #6C3FC5 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(108,63,197,0.15) !important;
    overflow: hidden !important;
    background: white !important;
}

/* Search box inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0d5f5 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #1A1A2E !important;
    background: white !important;
}

/* Each option in dropdown */
.select2-container--default .select2-results__option {
    color: #1A1A2E !important;
    background: white !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

/* Hover state */
.select2-container--default .select2-results__option--highlighted {
    background: #6C3FC5 !important;
    color: white !important;
}

/* Selected option */
.select2-container--default .select2-results__option--selected {
    background: #EDE8FB !important;
    color: #6C3FC5 !important;
    font-weight: 600 !important;
}

/* The selected value shown in the box */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1A1A2E !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding-left: 12px !important;
}

/* Placeholder text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888 !important;
    font-size: 15px !important;
}

/* The selection box itself */
.select2-container--default .select2-selection--single {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* Arrow icon */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Hero search bar specific */
.hero-search .select2-container {
    width: 100% !important;
}

.hero-search .select2-container--default .select2-selection--single {
    height: 56px !important;
    padding: 0 !important;
}

.hero-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 56px !important;
    font-size: 16px !important;
    color: #1A1A2E !important;
}

/* Navbar search specific */
.navbar-search .select2-container--default .select2-selection--single {
    height: 40px !important;
}

.navbar-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    font-size: 14px !important;
    color: #1A1A2E !important;
}

/* Make location dropdown wider */
.select2-container--default.location-select {
    min-width: 200px !important;
}

/* Results list */
.select2-results__options {
    max-height: 300px !important;
    overflow-y: auto !important;
}

/* No results message */
.select2-container--default .select2-results__option--disabled {
    color: #999 !important;
    font-style: italic !important;
}
