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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #343A40;
    overflow-x: hidden;
}

/* Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --amarelo-bandeira-color: #FFD700;
    --dark-color: #343A40;
    --white-color: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #007BFF 0%, #28A745 100%);
    --gradient-dark: linear-gradient(135deg, #343A40 0%, #007BFF 100%);
    --shadow-light: 0 4px 20px rgba(0, 123, 255, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 123, 255, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 123, 255, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

/* Improved secondary button for better visibility */
.btn-secondary-improved {
    background: rgba(255, 255, 255, 0.15);
    color: var(--amarelo-bandeira-color);
    border: 2px solid var(--amarelo-bandeira-color);
    backdrop-filter: blur(10px);
}

.btn-secondary-improved:hover {
    background: var(--amarelo-bandeira-color);
    color: var(--primary-color);
    border-color: var(--amarelo-bandeira-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

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

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
}

.logo-text img {
    display: flex;
    gap: 30px;
    height: 60px;
}

.logo-text-rod {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.98);
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuit-move 20s linear infinite;
    z-index: -1;
}

@keyframes circuit-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.element-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.element-4 {
    width: 30px;
    height: 30px;
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.element-5 {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    color: var(--white-color);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
    padding-bottom: 20px;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
    background: linear-gradient(45deg, #FFFFFF, #28A745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fade-in 0.8s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fade-in {
    to { opacity: 0.9; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fade-in 0.8s ease-out 1.2s forwards;
    opacity: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.gear {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.gear::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.gear-large {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    animation-duration: 15s;
}

.gear-medium {
    width: 120px;
    height: 120px;
    top: 90px;
    left: 90px;
    animation-duration: 10s;
    animation-direction: reverse;
}

.gear-small {
    width: 60px;
    height: 60px;
    top: 120px;
    left: 120px;
    animation-duration: 8s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--white-color);
    border-bottom: 2px solid var(--white-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - Fixed display issues */
.about {
    padding: 100px 0;
    background: var(--white-color);
}

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

.about-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-innovation,
.icon-connection,
.icon-future {
    width: 40px;
    height: 40px;
    background: var(--white-color);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-innovation::before {
    content: '⚡';
    font-size: 20px;
}

.icon-connection::before {
    content: '🔗';
    font-size: 20px;
}

.icon-future::before {
    content: '🚀';
    font-size: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: #f8f9fa;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.mission-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}

.tech-node {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.tech-node.active {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

.tech-node::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 20px;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
}

.tech-node.active::before {
    background: var(--primary-color);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: var(--white-color);
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-partners 15s linear infinite;
}

.partner-logo {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    min-width: 200px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.partner-logo img {
    width: 150px;
    height: 75px;
    object-fit: contain;
    border-radius: 8px;
}

.partner-logo span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Impact Section - Fixed timeline display */
.impact {
    padding: 100px 0;
    background: var(--white-color);
}

.impact-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.impact-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin: 0 30px;
    transition: all 0.3s ease;
    max-width: 350px;
}

.timeline-content:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--white-color);
}

/* Signup Section */
.signup {
    padding: 100px 0;
    background: #f8f9fa;
}

.signup-content {
    display: grid;
    align-items: start;
}

.signup-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.signup-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.benefit-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.signup-form-container {
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.signup-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content {
    color: var(--white-color);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.sponsors-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsors-section h4 {
    margin-bottom: 30px;
    color: var(--white-color);
    font-size: 1.3rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsor-logo {
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-logo img {
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover img {
    opacity: 1;
}

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

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Engineers Section */
.engineers {
    padding: 100px 0;
    background: #f8f9fa;
}

.engineers-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.engineer-card {
    flex: 0 0 280px;
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.engineer-card.suggestion-card {
    background: var(--gradient-primary);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 400px;
}

.engineer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.engineer-card:hover .engineer-image {
    transform: scale(1.05);
}

.engineer-info {
    padding: 20px;
}

.engineer-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.engineer-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.engineer-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.engineer-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.achievement-tag {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.engineer-dates {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.suggestion-card .suggestion-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.suggestion-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

.suggestion-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.suggestion-card .btn {
    background: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.suggestion-card .btn:hover {
    background: var(--amarelo-bandeira-color);
    transform: translateY(-2px);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--primary-color);
}

/* Engineer Modal */
.engineer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.engineer-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white-color);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scale-in 0.3s ease;
}

.modal-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.modal-engineer-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-engineer-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-engineer-dates {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.modal-engineer-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-achievements {
    margin-bottom: 25px;
}

.modal-achievements h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modal-achievements ul {
    list-style: none;
    padding: 0;
}

.modal-achievements li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.modal-achievements li:last-child {
    border-bottom: none;
}

.modal-achievements li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Countries Development Section */
.countries-development {
    padding: 100px 0;
    background: #f8f9fa;
}

.countries-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container-countries {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn-prev-countries,
.carousel-btn-next-countries {
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn-prev-countries:hover,
.carousel-btn-next-countries:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.carousel-btn-prev-countries:disabled,
.carousel-btn-next-countries:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-track-container-countries {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track-countries {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.country-card {
    flex: 0 0 100%;
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    min-height: 600px;
}

.country-card:hover {
    box-shadow: var(--shadow-medium);
}

.country-header {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.country-flag {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.country-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white-color);
}

.country-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.country-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.country-body {
    padding: 40px;
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.country-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.country-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.country-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.highlight-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    color: var(--white-color);
    flex-shrink: 0;
}

.highlight-text {
    font-size: 0.95rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Special styling for Brazil card */
.country-card.brazil-card {
    background: var(--gradient-primary);
    color: var(--white-color);
}

.country-card.brazil-card .country-header {
    background: rgba(255, 255, 255, 0.1);
}

.country-card.brazil-card .country-body {
    color: var(--white-color);
}

.country-card.brazil-card .country-description {
    color: rgba(255, 255, 255, 0.9);
}

.country-card.brazil-card .country-stat {
    background: rgba(255, 255, 255, 0.15);
}

.country-card.brazil-card .stat-value {
    color: var(--amarelo-bandeira-color);
}

.country-card.brazil-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.country-card.brazil-card .highlight-item {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--amarelo-bandeira-color);
}

.country-card.brazil-card .highlight-icon {
    background: var(--amarelo-bandeira-color);
    color: var(--dark-color);
}

.country-card.brazil-card .highlight-text {
    color: var(--white-color);
}

.carousel-indicators-countries {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-indicator-countries {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator-countries.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator-countries:hover {
    background: var(--primary-color);
}

/* COMPREHENSIVE MOBILE RESPONSIVENESS FIXES */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-text img {
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        padding: 30px 0;
        gap: 25px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 18px;
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Enhanced Hero Section Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 20px 15px;
        min-height: calc(100vh - 60px);
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .title-line {
        padding-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .gear-container {
        width: 200px;
        height: 200px;
        margin-top: 20px;
    }

    .gear-large {
        width: 140px;
        height: 140px;
        top: 30px;
        left: 30px;
    }

    .gear-medium {
        width: 80px;
        height: 80px;
        top: 60px;
        left: 60px;
    }

    .gear-small {
        width: 40px;
        height: 40px;
        top: 80px;
        left: 80px;
    }

    /* Optimize floating elements for mobile */
    .floating-elements {
        display: none; /* Hide on mobile for better performance */
    }

    .circuit-pattern {
        background-size: 30px 30px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* Enhanced Section Headers Mobile */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Enhanced About Section Mobile */
@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .about-card {
        margin: 0 auto;
        max-width: 350px;
        padding: 30px 25px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .icon-innovation,
    .icon-connection,
    .icon-future {
        width: 35px;
        height: 35px;
    }

    .about-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .about-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Enhanced Mission Section Mobile */
@media (max-width: 768px) {
    .mission {
        padding: 60px 0;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .mission-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .mission-stats {
        justify-content: space-around;
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 120px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .tech-node {
        width: 50px;
        height: 50px;
    }

    .tech-node::before {
        right: -15px;
        width: 10px;
    }
}

/* Enhanced Partners Section Mobile */
@media (max-width: 768px) {
    .partners {
        padding: 60px 0;
    }

    .partners-carousel {
        padding: 30px 0;
    }

    .partners-track {
        gap: 30px;
    }

    .partner-logo {
        min-width: 150px;
        padding: 15px;
    }

    .partner-logo img {
        width: 120px;
        height: 60px;
    }

    .partner-logo span {
        font-size: 1rem;
    }
}

/* Enhanced Impact Section Mobile */
@media (max-width: 768px) {
    .impact {
        padding: 60px 0;
    }

    .impact-timeline {
        padding: 0 15px;
    }

    .impact-timeline::before {
        left: 25px;
        transform: none;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 50px;
        margin-bottom: 40px;
    }

    .timeline-marker {
        left: 25px;
        transform: none;
    }

    .timeline-content {
        margin-left: 30px;
        margin-right: 0;
        max-width: none;
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Enhanced Engineers Section Mobile */
@media (max-width: 768px) {
    .engineers {
        padding: 60px 0;
    }

    .engineers-carousel {
        padding: 0 15px;
    }

    .carousel-container {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-btn {
        display: none; /* Hide navigation buttons on mobile */
    }

    .carousel-track-container {
        width: 100%;
        margin: 0 auto;
    }

    .carousel-track {
        gap: 15px;
        padding: 0 10px;
    }

    .engineer-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .engineer-card.suggestion-card {
        min-height: 350px;
        padding: 30px 15px;
    }

    .engineer-image {
        height: 180px;
    }

    .engineer-info {
        padding: 15px;
    }

    .engineer-name {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .engineer-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .engineer-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .achievement-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .engineer-dates {
        font-size: 0.75rem;
    }

    .suggestion-card .suggestion-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .suggestion-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .suggestion-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .carousel-indicators {
        margin-top: 20px;
        gap: 6px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* Enable horizontal scroll for mobile */
    .carousel-track-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-track-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        width: max-content;
    }
}

/* Enhanced Engineer Modal Mobile */
@media (max-width: 768px) {
    .engineer-modal {
        padding: 10px;
    }

    .modal-content {
        width: calc(100% - 20px);
        max-height: calc(100vh - 40px);
        margin: 20px 0;
    }

    .modal-header {
        height: 200px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-engineer-name {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .modal-engineer-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .modal-engineer-dates {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .modal-engineer-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .modal-achievements {
        margin-bottom: 20px;
    }

    .modal-achievements h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .modal-achievements li {
        font-size: 0.85rem;
        padding: 6px 0;
    }
}

/* Enhanced Countries Development Section Mobile */
@media (max-width: 768px) {
    .countries-development {
        padding: 60px 0;
    }

    .countries-carousel {
        padding: 0 15px;
    }

    .carousel-container-countries {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-btn-prev-countries,
    .carousel-btn-next-countries {
        display: none; /* Hide navigation buttons on mobile */
    }

    .carousel-track-container-countries {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-track-container-countries::-webkit-scrollbar {
        display: none;
    }

    .carousel-track-countries {
        width: max-content;
    }

    .country-card {
        flex: 0 0 calc(100vw - 40px);
        min-height: 550px;
        scroll-snap-align: start;
        margin-right: 10px;
    }

    .country-header {
        height: 120px;
    }

    .country-flag {
        width: 50px;
        height: 33px;
        top: 15px;
        right: 15px;
    }

    .country-header-content {
        padding: 20px;
    }

    .country-name {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .country-subtitle {
        font-size: 1rem;
    }

    .country-body {
        padding: 25px 20px;
    }

    .country-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .country-stat {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .country-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .country-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .highlight-item {
        padding: 12px;
        gap: 12px;
    }

    .highlight-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .highlight-text {
        font-size: 0.9rem;
    }

    .carousel-indicators-countries {
        margin-top: 20px;
        gap: 6px;
    }

    .carousel-indicator-countries {
        width: 10px;
        height: 10px;
    }
}

/* Enhanced Signup Section Mobile */
@media (max-width: 768px) {
    .signup {
        padding: 60px 0;
    }

    .signup-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .signup-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .signup-benefits {
        gap: 15px;
    }

    .benefit {
        padding: 12px;
        gap: 12px;
    }

    .benefit-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .signup-form-container {
        padding: 25px 20px;
    }

    .signup-form h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 15px;
    }

    .checkbox-label {
        font-size: 13px;
    }
}

/* Enhanced CTA Section Mobile */
@media (max-width: 768px) {
    .cta {
        padding: 60px 0;
    }

    .cta-content {
        padding: 0 15px;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .cta .btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }
}

/* Enhanced Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .footer-brand {
        text-align: center;
    }

    .logo-text-rod {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
        gap: 12px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .sponsors-section {
        padding: 30px 0;
    }

    .sponsors-section h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .sponsors-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sponsor-logo img {
        height: 35px;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 0.85rem;
    }
}

/* Ultra Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .mission-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stat {
        min-width: 100px;
    }

    .engineer-card {
        flex: 0 0 250px;
    }

    .country-card {
        flex: 0 0 calc(100vw - 30px);
        min-height: 500px;
    }

    .country-stats {
        grid-template-columns: 1fr;
    }

    .country-name {
        font-size: 1.7rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }

    .modal-content {
        width: calc(100% - 10px);
        margin: 10px 0;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-engineer-name {
        font-size: 1.4rem;
    }
}

/* Fix button responsiveness */
@media (max-width: 768px) {
    .btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Improve touch targets */
@media (max-width: 768px) {
    .nav-link,
    .carousel-indicator,
    .carousel-indicator-countries {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Fix horizontal scroll issues */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }
}

/* Improve animations performance on mobile */
@media (max-width: 768px) {
    .gear {
        animation-duration: 20s;
    }

    .circuit-pattern {
        animation-duration: 30s;
    }

    [data-aos] {
        animation-duration: 0.4s;
    }
}
