/* ===== CONTACTS RESPONSIVE CSS - MOBILE FIRST ===== */

/* ===== RESPONSIVE VARIABLES ===== */
:root {
    /* Mobile Variables - Smaller sizes */
    --mobile-header-height: 60px;
    --mobile-section-padding: 15px;
    --mobile-container-padding: 1rem;
    --mobile-container-margin: 15px;
    --mobile-font-size-h1: 1.5rem;
    --mobile-font-size-h2: 1.2rem;
    --mobile-font-size-h3: 1rem;
    --mobile-font-size-h4: 0.9rem;
    --mobile-font-size-large: 0.9rem;
    --mobile-font-size-normal: 0.8rem;
    --mobile-font-size-small: 0.75rem;
    --mobile-gap: 0.8rem;
    --mobile-radius: 10px;

    /* Additional Mobile Variables */
    --mobile-logo-width: 50px;
    --mobile-logo-divider-width: 150%;
    --mobile-nav-gap: 1.5rem;
    --mobile-hero-title-size: 1.8rem;
    --mobile-hero-text-size: 1rem;
    --mobile-contact-form-gap: 1rem;
    --mobile-contact-card-gap: 1rem;
    --mobile-social-icon-size: 60px;
    --mobile-social-button-padding: 14px 20px;
    --mobile-social-card-padding: 8px;
    --mobile-button-padding: 1rem 1.5rem;
    --mobile-form-input-padding: 12px 0;
    --mobile-call-button-size: 45px;
    --mobile-call-button-bottom: 15px;
    --mobile-call-button-right: 15px;
    --mobile-qr-image-size: 120px;
}

