/*
 * IVS CSS Styles - Master Version
 *
 * This master CSS file centralizes all styling rules for the IVS website,
 * ensuring a consistent and maintainable design system.
 *
 * VERSION: 3.0 - Final, Merged & Standardized
 * AUTHOR: IVS-Technical-Team
 * DATE: 2025-06-25
 */

/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
/**
 * Defines global CSS variables for the entire design system, including
 * colors, typography, spacing, and layout parameters.
 */
:root {
    /* Brand Colors */
    --ivs-primary: #003366;
    --ivs-primary-dark: #002244;
    --ivs-secondary: #ffc107;
    --ivs-accent: #F97316;
    --ivs-accent-dark: #DD6B20;

    /* Neutral Grayscale */
    --ivs-neutral-50: #F9FAFB;
    --ivs-neutral-100: #F3F4F6;
    --ivs-neutral-200: #E5E7EB;
    --ivs-neutral-300: #D1D5DB;
    --ivs-neutral-400: #9CA3AF;
    --ivs-neutral-600: #4B5563;
    --ivs-neutral-700: #374151;
    --ivs-neutral-800: #1F2937;
    --ivs-neutral-900: #111827;

    /* Text Colors */
    --ivs-text-light: #f8fafc;
    --ivs-text-dark: #0f172a;
    --ivs-text-white: #ffffff;
    --ivs-text-muted: var(--ivs-neutral-400);

    /* Layout & Sizing */
    --header-height-mobile: 64px;
    --header-height-desktop: 80px;
    --bottom-nav-height: 60px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Lexend', sans-serif;
    --font-serif: 'Merriweather', serif;

    /* Border Radii */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-top: 0 -4px 6px -1px rgba(0,0,0,0.1), 0 -2px 4px -1px rgba(0,0,0,0.06);

    /* Transitions */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 400ms;
    --ease-out: ease-out;
}

/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */
/**
 * Base styles for html, body, and global typographic elements.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height-desktop);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivs-neutral-50);
    color: var(--ivs-neutral-700);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: var(--bottom-nav-height);
}

body.dark {
    background-color: var(--ivs-neutral-900);
    color: var(--ivs-neutral-300);
}

main {
    flex-grow: 1;
}

.section-title, .font-display {
    font-family: var(--font-display);
}

.font-serif {
    font-family: var(--font-serif);
}

/* ==========================================================================
   3. LAYOUT COMPONENTS (Header, Footer, Nav)
   ========================================================================== */
/**
 * Styles for the main persistent layout elements.
 */

/* --- Header & Placeholders --- */
#header-placeholder {
    height: var(--header-height-mobile);
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--header-height-mobile);
    background-color: rgba(17, 24, 39, 0.85); /* dark:bg-neutral-900/85 */
    backdrop-filter: blur(10px);
    transition: transform var(--transition-base) var(--ease-out);
}

#main-header.header-hidden {
    transform: translateY(-100%);
}

/* --- Bottom Navigation (Mobile) --- */
#ivs-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--bottom-nav-height);
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--ivs-neutral-700);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ivs-neutral-300);
    padding: 4px 0;
    transition: color var(--transition-fast) var(--ease-out);
    text-decoration: none;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--ivs-accent);
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Mobile Menu Panel --- */
#ivs-mobile-menu-panel { visibility: hidden; }
#ivs-mobile-menu-panel.is-open { visibility: visible; }

#ivs-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity var(--transition-base) var(--ease-out);
}
#ivs-mobile-menu-panel.is-open #ivs-mobile-menu-backdrop { opacity: 1; }

#ivs-mobile-menu-container {
    position: relative;
    width: 66.666667%; /* 2/3 of screen width */
    max-width: 240px; /* Reduced max-width */
    height: 100%;
    background: var(--ivs-bg-medium, #1f2937);
    box-shadow: -2px 0 16px rgba(0,0,0,0.18);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
}
#ivs-mobile-menu-panel.is-open #ivs-mobile-menu-container { transform: translateX(0); }


/* Mobile Menu Transitions */
#ivs-mobile-menu-panel {
    transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#ivs-mobile-menu-container {
    transition: transform 0.3s ease-in-out;
}

/* --- Mobile & Desktop Navigation Links --- */
.mobile-nav-link, .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem; /* Smaller font size */
    color: var(--ivs-neutral-200);
    border-radius: 0.375rem;
    transition: all 0.2s ease-out;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 400; /* Lighter weight */
    letter-spacing: 0.01em;
}

