/* ============================================
   TALKO - Modern Professional Frontend Styles
   ============================================ */

:root {
    /* Primary Colors */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6c7ee8;
    
    /* Secondary Colors */
    --secondary: #7209b7;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    
    /* Neutral Colors */
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar-modern {
    background: var(--dark) !important;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1000;
}

.navbar-modern.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs) 0;
}

.navbar-brand-modern {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none !important;
}

.navbar-brand-modern:hover {
    text-decoration: none !important;
}

.navbar-brand-modern::after {
    display: none !important;
}

.navbar-brand-modern i {
    font-size: 2rem;
    color: var(--primary) !important;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none !important;
}

.nav-link-modern:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
}

.nav-link-modern.active {
    color: var(--accent) !important;
    background: rgba(245, 158, 11, 0.15) !important;
    text-decoration: none !important;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.nav-link-modern:not(.active)::after {
    display: none !important;
}

/* Fix: Dropdown links should not have underline */
.dropdown-toggle.nav-link-modern::after {
    display: none !important;
}

.btn-become-mentor {
    background: var(--accent) !important;
    color: var(--dark) !important;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-decoration: none !important;
}

.btn-become-mentor::after {
    display: none !important;
}

.btn-become-mentor:hover {
    background: var(--accent-hover) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: var(--dark) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xxl) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--white) !important;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--primary);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 2px solid var(--white);
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* ============================================
   CARDS
   ============================================ */

.card-modern {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card-header-modern {
    margin-bottom: var(--spacing-md);
}

.card-body-modern {
    flex: 1;
}

.card-footer-modern {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light);
}

/* Expert Card */
.expert-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.expert-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light);
}

.expert-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expert-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.expert-card-title {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.expert-card-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray);
}

.expert-card-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.expert-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    background: var(--light);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.expert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light);
    margin-top: auto;
}

.expert-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-book-now {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    transition: all var(--transition-base);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn-modern {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-primary-modern {
    background: var(--primary);
    color: var(--white);
}

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

.btn-secondary-modern {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary-modern:hover {
    background: #5a0a8f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

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

.btn-outline-modern:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   FORMS
   ============================================ */

.form-modern {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-control-modern {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-label-modern {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* ============================================
   BADGES
   ============================================ */

.badge-modern {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

.shadow-modern {
    box-shadow: var(--shadow-md);
}

.rounded-modern {
    border-radius: var(--radius-xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--light) 25%, rgba(255,255,255,0.5) 50%, var(--light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   ADDITIONAL RESPONSIVE STYLES
   ============================================ */

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    
    .navbar-nav .nav-link-modern {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0 !important;
        border-radius: var(--radius-md);
        text-align: left;
        width: 100%;
        display: block;
    }
    
    .btn-become-mentor {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Expert Cards Responsive */
@media (max-width: 767.98px) {
    .expert-card {
        margin-bottom: 1.25rem;
    }
    
    .expert-card-body {
        padding: 1rem;
    }
    
    .expert-card-name {
        font-size: 1rem;
    }
    
    .expert-card-title {
        font-size: 0.8rem;
    }
}

/* Hero Section Responsive */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 0 !important;
        min-height: 30vh !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

