/* 1. PALETTE & VARS */
:root {
    --purple: #2E0249;   
    --gold: #DBB060;     
    --cream: #FFF6D2;    
    --white: #FFFFFF;
    --black: #1a1a1a;
    
    --font-head: 'Bebas Neue', sans-serif;
    --font-body: 'Epilogue', sans-serif;
}

/* 2. GLOBAL RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--cream);
    color: var(--black);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* BACKGROUND TEXTURE */
.texture-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    opacity: 0.4; 
    pointer-events: none;
    z-index: 999;
}

/* Utilities */
.font-bebas { font-family: var(--font-head); }
.font-epilogue { font-family: var(--font-body); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-black { color: var(--black); }
.bg-purple { background-color: var(--purple); }
.bg-gold { background-color: var(--gold); }
.bg-white { background-color: var(--white); }

/* 3. NAVIGATION */
.editorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo-text { font-size: 2rem; letter-spacing: 2px; }

.nav-center a {
    text-decoration: none;
    color: var(--purple);
    margin: 0 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    transition: 0.3s;
}

.nav-center a:hover { color: var(--gold); }

.btn-ticket {
    background: var(--purple);
    color: var(--cream);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
    letter-spacing: 1px;
}
.btn-ticket:hover { background: var(--gold); color: var(--purple); }

/* 4. HERO SECTION */
.hero-magazine {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.hero-title-area { position: relative; }

.floating-sticker {
    background: var(--gold);
    color: var(--purple);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    transform: rotate(-5deg);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
}

.giant-text {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.85;
    margin-bottom: 2rem;
}

.text-stroke {
    -webkit-text-stroke: 2px var(--purple);
    color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
}

.image-frame {
    position: relative;
    z-index: 1;
    border: 2px solid var(--purple);
    padding: 1rem;
    background: var(--white);
    transform: rotate(3deg);
    transition: 0.5s;
    box-shadow: 15px 15px 0px rgba(46, 2, 73, 0.1);
}
.image-frame:hover { transform: rotate(0deg); }

.hero-img { width: 100%; display: block; }

/* BADGE */
.circle-badge {
    position: absolute;
    top: auto; bottom: -30px; left: -30px; right: auto;
    width: 120px; height: 120px;
    background: var(--purple);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 1.5rem; line-height: 1;
    z-index: 5;
    animation: rockBadge 3s ease-in-out infinite; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--white);
}

@keyframes rockBadge { 
    0% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-10deg); } 
}

/* 5. MARQUEE STRIP */
.marquee-strip {
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    background: var(--purple);
    color: var(--cream);
}
.track { display: inline-block; font-size: 2rem; animation: scroll 20s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.invite-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 20px 20px;
}
.envelope-container { position: relative; max-width: 900px; width: 100%; }

.paper-card {
    background-color: var(--white);
    background-image: radial-gradient(#E8DCC0 0.8px, transparent 0.8px);
    background-size: 12px 12px;
    padding: 5rem 4rem; 
    text-align: center;
    box-shadow: 0 20px 60px rgba(46, 2, 73, 0.15);
    border: 3px solid var(--gold);
    outline: 2px solid var(--purple);
    outline-offset: -10px;
    border-radius: 4px;
    display: flex; flex-direction: column; align-items: center; 
}
.paper-card p { text-align: justify; max-width: 650px; margin: 0 auto 3rem; line-height: 1.9; width: 100%; font-size: 1.15rem; }

/* Details layout*/
.details-row { display: flex; justify-content: center; width: 100%; max-width: 800px; margin-bottom: 3.5rem; padding: 1rem 0; }
.details-col { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 3rem; 
}
.details-col .detail-box:first-child {
    min-height: 160px; 
    justify-content: flex-start; 
}

.detail-box { display: flex; flex-direction: column; align-items: center; text-align: left; padding: 0 1.5rem; }
.detail-box .value { 
    font-family: var(--font-body); 
    color: var(--purple); 
    font-weight: 700; 
    font-size: 1.25rem; 
    line-height: 1.4;
    
    display: inline-block;     
    text-align: left;         
    padding-left: 1.5rem;      
    margin: 0;                
    list-style-type: disc;
}   
.detail-box .label { 
    font-family: var(--font-head); 
    font-size: 1.3rem; 
    color: var(--gold); 
    margin-bottom: 0.75rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;

    width: 100%;       
    justify-content: flex-start;
    padding-left: 1.5rem; 
}
.details-col:first-child .detail-box:nth-child(1) .label::before { content: '✦'; font-size: 1rem; }
.details-col:first-child .detail-box:nth-child(2) .label::before { content: '✦'; font-size: 1rem; }
.details-col:last-child .detail-box:nth-child(1) .label::before { content: '📍'; font-size: 1rem; filter: sepia(100%) hue-rotate(5deg); }
.details-col:last-child .detail-box:nth-child(2) .label::before { content: '👔'; font-size: 1rem; filter: sepia(100%) hue-rotate(5deg); }



.btn-rsvp {
    display: inline-block; background: var(--gold); color: var(--purple); padding: 1.2rem 4rem;
    font-size: 1.5rem; text-decoration: none; border: 2px solid var(--purple);
    transition: 0.3s; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; 
    box-shadow: 4px 4px 0px rgba(46, 2, 73, 0.2);
}
.btn-rsvp:hover { background: var(--purple); color: var(--gold); box-shadow: 6px 6px 0 var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.stamp-badge {
    position: absolute; top: -50px; right: -30px; width: 130px; height: 130px;
    background: var(--white); border-radius: 50%; border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center; z-index: 5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); transform: rotate(15deg);
}
.stamp-img { width: 85%; }

.pillars-creative { padding: 6rem 5%; }
.section-title { font-size: 4rem; margin-bottom: 3rem; text-align: center; }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    padding: 3rem;
    position: relative;
    border-radius: 20px;
    transition: transform 0.3s;
    overflow: hidden;
    z-index: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: none !important;
}
.pillar-card:hover { transform: translateY(-10px); }

