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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Colors */
:root {
    --primary-color: #f15a22;
    --primary-hover: #f7941e;
    --secondary-color: #f58220;
    --dark-color: #000000;
    --gray-color: #808285;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.text-primary {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}

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

.logo-img-footer {
    height: 90px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
    font-size: 0.9rem;
}

.language-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.current-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.flag-pt { 
    background-image: url('../assets/images/br.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.flag-en { 
    background-image: url('../assets/images/eua.svg');
    background-size: contain;
    background-repeat: no-repeat;
     
}
.flag-es { 
    background-image: url('../assets/images/es.svg');
    background-size: contain;
    background-repeat: no-repeat;
    
}

.language-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.language-dropdown:hover .language-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #e9ecef;
    font-weight: 600;
}

.dropdown-item .flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem 0;
}

.mobile-menu-content {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Language Selector */
.mobile-language-selector {
    margin: 1rem 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.mobile-language-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.mobile-language-dropdown {
    display: none;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.mobile-language-dropdown.show {
    display: block;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}


.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item.active {
    background-color: #f8f9fa;
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/dayrFXPGzjrl.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Services Overview */
.services-overview {
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* About Section */
.about-preview {
    padding: 100px 0;
}

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

.about-text h2 {
    margin-bottom: 2rem;
}

.mission-vision-values {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.mvv-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mvv-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.mvv-item h4 {
    margin-bottom: 0.5rem;
}

/* Services Detail */
.services-detail {
    background: var(--light-gray);
}

.service-detail {
    margin-bottom: 4rem;
}

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

.service-detail.reverse .service-content {
    direction: rtl;
}

.service-detail.reverse .service-info {
    direction: ltr;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-main-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    padding-left: 13px;
    margin-top: 12;
}

.technologies,
.benefits {
    margin-top: 2rem;
}

.technologies h4,
.benefits h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.technologies li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.technologies li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-item i {
    color: #28a745;
}

/* Storytelling Section */
.storytelling {
    background: var(--white);
    padding: 80px 0;
}

.storytelling-content h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.storytelling-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.storytelling-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Flow (horizontal) */
.story-flow{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:center;
    gap:2rem;
    margin:2rem 0
}

.flow-step{
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.flow-step:hover,.flow-arrow:hover {
    transform: translateY(-5px);
}

.flow-step img{width:74px;
    height:auto;
    display:block;
    margin:0 auto .5rem
}
.flow-step p{
    font-weight:600;
    font-size:.95rem
}
.flow-arrow{
    font-size:1.6rem;
    color:var(--primary-color);
    font-weight:700
}

/* Timeline */
.timeline{
    border-left:3px solid var(--primary-color);
    margin:2.5rem auto;
    padding-left:2rem;
}
  
.timeline-item{
    position:relative;
    margin-bottom:1.75rem
}
  
.timeline-item::before{
    content:"";
    width:24px;
    height:24px;
    border-radius:50%;
    background:var(--primary-color);
    position:absolute;
    left:-2.8rem;
    top:13px
}
  
.timeline-item h3{
    color:var(--primary-color);
    margin-bottom:.4rem;
    font-size:1.05rem
}
  
.timeline-item p{
    color:#555
}

/* Differentials */
.differentials {
    background: var(--primary-color);
    color: var(--white);
}

.differentials .section-header h2,
.differentials .section-header p {
    color: var(--white);
}

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

.differential-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
}

.differential-item i {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Contact */
.contact {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.footer-contact-item a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-cta h5 {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container, .story-flow {
        padding: 0 15px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-content,
    .service-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .differentials-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-wrapper {
        gap: 1rem;
    }
    
    /* Mobile flow vertical */
    .story-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Hide desktop language selector on mobile */
    .desktop-language-selector {
        display: none;
    }
    
    .mobile-language-selector {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .storytelling-content h1 {
        font-size: 2rem;
    }
    
    .storytelling-content h2 {
        font-size: 1.8rem;
    }
}

/* Show desktop language selector on larger screens */
@media (min-width: 769px) {
    .mobile-language-selector {
        display: none;
    }
    
    .desktop-language-selector {
        display: block;
    }
}

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

.service-card,
.stat-item,
.flow-step,
.flow-arrow,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 70px;
}

.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat {
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-font-smoothing: antialiased !important;
    display: var(--fa-display,inline-block)!important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 2 !important;
    text-rendering: auto
}

/* Smooth transitions for language changes */
[data-i18n] {
    transition: opacity 0.3s ease;
}

body.changing-language [data-i18n] {
    opacity: 0.7;
}