/* --- RESET & BASE --- */
:root {
    --color-bg: #F7F5F0;
    --color-text: #334155;
    --color-red: #dc2626;
    --color-blue: #2563eb;
    --color-paper: #fff;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-hand: 'Caveat', cursive;
}

html { scroll-behavior: smooth; }

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

body {
    background-color: var(--color-bg);
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- UTILITIES --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-serif); color: #1e293b; }
.font-hand { font-family: var(--font-hand); }
.text-red { color: var(--color-red); }
.text-blue { color: var(--color-blue); }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(247, 245, 240, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
}
.nav-logo { font-family: var(--font-hand); font-size: 1.8rem; font-weight: 700; user-select: none; }
.nav-links { display: flex; gap: 2rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; }
.nav-links a:hover { color: var(--color-red); transform: translateY(-2px); display: inline-block; }

.mobile-toggle { display: none; }

/* --- HERO SECTION --- */
header { padding-top: 180px; padding-bottom: 60px; overflow: hidden; }
.hero-pill {
    display: inline-block; background: #fff; border: 1px solid #cbd5e1;
    padding: 0.25rem 1rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; transform: rotate(-1deg);
    margin-bottom: 2rem; color: #64748b;
}
h1 { font-size: 3.5rem; line-height: 1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.25rem; font-weight: 300; max-width: 500px; margin: 0 auto 2.5rem auto; color: #475569; }
.btn-primary {
    background: #1e293b; color: white; padding: 1rem 2rem; border-radius: 50px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s;
}
.btn-primary:hover { background: var(--color-red); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* --- INFINITE GALLERY --- */
.gallery-wrapper {
    position: relative; width: 100%; padding: 4rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.gallery-track {
    display: flex; width: max-content; gap: 2rem;
    animation: scroll 40s linear infinite;
}
.polaroid {
    background: white; padding: 0.75rem; padding-bottom: 2.5rem;
    width: 220px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; transition: transform 0.3s;
    position: relative; flex-shrink: 0;
}
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 10; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
.polaroid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: sepia(0.2); }
.polaroid-caption {
    position: absolute; bottom: 0.5rem; left: 0; width: 100%; text-align: center;
    font-family: var(--font-hand); font-size: 1.5rem; color: #57534e; opacity: 0.8;
}
.tape {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(1deg);
    width: 80px; height: 25px; background: rgba(255,255,255,0.4);
    border-left: 1px solid rgba(255,255,255,0.6); border-right: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(1px); box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- ABOUT --- */
#about { padding: 5rem 0; background: white; border-top: 1px dashed #cbd5e1; border-bottom: 1px dashed #cbd5e1; position: relative; }
.sticker {
    position: absolute; top: -40px; right: 20px; width: 100px; height: 100px;
    background:
        radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 35%, rgba(255,255,255,0) 70%),
        linear-gradient(90deg, var(--color-blue) 33%, #ffffff 33%, #ffffff 66%, var(--color-red) 66%);
    color: var(--color-text); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-align: center;
    font-weight: 800; font-size: 0.9rem; text-transform: uppercase;
    border: 4px solid white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: rotate(12deg); animation: pulse 3s infinite;
    text-shadow: 0 0 2px white;
    z-index: 1;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; text-align: left; font-weight: 300; font-size: 1.1rem; margin-top: 2rem; }

/* --- VENUE --- */
#venue { padding: 6rem 0; }
.venue-card {
    background: white; padding: 2.5rem; position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
    transform: rotate(1deg); max-width: 800px; margin: 0 auto;
}
.pin {
    position: absolute; top: -10px; left: 50%; width: 15px; height: 15px;
    background: var(--color-red); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.info-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: start; text-align: left; }
.info-row svg { width: 24px; height: 24px; min-width: 24px; color: var(--color-blue); }
.map-link { color: var(--color-red); font-weight: 700; border-bottom: 2px solid var(--color-red); }

/* --- CALENDAR --- */
#calendar { padding: 5rem 0; background: #f0fdf4; /* subtle tint */ background: #f1f5f9; border-top: 1px solid #cbd5e1; }
.chalkboard {
    background: #2a2a2a; color: #e2e8f0; padding: 10px;
    border: 8px solid #5c4033; border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    max-width: 900px; margin: 0 auto; transform: rotate(-1deg);
}
.chalkboard-inner {
    border: 1px solid rgba(255,255,255,0.1); padding: 2rem;
    min-height: 400px;
}
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: left; }
.month-title {
    font-family: var(--font-hand); font-size: 2rem; color: #fca5a5;
    border-bottom: 1px dashed rgba(255,255,255,0.2); margin-bottom: 1rem;
}
.date-item {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    align-items: baseline;
}
.date-item.past { text-decoration: line-through; opacity: 0.3; }
.time-badge {
    font-family: inherit;
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
}

/* --- MUSIC PLAYER --- */
.turntable-wrapper {
    display: flex; flex-direction: column; align-items: center;
}
.turntable {
    background: #e2e8f0; padding: 1rem; border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    display: inline-block;
}
.turntable-body {
    width: 300px; height: 260px;
    background: #bfdbfe; /* Light blue retro feel */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px; position: relative;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
}
.platter {
    position: absolute; top: 20px; left: 20px;
    width: 220px; height: 220px;
    background: #334155; border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.vinyl {
    position: absolute; top: 30px; left: 30px;
    width: 200px; height: 200px;
    background: #1e293b; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.5s ease-out;
}
.vinyl-grooves {
    position: absolute; width: 190px; height: 190px; border-radius: 50%;
    background: repeating-radial-gradient(
        #1e293b,
        #1e293b 2px,
        #0f172a 3px,
        #0f172a 4px
    );
}
.vinyl-label {
    width: 70px; height: 70px; background: #ef4444; /* Red */
    background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
    border-radius: 50%; z-index: 2;
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 2px solid white;
}
/* Animation Class */
.vinyl.spinning {
    animation: spinVinyl 4s linear infinite;
}

.tonearm {
    position: absolute; top: 20px; right: 20px;
    width: 30px; height: 200px;
    transform-origin: 15px 15px;
    transform: rotate(-30deg);
    transition: transform 1s ease;
    pointer-events: none; z-index: 10;
}
.tonearm.playing { transform: rotate(25deg); }
.tonearm-pivot { width: 30px; height: 30px; background: #94a3b8; border-radius: 50%; position: absolute; top: 0; left: 0; border: 2px solid #64748b; }
.tonearm-arm { width: 6px; height: 140px; background: #cbd5e1; position: absolute; top: 15px; left: 12px; }
.tonearm-head { width: 20px; height: 35px; background: #475569; position: absolute; top: 150px; left: 5px; border-radius: 4px; }

.controls-panel {
    position: absolute; bottom: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.control-btn {
    width: 30px; height: 30px; background: #e2e8f0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1), -1px -1px 2px white;
    color: #475569; transition: all 0.2s;
}
.control-btn:active { box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1); transform: translateY(1px); }
.status-light { width: 8px; height: 8px; background: #cbd5e1; border-radius: 50%; margin-top: 5px; border: 1px solid #94a3b8; transition: background 0.3s; }
.status-light.on { background: #22c55e; box-shadow: 0 0 5px #22c55e; }

/* --- FOOTER --- */
footer { background: #1e293b; color: #94a3b8; padding: 4rem 0; margin-top: 4rem; }
.footer-email { color: white; font-size: 1.2rem; border-bottom: 2px solid var(--color-red); padding-bottom: 2px; }

/* --- ANIMATIONS --- */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { transform: scale(1) rotate(12deg); } 50% { transform: scale(1.05) rotate(12deg); } }
@keyframes spinVinyl { 100% { transform: rotate(360deg); } }

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Hide desktop nav */
    .mobile-toggle { display: block; }
    .about-grid { grid-template-columns: 1fr; }
    .mobile-menu { display: flex; flex-direction: column; gap: 1rem; background: #F7F5F0; padding: 1rem; border-bottom: 1px solid #ccc; }
}
