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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2D3142;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Flash Messages */
#flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flash-message {
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
}

.flash-error {
    background: #f44336;
}

.flash-message button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.7)),
                url('https://images.unsplash.com/photo-1589273622051-5f1d4381e379?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.4);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    height: 80px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F5F7FA;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #F5F7FA;
    line-height: 1.8;
}

.hero-truck {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.truck-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.truck-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.truck-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(242, 149, 0, 0.9));
    padding: 15px;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

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

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #F29500);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

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

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

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

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0A2463;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

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

.nav-brand-text {
    white-space: nowrap;
}

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

.nav-menu a {
    color: #0A2463;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #F18F01;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #0A2463;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    background: rgba(10, 36, 99, 0.1);
    border: 2px solid rgba(10, 36, 99, 0.3);
    color: #0A2463;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.language-btn:hover {
    background: rgba(10, 36, 99, 0.15);
    border-color: #0A2463;
}

.language-btn.active {
    background: #F18F01;
    border-color: #F18F01;
    color: white;
}

.language-btn.active:hover {
    background: #E07C00;
    border-color: #E07C00;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

/* Fleet Gallery Section */
.fleet-gallery {
    padding: 100px 0;
    background: white;
}

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

.fleet-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.fleet-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fleet-item:hover img {
    transform: scale(1.1);
}

.fleet-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 36, 99, 0.9));
    padding: 2rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.fleet-item:hover .fleet-overlay {
    transform: translateY(0);
}

.fleet-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.fleet-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.about-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #2D3142;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #F5F7FA;
}

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

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 3rem;
    color: #F18F01;
    transition: all 0.3s ease;
}

.service-icon:hover i {
    transform: scale(1.1);
    color: #FF8C00;
}

.service-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0A2463;
}

.service-item p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2D3142;
}

.service-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 36, 99, 0.9);
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Advantages Section */
.advantages {
    padding: 100px 0;
    background: white;
}

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

.advantage-card {
    text-align: center;
    padding: 2rem;
}

.advantage-icon {
    font-size: 3.5rem;
    color: #0A2463;
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2D3142;
}

.advantage-card p {
    line-height: 1.7;
    color: #666;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: #0A2463;
    color: white;
    text-align: center;
}

.mission .section-title {
    color: white;
}

.mission-text {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #F5F7FA;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0A2463;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    display: none;
    margin-top: 0.5rem;
}

