@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Montserrat:wght@200;400;600&family=Playfair+Display:ital@1&display=swap');
:root {
    --primary-color: #1A0B2E; --accent-color: #E6A8A1; --accent-gold: #B37F64;
    --secondary-color: #38112D; --text-light: #FDFBFA;
    --heading-font: 'Cormorant Garamond', serif; --body-font: 'Montserrat', sans-serif;
    --signature-font: 'Playfair Display', serif;
    --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4); --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.6);
    --transition-liquid: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
body { font-family: var(--body-font); background-color: var(--primary-color); color: var(--text-light); line-height: 1.8; overflow-x: hidden; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url("https://www.transparenttextures.com/patterns/60-lines.png"); opacity: 0.03; z-index: 9999; pointer-events: none; animation: grain 1s steps(10) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0,0); } 10% { transform: translate(-1%,-1%); } 20% { transform: translate(1%,1%); } }
#liquid-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-color)); width: 0%; z-index: 10000; box-shadow: 0 0 10px var(--accent-gold); }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 300; }
/* --- God-Tier: Editorial Micro-Typography --- */
.micro-data {
    position: fixed;
    font-family: var(--body-font);
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    opacity: 0.6;
    z-index: 999;
    pointer-events: none;
    text-transform: uppercase;
}
.data-left { top: 50%; left: 20px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.data-right { bottom: 20px; right: 20px; text-align: right; }

/* --- God-Tier: Geometric Slice Reveal --- */
@keyframes sliceReveal {
    0% { opacity: 0; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transform: translateY(40px); }
    100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translateY(0); }
}
.slice-in {
    opacity: 0; 
    animation: sliceReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* --- Magnetic Physics Support --- */
.magnetic-btn {
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease !important;
    will-change: transform;
}

@media (max-width: 1024px) {
    .micro-data { display: none; }
}

.hero h1, .signature-box h2 { font-family: var(--signature-font) !important; font-weight: 400 !important; text-transform: none !important; }
.shimmer-text { background: linear-gradient(90deg, var(--text-light) 0%, var(--accent-color) 25%, var(--accent-gold) 50%, var(--accent-color) 75%, var(--text-light) 100%); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: textShimmer 4s linear infinite; }
@keyframes textShimmer { to { background-position: 200% center; } }
.container { max-width: 1100px; margin: 0 auto; padding: clamp(6rem, 15vw, 12rem) 2rem; position: relative; z-index: 10; }
.hero { min-height: 100vh; height: auto; display: flex; justify-content: center; align-items: center; position: relative; padding: 4rem 2rem; overflow: hidden; }
/* --- God-Tier: Edge Micro-Typography --- */
.micro-data { position: fixed; font-family: var(--heading-font); font-size: 0.7rem; letter-spacing: 5px; color: var(--accent-gold); opacity: 0.4; z-index: 100; writing-mode: vertical-rl; text-transform: uppercase; pointer-events: none; }
.data-left { top: 50%; left: 2rem; transform: translateY(-50%) rotate(180deg); }
.data-right { bottom: 3rem; right: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; writing-mode: horizontal-tb; }

@media (max-width: 1024px) {
    .micro-data { display: none; }
}

/* --- God-Tier: Editorial Split Hero --- */
.hero { min-height: 100vh; height: auto; display: flex; justify-content: center; align-items: flex-start; position: relative; padding: 0 6rem 6rem; overflow: hidden; }
.hero-immersive { background: var(--glass-bg); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); border: 1px solid var(--glass-border); border-top: none; border-radius: 0 0 clamp(30px, 8vw, 70px) clamp(30px, 8vw, 70px); box-shadow: var(--shadow-deep); max-width: 1100px; width: 100%; padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem); position: relative; overflow: hidden; animation: liquidEntrance 1.8s var(--transition-liquid); }

.hero-split-layout { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; }
.hero-text-side { flex: 1.4; text-align: left; padding-left: clamp(2rem, 5vw, 4.5rem); }
.hero-img-side { flex: 1; display: flex; justify-content: center; align-items: center; }