/* PILLAR BACKGROUNDS */
.pillar-card.bg-purple {
    background: linear-gradient(to top, rgba(46, 2, 73, 0.95), rgba(46, 2, 73, 0.4)), url('public/pillar-scale.png');
    background-size: cover; background-position: center; color: var(--cream) !important;
}
.pillar-card.bg-gold {
    background: linear-gradient(to top, rgba(219, 176, 96, 0.9), rgba(219, 176, 96, 0.5)), url('public/pillar-tie.png');
    background-size: cover; background-position: center; color: var(--purple) !important;
}
.pillar-card.bg-white {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5)), url('public/pillar-wreath.png');
    background-size: cover; background-position: center; border: 2px solid var(--purple) !important; color: var(--purple) !important;
}

.pillar-num {
    font-size: 5rem; opacity: 0.5; position: absolute; top: 10px; right: 20px;
    mix-blend-mode: multiply; color: inherit;
}
.pillar-card h3 { font-size: 2.5rem; margin-bottom: 0.5rem; position: relative; }
.pillar-card p { font-size: 1.1rem; line-height: 1.5; position: relative; opacity: 0.9; font-weight: 600; }

/* MERCH SECTION */
.merch-creative { padding: 6rem 5%; background-color: rgba(255, 255, 255, 0.5); }
.merch-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.merch-item { text-align: center; width: 300px; }

.merch-photo-frame {
    width: 100%; height: 350px; border: 2px solid var(--purple); padding: 10px;
    background: var(--white); margin-bottom: 1.5rem; transition: transform 0.3s;
    box-shadow: 10px 10px 0px rgba(46, 2, 73, 0.1); cursor: pointer;
}
.merch-photo-frame:hover { transform: rotate(-2deg) scale(1.02); }

.photo-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
    justify-content: center; font-size: 2rem; object-fit: cover; 
}

.merch-item h3 { font-size: 1.8rem; margin-bottom: 0.2rem; letter-spacing: 1px; }
.merch-item p { font-size: 1.2rem; font-weight: 700; color: var(--gold); }

/* MODALS */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); align-items: center; justify-content: center;
    padding: 2rem; backdrop-filter: blur(5px);
}
.modal-content.paper-card {
    position: relative; background: var(--white); width: 90%; max-width: 900px; max-height: 90vh;
    overflow-y: auto; padding: 3rem; text-align: left; animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }

