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

/* ==================== CSS VARIABLES - THEME SYSTEM ==================== */

:root {
    /* Base Colors */
    --ua-blue: #0057B7;
    --ua-gold: #FFD700;
    --dark: #111111;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-600: #4B5563;
    
    /* Theme Colors (defaults) */
    --theme-bg-from: #FFD700;
    --theme-bg-to: #FFA500;
    --theme-text-primary: #111111;
    --theme-text-secondary: #333333;
    --theme-accent: #0057B7;
    --theme-card-bg: #FFFFFF;
    --theme-shadow: rgba(0, 0, 0, 0.12);
    --theme-cta-bg: #0057B7;
    --theme-cta-hover: #004494;
}

/* ==================== THEME VARIANTS ==================== */

/* Company Theme (Yellow/Gold) */
body.theme-company {
    --theme-bg-from: #FFD700;
    --theme-bg-to: #FFA500;
    --theme-text-primary: #111111;
    --theme-text-secondary: #333333;
    --theme-accent: #0057B7;
    --theme-shadow: rgba(0, 0, 0, 0.12);
    --theme-cta-bg: #0057B7;
    --theme-cta-hover: #004494;
}

/* Developer Theme (Cool Blue) */
body.theme-developer {
    --theme-bg-from: #E3F2FD;
    --theme-bg-to: #90CAF9;
    --theme-text-primary: #111111;
    --theme-text-secondary: #1565C0;
    --theme-accent: #0057B7;
    --theme-shadow: rgba(0, 87, 183, 0.15);
    --theme-cta-bg: #0057B7;
    --theme-cta-hover: #004494;
}

/* University Theme (Purple/Academic) */
body.theme-university {
    --theme-bg-from: #E8EAF6;
    --theme-bg-to: #9575CD;
    --theme-text-primary: #111111;
    --theme-text-secondary: #5E35B1;
    --theme-accent: #673AB7;
    --theme-shadow: rgba(103, 58, 183, 0.15);
    --theme-cta-bg: #673AB7;
    --theme-cta-hover: #5E35B1;
}

/* ==================== THEME APPLICATION ==================== */

body.theme-company,
body.theme-developer,
body.theme-university {
    background: linear-gradient(135deg, var(--theme-bg-from) 0%, var(--theme-bg-to) 100%) !important;
    transition: background 0.6s ease;
}

body.theme-company main,
body.theme-developer main,
body.theme-university main {
    background: transparent !important;
}

body.theme-company .bg-white,
body.theme-developer .bg-white,
body.theme-university .bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

body.theme-company .bg-gray-50,
body.theme-developer .bg-gray-50,
body.theme-university .bg-gray-50 {
    background: rgba(255, 255, 255, 0.7) !important;
}

body.theme-company .text-gray-600,
body.theme-developer .text-gray-600,
body.theme-university .text-gray-600 {
    color: var(--theme-text-secondary) !important;
}

body.theme-company .border-gray-200,
body.theme-developer .border-gray-200,
body.theme-university .border-gray-200 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==================== UNIFIED TYPOGRAPHY ==================== */

body.theme-company h1,
body.theme-developer h1,
body.theme-university h1 {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
}

body.theme-company h2,
body.theme-developer h2,
body.theme-university h2 {
    font-size: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

body.theme-company h3,
body.theme-developer h3,
body.theme-university h3 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}

body.theme-company p,
body.theme-developer p,
body.theme-university p {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
}

/* ==================== BUTTONS & CTAs ==================== */

body.theme-company .bg-ua-blue,
body.theme-developer .bg-ua-blue,
body.theme-university .bg-ua-blue {
    background: var(--theme-cta-bg) !important;
    box-shadow: 0 4px 14px rgba(0, 87, 183, 0.25);
    transition: all 0.3s ease;
}