.hero-subtitle { font-size: clamp(0.6rem, 1.5vw, 0.8rem); text-transform: uppercase; letter-spacing: 8px; color: var(--accent-gold); margin-bottom: 1.5rem; opacity: 0.8; white-space: nowrap; }
.hero-vitals h1 { font-family: var(--heading-font); font-size: clamp(2.2rem, 6vw, 6rem); line-height: 1; margin-bottom: 1.5rem; font-weight: 400; letter-spacing: -1px; white-space: nowrap; }
.wedding-text { font-size: clamp(0.9rem, 2vw, 1.1rem); max-width: 450px; opacity: 0.8; line-height: 1.8; letter-spacing: 1px; }

.hero-date-box { display: flex; align-items: center; gap: 1.5rem; margin-top: 3rem; color: var(--accent-color); font-family: var(--heading-font); }
.hero-day { font-size: 1rem; letter-spacing: 6px; text-transform: uppercase; }
.hero-date-divider { width: 30px; height: 1px; background: var(--accent-gold); opacity: 0.4; }
.hero-full-date { font-size: 1.1rem; letter-spacing: 3px; font-weight: 500; color: var(--text-light); }

/* --- Natural Integration: No Frame Portrait --- */
.hero-subject-img { width: 100%; height: auto; max-width: 450px; max-height: clamp(300px, 50vh, 600px); object-fit: contain; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3)); position: relative; z-index: 5; transition: transform 0.2s ease-out; -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%); mask-image: linear-gradient(to bottom, black 85%, transparent 100%); }
.hero-subject-img:hover { transform: scale(1.02); }

/* --- Tablet/Mobile Responsive Logic --- */
@media (max-width: 1024px) {
    .hero-immersive { max-width: 800px; }
    .hero-split-layout { flex-direction: column-reverse; gap: 3rem; text-align: center; }
    .hero-text-side { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-date-box { justify-content: center; }
    .hero-subject-img { max-width: 320px; }
}

.hero-initials { position: absolute; bottom: -5%; right: -5%; font-family: var(--heading-font); font-size: clamp(8rem, 20vw, 15rem); opacity: 0.02; font-weight: 800; pointer-events: none; z-index: 1; letter-spacing: -2px; color: var(--accent-gold); }

.floating-element { pointer-events: none; z-index: 1; opacity: 0.2; filter: grayscale(30%) contrast(120%); }
.top-right-rose { position: fixed; top: -5%; right: -5%; transform: rotate(15deg); }
.bottom-left-rose { position: fixed; bottom: -10%; left: -10%; transform: rotate(-15deg); }

.program-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 5vw, 3rem); }
.program-card { background: var(--glass-bg); padding: clamp(3rem, 5vw, 5rem) 2rem; border-radius: 40px; border: 1px solid var(--glass-border); text-align: center; transition: var(--transition-liquid); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.program-card:hover { border-color: var(--accent-color); transform: scale(1.02); }
.event-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1.5rem; opacity: 0.8; }
.program-card .time { font-family: var(--heading-font); font-size: 2.2rem; color: var(--accent-color); margin-bottom: 1rem; }
.countdown-box { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 6rem); padding: clamp(4rem, 10vw, 6rem) 2rem; text-align: center; position: relative; width: 100vw; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent 0%, rgba(230, 168, 161, 0.08) 50%, transparent 100%); border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 5; }
.time-unit div:first-child { font-size: clamp(3.5rem, 12vw, 7.5rem); font-weight: 500; }
.venue-card { background: var(--glass-bg); padding: clamp(4rem, 10vw, 8rem) 2rem; border-radius: 50px; border: 1px solid var(--glass-border); box-shadow: var(--shadow-deep); transition: var(--transition-liquid); max-width: 900px; margin: 0 auto; }
.map-btn { display: inline-flex; align-items: center; gap: 15px; margin-top: 3rem; padding: 1.2rem 3rem; background: var(--accent-color); color: var(--primary-color); border-radius: 100px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; transition: var(--transition-liquid); text-decoration: none; }
.map-btn:hover { background: var(--text-light); transform: translateY(-5px); }
/* --- Architectural Venue Upgrade --- */
.architectural-card { position: relative; overflow: hidden; }
.venue-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--heading-font); font-size: clamp(8rem, 20vw, 15rem); color: var(--accent-color); opacity: 0.03; font-weight: 800; white-space: nowrap; pointer-events: none; z-index: 1; letter-spacing: 20px; }
.venue-gps { position: absolute; top: 2rem; left: 0; right: 0; text-align: center; font-family: 'Courier New', Courier, monospace; font-size: 0.8rem; letter-spacing: 6px; color: var(--accent-gold); opacity: 0.7; z-index: 2; pointer-events: none; }
.radar-btn { display: inline-flex; justify-content: center; align-items: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(230, 168, 161, 0.1); border: 1px solid var(--accent-color); color: var(--accent-color); font-size: 1.5rem; text-decoration: none; position: relative; margin-top: 2rem; transition: var(--transition-liquid); z-index: 2; outline: none; }
.radar-btn:hover { background: var(--accent-color); color: var(--primary-color); }
.radar-ping { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--accent-color); top: 0; left: 0; animation: radarPulse 2s cubic-bezier(0.21, 0.53, 0.56, 1) infinite; pointer-events: none; }
@keyframes radarPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