.close-btn { position: absolute; top: 1rem; right: 1.5rem; color: var(--purple); font-size: 3rem; font-weight: bold; cursor: pointer; line-height: 0.7; transition: 0.3s; }
.close-btn:hover { color: var(--gold); }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1rem; }
.main-view-container { width: 100%; height: 500px; background: #f4f4f4; border: 2px solid var(--purple); padding: 10px; display: flex; align-items: center; justify-content: center; }
.main-view-img { max-width: 100%; max-height: 100%; object-fit: cover; filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.2)); }
.modal-details { display: flex; flex-direction: column; justify-content: center; }
.thumbnail-row { display: flex; gap: 1rem; margin-top: 1rem; }
.thumb-img { width: 80px; height: 80px; object-fit: cover; border: 2px solid rgba(46, 2, 73, 0.3); cursor: pointer; transition: 0.3s; padding: 5px; background: var(--white); }
.thumb-img:hover { border-color: var(--gold); transform: scale(1.05); }

/* REGISTRATION (VERTICAL STACK) */
.reg-container { padding: 8rem 5% 6rem; display: flex; flex-direction: column; align-items: center; gap: 6rem; max-width: 1200px; margin: 0 auto; }

.form-column { width: 100%; max-width: 900px; }
.form-card { background: var(--white); padding: 4rem; border: 1px solid var(--purple); box-shadow: 20px 20px 0px rgba(46, 2, 73, 0.1); }
.reg-details-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; align-items: center; }
.price-display { text-align: center; border: 2px dashed var(--gold); background: rgba(219, 176, 96, 0.1); padding: 2rem 1rem; border-radius: 8px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.price-display .amount { font-size: 3.5rem; display: block; line-height: 1; margin-bottom: 0.5rem; }
.price-display .per-head { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.inclusions-box { text-align: left; }
.editorial-list li { margin-bottom: 0.8rem; font-size: 1.05rem; padding-left: 2rem; position: relative; list-style: none; }
.editorial-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: bold; font-size: 1.2rem; }

/* BUTTONS */
.button-stack { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; margin-top: 2rem; }
.btn-phase1, .btn-phase2 {
    width: 100%; text-align: center; font-size: 1.3rem; font-weight: 700; padding: 1.2rem;
    letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all 0.3s ease;
    position: relative; cursor: pointer; box-shadow: 8px 8px 0px #CCCCCC !important; 
}

.btn-phase1 { background: var(--gold) !important; color: var(--purple) !important; border: 2px solid var(--purple) !important; }
.btn-phase1:hover { box-shadow: 8px 8px 0px var(--purple) !important; transform: translate(-2px, -2px); }

.btn-phase2 { background: var(--purple) !important; color: var(--gold) !important; border: 2px solid var(--gold) !important; }
.btn-phase2:hover { box-shadow: 8px 8px 0px var(--gold) !important; transform: translate(-2px, -2px); }

/* PROGRAM FLOW */
.flow-column { width: 100%; max-width: 900px; }
.flow-header { margin-bottom: 2rem; text-align: center; border-bottom: 3px solid var(--gold); padding-bottom: 1rem; }
.timeline-box { height: 600px; overflow-y: auto; background: rgba(255, 255, 255, 0.5); border-radius: 12px; border: 1px solid rgba(46, 2, 73, 0.1); padding: 2rem; scrollbar-width: thin; scrollbar-color: var(--purple) rgba(0,0,0,0.05); padding-right: 1.5rem;}
.timeline-box::-webkit-scrollbar { width: 8px; }
.timeline-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.timeline-box::-webkit-scrollbar-thumb { background-color: var(--purple); border-radius: 10px; }

.timeline { padding-left: 0; border-left: 3px solid rgba(219, 176, 96, 0.3); margin-left: 1rem; }
.timeline-group { margin-bottom: 4rem; }
.timeline-date { font-size: 2.2rem; color: var(--purple); margin-bottom: 0.5rem; }
.timeline-subtitle { font-size: 1.2rem; font-style: italic; color: #666; margin-bottom: 2.5rem; display: block; }

.timeline-item { position: relative; padding-left: 2rem; margin-bottom: 2.5rem; display: flex; gap: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.05rem; top: 1.5rem; width: 20px; height: 20px; background: var(--purple); border: 3px solid var(--gold); border-radius: 50%; z-index: 2; transition: 0.3s; }
.timeline-item:hover::before { background: var(--gold); border-color: var(--purple); transform: scale(1.2); }

.time { min-width: 90px; text-align: right; font-weight: bold; color: var(--purple); padding-top: 1.5rem; font-size: 1.1rem; }
.event-info { background: var(--white); padding: 1.5rem; border-radius: 12px; border-left: 4px solid var(--purple); box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex: 1; transition: 0.3s; cursor: default; }
.timeline-item:hover .event-info { transform: translateX(5px); box-shadow: 0 8px 25px rgba(46, 2, 73, 0.15); border-left-color: var(--gold); }
.event-title { font-weight: 700; font-size: 1.3rem; color: var(--black); display: block; margin-bottom: 0.5rem; }
.event-desc { font-size: 1rem; line-height: 1.6; color: #444; }
.mini-list { list-style: disc; padding-left: 1.2rem; margin-top: 0.5rem; font-size: 0.95rem; color: #555; line-height: 1.5; }

/* FOOTER (CENTERED & STACKED) */
.creative-footer { 
    padding: 4rem 5%; 
    border-top: 1px solid rgba(255, 246, 210, 0.2);
    background: var(--purple);
}

.footer-content {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;    
    gap: 2.5rem;           
    max-width: 800px;
    margin: 0 auto;
}

.social-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: 0.3s;
    
    /* Fixed Width for Uniformity */
    width: 260px; 
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background: var(--gold);
    color: var(--purple);
    transform: translateY(-3px);
}

/* Filled Style for NBLS Button */
.social-link.filled {
    background: var(--gold);
    color: var(--purple);
}

.social-link.filled:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

/* Logo Image Styling */
.btn-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
}

.creator-credit {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.footer-section h4 { margin-bottom: 0.5rem; }
.footer-section p { margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
    .editorial-nav {
        position: relative; 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 5%;
        gap: 0;
    }
    
    .nav-center { display: none; }
    
    /* Reset widths so they float left/right */
    .nav-left { width: auto; text-align: left; }
    .nav-right { width: auto; text-align: right; }

    /* HERO */
    .hero-magazine { padding: 2rem 5% 4rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title-area { margin-bottom: 2rem; }
    .hero-sub { margin: 0 auto; border: none; padding: 0; }
    .giant-text { font-size: 15vw; margin-bottom: 1rem; }

    .circle-badge {
        width: 90px;
        height: 90px;
        bottom: -20px;
        left: -10px;  
        font-size: 1.2rem;
    }

    /* Fix Stamp Logo */
    .stamp-badge {
        width: 100px;
        height: 100px;
        top: -30px;  
        right: -10px;
    }

    /* SECTIONS */
    .invite-section, .pillars-creative, .merch-creative {
        padding: 4rem 5%;
    }
    
    /* REGISTRATION */
    .reg-container {
        padding: 2rem 5% 4rem;
        gap: 4rem;
    }

    .details-row { flex-direction: column; gap: 0; }
    .details-col { gap: 2rem; padding: 2rem 0; }
    .details-col:first-child { border-right: none; border-bottom: 1px solid; border-image: linear-gradient(to right, transparent, var(--gold), transparent) 1; }
    .paper-card { padding: 3rem 1.5rem; }
    
    /* GRIDS */
    .pillars-grid, .merch-grid { grid-template-columns: 1fr; justify-items: center; }
    .merch-item { width: 100%; max-width: 350px; }
    
    /* REGISTRATION DETAILS */
    .reg-details-grid { grid-template-columns: 1fr; gap: 2rem; }
    .timeline-item { flex-direction: column; gap: 0.5rem; border-left: 2px solid var(--gold); padding-left: 1.5rem; margin-left: 0.5rem; }
    .timeline { border-left: none; margin-left: 0; }
    .timeline-item::before { left: -0.4rem; top: 0; width: 15px; height: 15px; }
    .time { text-align: left; padding-top: 0; margin-bottom: 0.5rem; }
    .timeline-box { height: auto; overflow: visible; padding: 0; background: transparent; border: none; }

    /* MODALS */
    .modal-grid { grid-template-columns: 1fr; }
    
    /* FIXED IMAGE SIZING ON MOBILE */
    .modal-content.paper-card {
        width: 96% !important; 
        padding: 1rem !important; 
    }

    .main-view-container { 
        height: 50vh !important; 
        padding: 0 !important;   
        margin-bottom: 1rem;
    }
    
    /* Force image to fill space & remove any inline padding */
    .main-view-img {
        padding: 0 !important; 
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .close-btn { top: 0.5rem; right: 1rem; font-size: 2.5rem; }
    
    /* STICKER MODAL */
    .thumbnail-row {
        justify-content: center;
        flex-wrap: wrap;       
    }
    .thumb-img {
        width: 70px; 
        height: 70px;
    }
}