/* ===================================
   MAIA Website - Main Stylesheet
   SEO-Optimized, Responsive Design
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --navy-deep: #0A1A44;
    --white-pure: #FFFFFF;
    --blue-electric: #2563FF;
    --red-malta: #E4002B;
    --grey-soft: #F3F4F6;
    --grey-graphite: #1F2937;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--grey-graphite);
    line-height: 1.7;
    background-color: var(--white-pure);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--red-malta);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 26, 68, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-heading);
}

.logo a {
    color: var(--white-pure);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-flag {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white-pure);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--blue-electric);
}

.nav-cta {
    background: var(--blue-electric);
    border-radius: 8px;
    padding: 0.75rem 1.5rem !important;
    color: var(--white-pure) !important;
}

.nav-cta:hover {
    background: var(--red-malta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white-pure);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, #1a2f6f 100%);
    color: var(--white-pure);
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Industry Page Hero - Enhanced Contrast */
.hero.industry-hero {
    background: linear-gradient(135deg, #0A1A44 0%, #162d5c 100%);
}

.hero.industry-hero .hero-title {
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero.industry-hero .hero-description {
    color: #FFFFFF;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero.industry-hero .badge-text {
    color: #FFFFFF;
    font-weight: 700;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(228, 0, 43, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--white-pure);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--blue-electric);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.badge-flag {
    font-size: 1.5rem;
}

.badge-text {
    color: var(--white-pure);
    font-weight: 600;
}

/* Neural Network Visualization */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease 0.5s backwards;
}

.neural-network {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 26, 68, 0.9) 0%, rgba(37, 99, 255, 0.3) 100%);
    border-radius: 20px;
    border: 2px solid rgba(37, 99, 255, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 255, 0.3);
}

/* Animated Neural Network Nodes */
.neural-network::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 255, 0.8) 0%, transparent 4%),
        radial-gradient(circle at 80% 40%, rgba(37, 99, 255, 0.8) 0%, transparent 4%),
        radial-gradient(circle at 50% 20%, rgba(37, 99, 255, 0.8) 0%, transparent 4%),
        radial-gradient(circle at 30% 70%, rgba(37, 99, 255, 0.8) 0%, transparent 4%),
        radial-gradient(circle at 70% 80%, rgba(37, 99, 255, 0.8) 0%, transparent 4%),
        radial-gradient(circle at 50% 50%, rgba(228, 0, 43, 0.6) 0%, transparent 5%),
        radial-gradient(circle at 15% 60%, rgba(37, 99, 255, 0.6) 0%, transparent 3%),
        radial-gradient(circle at 85% 70%, rgba(37, 99, 255, 0.6) 0%, transparent 3%);
    animation: neuralPulse 8s ease-in-out infinite;
}

.neural-network::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg, transparent 0%, rgba(37, 99, 255, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: dataFlow 3s linear infinite;
}

/* Animated data particles */
@keyframes neuralPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes dataFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue-electric);
    color: var(--white-pure);
    border-color: var(--blue-electric);
}

.btn-primary:hover {
    background: var(--red-malta);
    border-color: var(--red-malta);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white-pure);
    border: 2px solid var(--white-pure);
}

.btn-secondary:hover {
    background: var(--white-pure);
    color: var(--navy-deep);
    transform: translateY(-2px);
}

.btn-primary-large,
.btn-secondary-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-primary-large {
    background: var(--blue-electric);
    color: var(--white-pure);
}

.btn-secondary-large {
    background: transparent;
    color: var(--blue-electric);
    border: 2px solid var(--blue-electric);
}

.btn-secondary-large:hover {
    background: var(--blue-electric);
    color: var(--white-pure);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--navy-deep);
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--grey-graphite);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* What MAIA Is Section */
.what-is-maia {
    background: var(--white-pure);
}

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

.capability-card {
    background: var(--white-pure);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--grey-soft);
    transition: all var(--transition-normal);
}

.capability-card:hover {
    border-color: var(--blue-electric);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 255, 0.15);
}

