/* style.css - Premium Dark Mode Aesthetics for Gabuni.art */

:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ff3366; /* Vibrant pop-art red/pink */
    --accent-glow: rgba(255, 51, 102, 0.8);
    --accent-cyan: rgba(0, 240, 255, 0.7);
    --accent-purple: rgba(176, 38, 255, 0.7);
    --accent-yellow: rgba(255, 230, 0, 0.6);
    --border-color: #222222;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-logo {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    animation: loaderPulse 1.5s infinite alternate;
}
.loader-logo span {
    color: var(--accent-color);
}
@keyframes loaderPulse {
    0% { transform: scale(0.95); opacity: 0.5; text-shadow: 0 0 0 transparent; }
    100% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 20px var(--accent-glow); }
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, box-shadow 0.3s;
    mix-blend-mode: difference;
}

#custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: transparent;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.4); /* More transparent glass */
    backdrop-filter: blur(20px) saturate(150%); /* Better glassmorphism */
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent-color);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
    background: #ff4a7a;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-family: var(--font-serif);
    font-style: italic;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, var(--accent-cyan) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, var(--accent-yellow) 0%, transparent 60%),
        radial-gradient(circle at 20% 20%, var(--accent-purple) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 1;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
    animation: pulse 15s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.1) translate(-20px, 20px); opacity: 0.6; }
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--surface-color) 150px, var(--surface-color) calc(100% - 150px), var(--bg-color) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Standard Gallery Layout (Non-Moods) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    grid-auto-rows: auto;
    align-items: start; /* Prevent items from stretching to row height */
    gap: 20px;
}

.masonry-grid .gallery-item {
    grid-row-end: auto !important; /* Override JS masonry calculation */
}

/* Ensure non-moods images are fully visible and not cropped */
.masonry-grid:not(.moods-grid) .gallery-img {
    height: auto;
    object-fit: contain;
}

.collection-section {
    margin-bottom: 6rem;
}

.collection-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Custom MOODS grid 3x3 layout */
.moods-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (min-width: 900px) {
    .moods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.moods-grid .gallery-item {
    aspect-ratio: 3 / 4; /* Typical portrait poster ratio */
}

.moods-grid .gallery-img {
    height: 100%;
    object-fit: cover;
}


.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: none;
    background-color: var(--bg-color);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease, transform 0.6s ease;
    border: 1px solid rgba(255,255,255,0.05);
    transform-style: preserve-3d; /* For parallax depth */
    
    /* Scroll Reveal Initial State */
    opacity: 0;
    transform: translateY(50px);
}

.gallery-item.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
}

.gallery-item.visible:hover {
    box-shadow: 0 30px 60px rgba(255,51,102,0.15); /* Neon shadow */
    z-index: 10;
    border-color: var(--accent-color);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: #ccc;
    font-family: var(--font-serif);
    font-style: italic;
}

/* About Section */
.about-section {
    padding: 8rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-purple) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-family: var(--font-serif);
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.skull-abstract {
    width: 400px;
    height: 500px;
    background: linear-gradient(45deg, #111, #222);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.skull-abstract::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-glow) 25%, transparent 50%);
    animation: rotate 10s linear infinite;
}
.skull-abstract::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: 18px;
    z-index: 1;
}

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

/* Footer */
.footer {
    padding: 6rem 10% 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--surface-color) 150px, var(--surface-color) 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-cyan) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer > * {
    position: relative;
    z-index: 2;
}

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.socials a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.socials a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

.copyright {
    margin-top: 4rem;
    color: #555;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    padding-bottom: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    animation: zoom 0.4s ease;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

@keyframes zoom {
    from {transform:scale(0.95); opacity:0}
    to {transform:scale(1); opacity:1}
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 2001;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    height: auto;
    min-height: 100px;
    font-size: 1.2rem;
    font-family: var(--font-serif);
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 4rem 5%;
    }
    
    .hero {
        padding: 0 5%;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .nav-links {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-weight: bold;
        font-size: 1.2rem;
    }
    
    .logo-text span {
        color: var(--accent-color);
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    #custom-cursor {
        display: none !important;
    }
    
    body, .gallery-item {
        cursor: auto !important;
    }
    a, button {
        cursor: pointer !important;
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.05);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

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

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.remove-item:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

/* Lightbox Buy Button */
.lightbox-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-buy {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    background: #ff4a7a;
}

.btn-sold {
    background: #333;
    color: #888;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: not-allowed;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Modal */
.custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal .modal-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-modal.show .modal-content {
    transform: translateY(0);
}

.custom-modal input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.custom-modal input:focus {
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .moods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Smaller gap for mobile 2-column */
    }
    .masonry-grid {
        gap: 10px;
    }
}
