@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-bg: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #f43f5e;
    /* Rose */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-tertiary: #06b6d4;
    /* Cyan */

    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.2), transparent 40%);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.hero p.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

/* Infinity Marquee Gallery */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--card-bg);
}

.marquee-container::-webkit-scrollbar {
    height: 20px;
    /* Increased height as requested */
}

.marquee-container::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

.marquee-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border-radius: 10px;
    border: 2px solid var(--primary-bg);
}

.marquee-content {
    display: flex;
    gap: 20px;
    min-width: 100%;
    /* Animation removed for manual control */
}

.art-card {
    /* Flex item defaults for marquee */
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    /* Reduced min-width to fit better */
    height: 400px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    /* Center loading spinner */
    align-items: center;
    /* Placeholder background for loading state */
    background-image: url('/images/loading.png');
    background-size: 50px;
    /* Small logo/spinner size */
    background-position: center;
    background-repeat: no-repeat;
}

/* Grid context override */
.gallery-grid .art-card {
    width: 100%;
    /* Fill grid cell */
    height: 350px;
    /* Fixed height for consistency in grid */
}

.art-card a {
    display: block;
    height: 100%;
    width: 100%;
}

.art-card:hover {
    transform: scale(1.03);
    /* Subtle zoom */
    z-index: 2;
    border-color: var(--accent-color);
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image fills card */
    display: block;
    transition: opacity 0.3s ease;
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.art-card:hover .art-overlay {
    opacity: 1;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.cat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.cat-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.cat-price {
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--accent-tertiary);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* About & Contact */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    color: white;
    /* Ensure text is visible */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-group select option {
    background-color: var(--primary-bg);
    color: white;
}

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

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav */
/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;

    /* Solid / Opaque */
    background: #0f172a;
    /* Solid dark color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-color);
}

nav .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Partition */
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 20px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
}

.logo-text {
    /* More violet/rose, less cyan/blue */
    background: linear-gradient(to right, #ffffff 0%, #e2e8f0 20%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    /* Bigger text */
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    /* Partition 2 */
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    align-items: center;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

nav ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    /* Floating, not stuck to bottom */
    right: 20px;
    width: auto;
    /* Auto width/height for the image */
    height: auto;
    border-radius: 0;
    background: transparent;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align image to bottom */
    cursor: pointer;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 0;
    overflow: visible;
}

.chat-avatar {
    width: 140px;
    /* Much bigger */
    height: auto;
    /* Maintain aspect ratio */
    /* Removed border-radius: 50% to allow full body/standing image */
    object-fit: contain;
    border: none;
    /* No border */
    box-shadow: none;
    /* No shadow */
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    /* Shadow on the image content itself */
}

.chat-widget-btn:hover .chat-avatar {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.chat-bubble {
    /* Clickable bubble customization */
    position: absolute;
    right: 120px;
    /* Adjusted: closer to the avatar's head */
    bottom: 90px;
    /* Moved up to appear near head/mouth */
    background: white;
    color: #1e293b;
    padding: 12px 20px;
    border-radius: 15px;
    border-bottom-right-radius: 2px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s forwards;
    pointer-events: auto;
    cursor: pointer;
    z-index: 1001;
    /* Ensure on top */
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #1e293b;
    /* Fallback */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    padding: 15px 20px;
    background: linear-gradient(to right, rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat Header Controls */
.chat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maximize-chat,
.close-chat {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.maximize-chat:hover,
.close-chat:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Maximized State */
.chat-window.maximized {
    width: 100% !important;
    height: 100% !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    z-index: 9999;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: white;
    border-bottom-right-radius: 2px;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.chat-input-area button {
    background: var(--accent-secondary);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* ========================================= */
/* Mobile Responsiveness & Hamburger Menu */
/* ========================================= */

/* Default (Desktop) State adjustments */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-only-li {
    display: none;
}

.desktop-only-btn {
    display: inline-block;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
    background-color: var(--accent-color);
}

/* Mobile Breakpoint */
@media screen and (max-width: 968px) {

    /* Navbar Mobile Styles */
    nav {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .logo {
        margin-right: 0;
        border-right: none;
        padding-right: 0;
    }

    .nav-logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Show hamburger */
    }

    .desktop-only-btn {
        display: none;
        /* Hide top CTA button */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full width or 70% */
        max-width: 300px;
        background: rgba(15, 23, 42, 0.98);
        /* Solid dark bg */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        /* Center items */
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        /* Slide out */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 80px 20px;
        border-right: none;
        border-left: 1px solid var(--card-border);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
        /* Slide in */
    }

    .nav-links li a {
        font-size: 1.2rem;
        /* Larger text for mobile */
        display: block;
    }

    .mobile-only-li {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
        /* Reduced from 5rem */
        padding: 0 10px;
    }

    .hero p.quote {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Layout Grids */
    .grid-2,
    .form-grid-2 {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 40px;
    }

    .glass-panel {
        padding: 25px;
    }

    /* Order of sections: put Image ON TOP of Text if desired, or keep as is. 
       Default is Text then Image. If we want Image first without changing HTML, 
       we'd need flex-direction: column-reverse; */

    /* Gallery */
    .art-card {
        min-width: 250px;
        /* Slightly larger cards on mobile to fill width */
        height: 350px;
    }

    /* Chat Widget */
    .chat-widget-btn {
        right: 15px;
        bottom: 15px;
    }

    .chat-avatar {
        width: 100px;
        /* Smaller avatar */
    }

    .chat-bubble {
        right: 90px;
        bottom: 70px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .chat-window {
        width: 90%;
        /* Responsive width */
        right: 5%;
        left: 5%;
        bottom: 80px;
        height: 60vh;
    }

    /* Form inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem;
        /* Prevent zoom on iOS input focus */
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .cat-card {
        padding: 20px;
    }
}