/* Loading Screen */
:root {
    --nav-height: 77px;
}

html {
    overflow-x: hidden;
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: var(--nav-height);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--nav-height));
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #333;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #333;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #333;
}

.loading-dots {
    font-size: 40px;
    line-height: 1;
}

.loading-dots span {
    animation: pulse 1.4s infinite;
    animation-fill-mode: both;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 33px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-cta {
    text-decoration: none;
    color: #fff;
    background: #ff8a00;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
    background: #ff9f2f;
    transform: translateY(-1px);
}

/* Seasonal Themes - Bottom Border Effects */
.navbar.winter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4FC3F7, #81D4FA, #B3E5FC, #81D4FA, #4FC3F7);
    background-size: 200% 100%;
    animation: shimmerWinter 3s ease-in-out infinite;
}

.navbar.spring::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #66BB6A, #81C784, #FFB74D, #FF8A65, #66BB6A);
    background-size: 200% 100%;
    animation: shimmerSpring 4s ease-in-out infinite;
}

.navbar.summer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFD54F, #FFB300, #FF6F00, #FFB300, #FFD54F);
    background-size: 200% 100%;
    animation: shimmerSummer 3s ease-in-out infinite;
}

.navbar.fall::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6F00, #F57C00, #BF360C, #D84315, #FF6F00);
    background-size: 200% 100%;
    animation: shimmerFall 4s ease-in-out infinite;
}

