/* DESIGN TOKENS - NAVY GOLD */
:root {
    --navy-dark: #0A192F;
    --navy-light: #1A365D;
    --gold-main: #F4D03F; /* Bright Gold */
    --gold-dark: #D4AC0D;
    --gold-text: #F1C40F;
    
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --border-color: #E2E8F0;
    
    --text-navy: #0A192F;
    --text-muted: #64748B;
    --text-white: #FFFFFF;
    
    --font-main: 'Be Vietnam Pro', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(10, 25, 47, 0.2);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-navy);
    line-height: 1.5;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background-color: var(--navy-dark);
    color: var(--text-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    color: var(--gold-main);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-menu a:hover, .nav-menu li.active a {
    color: var(--gold-main);
    opacity: 1;
}

.nav-contact-btn {
    background-color: var(--gold-main);
    color: var(--navy-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    background-color: #FFF;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    background-color: var(--navy-dark);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    padding: 30px 0 40px 0; /* Reduced padding */
}

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

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--gold-main);
    margin-bottom: 20px;
}

.hero-title span {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-features {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-features i {
    color: var(--gold-main);
}

.hero-cta-btn {
    background-color: var(--gold-main);
    color: var(--navy-dark);
    border: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
    margin-bottom: 15px;
}

.hero-cta-btn:hover {
    background-color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Hero Graphic */
.hero-graphic {
    flex: 1;
    position: relative;
    height: 450px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.graphic-cross {
    position: absolute;
    top: 60px;
    left: 5%;
    font-size: 8rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--gold-main);
    opacity: 0.3;
    z-index: 1;
}

.graphic-cross .cross-shape {
    position: absolute;
    font-size: 10rem;
    left: 0; top: 0;
}

.graphic-cross .heart-shape {
    position: absolute;
    font-size: 3rem;
    left: 55px; top: 55px;
    -webkit-text-stroke: 1.5px var(--gold-main);
}

.graphic-shape-wrapper {
    position: absolute;
    right: 0;
    width: 90%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.graphic-shape-inner {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.graphic-image {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}

.qr-box {
    position: absolute;
    right: 50px;
    bottom: -30px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border: 5px solid var(--gold-main);
    z-index: 3;
    transition: var(--transition);
}

.qr-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(244, 208, 63, 0.4);
}

.qr-box a {
    display: block;
}

.qr-img {
    display: block;
    width: 120px;
    height: 120px;
}

/* MAIN CONTENT */
.main-content {
    background-color: var(--bg-gray);
    padding: 35px 20px 50px 20px; /* Reduced padding */
    min-height: 500px;
}

.view {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    text-align: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--navy-dark);
    margin-bottom: 25px; /* Reduced margin */
    text-transform: uppercase;
}

/* SKILLS GRID (5x2) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--bg-white);
    border: 3px solid var(--gold-main);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08), inset 0 2px 5px rgba(255, 255, 255, 1);
    /* Animated glowing border effect */
    animation: borderPulse 2.5s infinite alternate;
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 5px rgba(244, 208, 63, 0.2), inset 0 2px 5px rgba(255,255,255,1); }
    100% { box-shadow: 0 0 25px rgba(244, 208, 63, 0.9), inset 0 2px 5px rgba(255,255,255,1); }
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(244, 208, 63, 0.5), inset 0 2px 5px rgba(255, 255, 255, 1);
    animation: none;
    border-color: #FFF; /* Thay đổi một chút viền khi hover nếu muốn */
}

.card-number {
    position: absolute;
    top: 12px;
    left: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy-dark);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 15px;
    transition: var(--transition);
}

.skill-card:hover .card-icon {
    color: var(--gold-main);
    transform: scale(1.1);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-navy);
    line-height: 1.3;
}

/* DETAIL VIEW */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--navy-dark);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--gold-main);
    transform: translateX(-5px);
}

.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-header {
    background-color: var(--navy-dark);
    color: var(--text-white);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-number {
    background: var(--gold-main);
    color: var(--navy-dark);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 8px;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.medical-instructions {
    padding: 30px;
    border-right: 1px solid var(--border-color);
}

.section-block {
    margin-bottom: 25px;
}

.section-block h3 {
    color: var(--navy-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.symptoms-list, .steps-list {
    list-style: none;
}

.symptoms-list li, .steps-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-navy);
}

.symptoms-list li::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 2px;
    color: var(--gold-dark);
    font-size: 0.9rem;
}

.steps-list {
    counter-reset: step;
}
.steps-list li {
    padding-left: 30px;
}
.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 20px; height: 20px;
    background: var(--navy-light);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.video-section {
    padding: 30px;
    background-color: var(--bg-gray);
    display: flex;
    flex-direction: column;
}

.video-section h3 {
    color: var(--navy-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    padding: 12px 15px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: var(--transition);
}

.primary-btn {
    background: #ff0000;
    color: white;
}
.primary-btn:hover { background: #cc0000; }

.secondary-btn {
    background: var(--navy-dark);
    color: white;
}
.secondary-btn:hover { background: var(--navy-light); }

/* FOOTER */
.app-footer {
    background-color: var(--navy-dark);
    color: var(--text-white);
    padding: 20px 0;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon, .clock-icon {
    color: var(--gold-main);
    font-size: 1.2rem;
}

.phone-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-menu, .nav-contact-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-features {
        justify-content: center;
    }
    .hero-graphic {
        margin-top: 40px;
        width: 100%;
        height: 300px;
    }
    .qr-box {
        right: 20px;
        bottom: -20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .detail-body {
        grid-template-columns: 1fr;
    }
    .medical-instructions {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-title span {
        font-size: 1.8rem;
    }
    
    /* Important for 1:1 mobile grid matching the design */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skill-card {
        padding: 15px 10px;
        min-height: 140px;
    }
    .card-icon {
        font-size: 2rem;
    }
    .card-title {
        font-size: 0.8rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