/* ===== MOBILE RESPONSIVE (≤480px) ===== */
@media (max-width: 480px) {
    :root {
        --header-height: var(--mobile-header-height);
        --section-padding: var(--mobile-section-padding);
        --container-padding: var(--mobile-container-padding);
        --container-margin: var(--mobile-container-margin);
        --font-size-h1: var(--mobile-font-size-h1);
        --font-size-h2: var(--mobile-font-size-h2);
        --font-size-h3: var(--mobile-font-size-h3);
        --font-size-h4: var(--mobile-font-size-h4);
        --font-size-large: var(--mobile-font-size-large);
        --font-size-normal: var(--mobile-font-size-normal);
        --font-size-small: var(--mobile-font-size-small);
        --gap-base: var(--mobile-gap);
        --radius-md: var(--mobile-radius);

        /* Override additional variables for mobile */
        --logo-width: var(--mobile-logo-width);
        --logo-divider-width: var(--mobile-logo-divider-width);
        --nav-gap: var(--mobile-nav-gap);
        --contact-form-gap: var(--mobile-contact-form-gap);
        --contact-card-gap: var(--mobile-contact-card-gap);
        --social-icon-size: var(--mobile-social-icon-size);
        --social-button-padding: var(--mobile-social-button-padding);
        --social-card-padding: var(--mobile-social-card-padding);
        --button-padding: var(--mobile-button-padding);
        --form-input-padding: var(--mobile-form-input-padding);
        --call-button-size: var(--mobile-call-button-size);
        --call-button-bottom: var(--mobile-call-button-bottom);
        --call-button-right: var(--mobile-call-button-right);
        --qr-image-size: var(--mobile-qr-image-size);
    }

    /* Global Mobile Styles */
    body {
        padding-top: var(--header-height);
        overflow-x: hidden;
    }

    /* ===== HEADER RESPONSIVE ===== */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0.5rem var(--container-padding);
        height: var(--header-height);
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-image {
        width: var(--logo-width);
        height: auto;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-divider,
    .breadcrumb {
        display: none;
    }

    /* Navigation Menu - Hide on mobile */
    .navigation-menu {
        display: none;
    }

    /* Mobile Menu Button */
    .mobile-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        position: relative;
    }

    .hamburger-icon,
    .close-icon {
        font-size: 1.2rem;
        color: var(--color-text-white);
        transition: all 0.3s ease;
        position: absolute;
    }

    .hamburger-icon {
        opacity: 1;
        transform: rotate(0deg);
    }

    .close-icon {
        opacity: 0;
        transform: rotate(90deg);
    }

    .mobile-menu-toggle.active .hamburger-icon {
        opacity: 0;
        transform: rotate(-90deg);
    }

    .mobile-menu-toggle.active .close-icon {
        opacity: 1;
        transform: rotate(0deg);
    }

    /* Mobile Sidebar */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    .mobile-sidebar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .mobile-sidebar-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        /* Trong suốt với chút trắng */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-sidebar-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-sidebar-close {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        color: var(--color-text-white);
        cursor: pointer;
    }

    .mobile-sidebar-close i {
        font-size: 1.5rem;
        color: var(--color-text-white);
        transition: color 0.3s ease;
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0 0 2rem 0;
        padding: 0;
    }

    .mobile-nav li {
        margin-bottom: 0.8rem;
    }

    .mobile-nav a {
        color: var(--color-text-white);
        text-decoration: none;
        font-size: 0.6rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0.4rem 0;
        display: inline-block;
        position: relative;
        transition: color 0.3s ease;
    }

    .mobile-nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--color-text-white);
        transition: width 0.3s ease-out;
    }

    .mobile-nav a:hover::after {
        width: 100%;
    }

    .mobile-lang-switcher {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-lang-switcher .divider {
        width: 1px;
        height: 20px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .mobile-lang-switcher a {
        color: var(--color-text-white);
        text-decoration: none;
        font-size: 0.6rem;
    }

    /* ===== FIRST SECTION (CONTACT FORM) RESPONSIVE ===== */
    .first-section-content {
        flex-direction: column;
        height: auto;
        padding: var(--section-padding);
        gap: var(--contact-form-gap);
    }

    .contact-form-section {
        height: auto;
        flex: none;
        order: 2;
    }

    .contact-image-section {
        height: auto;
        flex: none;
        order: 1;
    }

    .contact-form-title {
        font-size: var(--font-size-h2);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .contact-form-subtitle {
        font-size: var(--font-size-small);
        margin-bottom: 1.5rem;
    }

    .contact-form-main {
        gap: 1rem;
    }

    .consultation-form {
        gap: 1rem;
        margin-top: 1rem;
    }

    .consultation-form input,
    .consultation-form select {
        padding: var(--form-input-padding);
        font-size: var(--font-size-normal);
    }

    .phone-input {
        flex-direction: column;
        gap: 1rem;
    }

    .phone-input select {
        width: 100%;
    }

    .phone-input input {
        width: 100%;
    }

    .consultation-form button[type="submit"] {
        padding: var(--button-padding);
        font-size: var(--font-size-normal);
        width: 100%;
    }

    .privacy-check {
        font-size: var(--font-size-small);
        line-height: 1.4;
    }

    .team-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        border-radius: var(--radius-md);
    }

    /* ===== SECTION 2 (SOCIAL MEDIA) RESPONSIVE ===== */
    .social-media-section {
        padding: var(--section-padding) 0;
    }

    .social-media-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 var(--container-padding);
    }

    .whatsapp-section {
        order: 2;
    }

    .social-icons-section {
        order: 1;
        gap: 0.7rem;
        /* flex-wrap: wrap; */
        justify-content: center;
    }

    .whatsapp-button {
        padding: var(--social-button-padding);
        font-size: var(--font-size-normal);
        width: 100%;
        max-width: 300px;
    }

    .social-icon {
        width: var(--social-icon-size);
        height: var(--social-icon-size);
        padding: var(--social-card-padding);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-icon i {
        font-size: 1.5rem;
    }

    .social-icon span {
        display: none;
    }

    /* ===== SECTION 3 (CONTACT INFO) RESPONSIVE ===== */
    .contact-info-section {
        padding: var(--section-padding) 0;
    }

    .contact-info-container {
        flex-direction: column;
        gap: var(--contact-card-gap);
        padding: 0 var(--container-padding);
    }

    .contact-card {
        width: 100% !important;
        flex: none !important;
        padding: var(--contact-card-padding);
    }

    .contact-card-icon {
        width: 25px;
        height: 25px;
    }

    .contact-card-icon i {
        font-size: 1.5rem;
    }

    .contact-card-title {
        font-size: var(--font-size-h4);
        margin-bottom: 0.5rem;
    }

    .contact-card-details {
        font-size: var(--font-size-normal);
        line-height: 1.4;
    }

    .contact-description {
        padding: 0 var(--container-padding);
        margin-top: 2rem;
    }

    .contact-description p {
        font-size: var(--font-size-normal);
        line-height: 1.5;
        text-align: center;
    }

    /* ===== SECTION 4 (GLOBAL PRESENCE) RESPONSIVE ===== */
    .global-presence-section {
        padding: var(--section-padding) 0;
    }

    .global-presence-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 var(--container-padding);
    }

    .global-text-section {
        flex: none;
        order: 1;
        gap: 2rem;
    }

    .global-map-section {
        order: 2;
    }

    .global-title {
        font-size: var(--font-size-h2);
        line-height: 1.4;
        width: 100%;
    }

    .services-button {
        padding: var(--button-padding);
        font-size: var(--font-size-normal);
        width: 100%;
        text-align: center;
    }

    .global-content-group {
        gap: 40px;
    }

    .global-quote {
        font-size: var(--font-size-normal);
        line-height: 1.5;
        text-align: center;
    }

    .world-map img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }

    /* ===== SECTION 5 (VIDEO) RESPONSIVE ===== */
    .video-section {
        height: 50vh;
        min-height: 300px;
    }

    .video-content {
        left: var(--container-padding);
        bottom: var(--container-padding);
    }

    .video-title {
        font-size: var(--font-size-h3);
        line-height: 1.3;
    }

    /* ===== CALL BUTTON RESPONSIVE ===== */
    .fixed-call-button {
        position: fixed;
        width: var(--call-button-size);
        height: var(--call-button-size);
        bottom: var(--call-button-bottom);
        right: var(--call-button-right);
        font-size: 1.2rem;
        background-color: var(--color-primary);
        color: var(--color-text-white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 200;
        transition: transform 0.3s ease;
    }

    .fixed-call-button:hover {
        transform: scale(1.1);
    }

    /* ===== FOOTER RESPONSIVE ===== */
    .footer-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-column {
        width: 100%;
    }

    .footer-brand {
        order: 0;
        text-align: center;
    }

    .footer-brand h2 {
        font-size: var(--footer-brand-h2-size);
    }

    .footer-column h4 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .footer-column p {
        font-size: 0.65rem;
        margin-bottom: 0.8rem;
    }

    .footer-column ul li a {
        font-size: 0.7rem;
    }

    .footer-socials {
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-socials a {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    /* ===== FIXED ELEMENTS RESPONSIVE ===== */
    .fixed-call-button {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }

    /* ===== POPUP RESPONSIVE ===== */
    .popup-content {
        max-width: 90%;
        margin: 0 1rem;
        padding: 1rem;
    }

    .popup-header h3 {
        font-size: var(--font-size-h4);
        margin-top: 2rem;
    }

    .popup-body {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
    }

    .whatsapp-button-contacts {
        font-size: var(--font-size-small);
        padding: 0.6rem 1rem;
        order: 1;
    }

    .qr-section {
        order: 2;
    }

    .qr-section span {
        font-size: var(--font-size-small);
    }

    .qr-image {
        width: var(--qr-image-size);
        height: var(--qr-image-size);
    }

    .ri-close-line {
        font-size: 1.2rem;
    }
}

/* ===== DESKTOP STYLES (Hide mobile elements) ===== */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-sidebar {
        display: none !important;
    }

    .navigation-menu {
        display: flex !important;
    }
}