.mobile-submenu-toggle {
    justify-content: space-between;
}

.mobile-submenu-toggle i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.mobile-submenu-item {
    padding: 0.4rem 0.75rem;
    margin: 0.125rem 0;
    font-size: 0.8125rem; /* Even smaller for submenu items */
    color: var(--ivs-neutral-300);
    border-radius: 0.25rem;
    transition: all 0.2s ease-out;
}

/* Enhanced hover and active states */
.mobile-nav-link:hover,
.mobile-submenu-toggle:hover,
.mobile-submenu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ivs-text-white);
    transform: translateX(3px);
}

.mobile-nav-link:active,
.mobile-submenu-toggle:active,
.mobile-submenu-item:active {
    background: rgba(249, 115, 22, 0.15);
    transform: translateX(2px) scale(0.98);
}

.mobile-nav-link.active {
    color: var(--ivs-accent);
    background: rgba(249, 115, 22, 0.08);
    font-weight: 500;
}

/* Submenu content refinements */
.mobile-submenu-content {
    padding-left: 0.5rem;
    margin: 0.125rem 0;
    opacity: 0.9;
}

/* Close button refinements */
#mobile-menu-close-btn {
    padding: 0.4rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ivs-neutral-300);
    transition: all 0.2s ease-out;
}

#mobile-menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ivs-text-white);
    transform: scale(1.05);
}

#mobile-menu-close-btn:active {
    transform: scale(0.95);
}

#mobile-menu-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Backdrop refinements */
#ivs-mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Mobile optimization */
@media (max-width: 480px) {
    #ivs-mobile-menu-container {
        padding: 0.5rem;
    }
    
    .mobile-nav-link,
    .mobile-submenu-toggle {
        padding: 0.45rem 0.65rem;
        font-size: 0.8125rem;
    }
    
    .mobile-submenu-item {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   4. COMMON COMPONENTS
   ========================================================================== */
/**
 * Reusable components like cards, buttons, lists, etc.
 */

/* --- Feature/Service Cards --- */
.feature-card, .service-card {
    background-color: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--ivs-neutral-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .feature-card, .dark .service-card {
    background-color: var(--ivs-neutral-800);
    border-color: var(--ivs-neutral-700);
}
.feature-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.dark .feature-card:hover, .dark .service-card:hover {
    border-color: var(--ivs-secondary);
}

/* --- Process/Timeline --- */
.process-step:before {
    content: attr(data-step);
    position: absolute;
    left: -2.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-color: var(--ivs-primary);
    color: white;
    z-index: 10;
}
.dark .process-step:before {
    background-color: var(--ivs-secondary);
    color: var(--ivs-neutral-900);
}

/* --- Check List --- */
.check-list li {
    display: flex;
    align-items: flex-start;
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--ivs-accent);
    margin-top: 0.25em; /* Align with text */
}

/* ==========================================================================
   5. UTILITIES & HELPERS
   ========================================================================== */
.hero-text-shadow { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); }

/* ==========================================================================
   6. RESPONSIVE STYLES (DESKTOP)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    #header-placeholder, #main-header {
        height: var(--header-height-desktop);
    }
    #ivs-bottom-nav, #mobile-menu-open-btn {
        display: none;
    }
}

/* ================= IVS MOBILE MENU FIX & OPTIMIZE (2025-06-30) ================= */
#ivs-mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    background: transparent;
    transition: opacity var(--transition-base) var(--ease-out);
    opacity: 1;
    visibility: visible;
}
#ivs-mobile-menu-panel.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
#ivs-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}
#ivs-mobile-menu-panel:not(.hidden) #ivs-mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}
#ivs-mobile-menu-container {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 100%;
    background: var(--ivs-bg-medium, #1f2937);
    box-shadow: -2px 0 16px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform var(--transition-base) cubic-bezier(0.4,0,0.2,1);
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
}
#ivs-mobile-menu-panel:not(.hidden) #ivs-mobile-menu-container {
    transform: translateX(0);
}

#mobile-menu-open-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: var(--ivs-neutral-300);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-out;
}

#mobile-menu-open-btn:hover {
    color: var(--ivs-accent);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#mobile-menu-open-btn:active {
    transform: translateY(0);
}

#mobile-menu-open-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

#mobile-menu-open-btn:hover svg {
    opacity: 1;
}