body.theme-company .bg-ua-blue:hover,
body.theme-developer .bg-ua-blue:hover,
body.theme-university .bg-ua-blue:hover {
    background: var(--theme-cta-hover) !important;
    box-shadow: 0 6px 20px rgba(0, 87, 183, 0.35);
    transform: translateY(-2px);
}

/* ==================== SHADOWS ==================== */

body.theme-company .shadow-airbnb,
body.theme-company .shadow-airbnb-sm,
body.theme-developer .shadow-airbnb,
body.theme-developer .shadow-airbnb-sm,
body.theme-university .shadow-airbnb,
body.theme-university .shadow-airbnb-sm {
    box-shadow: 0 4px 16px var(--theme-shadow) !important;
}

body.theme-company .hover\:shadow-airbnb-hover:hover,
body.theme-developer .hover\:shadow-airbnb-hover:hover,
body.theme-university .hover\:shadow-airbnb-hover:hover {
    box-shadow: 0 8px 24px var(--theme-shadow) !important;
}

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

@media (max-width: 768px) {
    body.theme-company h1,
    body.theme-developer h1,
    body.theme-university h1 {
        font-size: 2.5rem !important;
        letter-spacing: -0.025em !important;
    }
    
    body.theme-company h2,
    body.theme-developer h2,
    body.theme-university h2 {
        font-size: 2rem !important;
        letter-spacing: -0.018em !important;
    }
    
    body.theme-company h3,
    body.theme-developer h3,
    body.theme-university h3 {
        font-size: 1.5rem !important;
    }
    
    body.theme-company p,
    body.theme-developer p,
    body.theme-university p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
}

/* ==================== BASE STYLES ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #222222;
    background: #FFFFFF;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header,
main,
footer {
    position: relative;
    z-index: 2;
}

/* ==================== HEADER - TRANSPARENT ==================== */

header {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header > div {
    background: transparent !important;
}

/* ==================== SLIDER CONTAINER ==================== */

#audience-slider-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

#audience-slider-container .glass-slider-track {
    pointer-events: auto;
}

#audience-slider-container.slider-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

#audience-slider-container.slider-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==================== GLASS EFFECTS ==================== */

.glass-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 200ms ease;
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}

.glass-slider-track {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== MODAL ==================== */

#audience-selector {
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    background-color: rgba(0, 0, 0, 0.5);
}

#audience-selector > div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#audience-selector > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi+v//PwMDAwPDv3//GACAAA4//4SA3gAAAABJRU5ErkJggg==');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
}

#audience-selector > div > * {
    position: relative;
    z-index: 2;
}

/* ==================== SLIDER INDICATOR ==================== */

