body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

.logo {
    font-weight: bold;
    font-size: 20px;
}

/* HERO */
.hero {
    position: relative;
    height: 80vh;
    background: url("/static/images/painting1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomBg 20s ease infinite alternate;
}
/* ADD THIS */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero button {
    background: white;
    color: black;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.hero button:hover {
    background: #ddd;
}
/* Make text above overlay */
.hero-text {
    position: relative;
    color: white;
    text-align: center;
    transform: translateY(-20px);
    animation: fadeUp 1s ease forwards;
    backdrop-filter: none;
}
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.hero p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.btn {
    background: transparent;
    color: white;
    padding: 14px 34px;
    border: 1px solid white;
    margin-top: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}
/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 60px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: contrast(1.05) saturate(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.card.sold img {
    filter: grayscale(80%) brightness(0.6) contrast(0.9);
}


.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card:hover img {
    transform: scale(1.05);
}

/* OVERLAY */

nav a {
    margin: 0 15px;
    font-size: 15px;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-20px);
    }
}
@keyframes zoomBg {
    from {
        background-size: 100%;
    }
    to {
        background-size: 110%;
    }
}

.artist-sign {
    margin-top: 30px;
    font-size: 13px;
    opacity: 0.7;
    font-style: italic;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

     background: linear-gradient(
        to top,
        rgba(0,0,0,0.95),
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2),
        transparent
    );

    color: white;
    text-align: center;

    transition: 0.3s ease;
}
.overlay h3 {
    font-size: 18px;
    margin: 0;
}

.overlay p {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.card:hover .overlay p {
    opacity: 1;
    transform: translateY(0);
}
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 40px auto;
}

.admin-form input,
.admin-form textarea {
    padding: 10px;
    font-size: 14px;
}

.admin-form button {
    padding: 12px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}
.modal-content {
    max-width: 90%;      /* smaller → more elegant */
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 0;
    border-radius: 12px;

    /* ✨ glass / premium look */
    background: #111;
    padding: 10px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.8),
        0 0 40px rgba(255,255,255,0.06),
        0 0 0 1px rgba(255,255,255,0.05);
    animation: zoomIn 0.3s ease;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}
.modal-content::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    z-index: -1;
}
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.modal {
    display: flex;  /* hidden by default */
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    z-index: 2000;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.92);
    opacity: 0;
    justify-content: center;
    align-items: center;

    padding: 30px; /* reduce from 60px */
}

/* FIX CLOSE BUTTON */
.close {
    position: absolute;
    top: 25px;
    right: 35px;

    font-size: 28px;
    color: white;

    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    background: white;
    color: black;
}
.actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}
.card:hover .actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-action {
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.btn-action:hover {
    background: white;
    color: black;
}
.overlay h3 {
    font-size: 20px;
}

.sold-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.sold-text {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #ff4d4d;
}

/* SOLD badge */
.sold-badge {
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(255, 59, 59, 0.75);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.6s ease;
}

.card:not(.sold):hover img {
    transform: scale(1.05);
}

.card.sold::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-content:hover {
    transform: scale(1.02);
    transition: 0.3s ease;
}

@media (max-width: 768px) {
    .modal {
        padding: 20px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70vh;
         box-shadow:
        0 20px 60px rgba(0,0,0,0.8),
        0 0 40px rgba(255,255,255,0.05);
    }
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    user-select: none;
    transition: 0.2s;
}

.nav:hover {
    background: white;
    color: black;
}

.nav.left {
    left: 20px;
}

.nav.right {
    right: 20px;
}


.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;

    border-radius: 8px;
    text-decoration: none;

    background: rgba(255,255,255,0.1);
    color: white;

    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.modal-actions a:hover {
    background: white;
    color: black;
    transform: translateY(-2px) scale(1.03);
}
.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* space between image & text */
    max-width: 90%;
    position: relative;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(20px);

}

.modal-info {
    

    background: rgba(0,0,0,0.6);
    padding: 14px 20px;
    border-radius: 12px;

    backdrop-filter: blur(12px);

    text-align: center;
    color: white;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: fadeUp 0.4s ease;
    max-width: 260px; 
}
@media (max-width: 768px) {
    .modal-info {
        position: static;
        margin-top: 10px;
    }
}

.modal-info h3 {
    margin: 0;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    
}

.modal-info p {
    margin: 4px 0 10px;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 10px;
}
.modal-info:hover {
    transform: translateY(-2px);
    transition: 0.3s;
}


.form-box {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    color: white;
    text-align: center;
}

.form-box input,
.form-box textarea {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: none;
    border-radius: 6px;
}

.form-box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: white;
    border: none;
    cursor: pointer;
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th {
    background: #111;
    color: white;
    padding: 12px;
    text-align: left;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
    background: #f5f5f5;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.new {
    background: #fff3cd;
    color: #856404;
}

.status.contacted {
    background: #d4edda;
    color: #155724;
}
.done {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.zalo-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0068ff;
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.3s;
    animation: pulse 2s infinite;
    font-size: 14px;
    letter-spacing: 0.3px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,104,255,0.5); }
    70% { box-shadow: 0 0 0 12px rgba(0,104,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,104,255,0); }
}

.zalo-button:hover {
    transform: scale(1.05);
}

.btn,
.btn-action {
    transition: all 0.25s ease;
}

.btn:active,
.btn-action:active {
    transform: scale(0.96);
}
@media (max-width: 768px) {
    .modal-box {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        max-width: 100%;
    }
}