@keyframes shimmerWinter {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmerSpring {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmerSummer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmerFall {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 16px;
        right: 20px;
    }
    
    .nav-items {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        right: 0;
        width: min(280px, 85vw);
        height: calc(100vh - var(--nav-height) - 8px);
        background: #222;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: transform 0.3s ease;
        transform: translateX(100%);
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .nav-items.active {
        transform: translateX(0);
    }
    
    .nav-contact {
        width: 100%;
    }
    
    .contact-toggle {
        width: 100%;
    }
    
    .nav-items .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-items .nav-menu li {
        width: 100%;
    }
    
    .nav-items .nav-menu li a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-items .nav-action {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 10px 16px;
        box-sizing: border-box;
    }

    .nav-center {
        position: static;
        transform: none;
        order: 2;
        margin: 10px 0 0 0;
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        font-size: 13px;
        padding: 8px 14px;
    }
}

.nav-contact {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-action {
    background: #444;
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.nav-action:hover {
    background-color: #666;
    transform: translateY(-1px);
}

.contact-modal {
    display: none;
    position: fixed;
    z-index: 2002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.contact-content {
    position: relative;
    background: #1f1f1f;
    color: #f1f1f1;
    border-radius: 12px;
    padding: 28px 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.3s ease;
}

.contact-content h2 {
    margin: 0 0 18px 0;
    font-size: 24px;
    color: #fff;
}

.contact-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #bbb;
    font-size: 26px;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

.contact-close:hover {
    color: #fff;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #2b2b2b;
    border-radius: 10px;
    padding: 18px 20px;
}

.contact-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

.contact-text div {
    white-space: nowrap;
}

.contact-panel img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-panel img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-label {
    font-size: 14px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-brand {
    font-size: 22px;
    font-weight: bold;
}

.brand-name {
    font-size: 22px;
}

.brand-tagline {
    font-size: 13px;
    font-weight: normal;
    font-style: italic;
    opacity: 0.8;
    margin-top: 3px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-menu li a {
    color: inherit;
}

/* Admin pages */
.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab-btn:hover {
    color: #333;
}

.admin-tab-btn.active {
    color: #ff8a00;
    border-bottom-color: #ff8a00;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
}

.admin-header p {
    margin: 0 0 16px 0;
    color: #444;
}

.admin-header-note {
    color: #fff;
}

.admin-status {
    min-height: 24px;
    color: #1a5d1a;
    font-weight: 600;
}

.admin-status.admin-status-error {
    color: #a30000;
}

.admin-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 28px;
}

.admin-section h2 {
    margin: 0 0 18px 0;
    font-size: 24px;
}

.admin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-label {
    font-weight: 600;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

.admin-form input,
.admin-form textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.upload-dropzone {
    border: 2px dashed #d1d1d1;
    border-radius: 14px;
    padding: 24px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone.active {
    border-color: #ff8a00;
    background: #fff4e4;
}

.upload-dropzone input[type="file"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
}

.upload-dropzone p {
    margin: 10px 0 0 0;
    color: #666;
}

.upload-progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

.upload-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff8a00, #ffb347);
    transition: width 0.2s ease;
}

.admin-primary,
.admin-secondary {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.admin-danger {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    background: #c0392b;
    color: #fff;
}

.admin-danger:hover {
    background: #a93226;
}

.admin-primary {
    background: #ff8a00;
    color: #fff;
}

.admin-primary:hover {
    background: #ff9f2f;
}

.admin-secondary {
    background: #222;
    color: #fff;
}

.admin-secondary:hover {
    background: #333;
}

.admin-help {
    color: #666;
    margin: 12px 0 0 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff8a00;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.analytics-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.analytics-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #ff8a00;
    padding-bottom: 10px;
}

.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analytics-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.analytics-stat-row:last-child {
    border-bottom: none;
}

.analytics-stat-label {
    font-weight: 500;
    color: #555;
}

.analytics-stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.analytics-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8a00, #ffb347);
    transition: width 0.3s ease;
}

.analytics-stat-value {
    font-weight: 600;
    color: #ff8a00;
    min-width: 50px;
    text-align: right;
}

.admin-tags-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-tags-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.admin-image-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.admin-card-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.admin-select-box {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-card-filename {
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.admin-card-tags {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.admin-card-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-card-buttons button {
    flex: 1;
    min-width: 70px;
    height: 32px;
    font-size: 12px;
    padding: 4px 8px;
}

.admin-select {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 4;
}

.admin-replace {
    display: none;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}

.admin-login {
    max-width: 480px;
    margin: 60px auto 0;
}

.admin-error {
    color: #a30000;
    min-height: 20px;
}

.admin-login-page {
    font-family: 'DM Sans', sans-serif;
    background: radial-gradient(circle at top left, #ffe9c8, #fff4e4 35%, #f5f5f5 70%);
    min-height: 100vh;
}

.admin-login-page .navbar {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(6px);
}

.admin-login-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.6;
    z-index: 0;
}

.admin-login-orb.orb-1 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #ff9f2f, #ffcf85);
    top: 90px;
    left: -60px;
}

.admin-login-orb.orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #222, #555);
    bottom: -120px;
    right: -80px;
    opacity: 0.35;
}

.admin-login-page-content {
    position: relative;
    z-index: 1;
}

.admin-login-shell {
    display: flex;
    justify-content: center;
    padding: 80px 0 30px;
    animation: fadeSlideIn 0.6s ease-out;
}

.admin-login-panel {
    margin: 0;
    border: 1px solid rgba(255, 138, 0, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.admin-login-panel h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
}

.admin-login-panel .admin-form input {
    border: 1px solid #e0e0e0;
    background: #fff7ed;
}

.admin-login-panel .admin-form input:focus {
    outline: 2px solid rgba(255, 138, 0, 0.5);
    border-color: #ff8a00;
}


@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #2e7d32;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

@media (max-width: 900px) {
    .admin-tag-row {
        grid-template-columns: 32px 70px 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .admin-tag-row input,
    .admin-tag-row button {
        grid-column: span 3;
    }

    .admin-replace {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .admin-login-shell {
        padding-top: 30px;
    }
}

header{
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}

/* Error Container */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* About Page */
.about-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    color: #222;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 720px) 1fr;
    grid-template-areas: "left content right";
    gap: 24px;
    align-items: start;
}

.about-content {
    grid-area: content;
}

.about-gallery-left {
    grid-area: left;
}

.about-gallery-right {
    grid-area: right;
}

.about-container h2 {
    margin-top: 0;
    font-size: 30px;
    color: #222;
}

.about-container p {
    font-size: 17px;
    margin: 12px 0;
}

.about-highlight {
    font-weight: 600;
    color: #444;
}

.about-gallery {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
}

.about-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transform: rotate(-32deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    background: #f5f5f5;
}

.about-gallery img:nth-child(2n) {
    transform: rotate(28deg);
}

.about-gallery img:nth-child(3n) {
    transform: rotate(-18deg);
}

.about-gallery img:nth-child(4n) {
    transform: rotate(36deg);
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "left"
            "right";
    }

    .about-gallery {
        margin-top: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.error-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 500px;
    line-height: 1.6;
}

.retry-button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.retry-button:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.retry-button:active {
    transform: translateY(0);
}

.gallery-grid {
    column-count: 4;
    column-gap: 10px;
    padding: 10px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff8a00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
    /* Ensure sharp image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
}

.gallery-item img.fade-in {
    animation: diagonalFadeIn 0.6s ease-out forwards;
}

@keyframes diagonalFadeIn {
    from {
        opacity: 0;
        transform: translate(-30px, -30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.gallery-item img:hover {
    transform: scale(1.02);
}
.modal{
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    transition: background 0.3s ease;
}

.modal.show {
    background: rgba(0, 0, 0, 0.9);
}

.modal-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 4px;
    opacity: 0;
    /* Ensure proper image orientation and quality */
    image-orientation: from-image;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.modal-content.slide-out-left {
    opacity: 0 !important;
    transform: translate(-150%, -50%) scale(0.95) !important;
    transition: all 0.3s ease !important;
}

.modal-content.slide-out-right {
    opacity: 0 !important;
    transform: translate(50%, -50%) scale(0.95) !important;
    transition: all 0.3s ease !important;
}

.modal-content.slide-in-left {
    transform: translate(-150%, -50%) scale(0.95);
    opacity: 0;
}

.modal-content.slide-in-right {
    transform: translate(50%, -50%) scale(0.95);
    opacity: 0;
}

.close{
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    cursor: pointer;
    font-size: 40px;
    z-index: 1001;
}

/* Modal Navigation Buttons */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev:active,
.modal-next:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .modal-prev,
    .modal-next {
        font-size: 24px;
        padding: 15px 10px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

.button-about {
    position: fixed;
    top: 20px;
    size: 8px;
    right: 20px;
    padding: 8px 12px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 8px;
}
.moto{
    text-align: left;
    margin-left: -17px;
    font-size: 14px;
    font-style: italic;
    margin-bottom: -18px;
}

/* Search panel */
.search-panel {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-wrap {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 999px;
}

.search-clear {
    border: none;
    background: #222;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

.search-clear:hover {
    background: #333;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tag-chip.active,
.tag-chip:hover {
    border-color: #ff8a00;
    background: #fff2e0;
    color: #7a3b00;
}

.tag-chip-toggle {
    min-width: 40px;
    padding: 6px 10px;
    font-weight: 700;
    text-align: center;
}

/* Gallery responsive design */
@media (max-width: 1200px) { .gallery-grid { column-count: 3; } }
@media (max-width: 768px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

/* Navbar responsive design */
/* Tablet and smaller desktop screens */
@media (max-width: 768px) {
    :root {
        --nav-height: 112px;
    }

    .navbar {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-tagline {
        font-size: 11px;
    }
    
    .nav-menu {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .nav-menu li a {
        font-size: 14px;
        padding: 8px 14px;
    }

    .nav-contact {
        width: 100%;
    }

    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-panel {
        width: min(360px, 100vw);
        right: 0;
        transform: translateX(100%);
    }

    .cart-panel.open {
        transform: translateX(0);
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    :root {
        --nav-height: 124px;
    }

    .navbar {
        padding: 10px 15px;
        gap: 8px;
    }

    .hamburger {
        top: 14px;
        right: 15px;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .brand-tagline {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .nav-items .nav-menu {
        gap: 10px;
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-items .nav-menu li a {
        font-size: 13px;
        padding: 6px 12px;
    }

    .navbar > .nav-menu {
        width: auto;
        justify-content: flex-start;
    }

    .navbar > .nav-menu li a {
        width: auto;
        display: inline-block;
    }

    .nav-items {
        gap: 12px;
    }

    .nav-cta {
        font-size: 12px;
        padding: 7px 12px;
    }

    .nav-contact,
    .cart-toggle,
    .custom-inquiry-btn,
    .nav-menu {
        width: 100%;
    }

    .nav-items .nav-action {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        padding: 10px 16px;
        box-sizing: border-box;
    }

    .cart-toggle {
        justify-content: center;
    }

    .search-input-wrap {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-input-wrap input,
    .search-clear {
        width: 100%;
        border-radius: 12px;
    }

    .contact-content {
        padding: 24px 20px;
    }

    .contact-panel img {
        width: 110px;
        height: 110px;
    }
}

/* Very small mobile screens */
@media (max-width: 320px) {
    :root {
        --nav-height: 132px;
    }

    .navbar {
        padding: 8px 12px;
    }
    
    .nav-brand {
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 14px;
    }
    
    .brand-tagline {
        font-size: 9px;
    }
    
    .nav-menu li a {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ============ CART BUTTON IN NAVBAR ============ */

.cart-toggle {
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
}

/* ============ CART PANEL (SIDEBAR) ============ */

.cart-panel {
    position: fixed;
    right: -400px;
    top: var(--nav-height);
    width: 400px;
    height: calc(100vh - var(--nav-height));
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff8a00;
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.cart-close:hover {
    transform: scale(1.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.cart-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.cart-item-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
    max-width: 200px;
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.cart-item-remove:hover {
    background: #c0392b;
}

.cart-item-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-details label {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-details input[type="number"],
.cart-item-details textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}

.cart-item-details input[type="number"] {
    max-width: 80px;
}

.cart-item-details textarea {
    resize: vertical;
    min-height: 60px;
    font-size: 12px;
}

.cart-footer {
    padding: 15px;
    background: #f5f5f5;
    border-top: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-btn,
.clear-cart-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn {
    background: #27ae60;
    color: white;
}

.checkout-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.clear-cart-btn {
    background: #e74c3c;
    color: white;
}

.clear-cart-btn:hover {
    background: #c0392b;
}

/* ============ MODAL ACTIONS (Add to Cart Button) ============ */

.modal-actions {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

.add-to-cart-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.add-to-cart-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.image-metadata {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    gap: 20px;
    z-index: 1002;
    max-width: 90%;
    backdrop-filter: blur(10px);
}

.metadata-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.metadata-label {
    font-weight: 600;
    color: #ff8a00;
}

.metadata-value {
    color: #e0e0e0;
    word-break: break-word;
}

/* ============ INQUIRY FORM MODAL ============ */

.inquiry-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

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

.inquiry-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: min(600px, 100%);
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.inquiry-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
    margin-bottom: 25px;
}

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

    .inquiry-content {
        max-width: 520px;
        padding: 28px;
        max-height: 92vh;
    }

    .inquiry-content h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .inquiry-modal {
        padding: 12px;
    }

    .inquiry-content {
        padding: 22px;
        border-radius: 8px;
        max-height: 94vh;
    }

    .inquiry-content h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }
}

.inquiry-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.inquiry-section.is-hidden {
    display: none;
}

.attachment-group {
    gap: 12px;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-entry .model-link-input {
    flex: 1;
}

.link-add {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 8px;
}

.link-add:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.link-help {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.link-remove {
    align-self: flex-start;
    background: #fff;
    color: #a33;
    border: 1px solid #e2b5b5;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.link-remove:hover {
    background: #fff5f5;
}

.attachment-toggle {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.attachment-toggle:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.attachment-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #f6f6f6;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
}

.attachment-panel.is-open {
    display: flex;
}

.attachment-dropzone {
    border: 2px dashed #c9c9c9;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.attachment-dropzone:hover,
.attachment-dropzone.is-dragging {
    border-color: #ff8a00;
    background: #fff5e6;
}

.attachment-dropzone-title {
    font-weight: 600;
    color: #333;
}

.attachment-dropzone-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.attachment-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, 48px);
    gap: 4px;
    justify-content: flex-start;
}

.attachment-preview {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    background: #fff;
    width: 48px;
    height: 48px;
}

.attachment-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.attachment-preview:hover .attachment-preview-remove {
    opacity: 1;
}

.attachment-preview img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    display: block;
}

.attachment-meta {
    font-size: 12px;
    color: #666;
}

.attachment-remove {
    align-self: flex-start;
    background: #fff;
    color: #a33;
    border: 1px solid #e2b5b5;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.attachment-remove:hover {
    background: #fff5f5;
}

.inquiry-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.inquiry-summary h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #333;
}

.summary-item p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 12px;
}

.summary-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.summary-text {
    flex: 1;
}

.submit-inquiry-btn {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-inquiry-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.submit-inquiry-btn:active {
    transform: translateY(0);
}

.submit-inquiry-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* ============ ADMIN IMAGE GRID RESPONSIVE ============ */

@media (max-width: 768px) {
    .admin-tags-list {
        grid-template-columns: 1fr;
    }
}

/* ============ NOTIFICATION ============ */

.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #27ae60;
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    z-index: 2000;
    transform: translateY(20px);
    animation: slideUp 0.3s ease;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============ CONFIRMATION MODAL ============ */

.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirmation-content {
    background: #fff;
    border-radius: 10px;
    padding: 28px 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: popIn 0.25s ease;
}

.confirmation-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #222;
}

.confirmation-content p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.confirm-ok-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.confirm-ok-btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }
    
    .cart-toggle {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .inquiry-content {
        padding: 25px;
        border-radius: 8px;
    }
    
    .inquiry-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .confirmation-content {
        max-width: 100%;
    }
    
    .modal-actions {
        top: 50px;
    }
}

@media (max-width: 480px) {
    .cart-panel {
        width: 100%;
    }
    

    .custom-inquiry-btn {
        width: 100%;
        padding: 10px;
        background: #555;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s;
    }

    .custom-inquiry-btn:hover {
        background: #666;
    }
    .inquiry-content {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}