.signature-box { text-align: center; padding: clamp(8rem, 20vw, 15rem) 2rem; }
.signature-box h2 { font-size: clamp(2rem, 7vw, 7rem); }

/* --- God-Tier Micro-Glimmer --- */
.glimmer { 
    position: absolute; 
    background: radial-gradient(circle, var(--accent-gold) 30%, transparent 80%); 
    border-radius: 50%;
    pointer-events: none; 
    z-index: 5; 
    filter: blur(1.5px); 
    box-shadow: 0 0 10px rgba(230, 168, 161, 0.4);
}

.signature-box h2 { font-size: clamp(2rem, 7vw, 7rem); white-space: nowrap; }

/* --- God-Tier: Epic Verse Section --- */
.verse-container { position: relative; padding: clamp(10rem, 20vw, 15rem) 2rem; display: flex; justify-content: center; align-items: center; }
.verse-glow { position: absolute; width: 60vw; height: 60vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, rgba(230, 168, 161, 0.08), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; }
.verse-typography { position: relative; text-align: center; max-width: 900px; z-index: 5; }
.verse-typography::before { content: "“"; position: absolute; top: -50px; left: 50%; transform: translateX(-50%); font-family: var(--heading-font); font-size: 15rem; color: var(--accent-gold); opacity: 0.03; line-height: 1; z-index: -1; user-select: none; }
.verse-text { font-family: var(--signature-font); font-size: clamp(1.5rem, 3.5vw, 3rem); line-height: 1.4; color: var(--text-light); margin-bottom: 2rem; opacity: 0.9; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.verse-author { font-family: var(--body-font); font-size: 1.1rem; letter-spacing: 12px; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; }
#liquid-spotlight { position: fixed; width: 400px; height: 400px; background: radial-gradient(circle, rgba(230, 168, 161, 0.04), transparent 70%); border-radius: 50%; pointer-events: none; z-index: 1; transform: translate(-50%,-50%); }
#petal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.petal { position: absolute; background-color: var(--accent-color); border-radius: 15% 70% 15% 70%; opacity: 0.3; filter: blur(1px); will-change: transform; }
.light-leak { position: fixed; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(230, 168, 161, 0.08), transparent 70%); z-index: 0; pointer-events: none; filter: blur(100px); }
.leak-1 { top: -20%; right: -20%; } .leak-2 { bottom: -20%; left: -20%; }
/* --- Eternal Aurora Background --- */
.parallax-bg { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; 
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), #1a0b2e, var(--primary-color));
    background-size: 400% 400%;
    animation: auroraWave 20s ease infinite;
}
@keyframes auroraWave { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* --- Clean Glass Borders --- */
.hero-glass, .program-card, .venue-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.floating-element { position: fixed; pointer-events: none; z-index: -1; opacity: 0.12; will-change: transform; }
.top-right { top: -5%; right: -5%; transform: rotate(-15deg); } .bottom-left { bottom: -8%; left: -8%; transform: rotate(165deg); }
@keyframes liquidEntrance { 0% { opacity: 0; transform: scale(0.95) translateY(40px); filter: blur(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
.section-divider { text-align: center; margin-bottom: 6rem; }
.section-divider .title { font-size: clamp(2.5rem, 8vw, 4rem); }
.section-divider .line { width: 80px; height: 2px; background: var(--accent-color); margin: 20px auto; }
/* --- Backdrop-filter Fallback (Old Android / Budget Phones) --- */
@supports not (backdrop-filter: blur(1px)) {
    .hero-glass, .program-card, .venue-card { background: rgba(26, 11, 46, 0.88); }
    .countdown-box { background: rgba(26, 11, 46, 0.75); }
}

/* --- Tablet Breakpoint (768px – 1024px) --- */
@media (max-width: 1024px) {
    .micro-data { display: none; }
    .program-list { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: clamp(3rem, 10vw, 7rem); }
}

/* --- Mobile Breakpoint (≤ 768px) --- */
@media (max-width: 768px) {
    /* Mobile: stack illustration on top, text below */
    .hero { padding: 0 1rem 4rem; }
    .hero-immersive { border-radius: 0 0 40px 40px; padding: 4rem 1.5rem 3rem; }
    .hero-split-layout { flex-direction: column-reverse; gap: 2rem; }
    .hero-text-side { padding-left: 0; text-align: center; }
    .hero-img-side { width: 80%; margin: 0 auto; }
    .hero-img-col { width: clamp(180px, 60%, 280px); margin: 0 auto; }
    .hero-text-col { width: 100%; text-align: center; }

    /* Fix 1: Prevent name overflow on small phones */
    .hero h1 { font-size: clamp(2.2rem, 9vw, 4rem); white-space: normal; word-break: break-word; }
    .signature-box h2 { white-space: normal; font-size: clamp(1.6rem, 7vw, 3.5rem); word-break: break-word; }

    /* Fix 2: Reduce letter spacing overflow */
    .verse-author { letter-spacing: 4px; font-size: 0.85rem; }
    .hero-subtitle { letter-spacing: 5px; }
    .hero-date { letter-spacing: 1px; }

    /* Fix 3: Hide large floating rose elements on mobile */
    .floating-element { display: none; }

    /* Fix 4: Single column program grid on mobile */
    .program-list { grid-template-columns: 1fr; }

    /* Fix 5: Reduce excess padding on mobile for better content density */
    .venue-card { padding: 5rem 1.5rem 3rem; }
    .verse-container { padding: 6rem 2rem; }
    .container { padding: 4rem 1.5rem; }
}

/* --- God-Tier: Premium Music Experience --- */
.music-toggle-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-liquid);
}

.music-toggle-container:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(179, 127, 100, 0.3);
}

.music-toggle-container i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    transition: var(--transition-liquid);
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
    position: absolute;
    bottom: 12px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.playing .music-visualizer {
    opacity: 1;
}

.playing i {
    opacity: 0;
    transform: scale(0.5);
}

.bar {
    width: 3px;
    background: var(--accent-gold);
    border-radius: 10px;
    animation: bounce 0s ease-in-out infinite;
}

.bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.bar:nth-child(3) { height: 80%; animation-delay: 0.5s; }
.bar:nth-child(4) { height: 40%; animation-delay: 0.2s; }

.playing .bar {
    animation-name: bounce;
    animation-duration: 0.8s;
}

@keyframes bounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

@media (max-width: 1024px) {
    .music-toggle-container { bottom: 20px; left: 20px; width: 50px; height: 50px; }
}
