* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #16024f url('bg.png') top center no-repeat;
    background-size: 100% auto;
    background-attachment: scroll;
    font-family: "Roboto Condensed", sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* =====================
   HEADER
===================== */
header {
    text-align: center;
    padding: 35px 0 10px;
}

.logo {
    width: 240px; /* to hơn gấp đôi */
    height: auto;
}

/* CONTACT CARD */
.contact-box {
    margin: 22px auto 0;
    width: 90%;
    max-width: 420px;
    padding: 18px 18px 10px;
    border: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b8b, #a0001f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.contact-text {
    text-align: left;
}

.contact-text .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.contact-text a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* =====================
   TABS
===================== */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'Roboto Condensed', sans-serif !important;
    gap: 14px;
    margin: 25px 0;
    padding: 0 10px;
}

.tab {
    border-radius: 30px;
        font-family: 'Roboto Condensed', sans-serif !important;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff003c, #c8002f);
    box-shadow: 0 0 12px rgba(255, 0, 50, 0.45);
    color: #fff;
    transition: 0.25s;
}

/* Desktop tab size */
@media (min-width: 769px) {
    .tab {
        font-family: 'Roboto Condensed', sans-serif !important;
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* Mobile tab size – nhỏ hơn để nằm 1 hàng */
@media (max-width: 768px) {
    .tabs {
        font-family: 'Roboto Condensed', sans-serif !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }
    .tab {
        font-family: 'Roboto Condensed', sans-serif !important;
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}

.tab.active {
    transform: scale(1.07);
}

.tab:hover {
    box-shadow: 0 0 18px rgba(255, 0, 70, 0.7);
}

/* =====================
   GALLERY – 3 COLUMN (float)
===================== */
.gallery {
    width: 100%;
    overflow: hidden;
    padding: 5px 10px 40px;
}

/* MOBILE = 1 COLUMN */
@media(max-width: 768px) {
    .gallery { 
        display: block !important;
    }

    .gallery-col {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }
}

/* DESKTOP = 3 COLUMNS */
.gallery-col {
    width: 33.33%;
    float: left;
    padding: 0 7px;
}

.item {
    margin-bottom: 14px;
    position: relative;
}

.item img {
    width: 100%;
    border-radius: 12px;
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.45s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.item.show img {
    opacity: 1;
    transform: none;
}

/* =====================
   VIEW-WEB BUTTON (STATIC – ALWAYS SHOWN)
===================== */
.view-web {
    position: absolute;
    left: 50%;
    bottom: 12px;                 /* đặt dưới ảnh */
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff003c, #c8002f);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 0, 50, 0.55);
    opacity: 1 !important;        /* luôn hiển thị */
    backdrop-filter: blur(4px);
    transition: 0.25s;
}

/* Tăng độ nổi khi hover */
.item:hover .view-web {
    box-shadow: 0 0 18px rgba(255, 0, 80, 0.85);
    transform: translateX(-50%) scale(1.05);
}

/* Mobile – nút to hơn dễ bấm */
@media (max-width: 768px) {
    .view-web {
        font-size: 15px;
        padding: 10px 22px;
        bottom: 10px;
    }
}

img.lazy {
    opacity: 0;
    transition: opacity .4s ease;
}

img.lazy.loaded {
    opacity: 1;
}
/* =====================
   POPUP
===================== */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 40px;
    cursor: pointer;
}

.popup img {
    max-width: 90%;
    max-height: 75%;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

/* =====================
   POPUP – BUTTON XEM WEB (CENTERED)
===================== */
.popup-link {
    position: absolute;
    bottom: 40px; /* cách đáy popup một chút, không đụng vào ảnh */
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;

    background: linear-gradient(135deg, #ff003c, #c8002f);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    color: #fff !important;
    text-decoration: none;

    box-shadow: 0 0 18px rgba(255, 0, 50, 0.55);
    backdrop-filter: blur(4px);
    transition: 0.25s;

    z-index: 99999;
}

/* Hover */
.popup-link:hover {
    transform: translateX(-50%) scale(1.07);
    box-shadow: 0 0 26px rgba(255, 0, 80, 0.85);
}

/* Mobile – to hơn một chút */
@media (max-width: 768px) {
    .popup-link {
        padding: 14px 32px;
        font-size: 17px;
        bottom: 30px;
    }
}

/* =====================
   TO TOP
===================== */
#toTop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ff003c, #c8002f);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    z-index: 9999;
}

#toTop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.9);
}

/* =====================
   FOOTER
===================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.6);
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
