/* 
   =============================================================================
   CHAMPAGNE NOIR DESIGN SYSTEM - XV ALEJANDRA
   Elegant, Modern, Formal
   =============================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

:root {
    /* Dark Palette */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1c1c1c;

    /* Light Accents */
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --text-subtle: #555555;

    /* Brand */
    --accent: #d4af73;
    --accent-light: rgba(212, 175, 115, 0.15);
    --accent-glow: rgba(212, 175, 115, 0.3);

    /* Typography */
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Raleway", sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-padding: clamp(20px, 5vw, 60px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== FLOATING PARTICLES ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 15s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    width: 3px;
    height: 3px;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    width: 4px;
    height: 4px;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    left: 40%;
    width: 2px;
    height: 2px;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    left: 55%;
    width: 5px;
    height: 5px;
    animation-delay: 2s;
}

.particle:nth-child(5) {
    left: 70%;
    width: 3px;
    height: 3px;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    left: 85%;
    width: 4px;
    height: 4px;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    left: 15%;
    width: 2px;
    height: 2px;
    animation-delay: 10s;
}

.particle:nth-child(8) {
    left: 90%;
    width: 3px;
    height: 3px;
    animation-delay: 12s;
}

.particle:nth-child(9) {
    left: 35%;
    width: 4px;
    height: 4px;
    animation-delay: 4s;
}

.particle:nth-child(10) {
    left: 60%;
    width: 2px;
    height: 2px;
    animation-delay: 7s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(20px);
        opacity: 0;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    background: var(--bg-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--text-light);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.9)),
        url('../img/hero-luxury.png') center/cover no-repeat;
    text-align: center;
    padding: 40px 20px;
}

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

.pre-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.parents-names {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-style: italic;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-content .date {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.3em;
    color: var(--accent);
}

#scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== SECTION TITLES ===== */
.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.section-header h2 {
    color: var(--text-light);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.section-title h2 {
    color: var(--text-light);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--accent);
}

.section-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    letter-spacing: 0.1em;
}

/* ===== GALLERY WITH PREMIUM LAYOUT ===== */
#gallery {
    background: var(--bg-dark);
}

.album-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--accent);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.15em;
    position: relative;
}

.album-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.album-photo {
    aspect-ratio: 1/1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.album-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.album-photo::after {
    content: '\F4CA';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: var(--accent);
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-photo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 115, 0.3);
}

.album-photo:hover::before {
    opacity: 1;
}

.album-photo:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.album-photo:hover img {
    transform: scale(1.15);
}

/* ===== COUNTDOWN SECTION ===== */
#countdown {
    background: var(--bg-card);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 40px);
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 115, 0.2);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 40px) clamp(25px, 5vw, 50px);
    text-align: center;
    min-width: 100px;
    transition: var(--transition-smooth);
}

.countdown-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--accent-light);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.countdown-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

/* ===== QUOTE SECTION ===== */
#quote {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    text-align: center;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== EVENT DETAILS / TIMELINE ===== */
#event-details {
    background: var(--bg-dark);
}

.timeline-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.timeline-event {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.timeline-venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* ===== DRESS CODE ===== */
#dress-code {
    background: var(--bg-card);
    text-align: center;
}

.dress-code-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
    margin-bottom: 20px;
}

.dress-code-content>p {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.dress-details {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 10vw, 100px);
    flex-wrap: wrap;
}

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

.dress-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.dress-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== GIFTS SECTION ===== */
#gifts {
    background: var(--bg-dark);
    text-align: center;
}

.gift-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
    margin-bottom: 20px;
}

.gift-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-inline: auto;
}

/* ===== BUTTONS ===== */
.btn-elegant {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
}

.btn-elegant:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ===== RSVP SECTION ===== */
#rsvp {
    background: var(--bg-card);
}

.rsvp-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.invitation-limit-alert {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.elegant-form .form-group {
    margin-bottom: 25px;
}

.elegant-form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.elegant-form input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-subtle);
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.elegant-form input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.elegant-form input::placeholder {
    color: var(--text-subtle);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-smooth);
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--text-light);
}

/* Confirmation */
.registration-success {
    text-align: center;
    padding: 40px;
}

.registration-success i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.registration-success h2 {
    color: var(--text-light);
    margin-bottom: 30px;
}

#qrcode {
    margin: 30px auto;
    padding: 20px;
    background: white;
    display: inline-block;
    border-radius: 8px;
}

/* ===== INSTAGRAM SECTION ===== */
#instagram {
    background: var(--bg-dark);
    text-align: center;
    padding: 80px 20px;
}

#instagram h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.hashtag {
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}

