@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    line-height: 1.6;
}

/* Main content animations */
.main-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay full màn hình */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Header - Thiết kế sang trọng */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.address-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.address-icon {
    width: 20px;
    height: 20px;
    fill: #3b82f6;
    opacity: 0.8;
}

/* Logo hiện đại và sang trọng */
.logo {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, #ffffff 60%, #f5c8c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #b30000;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    animation: logoPulse 3s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 0;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

 .logo::before {
     content: '';
     position: absolute;
     top: -150%;
     left: -150%;
     width: 300%;
     height: 300%;
     background: linear-gradient(120deg,
             transparent 40%,
             rgba(211, 60, 95, 0.51) 70%,
             transparent 50%);
     animation: logoShimmer 5.5s linear infinite;
     transform: rotate(25deg);
     pointer-events: none;
     z-index: 1;
     opacity: 0.6;
 }
 @keyframes logoPulse {
     0% {
         transform: scale(1);
         box-shadow:
             0 0 10px rgba(255, 255, 255, 0.2),
             0 0 20px rgba(255, 255, 255, 0.3),
             0 0 0 rgba(30, 60, 114, 0);
         border-color: rgba(255, 255, 255, 0.3);
     }

     50% {
         transform: scale(1.08);
         box-shadow:
             0 0 20px rgba(255, 255, 255, 0.5),
             0 0 40px rgba(255, 255, 255, 0.6),
             0 0 60px rgba(30, 60, 114, 0.4);
         border-color: rgba(255, 255, 255, 0.9);
     }

     100% {
         transform: scale(1);
         box-shadow:
             0 0 10px rgba(255, 255, 255, 0.2),
             0 0 20px rgba(255, 255, 255, 0.3),
             0 0 0 rgba(30, 60, 114, 0);
         border-color: rgba(255, 255, 255, 0.3);
     }
 }

@keyframes logoShimmer {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
        opacity: 0;
    }
}

.hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.hotline-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hotline-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hotline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.hotline-btn:hover::before {
    left: 100%;
}

/* Navigation - Hiện đại và glassmorphism */
.nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav.stuck {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav ul li a {
    color: #475569;
    text-decoration: none;
    display: block;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.nav ul li a:hover::before,
.nav ul li a.active::before {
    width: 60%;
}

/* Flash effect cho header và nav */
@keyframes modernFlash {
    0% {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }
    50% {
        background: rgba(59, 130, 246, 0.1);
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    }
    100% {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }
}

.header.flash,
.nav.flash {
    animation: modernFlash 0.4s ease-in-out;
}

/* Breadcrumb - Thiết kế hiện đại */
.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    gap: 4px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    color: #64748b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.breadcrumb:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.breadcrumb a::after {
    content: "›";
    color: #cbd5e1;
    margin: 0 8px;
    font-size: 16px;
    font-weight: 400;
}

.breadcrumb a:last-of-type::after {
    display: none;
}

.breadcrumb span {
    color: #1e293b;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }
    
    .nav ul {
        gap: 4px;
    }
    
    .nav ul li a {
        padding: 16px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .address-info {
        order: 2;
    }
    
    .logo {
        order: 1;
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .hotline {
        order: 3;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    .nav ul li a {
        padding: 14px 16px;
        font-size: 12px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 12px 16px;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        font-size: 12px;
        border-radius: 15px;
    }
    
    .hotline-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .address-info,
    .hotline {
        font-size: 12px;
    }
    
    .nav ul li a {
        padding: 12px 14px;
        font-size: 11px;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .breadcrumb-wrapper {
        padding: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Utility classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}