/* 
 * Skilloxy Branding & Color Scheme
 * Globally updates typography, modern HSL color palettes, cards hover lifts, and smooth animations
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Skilloxy Brand Colors - Modern Professional Palette */
    --skilloxy-primary: #4f46e5;      /* Indigo Blue */
    --skilloxy-secondary: #0d9488;    /* Tech Teal */
    --skilloxy-accent: #ff6b6b;       /* Coral Accent */
    --skilloxy-warning: #f59e0b;      /* Amber Warning */
    --skilloxy-purple: #8b5cf6;       /* Violet Creative */
    --skilloxy-teal: #14b8a6;         /* Bright Teal */
    
    /* Gradient Combinations */
    --skilloxy-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
    --skilloxy-gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #f59e0b 100%);
    --skilloxy-gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
    --skilloxy-gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    
    /* Typography */
    --skilloxy-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --skilloxy-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Neutral Colors */
    --skilloxy-dark: #0f172a;
    --skilloxy-light: #f8fafc;
    --skilloxy-gray: #64748b;
    --skilloxy-white: #ffffff;
    
    /* Shadows */
    --skilloxy-shadow-soft: 0 4px 20px rgba(79, 70, 229, 0.05);
    --skilloxy-shadow-medium: 0 10px 30px rgba(79, 70, 229, 0.08);
    --skilloxy-shadow-strong: 0 20px 40px rgba(79, 70, 229, 0.12);
}

/* Global Typography & Core Updates */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--skilloxy-font-primary);
    color: #334155;
    background-color: var(--skilloxy-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--skilloxy-font-heading);
    font-weight: 700;
    color: var(--skilloxy-dark);
}

/* Global Transitions */
a, button, .btn, .card, .course-card, .product-card, .testimonial-card, .dashboard-stat, .filter-btn, .nav-link-enhanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Styling Updates */
.btn-primary {
    background: var(--skilloxy-gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    filter: brightness(1.05);
}

.btn-warning {
    background: var(--skilloxy-gradient-secondary) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    filter: brightness(1.05);
}

/* Statistics Cards */
.dashboard-stat {
    background: white;
    border-radius: var(--cd-border-radius, 16px);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--skilloxy-shadow-soft);
    border-top: 4px solid var(--skilloxy-primary);
}

.dashboard-stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--skilloxy-shadow-medium);
    border-top-color: var(--skilloxy-secondary);
}

.dashboard-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--skilloxy-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--skilloxy-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section Branding */
.hero-section {
    background: var(--skilloxy-gradient-hero) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Top Header Bar */
.top-header-bar {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navigation Enhancements */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    padding: 0.85rem 0;
}

.nav-link-enhanced {
    font-weight: 600;
    color: #475569 !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.nav-link-enhanced:hover,
.nav-link-enhanced.active {
    color: var(--skilloxy-primary) !important;
    background: rgba(79, 70, 229, 0.08);
}

/* Course & Standard Cards */
.card, .course-card, .product-card {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: var(--skilloxy-shadow-soft);
    background: #ffffff;
    overflow: hidden;
}

.card:hover, .course-card:hover, .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--skilloxy-shadow-medium);
    border-color: rgba(79, 70, 229, 0.25) !important;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--skilloxy-secondary);
}

/* Image zoom inside card hover states */
.card img, .course-card img, .product-card img {
    transition: transform 0.4s ease;
}

.card:hover img, .course-card:hover img, .product-card:hover img {
    transform: scale(1.04);
}

/* Testimonials Section Styling */
.testimonial-card {
    border-radius: 16px;
    box-shadow: var(--skilloxy-shadow-soft);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -5px;
    left: 15px;
    font-size: 5rem;
    color: var(--skilloxy-primary);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--skilloxy-shadow-strong);
}

.testimonial-card .fst-italic {
    font-style: italic;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-card:hover .text-warning i {
    transform: scale(1.15);
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Success Statistics */
.success-stats .h2 {
    background: var(--skilloxy-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Outline & Ring glow */
.form-control:focus, .form-select:focus {
    border-color: var(--skilloxy-primary) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15) !important;
}

/* Scroll Animation Delay Helpers */
.testimonial-card {
    animation: testimonialFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.15s; }

/* Navbar Overrides spacing */
.navbar-nav .nav-item {
    margin-right: 4px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.85rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .dashboard-stat-number {
        font-size: 2.25rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .card, .course-card, .product-card {
        border-radius: 12px !important;
    }
}