/* Ensure hamburger button always visible on mobile */
#mobile-menu-open-btn {
    display: inline-flex !important;
}

/* Hide desktop nav on mobile */
@media (max-width: 767px) {
    nav[role="navigation"], .desktop-nav-link, .desktop-dropdown-container {
        display: none !important;
    }
}

/* Mobile submenu animation */
.mobile-submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) ease-in-out;
    padding-left: 1rem;
}
.mobile-submenu-toggle[aria-expanded="true"] + .mobile-submenu-content {
    max-height: 800px;
}

/* Utility: prevent scroll when menu open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Fallback for Tailwind JIT: ensure these classes are not purged */
/* purgecss start ignore */
.translate-x-full {}
.opacity-0 {}
.opacity-100 {}
/* purgecss end ignore */

/* ================= END IVS MOBILE MENU FIX ================= */

/* Moved from <style> in index.html */
.font-display { font-family: 'Lexend', sans-serif; }
.hero-image {
    background-image: linear-gradient(to top, rgba(13, 17, 23, 1) 5%, rgba(13, 17, 23, 0.4) 50%, rgba(13, 17, 23, 0.2) 100%), url('/images/logo/webbannermo.png');
    background-size: cover;
    background-position: center 70%;
    background-attachment: scroll;
    height: 100vh;
}
.eov-section {
    background: linear-gradient(rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.95)), url('/images/banners/eov_og_banner.jpg') no-repeat center center/cover;
}
.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4);
}

/* Tùy chỉnh font Inter */
html {
    font-family: 'Inter', sans-serif;
}

/* Kiểu dáng chung cho phần Triết lý cốt lõi */
.core-philosophy-section {
    /* Sử dụng ảnh nền với lớp phủ màu đen để đảm bảo văn bản dễ đọc */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/logo.png') center center / cover no-repeat fixed;
    color: #fff; /* Chữ trắng */
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh; /* Đảm bảo đủ chiều cao để cuộn */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.core-philosophy-section h2 {
    font-size: 3.5rem; /* Kích thước lớn hơn cho tiêu đề chính */
    margin-bottom: 60px;
    font-weight: 700; /* Bold */
    color: #00ccff; /* Màu xanh nổi bật */
}

/* Logo IVS */
.ivs-logo-container {
    margin-bottom: 80px; /* Khoảng cách dưới logo */
    opacity: 1; /* Ban đầu hiển thị */
    transition: opacity 0.5s ease-out;
}

.ivs-logo-container.hidden-on-scroll {
    opacity: 0; /* Ẩn dần khi cuộn */
}

.ivs-logo-container img {
    max-width: 250px; /* Kích thước logo */
    height: auto;
    border-radius: 10px; /* Bo góc nhẹ */
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.5); /* Hiệu ứng phát sáng */
}

/* Vùng chứa các ô giải thích */
.philosophy-content {
    display: flex;
    justify-content: center;
    gap: 40px; /* Khoảng cách giữa các ô */
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
    opacity: 0; /* Ban đầu ẩn */
    transform: translateY(50px); /* Ban đầu dịch xuống dưới */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Hiệu ứng chuyển động */
    margin-top: 50px; /* Khoảng cách với logo */
}

/* Khi cuộn đến, hiển thị và dịch chuyển lên */
.philosophy-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Định dạng cho từng ô I, V, S */
.philosophy-item {
    background-color: rgba(26, 26, 26, 0.8); /* Nền xám đậm có độ trong suốt cho các ô */
    border-radius: 15px; /* Bo góc nhiều hơn */
    padding: 40px;
    width: 320px; /* Chiều rộng cố định cho mỗi ô */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Đổ bóng sâu hơn */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #333; /* Viền nhẹ */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.philosophy-item:hover {
    transform: translateY(-10px); /* Hiệu ứng nhấc lên khi hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.philosophy-item .logo-part {
    width: 90px; /* Kích thước phần logo */
    height: 90px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Làm tròn biểu tượng */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    font-size: 3.5rem; /* Kích thước chữ cái */
    font-weight: bold;
    color: #fff;
}