/* ===== INSTAGRAM MODAL - PREMIUM REDESIGN ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
}

.ig-modal-container {
    background: var(--bg-card);
    width: 100%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

/* Image Section - Fixed Width */
.ig-modal-image {
    flex: 0 0 60%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ig-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Section - Fixed Width */
.ig-modal-sidebar {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header */
.ig-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ig-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, #e6c896 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.2rem;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.ig-user-info {
    flex: 1;
    min-width: 0;
}

.ig-user-info span {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ig-user-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions Bar */
.ig-actions {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ig-actions-row {
    display: flex;
    gap: 18px;
    align-items: center;
}

.ig-actions i {
    font-size: 1.6rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ig-actions i:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.ig-actions i:active {
    transform: scale(0.95);
}

.ig-actions i.bi-heart-fill {
    color: #ed4956;
}

.ig-actions-spacer {
    flex: 1;
}

/* Likes Count */
.ig-likes {
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Caption Section - Scrollable */
.ig-caption {
    padding: 18px 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ig-caption::-webkit-scrollbar {
    width: 4px;
}

.ig-caption::-webkit-scrollbar-track {
    background: transparent;
}

.ig-caption::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.ig-caption-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ig-caption-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #e6c896 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.ig-caption-text {
    flex: 1;
    min-width: 0;
}

.ig-caption-username {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-right: 8px;
}

.ig-caption-content {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.ig-caption-hashtag {
    color: var(--accent);
    margin-top: 10px;
    display: block;
    font-size: 0.9rem;
}

.ig-caption-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 10px;
    display: block;
    letter-spacing: 0.05em;
}

/* Comment Input */
.ig-comment-box {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ig-comment-box i {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.ig-comment-box i:hover {
    color: var(--accent);
}

.ig-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
}

.ig-comment-input::placeholder {
    color: var(--text-muted);
}

.ig-post-button {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ig-post-button:hover {
    color: var(--text-light);
}

/* ===== MUSIC PLAYER - CENTERED WITH SOUND WAVES ===== */
#music-player {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 115, 0.3);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#music-player:hover {
    border-color: var(--accent);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 115, 0.3);
}

.player-disc-wrapper {
    width: 50px;
    height: 50px;
    position: relative;
}

.player-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bg-dark) 20%, transparent 21%),
        url('../img/fer_actual1.jpeg') center/cover;
    border: 2px solid var(--accent);
    animation: spin-disc 4s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 0 20px rgba(212, 175, 115, 0.3);
}

#music-player.playing .player-disc {
    animation-play-state: running;
}

@keyframes spin-disc {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.player-info {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.player-song {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.player-artist {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Sound Wave Animation */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.sound-wave .bar {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: sound-wave 0.8s ease-in-out infinite;
    opacity: 0.3;
}

#music-player.playing .sound-wave .bar {
    opacity: 1;
}

.sound-wave .bar:nth-child(1) {
    animation-delay: 0s;
}

.sound-wave .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.sound-wave .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.sound-wave .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.sound-wave .bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes sound-wave {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 24px;
    }
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Gallery - Single Column on Mobile */
    .album-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero */
    .hero-content h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .pre-title {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    /* Timeline - single column */
    .timeline-container {
        padding-left: 50px;
    }

    .timeline-event.left,
    .timeline-event.right {
        width: 100%;
        left: 0;
        text-align: left;
    }

    /* Instagram Modal - Properly Constrained on Mobile */
    .modal-overlay {
        padding: 10px;
    }

    .ig-modal-container {
        flex-direction: column;
        max-width: 100%;
        height: auto;
        max-height: 90vh;
        border-radius: 8px;
    }

    .ig-modal-image {
        flex: 0 0 auto;
        max-height: 50vh;
    }

    .ig-modal-image img {
        object-fit: contain;
    }

    .ig-modal-sidebar {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 40vh;
    }

    .ig-caption {
        max-height: 150px;
        overflow-y: auto;
    }

    /* Music Player - Keep Centered */
    #music-player {
        bottom: 20px;
        padding: 12px 20px;
        gap: 15px;
    }

    .player-disc-wrapper {
        width: 42px;
        height: 42px;
    }

    .player-info {
        min-width: 120px;
    }

    .player-song {
        font-size: 0.8rem;
    }

    .player-artist {
        font-size: 0.65rem;
    }

    .sound-wave .bar {
        width: 2.5px;
        gap: 2px;
    }

    /* Countdown */
    .countdown-item {
        min-width: 80px;
        padding: 20px;
    }

    .countdown-number {
        font-size: 2rem;
    }
}

/* Remove old noise overlay for cleaner look */
.noise-overlay {
    display: none;
}

/* AOS Animation Enhancements */
[data-aos] {
    transition-duration: 800ms !important;
}