#slider-indicator {
    width: 33.33%;
    background: linear-gradient(135deg, #0057B7 0%, #004494 100%);
    box-shadow: 0 2px 6px rgba(0, 87, 183, 0.2);
    transition: all 350ms cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

#slider-company,
#slider-university,
#slider-developer {
    min-width: 160px;
    width: 160px;
    z-index: 10;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slider-company svg,
#slider-university svg,
#slider-developer svg {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.text-white {
    color: white !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-900 {
    color: #111111 !important;
    font-weight: 600 !important;
}

/* ==================== MOBILE HEADER ==================== */

#mobile-header {
    display: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-header.header-compact {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mobile-header > div > div:last-child {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100px;
    overflow: hidden;
}

#mobile-header.header-compact > div > div:last-child {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.mobile-icon-btn {
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-icon-btn .icon-circle {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-icon-btn .icon-circle svg {
    color: rgba(0, 0, 0, 0.5);
}

.mobile-icon-btn:active .icon-circle {
    transform: scale(0.92);
}

.mobile-icon-btn:active {
    transform: translateY(1px);
}

.mobile-icon-btn.active .icon-circle {
    background: linear-gradient(135deg, #0057B7 0%, #004494 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 87, 183, 0.3);
    transform: scale(1.05);
}

.mobile-icon-btn.active.company .icon-circle {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.mobile-icon-btn.active.university .icon-circle {
    background: linear-gradient(135deg, #9575CD 0%, #7E57C2 100%) !important;
    box-shadow: 0 2px 8px rgba(149, 117, 205, 0.3);
}

.mobile-icon-btn.active .icon-circle svg {
    color: white !important;
}

.mobile-lang-flag {
    opacity: 0.35;
    transition: all 0.2s ease;
    filter: grayscale(0.5);
}

.mobile-lang-flag:active {
    transform: scale(0.88);
}

.mobile-lang-flag.active {
    opacity: 1;
    background: rgba(0, 87, 183, 0.1);
    transform: scale(1.08);
    filter: grayscale(0);
    box-shadow: 0 0 0 2px rgba(0, 87, 183, 0.15);
}

.desktop-header {
    display: block;
}

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

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

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.speech-bubble-left,
.speech-bubble-right {
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s ease;
}

.speech-bubble-left:hover,
.speech-bubble-right:hover {
    transform: translateY(-4px);
}

/* ==================== UTILITY CLASSES ==================== */

.hidden {
    display: none !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15), 0 10px 15px -8px rgba(0, 0, 0, 0.1);
}

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

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-airbnb-sm {
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

.shadow-airbnb {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.shadow-airbnb-hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== HERO CTA ==================== */

.cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(90deg, #0057B7 0%, #0066CC 100%);
    color: white;
    padding: 22px 56px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 6px 16px rgba(0, 87, 183, 0.15);
}

.cta-hero:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 87, 183, 0.25);
}

.cta-hero:active {
    transform: scale(0.98);
}

/* ==================== LANGUAGE DROPDOWN ==================== */

#lang-dropdown,
#modal-lang-dropdown {
    z-index: 100;
    min-width: 80px;
    transition: opacity 0.2s ease;
}

#lang-dropdown.hidden,
#modal-lang-dropdown.hidden {
    pointer-events: none;
}

.lang-option,
.modal-lang-option {
    cursor: pointer;
    transition: all 0.15s ease;
}

#lang-chevron,
#modal-lang-chevron {
    transition: transform 0.2s ease;
}

/* ==================== MOBILE STYLES ==================== */

@media (max-width: 640px) {
    #audience-slider-container {
        display: none !important;
    }
    
    .desktop-header {
        display: none !important;
    }
    
    #mobile-header {
        display: block !important;
    }
    
    .glass-pill {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .glass-pill:hover {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    #hero-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    
    #hero-stats > div {
        padding: 1rem 0;
        border: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    
    #hero-stats > div:last-child {
        border-bottom: none !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .animate-bounce {
        bottom: 1.5rem !important;
    }
    
    #lang-dropdown {
        right: 0;
        min-width: 120px;
    }
    
    button, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    body {
        overflow-x: hidden;
    }
    
    header img {
        height: 2rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: 2.5rem !important;
    }
    
    #main-content {
        padding-top: 7rem !important;
    }
    
    #mobile-header {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    section {
        padding: 4rem 1.5rem !important;
    }
    
    .hover\:scale-\[1\.02\] {
        transform: none !important;
    }
    
    #audience-selector > div {
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }
    
    #audience-selector button {
        font-size: 0.95rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    #audience-selector h3 {
        font-size: 1.25rem !important;
    }
    
    #audience-selector p {
        font-size: 0.9rem !important;
    }
    
    #audience-selector .absolute {
        top: 1rem;
        right: 1rem;
    }
    
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .space-y-6 {
        gap: 1.5rem;
    }
    
    .bg-ua-blue {
        padding: 16px 40px !important;
        font-size: 1rem !important;
    }
    
    #language-training .flex.items-center.justify-center.gap-12 {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    #language-training .hidden.md\:block {
        display: none !important;
    }
}

/* Ultra-clean, minimal design */
/* Every pixel serves a purpose */
/* Modern tech consultancy aesthetic */
