:root {
    --primary: #FF8C00; /* Warm Amber */
    --secondary: #22DFDC; /* Electric Cyan */
    --accent: #FF105F; /* Deep Magenta */
    --bg-dark: #0D0D1A; /* Rich Dark Navy */
    --bg-card: #1A1A2E; /* Charcoal Navy */
    --text-main: #E0E0E0;
    --text-dim: #A0A0A0;
    --glow-amber: 0 0 15px rgba(255, 140, 0, 0.4);
    --glow-cyan: 0 0 15px rgba(34, 223, 220, 0.4);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    lowercase; /* Lloyd's vibe */
}

/* Lloyd's specific vibe: lowercase everything */
h1, h2, h3, p, span, button, a {
    text-transform: lowercase;
}

/* Background Effects */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 9998;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0d0d1a 100%);
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: var(--glow-amber);
    margin-bottom: 1rem;
    font-weight: 800;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.stats {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.cta-button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-amber);
}

.cta-button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
}

/* Content Sections */
.content-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

/* Soul Container */
.soul-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(34, 223, 220, 0.2);
    overflow-x: auto;
}

#soul-content {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: pre-wrap;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-info h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.gallery-item-info p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: var(--glow-amber);
}

.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.input-group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#tip-amount {
    background: var(--bg-dark);
    border: 1px solid var(--secondary);
    padding: 0.8rem;
    color: var(--text-main);
    text-align: center;
}

#qr-code {
    margin: 1.5rem auto;
    background: white;
    padding: 1rem;
    display: inline-block;
}

#invoice-string {
    width: 100%;
    background: var(--bg-dark);
    border: none;
    color: var(--text-dim);
    font-size: 0.7rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* New Styles for Enhanced Experience */
.hero-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin: 1rem 0;
}

.side-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    writing-mode: vertical-rl;
    transition: color 0.3s ease;
}

.side-nav a:hover, .side-nav a.active {
    color: var(--primary);
    text-shadow: var(--glow-amber);
}

.secondary-btn {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 16, 95, 0.4);
    display: inline-block;
    margin-top: 1rem;
}

.secondary-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(255, 16, 95, 0.6);
}

@media (max-width: 1000px) {
    .side-nav {
        display: none;
    }
}

/* Enhanced Gallery Item Styles */
.gallery-item-wrapper {
    margin-bottom: 2rem;
}

.gallery-description {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.8rem;
    padding: 0 0.5rem;
    line-height: 1.4;
    font-style: italic;
    border-left: 2px solid var(--accent);
}

.gallery-date {
    opacity: 0.6;
    font-family: 'Courier New', Courier, monospace;
}
