/* ==========================================
   CSS VARIABLES - Cosmic Jungle Dark Theme
   ========================================== */
:root {
    /* Primary Brand Colors - Vivid Orange from artwork */
    --primary-color: #FF6B35;      /* Vivid orange */
    --primary-dark: #E5522E;       /* Darker orange for hover */
    --primary-light: #FF8555;      /* Lighter orange */

    /* Secondary Colors - Hot Pink and Neon Green from artwork */
    --secondary-color: #FF1B8D;    /* Hot pink accent */
    --secondary-dark: #D91677;     /* Darker pink */
    --tertiary-color: #39FF14;     /* Neon green accent */

    /* Dark Theme - Cosmic Background */
    --background: #0A0E1A;         /* Almost black with blue tint */
    --background-elevated: #141821; /* Slightly lighter for cards */
    --background-gray: #1A1F2E;    /* Alternate sections */
    --background-hero: linear-gradient(135deg, #0F1419 0%, #1A1535 50%, #0D1B1E 100%); /* Cosmic gradient */

    /* Text Colors - Light on dark */
    --text-primary: #E8EDF2;       /* Almost white */
    --text-secondary: #9CA3AF;     /* Muted gray */
    --text-dim: #6B7280;           /* Dimmer text */

    /* Border Colors */
    --border-color: #2D3748;       /* Subtle borders */
    --border-accent: #3A4556;      /* Slightly brighter borders */

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 4rem 2rem;
    --header-height: 80px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

/* Artist Photo Section */
.artist-photo-section {
    padding: 3rem 0;
}

.artist-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.artist-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.artist-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.3);
}

/* Hide artist photo section if image fails to load or is placeholder */
.artist-photo-section.hidden {
    display: none;
}

.bg-gray {
    background-color: var(--background-gray);
}

.text-center {
    text-align: center;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.header-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: var(--background-gray);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: var(--background-hero);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 27, 141, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.4));
    border-radius: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ==========================================
   BUTTONS
   ========================================== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    background-color: var(--primary-dark);
    color: white;
}

/* CTA Section specific button styling */
.cta-section .cta-button {
    background-color: var(--background-elevated);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.cta-section .cta-button:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* ==========================================
   GRID & CARDS
   ========================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

/* Hide cards with empty titles */
.card:has(h3:empty) {
    display: none;
}

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

/* ==========================================
   SERVICES
   ========================================== */
.services-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2.5rem;
}

.service-card h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
    border-color: var(--primary-color);
}

.artwork-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--background-gray) 0%, var(--background-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.artwork-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(255, 27, 141, 0.05) 0%, transparent 60%);
}

.placeholder-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.placeholder-content p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Real artwork images (when client provides) */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Uploading placeholder for recently uploaded images */
.gallery-item-uploading {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-elevated), var(--background-gray));
    border: 2px dashed var(--border-accent);
    gap: 1rem;
}

.gallery-item-uploading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gallery-item-uploading .status-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.artwork-info {
    padding: 1.5rem;
}

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

.artwork-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.artwork-price {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.artwork-price:empty {
    display: none;
}

.btn-inquire {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-inquire:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

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

.gallery-note {
    background-color: var(--background-elevated);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.gallery-note p {
    color: var(--text-secondary);
    margin: 0;
}

.gallery-note strong {
    color: var(--primary-color);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--background-elevated);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--background);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-status {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    background-color: rgba(57, 255, 20, 0.15);
    color: var(--tertiary-color);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.form-status.error {
    background-color: rgba(255, 27, 141, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 27, 141, 0.3);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, #1A0F2E 0%, #0D1B1E 50%, #1A0F2E 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3rem 2rem 1.5rem;
}

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

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

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.built-by {
    font-size: 0.875rem;
}

.built-by a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

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

    .hero-logo {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }

    .header-logo {
        height: 40px;
    }

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

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--background);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    /* Layout */
    .grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 400px;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}

/* ==========================================
   DONATION PAGE STYLES
   ========================================== */
.donation-preview {
    max-width: 900px;
    margin: 0 auto;
}

.donation-options {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.donation-amount {
    background-color: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-amount:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.donation-amount:active {
    transform: translateY(-2px);
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.amount-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
   LIGHTBOX - Image Gallery Viewer
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 26, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    min-width: 400px;
    min-height: 300px;
    animation: zoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    min-width: 400px;
    min-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-primary);
    font-size: 1.125rem;
    padding: 1rem;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.lightbox-nav:hover {
    background: rgba(255, 107, 53, 0.3);
    color: var(--primary-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Gallery item cursor */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        min-width: 300px;
        min-height: 250px;
    }

    .lightbox-image {
        min-width: 300px;
        min-height: 250px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-caption {
        bottom: 0;
        background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
        padding: 2rem 1rem 1rem;
        font-size: 1rem;
    }

    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    .hero h1 { font-size: 2rem; }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .donation-options {
        padding: 2rem 1rem;
    }

    .donation-amount {
        padding: 1.5rem 1rem;
    }

    .amount-value {
        font-size: 2rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
}
