/* Infinity Brasil Enterprise Visual System - Clean CSS3 Frameworkless Architect */
:root {
    --primary-deep: #0B2545;
    --primary-light: #134074;
    --accent-gold: #C5A059;
    --accent-gold-hover: #D4AF37;
    --neutral-dark: #0A1118;
    --neutral-light: #F4F6F9;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(11, 37, 69, 0.7);
    --font-sans: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--neutral-dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent-gold);
    color: var(--neutral-dark);
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.2s;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 20px; }

/* Visual Accents & Glow Elements */
.glow-bg {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 600px;
    background: radial-gradient(circle, rgba(19, 64, 116, 0.25) 0%, rgba(11, 37, 69, 0) 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* Header & Navigation Architecture */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}
.main-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 17, 24, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-smooth);
}
.main-header.scrolled .header-container {
    height: 70px;
}

.site-logo {
    height: 50px;
    width: auto;
}
.site-logo path {
    transition: var(--transition-smooth);
}
.main-header.scrolled .site-logo path[stroke="#0B2545"] {
    stroke: #FFFFFF;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

/* Dropdown Architecture */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dropdown-toggle .arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 290px;
    background: rgba(10, 17, 24, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.dropdown-menu li a:hover {
    background: rgba(19, 64, 116, 0.4);
}
.dropdown-menu li a strong {
    display: block;
    font-size: 14px;
    color: var(--white);
}
.dropdown-menu li a span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.menu-icon {
    width: 22px;
    height: 22px;
    fill: var(--accent-gold);
    flex-shrink: 0;
}

/* Hero Section Engineering */
.hero-section {
    position: relative;
    padding: 220px 0 140px 0;
    background: radial-gradient(circle at 90% 10%, rgba(19, 64, 116, 0.15) 0%, transparent 50%);
    text-align: center;
}
.tech-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.6;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(19, 64, 116, 0.3);
    border: 1px solid rgba(19, 64, 116, 0.5);
    border-radius: 30px;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.hero-tagline {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-description {
    font-size: clamp(16px, 1.5vw, 19px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 750px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

/* Button UI System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.btn-primary {
    background: var(--accent-gold);
    color: var(--neutral-dark);
}
.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--glass-border);
    margin-left: 16px;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--white);
}

/* Matrix Matrix Solutions Sections */
.matrix-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(11, 37, 69, 0.15));
}

.section-header {
    margin-bottom: 60px;
}
.text-center { text-align: center; }
.section-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--white);
}
.accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 15px auto 0 auto;
}
.about-content .accent-line { margin: 15px 0 0 0; }

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.matrix-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--white);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.matrix-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.4);
    background: rgba(11, 37, 69, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(19, 64, 116, 0.3);
    border: 1px solid rgba(19, 64, 116, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}
.matrix-card:hover .card-icon-wrapper {
    background: var(--accent-gold);
    color: var(--neutral-dark);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.matrix-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.matrix-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    min-height: 66px;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.arrow-right {
    transition: transform 0.3s ease;
}
.matrix-card:hover .arrow-right {
    transform: translateX(4px);
}

/* About Section CSS Layout */
.about-section {
    padding: 100px 0;
    background: rgba(255,255,255,0.01);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content p {
    color: rgba(255,255,255,0.7);
    margin-top: 30px;
    font-size: 16px;
}

.about-graphics {
    display: flex;
    justify-content: center;
    position: relative;
}
.abstract-geometry {
    position: relative;
    width: 300px;
    height: 300px;
}
.geo-circle {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}
.ring-2 {
    inset: 40px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    animation-direction: reverse;
}
.geo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-deep);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

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

/* Strategic Pillars Section */
.pillars-section {
    padding: 100px 0;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.pillar-item {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--accent-gold);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    transition: var(--transition-smooth);
}
.pillar-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}
.pillar-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}
.pillar-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Performance Animated Counter/Indicators */
.indicators-section {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--primary-deep) 0%, #061424 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 40px;
}
.counter {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}
.indicator-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section UI */
.cta-section {
    padding: 120px 0;
    text-align: center;
}
.cta-container {
    background: linear-gradient(135deg, rgba(19, 64, 116, 0.4) 0%, rgba(11, 37, 69, 0.4) 100%);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.cta-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
}
.cta-container p {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* Footer UX Architecture */
.main-footer {
    background: #050B11;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand p {
    margin-top: 20px;
    line-height: 1.7;
}
.footer-logo {
    height: 40px;
}
.footer-links h5, .footer-contact h5 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links ul li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}
.social-icons {
    margin-top: 20px;
}
.social-icons a {
    color: var(--white);
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.social-icons a:hover {
    background: var(--accent-gold);
    color: var(--neutral-dark);
}
.social-icons svg {
    width: 18px;
    height: 18px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent-gold); }

/* Responsive Grid Mechanics Engine */
.mobile-nav-toggle { display: none; }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 2000;
    }
    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        position: relative;
        transition: background 0.3s;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--white);
        left: 0;
        transition: transform 0.3s;
    }
    .hamburger::before { top: -6px; }
    .hamburger::after { top: 6px; }
    
    /* Active State Mobile Menu */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }
    
    .nav-menu {
        position: fixed;
        inset: 0 0 0 auto;
        width: 100%;
        max-width: 340px;
        background: #0A1118;
        border-left: 1px solid var(--glass-border);
        padding: 120px 40px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        margin-top: 10px;
        display: none;
    }
    .dropdown.open .dropdown-menu { display: block; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .indicators-grid { grid-template-columns: 1fr; gap: 30px; }
    .btn { width: 100%; }
    .btn-secondary { margin-left: 0; margin-top: 12px; }
}

/* Structural Engine Animation Reveal classes */
.reveal-fade, .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.visible {
    opacity: 1;
    transform: translate(0) !important;
}