/* Các màu nền khác nhau cho từng phần logo */
.philosophy-item.integrate .logo-part { background: linear-gradient(45deg, #007bff, #00ccff); } /* Xanh dương */
.philosophy-item.vision .logo-part { background: linear-gradient(45deg, #28a745, #4CAF50); } /* Xanh lá */
.philosophy-item.synergy .logo-part { background: linear-gradient(45deg, #dc3545, #FF5722); } /* Đỏ cam */

.philosophy-item h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #00ccff; /* Màu chữ tiêu đề con */
    font-weight: 600;
}

.philosophy-item p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #b0b0b0; /* Màu chữ nội dung nhạt hơn */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .philosophy-item {
        width: 45%; /* 2 cột trên tablet */
    }
    .core-philosophy-section h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .philosophy-item {
        width: 90%; /* 1 cột trên điện thoại */
        padding: 30px;
    }
    .core-philosophy-section h2 {
        font-size: 2.5rem;
    }
    .ivs-logo-container img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .core-philosophy-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .ivs-logo-container {
        margin-bottom: 60px;
    }
    .philosophy-item {
        padding: 25px;
    }
    .philosophy-item .logo-part {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    .philosophy-item h3 {
        font-size: 1.8em;
    }
    .philosophy-item p {
        font-size: 0.95em;
    }
}

/* ==========================================================================
   12. FAB COMPONENT STYLES
   ========================================================================== */
/**
 * Import FAB component styles.
 * This ensures the FAB (Floating Action Button) component
 * has all necessary styles loaded.
 */

@import url('/css/fab-styles.css');

.dark .video-background {
    filter: brightness(0.7);
}

#ivs-mobile-menu-container {
    width: 66.666667%;
    max-width: 220px;
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
}

.menu-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ivs-neutral-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

/* Menu group spacing */
.menu-group {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-link, .mobile-submenu-toggle {
    padding: 0.38rem 0.6rem;
    margin-bottom: 0.12rem;
    font-size: 0.78rem;
    border-radius: 0.3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    min-height: 32px;
}

.mobile-submenu-toggle {
    justify-content: space-between;
}

.mobile-submenu-toggle i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.mobile-submenu-item {
    padding: 0.32rem 0.9rem 0.32rem 1.2rem;
    margin: 0.08rem 0;
    font-size: 0.72rem;
    color: var(--ivs-neutral-300);
    border-radius: 0.2rem;
    min-height: 28px;
}

.mobile-submenu-content {
    padding-left: 0.2rem;
    margin: 0.08rem 0 0.18rem 0;
    opacity: 0.9;
}

/* Group header for submenu */
.mobile-submenu-content h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ivs-accent);
    margin: 0.2rem 0 0.1rem 0.5rem;
    letter-spacing: 0.03em;
}

/* Responsive for very small screens */
@media (max-width: 400px) {
    #ivs-mobile-menu-container {
        max-width: 98vw;
        padding: 0.25rem 0.1rem 0.5rem 0.1rem;
    }
    .mobile-nav-link, .mobile-submenu-toggle {
        font-size: 0.7rem;
        min-height: 28px;
    }
    .mobile-submenu-item {
        font-size: 0.65rem;
        min-height: 22px;
    }
}

/* FAB Button Styles */
.fab-item {
    position: relative;
    overflow: hidden;
}

.fab-active {
    background: linear-gradient(145deg, #ea580c, #c2410c) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.05) !important;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile Optimization */
@media (max-width: 640px) {
    /* Tăng kích thước vùng nhấn cho các nút trên mobile */
    .mobile-nav-link, .mobile-submenu-toggle, .mobile-submenu-item {
        min-height: 44px; /* Đảm bảo vùng nhấn tối thiểu 44px theo tiêu chuẩn Apple */
        padding: 0.8rem 1rem;
    }
    
    /* Đảm bảo FAB không bị che bởi các phần tử khác */
    #fab-container {
        z-index: 40;
    }
    
    /* Tối ưu khoảng cách giữa các nút FAB trên mobile */
    #fab-container .fab-item {
        margin-bottom: 0.5rem;
    }
}

/* Accessibility Improvements */
.fab-item:focus-visible, 
.mobile-nav-link:focus-visible, 
.mobile-submenu-toggle:focus-visible, 
.mobile-submenu-item:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* Touch Feedback */
@media (hover: none) {
    /* Hiệu ứng phản hồi khi chạm trên thiết bị cảm ứng */
    .fab-item:active, 
    .mobile-nav-link:active, 
    .mobile-submenu-toggle:active, 
    .mobile-submenu-item:active {
        background-color: rgba(249, 115, 22, 0.2);
        transform: scale(0.97);
        transition: transform 0.1s, background-color 0.1s;
    }
}
