/* ===== MODERN DESIGN SYSTEM ===== */
/* Premium, Professional & Contemporary Styling */

:root {
    /* Primary Color Palette */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Neutral Palette */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Accent Colors */
    --accent-blue: #0ea5e9;
    --accent-emerald: #10b981;
    --accent-violet: #8b5cf6;
    --accent-amber: #f59e0b;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --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);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MODERN NAVIGATION ===== */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.navbar-brand:hover {
    color: var(--primary-800) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-700) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link.active {
    color: var(--primary-600) !important;
    background: var(--primary-100);
}

.dropdown-menu {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: white;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* ===== HERO SECTION ===== */
.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--neutral-900) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bureau10.jpeg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.9) 0%, 
        rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* ===== MODERN BUTTONS ===== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

.btn-outline-modern {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== MODERN SERVICE CARDS ===== */
.service-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--accent-blue) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-icon-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.service-icon-modern i {
    font-size: 1.75rem;
    color: var(--primary-600);
    transition: color var(--transition-normal);
}

.service-card-modern:hover .service-icon-modern i {
    color: white;
}

.service-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.service-description-modern {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===== MODERN PORTFOLIO CARDS ===== */
.portfolio-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.portfolio-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card-modern:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card-modern:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== MODERN CAROUSEL ===== */
.carousel-modern {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--neutral-900);
}

.carousel-modern .carousel-item {
    height: 600px;
}

.carousel-modern .carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption-modern {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-title-modern {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.carousel-description-modern {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ===== PARTNERS SECTION ===== */
.partners-section-modern {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    padding: 4rem 0;
}

.partner-logo-modern {
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.partner-logo-modern:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===== SECTION HEADINGS ===== */
.section-modern {
    padding: 5rem 0;
}

.section-heading-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--accent-blue) 100%);
    border-radius: var(--radius-md);
}

.section-subtitle-modern {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .service-card-modern {
        padding: 1.5rem;
    }
    
    .carousel-modern .carousel-item {
        height: 400px;
    }
    
    .carousel-caption-modern {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .carousel-title-modern {
        font-size: 1.5rem;
    }
    
    .carousel-description-modern {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-modern {
        padding: 3rem 0;
    }
    
    .service-card-modern {
        padding: 1.25rem;
    }
    
    .portfolio-card-modern {
        margin-bottom: 1.5rem;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* ===== DARK THEME STYLES ===== */
:root {
    /* Dark Theme Colors */
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-surface-light: #2a2a2a;
    --dark-text: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-accent: #ff6b35;
    --dark-accent-light: #ff8c42;
    --dark-primary: #4a9eff;
    --dark-primary-light: #6bb3ff;
    
    /* Gradient for dark theme */
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    --dark-overlay: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

/* Dark Theme Body */
body.dark-theme {
    background: var(--dark-bg);
    color: var(--dark-text);
}

/* Dark Navigation */
.dark-navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-navbar .navbar-brand {
    color: var(--dark-text) !important;
}

.dark-navbar .nav-link {
    color: var(--dark-text-secondary) !important;
    transition: all var(--transition-fast);
}

.dark-navbar .nav-link:hover,
.dark-navbar .nav-link.active {
    color: var(--dark-primary) !important;
    background: rgba(74, 158, 255, 0.1);
}

/* Dark Hero Section */
.dark-hero {
    min-height: 100vh;
    background: linear-gradient(
        135deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(26, 26, 26, 0.7) 50%, 
        rgba(15, 15, 15, 0.9) 100%
    ), 
    url('../images/hero_bg.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.dark-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-overlay);
    z-index: 1;
}

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

/* Dark Service Cards */
.dark-service-card {
    background: var(--dark-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--dark-text) !important;
    transition: all var(--transition-normal);
}

.dark-service-card:hover {
    background: var(--dark-surface-light) !important;
    border-color: var(--dark-primary) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.dark-service-icon {
    background: rgba(74, 158, 255, 0.2) !important;
    color: var(--dark-primary) !important;
}

.dark-service-card:hover .dark-service-icon {
    background: var(--dark-primary) !important;
    color: white !important;
}

/* Dark Statistics */
.dark-stat-number {
    color: var(--dark-accent) !important;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.dark-stat-label {
    color: var(--dark-text-secondary) !important;
}

/* Dark Buttons */
.dark-btn-primary {
    background: var(--dark-primary) !important;
    color: white !important;
    border: none !important;
    transition: all var(--transition-normal);
}

.dark-btn-primary:hover {
    background: var(--dark-primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3) !important;
}

.dark-btn-outline {
    background: transparent !important;
    color: var(--dark-text) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.dark-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--dark-text) !important;
}

/* Dark Language Switcher */
.dark-language-switcher {
    background: var(--dark-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-lang-btn {
    color: var(--dark-text-secondary) !important;
}

.dark-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--dark-text) !important;
}

.dark-lang-btn.active {
    background: var(--dark-primary) !important;
    color: white !important;
}

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

.dark-float {
    animation: float-dark 4s ease-in-out infinite;
}

/* Dark Theme Glow Effects */
.dark-glow {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.2) !important;
}

.dark-primary-glow {
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.3) !important;
}

/* Dark Theme Typography */
.dark-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Theme Sections */
.dark-section {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-section-alt {
    background: var(--dark-surface);
    color: var(--dark-text);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    display: flex;
    background: var(--neutral-100);
    border-radius: var(--radius-xl);
    padding: 0.25rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.lang-btn:hover {
    background: var(--neutral-200);
    color: var(--neutral-800);
}

.lang-btn.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Ripple effect for language buttons */
.lang-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        padding: 0.125rem;
    }
    
    .lang-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .lang-flag {
        font-size: 0.875rem;
    }
    
    .lang-code {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn-modern:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ===== UTILITIES ===== */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.shadow-glow {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}
