:root {
    --bg-color: #050608;
    --surface-color: #12141d;
    --primary-color: #0d6efd;
    --accent-color: #ffc107;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: rgba(255,255,255,0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

/* Header Adjustments */
header {
    background-color: rgba(5, 6, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dynamic Hero Section */
.hero-modern {
    position: relative;
    padding: 160px 0 60px;
    background: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-modern h1,
.hero-modern h2,
.hero-modern h3,
.hero-modern p,
.hero-modern .lead {
    color: #12141d !important;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../img/vio_x205_ang_sx_b.jpg') right center / contain no-repeat;
    z-index: 0;
    opacity: 0.9;
}

/* Ensure content stays above the background image */
.hero-modern .container {
    position: relative;
    z-index: 1;
}

/* Hide or adjust the side image on mobile so it doesn't overlap text awkwardly */
@media (max-width: 991px) {
    .hero-modern::after {
        width: 100%;
        opacity: 0.2;
        background-position: center;
        background-size: cover;
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 16px;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

/* Monochromatic filter for logos */
.tocc-mono {
    filter: invert(1) grayscale(1) brightness(1.5);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tocc-mono:hover {
    opacity: 1;
}

/* Custom Buttons */
.btn-modern {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Logo sizing */
#main-logo {
    height: 120px;
    transition: all 0.3s ease;
}

.partner-logo {
    object-fit: contain;
    width: auto !important;
    max-width: 100% !important;
    transition: all 0.3s ease;
}

.logo-eu {
    height: 60px !important;
}

.logo-mic {
    height: 45px !important; /* Scaled down relative to EU logo */
}

/* Responsive Header */
@media (max-width: 1199px) {
    #main-logo {
        height: 80px;
    }
    .logo-eu {
        height: 45px !important;
    }
    .logo-mic {
        height: 35px !important;
    }
}

@media (max-width: 991px) {
    #main-logo {
        height: 60px;
    }
    .logo-eu {
        height: 35px !important;
    }
    .logo-mic {
        height: 25px !important;
    }
    .navbar-brand {
        margin-right: 1rem !important;
    }
}

@media (max-width: 575px) {
    #main-logo {
        height: 45px;
    }
    .logo-eu {
        height: 25px !important;
    }
    .logo-mic {
        height: 18px !important;
    }
    .partner-logos {
        gap: 8px !important;
    }
}

/* Global Text Contrast Fixes */
p, .text-muted {
    color: var(--text-main) !important; /* Force light text for readability */
    opacity: 0.9;
}

.lead {
    color: #fff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
}

/* Keep actual muted text in footer or specific small notes slightly dimmer */
footer p, footer .text-muted {
    opacity: 0.7;
}

