/* Optimized Main Styles for Visionarys Landing Page */

:root {
    --primary-color: #0e3253;
    --secondary-color: #3498db;
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --dark-bg: #222222;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 100px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Header Styles - Optimized */
header {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(14, 50, 83, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: auto;
    height: 100%;
    max-height: var(--header-height);
    overflow: hidden;
}

.logo img {
    height: auto;
    width: 220px;
    margin-right: 15px;
    transition: var(--transition);
    object-fit: contain;
    max-height: 80px;
}

/* Navigation - Optimized */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.05rem;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Language Switcher - Optimized */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: var(--transition);
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Hero Section - Optimized */
.hero {
    background-image: linear-gradient(rgba(14, 50, 83, 0.7), rgba(14, 50, 83, 0.7)), url('../images/ai-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--accent-color);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: -var(--header-height);
    padding-top: calc(8rem + var(--header-height));
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 50, 83, 0.4) 0%, rgba(14, 50, 83, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section Styles - Optimized */
section {
    padding: 4rem 0;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* About Section - Optimized */
.about {
    background-color: var(--accent-color);
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Work Section - Optimized */
.work {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-card {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.work-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.work-card p {
    color: #666;
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.coming-soon i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Approach Section - Optimized */
.approach {
    background-color: var(--accent-color);
    padding: 5rem 0;
}

.approach-content {
    max-width: 900px;
    margin: 0 auto;
}

.approach-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.approach-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    transition: var(--transition);
}

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

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.benefit-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Footer - Optimized */
footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 180px;
    height: auto;
    max-height: 50px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
}

.footer-social a {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Menu Button - Removed as per request */
/* .mobile-menu-btn { ... } */

/* Responsive Styles - Optimized */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
    }

    .logo img {
        width: 180px;
        max-height: 70px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo img {
        width: 160px;
        max-height: 50px;
    }

    /* Hide navigation on mobile */
    nav {
        display: none;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .approach-text h3 {
        font-size: 1.5rem;
    }
    
    /* Ensure language switcher is still visible and positioned correctly */
    header .container {
        justify-content: space-between; /* Logo on left, switcher on right */
    }
    .language-switcher {
        margin-left: 1rem; /* Adjust margin if needed */
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 60px;
    }

    .logo img {
        width: 140px;
        max-height: 40px;
    }

    /* Navigation remains hidden based on 768px breakpoint */
    /* Remove styles related to mobile menu button and nav toggling */
    /* .mobile-menu-btn { display: block; } */
    /* nav { position: fixed; ... } */
    /* nav.active { ... } */
    /* nav ul { flex-direction: column; ... } */
    /* nav ul li { margin: 0.5rem 0; ... } */

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }

    .footer-social {
        margin-top: 1.5rem;
        justify-content: center;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading for images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* AI Agent Section Styles */
.ai-agent {
    padding: 60px 0;
    background-color: #f9f9f9;
    /* Light grey background */
}

.ai-agent .container {
    max-width: 1140px;
    /* Match other sections */
    margin: 0 auto;
    padding: 0 15px;
}

.ai-agent .section-title {
    text-align: center;
    margin-bottom: 40px;
    /* Note: General section-title has margin-bottom: 3rem. Keeping 40px for now as it was in the original inline style. */
}

/* Use primary color and style for consistency with other sections */
.ai-agent .section-title h2 {
    font-size: 2.5rem;
    /* Matched general section title */
    margin-bottom: 1rem;
    /* Matched general section title */
    color: var(--primary-color);
    /* font-weight: 600; Removed to match general section title */
}

.ai-agent .section-title p {
    font-size: 1.1em;
    color: #666;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.ai-agent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ai-agent-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* Note: Button uses a different blue (#0056b3) than the main primary color (#0e3253). Assuming this is intended. */
.ai-agent-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 25px;
    background-color: #0056b3;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.ai-agent-download .btn:hover {
    background-color: #004494;
    /* Darker shade */
}
