/* your styles go here */
#video_background {
    margin-top: -100px;
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
    z-index: -100;
    background-image: url(../img/poster.jpg);
    background-size: cover;
    background-position: center;
}

#video_background:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Mobile Responsive Optimizations */
@media (max-width: 767px) {
    #intro video {
        display: none;
    }

    #intro {
        background: url(../img/home.jpg) center center no-repeat;
        background-size: cover;
        padding: 100px 15px 60px;
        min-height: 100vh;
    }

    #intro h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    #intro .h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    #intro .logo img {
        width: 80px;
    }

    /* Optimizar secciones para móvil */
    section {
        padding: 40px 0;
    }

    .title {
        font-size: 1.75rem;
    }

    /* Mejorar espaciado de servicios */
    .services-section .col-lg-4 {
        margin-bottom: 30px;
    }

    /* Optimizar estadísticas */
    #statistics .col-lg-3,
    #statistics .col-md-6 {
        margin-bottom: 25px;
    }

    #statistics .col-lg-3:last-child,
    #statistics .col-md-6:last-child {
        margin-bottom: 0;
    }

    /* Mejorar formulario de contacto */
    #contact .form-control {
        margin-bottom: 15px;
    }

    /* Optimizar footer */
    footer .social a {
        margin: 0 8px;
    }

    /* Mejorar botones */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Optimizar imágenes */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Mejorar progress bars */
    .skill-item {
        margin-bottom: 20px;
    }

    /* Mejorar navbar móvil */
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 1.1rem;
    }

    /* Mejorar referencias/trabajos */
    #references-masonry .reference-item {
        padding-left: 10px;
        padding-right: 10px;
    }

    #references-masonry img {
        border-radius: 5px !important;
    }

    /* Optimizar clientes */
    #customers .customer {
        padding: 15px;
    }

    #customers img {
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    #intro h1 {
        font-size: 1.5rem;
    }

    #intro .h3 {
        font-size: 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .navbar-toggler {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991px) {
    #intro {
        padding: 120px 30px 80px;
    }

    #intro h1 {
        font-size: 2rem;
    }

    .services-section .col-lg-4 {
        margin-bottom: 30px;
    }
}