.capability-icon {
    color: var(--blue-electric);
    margin-bottom: 1rem;
}

.capability-card h3 {
    color: var(--navy-deep);
    margin-bottom: 1rem;
}

.capability-card p {
    color: var(--grey-graphite);
    font-size: 1rem;
}

/* Override for white text on dark backgrounds - Industry pages solutions section */
.capability-card[style*="color: white"] p,
.capability-card[style*="color:white"] p {
    color: white !important;
}

/* Core Capabilities Section */
.core-capabilities {
    background: var(--navy-deep);
    color: var(--white-pure);
}

.core-capabilities .section-title,
.core-capabilities .section-intro {
    color: var(--white-pure);
}

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

.capability-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 255, 0.3);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.capability-item:hover {
    background: rgba(37, 99, 255, 0.1);
    border-color: var(--blue-electric);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 255, 0.3);
}

.capability-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.capability-item h3 {
    color: var(--white-pure);
    margin-bottom: 1rem;
}

.capability-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Why Different Section */
.why-different {
    background: var(--white-pure);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white-pure);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-soft);
}

.comparison-table thead {
    background: var(--navy-deep);
    color: var(--white-pure);
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .highlight {
    background: rgba(37, 99, 255, 0.1);
    color: var(--blue-electric);
}

.comparison-table tbody tr:hover {
    background: var(--grey-soft);
}

.check {
    color: #10B981;
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: #EF4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.partial {
    color: #F59E0B;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Numbers Section */
.numbers {
    background: linear-gradient(135deg, var(--blue-electric) 0%, #1e4ed8 100%);
    color: var(--white-pure);
}

.numbers .section-title {
    color: var(--white-pure);
}

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

.number-item {
    text-align: center;
}

.number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white-pure);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.number-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Industries Section */
.industries {
    background: var(--grey-soft);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: var(--white-pure);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    color: var(--grey-graphite);
}

.industry-card:hover {
    border-color: var(--blue-electric);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 255, 0.15);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    color: var(--navy-deep);
    font-size: 1.125rem;
}

/* Security Section */
.security {
    background: var(--navy-deep);
    color: var(--white-pure);
}

.security .section-title,
.security .section-intro {
    color: var(--white-pure);
}

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

.security-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 255, 0.3);
    transition: all var(--transition-normal);
}

.security-item:hover {
    background: rgba(37, 99, 255, 0.1);
    transform: translateY(-5px);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-item h3 {
    color: var(--white-pure);
    margin-bottom: 1rem;
}

.security-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
    background: var(--white-pure);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--navy-deep);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.principles-list {
    list-style: none;
    padding-left: 0;
}

.principles-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-soft);
}

.principles-list li:last-child {
    border-bottom: none;
}

.maltese-cross-network {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--blue-electric) 0%, var(--navy-deep) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.maltese-cross-network::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--red-malta);
    opacity: 0.2;
    clip-path: polygon(
        50% 0%, 55% 40%, 100% 35%, 65% 50%,
        100% 65%, 55% 60%, 50% 100%, 45% 60%,
        0% 65%, 35% 50%, 0% 35%, 45% 40%
    );
}

/* CTA Section */
.cta-section {
    background: var(--white-pure);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-title {
    color: var(--navy-deep);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: var(--grey-graphite);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--navy-deep);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--blue-electric);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--navy-deep);
    color: var(--white-pure);
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    color: var(--white-pure);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--blue-electric);
}

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

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 255, 0.6);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced visual effects for cards */
.capability-card,
.capability-item,
.industry-card {
    position: relative;
    overflow: hidden;
}

.capability-card::before,
.capability-item::before,
.industry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.capability-card:hover::before,
.capability-item:hover::before,
.industry-card:hover::before {
    opacity: 1;
    animation: rotate360 10s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 1rem 4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .capabilities-grid,
    .industries-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

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

    .number {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

/* 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-width: 0;
}

/* Print Styles */
@media print {
    .header,
    .hero-visual,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}
