/* Modern CSS Reset & Variables - 2025 Style */
:root {
    /* Modern Color Palette */
    --color-primary: #5B21B6;
    --color-primary-light: #7C3AED;
    --color-primary-dark: #4C1D95;
    --color-accent: #EC4899;
    --color-accent-light: #F472B6;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F4F4F5;
    --color-gray-200: #E4E4E7;
    --color-gray-300: #D4D4D8;
    --color-gray-400: #A1A1AA;
    --color-gray-500: #71717A;
    --color-gray-600: #52525B;
    --color-gray-700: #3F3F46;
    --color-gray-800: #27272A;
    --color-gray-900: #18181B;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Animation */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;
    --blur-xl: 24px;
}

/* Dark Theme Variables (Always On) */
:root {
    --color-bg: var(--color-gray-900);
    --color-text: var(--color-gray-100);
    --color-text-muted: var(--color-gray-400);
    --color-surface: var(--color-gray-800);
    --color-surface-hover: var(--color-gray-700);
    --color-border: var(--color-gray-700);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Modern Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Glassmorphism Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(var(--blur-lg));
    background-color: rgba(24, 24, 27, 0.8);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

/* Modern Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-base);
}

.logo::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: -0.5rem;
    right: -0.5rem;
    bottom: -0.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    border-radius: 0.5rem;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.logo:hover::before {
    opacity: 0.1;
}

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

/* Modern Navigation */
.nav {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
    padding: var(--space-xs) 0;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Modern Language Selector */
.lang-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-button:hover {
    background: var(--color-surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 150px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all var(--transition-base);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.lang-option:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

.lang-option:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.lang-option.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Hero Section - 2025 Style */
.hero {
    position: relative;
    min-height: calc(100vh + 4rem);
    display: flex;
    align-items: center;
    padding: calc(4.5rem + var(--space-3xl)) 0 calc(var(--space-3xl) * 2);
    overflow: hidden;
    background: var(--color-bg);
}

/* Animated Gradient Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.hero-bg::before {
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.hero-bg::after {
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
    z-index: 1;
}

/* Modern Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(39, 39, 42, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(var(--blur-lg));
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(91, 33, 182, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0);
    }
}

/* Modern Typography */
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Modern Buttons */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(91, 33, 182, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(91, 33, 182, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

/* Modern Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    text-align: center;
    backdrop-filter: blur(var(--blur-md));
    transition: all var(--transition-base);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    font-weight: 500;
}

/* Modern Services Section */
.services {
    padding: var(--space-3xl) 0;
    position: relative;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.services-bg {
    position: absolute;
    inset: 0;
    background: none;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    animation: fadeInUp 0.6s ease-out;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 768px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Modern Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 1rem;
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

/* Service-specific icon colors */
.service-icon-topllms {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
}

.service-icon-mcipe {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
}

.service-icon-aigoagi {
    background: linear-gradient(135deg, #10b981, #84cc16) !important;
}

.service-icon-translation {
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
}

.service-icon-comingsoon {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Service Card Link */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.service-card:hover .service-link-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Footer */
.footer {
    background: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p,
.footer-section a {
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Mobile Menu */
@media (max-width: 767px) {
    .nav {
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-md) 0;
        text-align: center;
        font-size: 1.125rem;
    }
    
    .lang-selector {
        width: 100%;
    }
    
    .lang-button {
        width: 100%;
        justify-content: center;
    }
}
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    background: var(--color-surface-hover);
    transform: scale(1.05);
}

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

/* Scroll Effects - Fixed for visibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Modern Form Styles */
input, textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all var(--transition-base);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    .stats {
        grid-template-columns: 1fr;
        margin-top: var(--space-2xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}