.submit-button {
    background: #0A2463;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #083052;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.success-message i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-info h3 {
    color: #2D3142;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.contact-item i {
    color: #0A2463;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

/* Footer */
.footer {
    background: #0A2463;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B35;
}

.footer-copyright {
    color: #B0B0B0;
}

/* Enhanced Mobile Responsiveness */

/* Mobile Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about,
    .services,
    .advantages,
    .mission,
    .contact {
        padding: 40px 0;
    }
}

/* Tablet Breakpoint: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero Section - Tablet */
    .hero {
        padding: 0 20px;
        background-attachment: scroll;
    }

    .hero-container {
        padding: 0 20px;
        gap: 3rem;
    }

    /* Sobre Nosotros - Tablet */
    .about .container {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Servicios - Tablet */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Ventajas - Tablet */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .advantage-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Misión - Tablet */
    .mission .container {
        padding: 0 40px;
    }

    /* Contacto - Tablet */
    .contact-content {
        grid-template-columns: 60% 40%;
        gap: 2rem;
    }

    /* Footer - Tablet */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Desktop optimizations for > 1024px */
@media (min-width: 1025px) {
    /* Sobre Nosotros - Desktop */
    .about .container {
        max-width: 70%;
        margin: 0 auto;
    }

    /* Servicios - Desktop */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* Ventajas - Desktop */
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Misión - Desktop */
    .mission .container {
        max-width: 80%;
        padding: 0 60px;
        margin: 0 auto;
    }

    /* Contacto - Desktop */
    .contact-content {
        grid-template-columns: 50% 50%;
        gap: 3rem;
    }

    /* Footer - Desktop */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile Breakpoint: < 768px */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    /* Navigation */
    .nav-logo {
        height: 35px;
        max-width: 140px;
    }

    .nav-brand-text {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background-color: #F5F7FA;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(10, 36, 99, 0.1);
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(10, 36, 99, 0.1);
        color: #0A2463;
    }

    .language-switcher {
        order: -1;
        margin-right: 1rem;
    }

    .language-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }

    /* 1. Hero Section - Mobile: Título no más de 2 líneas, subtítulo máximo 3 líneas, botón CTA ancho completo */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-truck {
        order: 1;
        margin-bottom: 1rem;
    }

    .truck-image {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .truck-overlay {
        top: 15px;
        left: 15px;
        padding: 12px;
        font-size: 1.5rem;
    }

    .hero-logo img {
        height: 60px;
    }

    /* Título no debe exceder 2 líneas */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Subtítulo máximo 3 líneas */
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.2;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Botón CTA ancho completo */
    .cta-button {
        width: 100%;
        padding: 20px 40px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1rem auto 0;
        max-width: none;
    }

    /* 2. Sobre Nosotros - Mobile: Padding lateral 15px, tamaño fuente aumentado 10% */
    .about .container {
        padding: 0 15px;
    }

    .about-text {
        padding: 0 15px;
        font-size: 1.1rem; /* Aumentado 10% */
        line-height: 1.7;
    }

    /* 3. Servicios - Mobile: Grid 2 columnas con espacio 15px, íconos 2.5rem */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-icon i {
        font-size: 2.5rem !important;
    }

    /* 4. Ventajas - Mobile: Columnas apiladas verticalmente, padding inferior 20px */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .advantage-card {
        padding: 1.5rem;
        padding-bottom: 20px; /* Padding inferior de 20px */
        margin-bottom: 20px;
    }

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

    /* 5. Misión - Mobile: Padding 20px todos lados, texto justificado */
    .mission .container {
        padding: 20px; /* Padding 20px todos lados */
    }

    .mission-text {
        text-align: justify; /* Texto justificado */
        padding: 20px;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* 6. Contacto - Mobile: Formulario ancho completo, info debajo */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Formulario ancho completo */
    .contact-form-container {
        order: 1;
        padding: 2rem;
    }

    /* Información debajo del formulario */
    .contact-info {
        order: 2;
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 16px 15px;
        font-size: 16px; /* Mínimo 16px para evitar zoom en iOS */
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .submit-button {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 16px 30px;
    }

    /* 7. Footer - Mobile: Enlaces apilados verticalmente, copyright centrado */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

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

    /* Fleet Gallery */
    .fleet-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fleet-item {
        height: 280px;
    }

    .fleet-overlay {
        padding: 1.5rem;
    }

    .fleet-overlay h4 {
        font-size: 1.2rem;
    }

    .fleet-overlay p {
        font-size: 0.9rem;
    }

    /* General Mobile Adjustments */
    .container {
        padding: 0 15px; /* Padding lateral consistente */
    }

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

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

    .about,
    .services,
    .advantages,
    .mission,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 35px;
        max-width: 140px;
    }

    .nav-brand-text {
        font-size: 1rem;
    }

    .hero-logo {
        margin-bottom: 1.5rem;
    }

    .hero-logo img {
        height: 50px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 18px 32px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .service-card,
    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .advantage-card h3 {
        font-size: 1.2rem;
    }

    .advantage-card p {
        font-size: 0.9rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

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

    .about-text,
    .mission-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-item {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .contact-item i {
        font-size: 1rem;
        margin-right: 0.8rem;
    }

    /* Improve scrolling on mobile */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 60px;
    }

    /* Better form layout on small screens */
    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.submit-button.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved mobile navigation transitions */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced touch interactions */
@media (hover: none) {
    .service-card:hover,
    .cta-button:hover,
    .submit-button:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .cta-button:active,
    .submit-button:active {
        transform: scale(0.96);
    }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.submit-button:focus,
.language-btn:focus {
    outline: 3px solid #FF6B35;
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

/* Better contrast for small text */
@media (max-width: 480px) {
    .service-card p,
    .advantage-card p,
    .about-text,
    .mission-text {
        color: #333;
        font-weight: 400;
    }
}