
/* --- Global Styles & Variables --- */
:root {
    --primary-red: #C8102E;
    --primary-blue: #003893;
    --accent-gold: #FFD700;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    --bg-light: #f7f9fc;
    --bg-dark: #2c3e50;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    background-color: var(--light-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.content-section {
    padding: 6rem 0;
    overflow: hidden; /* Fix for animation overflow */
}

.section-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-hover);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    background: url('https://images.unsplash.com/photo-1579870191218-f748114b51da?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 56, 147, 0.7), rgba(200, 16, 46, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 1s ease-out 1s;
    animation-fill-mode: backwards;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-text);
}

/* --- Companies Section --- */
.companies-section {
    background-color: var(--bg-light);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.company-card {
    background: var(--light-text);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-red);
}

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- AI Mission Section --- */
.ai-mission-section {
    background-color: var(--primary-blue);
    color: var(--light-text);
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.ai-mission-section .section-title, .ai-mission-section .section-title::after {
    color: var(--light-text);
    border-color: var(--accent-gold);
}
.ai-mission-section .section-text {
    color: #ddd;
}

/* --- Footer --- */
.main-footer-section {
    background: var(--dark-text);
    color: #aab;
    text-align: center;
    padding: 2rem 0;
}

.main-footer-section p {
    margin: 0.5rem 0;
}


/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplification for this example. A real-world case would use a hamburger menu. */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h2.section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-section {
        padding: 4rem 0;
    }
}
