/**
 * MVO Partners - Ultra Modern CSS 2024
 * Inspired by the most impressive websites of 2024
 * Glassmorphism, gradients, micro-interactions, and cutting-edge design
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette (White + Red accents) */
    --brand-red-500: #ef4444; /* red-500 */
    --brand-red-600: #dc2626; /* red-600 */
    --brand-red-700: #b91c1c; /* red-700 */
    --primary-gradient: linear-gradient(135deg, var(--brand-red-500) 0%, var(--brand-red-700) 100%);
    --secondary-gradient: linear-gradient(135deg, #fecaca 0%, #fda4a4 100%);
    --accent-gradient: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Glassmorphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Dark Mode Colors */
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-surface-2: #2a2a2a;
    --dark-text: #ffffff;
    --dark-text-secondary: #a0a0a0;
    
    /* Light Mode Colors */
    --light-bg: #ffffff;
    --light-surface: #f8fafc;
    --light-surface-2: #f1f5f9;
    --light-text: #0f172a;
    --light-text-secondary: #64748b;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* 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);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: var(--transition-fast);
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--light-text);
    margin-bottom: var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--light-text-secondary);
}

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

/* Header - Glassmorphism */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-surface-2);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    min-height: 80px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-normal);
    text-decoration: none;
}

.site-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-text);
    margin: 0;
    white-space: nowrap;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-navigation {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--light-text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-text);
    background: rgba(220, 38, 38, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--light-bg);
    border-radius: var(--radius-full);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-100%);
    transition: var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav {
    padding: var(--space-6);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) 0;
    color: var(--light-text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* Desktop navigation */
@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Hero Section - Ultra Modern */
.hero-section {
    min-height: 100vh;
    background: var(--light-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--light-surface-2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-6);
    line-height: 1.2;
    animation: slideInUp 1s ease-out;
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--light-text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.7;
    font-weight: 400;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    animation: slideInUp 1s ease-out 0.4s both;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Buttons - Ultra Modern */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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: var(--transition-normal);
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-red-600) 0%, var(--brand-red-700) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--light-text);
    box-shadow: var(--shadow-lg);
}

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

.btn-large {
    padding: var(--space-5) var(--space-10);
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: var(--space-32) 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-6);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--light-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Cards - Glassmorphism */
.card {
    background: var(--light-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--light-surface-2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
    border-color: rgba(239, 68, 68, 0.2);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: white;
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-4);
}

.card-content {
    color: var(--light-text-secondary);
    line-height: 1.7;
}

.card-content ul {
    margin-top: var(--space-4);
}

.card-content li {
    padding: var(--space-2) 0;
    color: var(--light-text-secondary);
    position: relative;
    padding-left: var(--space-6);
    list-style: none;
}

.card-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Feature items */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--light-surface-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
    background: var(--light-bg);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: var(--space-2);
}

.feature-item p {
    color: var(--light-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0;
    margin: var(--space-20) 0 0;
    border-top: 2px solid #fee2e2;
    border-bottom: 2px solid #fee2e2;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--light-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Footer */
.site-footer {
    background: var(--light-bg);
    color: var(--light-text-secondary);
    padding: var(--space-20) 0 var(--space-8);
    border-top: 1px solid var(--light-surface-2);
}

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

.footer-section h3 {
    color: var(--light-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: var(--light-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--light-text-secondary);
    transition: var(--transition-fast);
}

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

/* Newsletter form */
.newsletter-form {
    margin-top: var(--space-4);
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.newsletter-input-group input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--light-surface-2);
    border-radius: var(--radius-md);
    background: var(--light-surface);
    color: var(--light-text);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--brand-red-500);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.newsletter-input-group input::placeholder {
    color: var(--light-text-secondary);
}

.newsletter-submit {
    padding: var(--space-3) var(--space-4);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--light-surface-2);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--light-text-secondary);
}

/* Brand imagery */
.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: var(--space-6);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--light-text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--light-text-secondary);
}

/* Contact form specific styles */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--space-10);
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
}

.contact-form .form-group:last-of-type {
    margin-bottom: var(--space-8);
}

/* Background utilities */
.bg-gray-50 {
    background: var(--light-surface);
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 767px) {
    .btn-large {
        padding: var(--space-4) var(--space-8);
        font-size: 1rem;
    }
    
    .section {
        padding: var(--space-20) 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}