/* ==================== General Styles ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1b1b1c;
    --secondary-color: #9c690f;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-color: #333333;
    --border-color: #bdc3c7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navigation ==================== */

.navbar {
    background-color: transparent;
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: none;
}

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

.logo a {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    min-width: 150px;
    text-align: center;
}

.logo a:hover {
    color: rgba(44, 62, 80, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Navbar on home page */
.navbar-home .logo a {
    color: var(--white);
}

.navbar-home .logo a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-home .nav-link {
    color: var(--white);
}

.navbar-home .nav-link:hover,
.navbar-home .nav-link.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0.4rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-home .hamburger span {
    background-color: var(--white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: none;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.close-btn span {
    line-height: 1;
}

/* ==================== Hero Slideshow ==================== */

.hero-slideshow {
    width: 100%;
    height: 700px;
    background: #000;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Text Overlay */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 10;
    padding: 4rem 2rem;
    min-height: 250px;
}

.hero-content {
    text-align: left;
    color: var(--white);
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 4px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Slide Navigation Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slide-arrow.prev {
    left: 2rem;
}

.slide-arrow.next {
    right: 2rem;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 4px;
}

.slide-number {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-left: 1rem;
    text-transform: uppercase;
    font-weight: 300;
}

/* ==================== Featured Section ==================== */

.intro-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.intro-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.featured-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.featured-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ==================== Gallery Section ==================== */

.gallery-section {
    padding: 4rem 0;
    min-height: 80vh;
}

.gallery-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* ==================== Gallery Card ==================== */

.artwork-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sold-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.artwork-image {
    width: 100%;
    height: 250px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.artwork-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.artwork-type {
    font-size: 0.85rem;
    color: #888;
}

.artwork-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ==================== Detail Section ==================== */

.detail-section {
    padding: 4rem 0;
    min-height: 80vh;
}

.back-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-radius: 4px;
    width: fit-content;
}

.back-link:hover {
    color: var(--secondary-color);
    background-color: transparent;
}

.detail-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--secondary-color);
}

.detail-info h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.detail-specs {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.detail-specs p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-specs strong {
    color: var(--primary-color);
}

.detail-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.inquiry-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.inquiry-button:hover {
    background-color: #229954;
}

/* ==================== About Section ==================== */

.about-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.about-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-content {
    background-color: transparent;
    padding: 3rem;
    border-radius: 8px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #555;
}

/* ==================== Contact Section ==================== */

.contact-section {
    padding: 4rem 0;
    min-height: 70vh;
}

.contact-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-wrapper {
    max-width: 600px;
    margin: 3rem auto;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-button {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #229954;
}

.submit-button:active {
    transform: scale(0.98);
}

/* ==================== Shipping Section ==================== */

.shipping-section {
    padding: 4rem 0;
    min-height: 70vh;
}

.shipping-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.shipping-content {
    /*background-color: var(--light-bg);*/
    padding: 3rem;
    border-radius: 8px;
    line-height: 1.8;
}

.shipping-content h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.shipping-content h2:first-child {
    margin-top: 0;
}

.shipping-content p {
    margin-bottom: 1rem;
    color: #555;
}

/* ==================== Inquiry Modal Form ==================== */

.inquiry-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.inquiry-form h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================== Footer ==================== */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .mobile-menu-header {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 60px;
        background-color: var(--white);
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 101;
    }

    .mobile-menu-header.active {
        left: 0;
    }

    .mobile-menu-header .logo a {
        font-size: 1.1rem;
        min-width: auto;
        text-align: left;
        color: var(--primary-color);
    }

    .close-btn {
        display: flex;
    }

    .close-btn:hover {
        opacity: 0.7;
    }

    .hero-overlay {
        display: flex;
    }

    .hero-content {
        display: none;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding-top: 80px;
        padding-bottom: 2rem;
        gap: 1.5rem;
        z-index: 99;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .navbar-home .nav-menu {
        background-color: var(--white);
    }

    .navbar-home .nav-link {
        color: var(--primary-color);
    }

    .navbar-home .nav-link:hover,
    .navbar-home .nav-link.active {
        color: var(--secondary-color);
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-slideshow {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .detail-info h1 {
        font-size: 1.5rem;
    }

    .contact-wrapper {
        max-width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .nav-menu {
        padding-top: 4.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .hero-slideshow {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .detail-specs {
        font-size: 0.9rem;
    }

    .cta-button,
    .inquiry-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==================== Form Animations ==================== */

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

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

.success-message {
    text-align: center;
    padding: 2rem;
    color: #4CAF50;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease-in !important;
}
