﻿/* ===== RESET & FONTS ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif; /* Font hiện đại */
    min-height: 100vh;
    overflow-x: hidden;
    background: #0f172a; /* Màu dark xanh đen cực sang của Tailwind */
    color: #f8fafc;
}

/* ===== BACKGROUND LAYER ===== */
.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 198, 255, 0.15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(0, 114, 255, 0.15), transparent 40%);
    z-index: -2;
}

/* ===== NAVBAR CHUYÊN NGHIỆP ===== */
.glass-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px; /* Bo tròn mượt mà hơn */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.4s ease;
}

    /* Hiệu ứng khi cuộn chuột */
    .glass-nav.scrolled {
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        background: rgba(15, 23, 42, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

.logo {
    font-family: 'Playfair Display', serif; /* Font nhiếp ảnh sang trọng */
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

    .logo i {
        color: #00c6ff;
    }

/* NAV LINKS */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

    .nav-right a {
        text-decoration: none;
        color: #cbd5e1;
        font-weight: 500;
        font-size: 15px;
        transition: 0.3s;
        position: relative;
    }

        .nav-right a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: #00c6ff;
            transition: 0.3s ease;
        }

        .nav-right a:hover::after {
            width: 100%;
        }

        .nav-right a:hover {
            color: #fff;
        }

/* AUTH SECTION */
.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.btn-login {
    padding: 8px 20px !important;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

    .btn-login::after {
        display: none;
    }
/* Tắt gạch chân cho nút */

.btn-logout {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30 !important;
    padding: 8px 12px !important;
    border-radius: 50%;
}

    .btn-logout::after {
        display: none;
    }

/* ===== HAMBURGER MENU (MOBILE) ===== */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        position: absolute;
        top: 70px;
        left: 5%;
        width: 90%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
        padding: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
    }

        .nav-right.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

    .auth-section {
        border-left: none;
        padding-left: 0;
        flex-direction: column;
        margin-top: 10px;
    }
}

/* ===== MASONRY GALLERY CHUYÊN NGHIỆP ===== */
.grid {
    column-count: 4;
    column-gap: 20px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .grid {
        column-count: 1;
    }
}

.card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    cursor: zoom-in;
}

    .card img {
        width: 100%;
        display: block;
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
        filter: grayscale(20%); /* Làm ảnh hơi cinematic */
    }

    .card:hover img {
        transform: scale(1.05); /* Zoom nhẹ nhàng, không bị gắt */
        filter: grayscale(0%) brightness(1.1); /* Phục hồi màu sắc khi hover */
    }

.overlay {
    position: absolute;
    bottom: -50px; /* Giấu thông tin đi, chỉ hiện khi hover */
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transition: 0.4s ease;
    opacity: 0;
}

.card:hover .overlay {
    bottom: 0;
    opacity: 1;
}

/* ===== FOOTER ===== */
.glass-footer {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: 0.3s;
    text-decoration: none;
}

    .social-icons a:hover {
        color: #00c6ff;
        transform: translateY(-3px);
        display: inline-block;
    }
