/* VARIABLES & RESET */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --gold-primary: #bf953f;
    --gold-secondary: #b38728;
    --gold-highlight: #fcf6ba;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
    --text-light: #eaeaea;
    --text-dim: #888888;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.cover-page {
    overflow: hidden;
    /* Lock scroll until opened */
}

body.opened {
    overflow: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* HERO SECTION */
.hero-section {
    position: fixed;
    /* Fix to top */
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 100;
    /* Over content */
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-section.slide-up {
    transform: translateY(-100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    /* Ensure this matches your file */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    padding: 2rem;
    max-width: 800px;
    z-index: 2;
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-highlight);
    margin-bottom: 1rem;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.class-name {
    font-size: 4rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--gold-gradient);
    margin: 0 auto 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 300;
    margin-bottom: 3rem;
}

.hero-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* BUTTONS */
.cta-button {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-highlight);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 246, 186, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
    background: rgba(191, 149, 63, 0.1);
    transform: translateY(-2px);
}

.primary-cta {
    border-color: var(--gold-highlight);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.secondary-cta {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

.gold-cta {
    background: var(--gold-gradient);
    border: none;
    color: #000;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

.gold-cta:hover {
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(191, 149, 63, 0.3);
}

.outline-cta {
    border: 1px solid #fff;
    color: #fff;
    width: 100%;
    justify-content: center;
}

/* CONTENT SCROLL AREA */
.content-scroll {
    position: relative;
    background: var(--bg-darker);
    z-index: 20;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-in-out;
}

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

/* SECTIONS */
section {
    padding: 4rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--gold-highlight);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* DETAILS GRID */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(191, 149, 63, 0.2);
    border-radius: 4px;
}

.detail-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.detail-item h4 {
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* GALLERY PREVIEW */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.photo-placeholder {
    aspect-ratio: 1;
    background: #222;
    border-radius: 4px;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        background: #222;
    }

    50% {
        background: #333;
    }

    100% {
        background: #222;
    }
}

/* PREMIUM MESSAGE */
.premium-msg-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    border-top: 1px solid var(--gold-primary);
    border-bottom: 1px solid var(--gold-primary);
    padding: 5rem 1.5rem;
}

.elegant-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* FOOTER */
.main-footer {
    padding: 3rem;
    text-align: center;
    background: #000;
}

.brand-name {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.brand-sub {
    color: #555;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

.delay-8 {
    animation-delay: 1.6s;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CINEMA TICKET DESIGN */
.cinema-ticket {
    display: flex;
    background: #111;
    border: 1px solid var(--gold-secondary);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    color: var(--text-light);
    transform: rotate(-2deg);
    transition: var(--transition-fast);
}

.cinema-ticket:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(191, 149, 63, 0.2);
}

.ticket-stub {
    background: var(--gold-primary);
    color: #000;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px dashed #000;
    min-width: 100px;
    position: relative;
}

.ticket-stub::before,
.ticket-stub::after {
    content: '';
    position: absolute;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
}

.ticket-stub::before {
    top: -10px;
}

.ticket-stub::after {
    bottom: -10px;
}

.admit-one {
    font-size: 0.6rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 2px;
    opacity: 0.7;
    position: absolute;
    left: 5px;
    height: 100%;
}

.ticket-date {
    text-align: center;
    font-weight: 700;
}

.ticket-date .month {
    display: block;
    font-size: 1rem;
    letter-spacing: 2px;
}

.ticket-date .day {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
}

.ticket-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: radial-gradient(circle at right, #222 0%, #111 100%);
}

.ticket-header {
    font-family: var(--font-heading);
    color: var(--gold-highlight);
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.ticket-info .info-row {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
}

.info-row .label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-row .value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.ticket-footer {
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: right;
    color: var(--gold-secondary);
    letter-spacing: 2px;
    margin-top: 1rem;
}

.gps-btn {
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gps-btn:hover {
    transform: scale(1.05) translateY(-3px);
    background: rgba(191, 149, 63, 0.2);
    box-shadow: 0 10px 30px rgba(191, 149, 63, 0.4);
}


/* DETAILS PAGE SPECIFIC */
body.details-page {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.details-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: -1;
    position: fixed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .class-name {
        font-size: 3rem;
    }

    .premium-details-grid {
        grid-template-columns: 1fr;
    }
}

/* MESSAGE WALL */
.message-wall-section {
    background: linear-gradient(to bottom, #050505, #111, #050505);
    padding-bottom: 6rem;
}

.messages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.message-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(191, 149, 63, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.message-card p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--gold-highlight);
    font-size: 0.95rem;
}

/* Floating Animation */
.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card.delay-1 {
    animation-delay: 0s;
}

.floating-card.delay-2 {
    animation-delay: 1.5s;
}

.floating-card.delay-3 {
    animation-delay: 3s;
}

.floating-card.delay-4 {
    animation-delay: 4.5s;
}

@keyframes floatCard {

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

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

/* Input Area */
.message-input-area {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gold-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-secondary);
    color: #fff;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    border-radius: 4px;
    transition: 0.3s;
}

.gold-input:focus {
    outline: none;
    border-color: var(--gold-highlight);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.gold-input::placeholder {
    color: var(--text-dim);
}

.send-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* COUNTDOWN SECTION */
.countdown-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    /* Monospace for technical cinema feel */
    margin-top: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.5);
    line-height: 1;
}

.time-unit .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

.separator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: -1.5rem;
}

/* DRESS CODE SECTION */
.dress-code-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom, #0a0a0a, #111);
}

.dress-code-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.dress-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    transition: var(--transition-fast);
}

.dress-card:hover {
    border-color: var(--gold-primary);
    background: rgba(191, 149, 63, 0.05);
    transform: translateY(-5px);
}

.icon-glow {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: 0.3s;
}

.dress-card:hover .icon-glow {
    filter: drop-shadow(0 0 15px var(--gold-primary));
    transform: scale(1.1);
}

.dress-card h4 {
    color: var(--gold-highlight);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.dress-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

@media (max-width: 600px) {
    .countdown-display {
        gap: 0.5rem;
    }

    .time-unit .number {
        font-size: 1.8rem;
    }

    .time-unit .label {
        font-size: 0.5rem;
    }

    .separator {
        font-size: 1.5rem;
    }
}

/* POPCORN RAIN ANIMATION */
.popcorn-particle {
    position: fixed;
    top: -50px;
    z-index: 1000;
    pointer-events: none;
    background-image: url('popcorn.png');
    background-size: contain;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    /* Makes black background transparent */
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}