
@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Italianno&family=Markazi+Text:wght@400..700&display=swap');

/* 
===================================================================
VARIABLES
=================================================================== 
*/
:root {
--base-color:  #FFFFFF;
--aqua-color:  #e2b29d;
--text-color:  #1e182c;
--grey-color:  #D8DFF0;
--grape-color: #8c5446;
--nav-height:  68px;
}

/* 
===================================================================
RESET
==================================================================
= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
}

html {
font-family: 'Markazi Text', serif;
color: var(--text-color);
scroll-behavior: smooth;
scroll-padding-top: calc(var(--nav-height) + 12px);
overflow-x: hidden; 
}

body { 
background: #000; 
overflow-x: hidden; 
} 

h1, h2 { font-family: 'Italianno', cursive; }
h3, h4  { font-family: 'Fugaz One', sans-serif; }

/* 
===================================================================
BACKGROUND CROSSFADE SYSTEM
=================================================================== */
.bg-layer {
position: fixed;
inset: 0;
z-index: 0;          
opacity: 0;
transition: opacity 0.9s ease;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.bg-layer.active { opacity: 1; }

#bg-hero {
background-image: url("FancyDome.jpg");
background-color: #d39aae;
}

#bg-info {
background-color: #e9c69f;             
}
#bg-info::after {
content: "";
position: absolute;
inset: 0;
background: rgba(198, 161, 121, 0.55);   
}

#bg-faq {
background-color: #093824;             
}
#bg-faq::after {
content: "";
position: absolute;
inset: 0;
background: rgba(9, 56, 36, 0.60);  
}

/* ===================================================================
STICKY NAVBAR
=================================================================== */
#navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: var(--nav-height);
z-index: 1000;             
display: flex;
align-items: center;
padding: 0 2.5rem;
background: linear-gradient(to bottom,
rgba(221, 181, 192, 0.92),
rgba(230, 206, 181, 0.8));
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
box-shadow: 0 1px 12px rgba(0,0,0,0.10);
transition: height 0.3s, background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
height: 54px;
background: rgba(230, 207, 181, 0.8);
box-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

#navbar ul {
display: flex;
align-items: center;
gap: 2em;
list-style: none;
width: 100%;
max-width: 1100px;
margin: 0 auto;
}

#navbar li.logo { margin-right: auto; }

#navbar li.logo a {
font-family: 'Italianno', cursive;
font-size: 2rem;
color: var(--text-color);
text-decoration: none;
}

#navbar a {
font-family: 'Fugaz One', sans-serif;
font-size: 0.82rem;
letter-spacing: 0.05em;
text-decoration: none;
color: var(--text-color);
transition: color 0.2s;
}

#navbar a:hover { color: var(--grape-color); text-decoration: underline; }

@media (max-width: 600px) {
#navbar ul { gap: 1em; }
#navbar a  { font-size: 0.72rem; }
.info-grid { grid-template-columns: 1fr 1fr; }
#navbar li.logo { display: none; }
}
/* 
===================================================================
PANELS  
=================================================================== 
*/
.panel {
position: relative;
z-index: 1;           /* above bg layers */
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

.panel-inner {
width: min(860px, 90%);
margin: 0 auto;
padding: calc(var(--nav-height) + 3rem) 0 5rem;
}

/* 
===================================================================
HERO PANEL
=================================================================== 
*/
.panel-hero {
text-align: center;
color: #fff;
}

.hero-stage {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: min(680px, 92vw);
min-height: 420px;
margin: 0 auto;
background: rgba(137, 112, 75, 0.45);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(236, 180, 154, 0.25);
border-radius: 2rem;
box-shadow:
0 8px 48px rgba(0,0,0,0.45),
inset 0 1px 0 rgba(255,255,255,0.08);
padding: 3.5rem 3rem;
animation: stageReveal 1s ease forwards;
}

@keyframes stageReveal {
from { opacity: 0; transform: scale(0.96); }
to   { opacity: 1; transform: scale(1); }
}


.swirl {
position: absolute;
width: 160px;
height: 160px;
pointer-events: none;
}
.swirl-tl { top: -20px;    left: -20px; }
.swirl-tr { top: -20px;    right: -20px; }
.swirl-bl { bottom: -20px; left: -20px; }
.swirl-br { bottom: -20px; right: -20px; }

.swirl-path {
stroke-dasharray: 600;
stroke-dashoffset: 600;
animation: drawSwirl 3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes drawSwirl {
to { stroke-dashoffset: 0; }
}

.sparkles { position: absolute; inset: 0; pointer-events: none; }

.spark {
position: absolute;
left: var(--x);
top:  var(--y);
width: 6px;
height: 6px;
border-radius: 50%;
background: #f5ea9f;
opacity: 0;
animation: sparkle 2s ease var(--d) infinite;
box-shadow: 0 0 6px 2px rgba(255, 245, 197, 0.6);
}

.spark:nth-child(odd) {
clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
width: 10px;
height: 10px;
background: #fff9e1;
box-shadow: 0 0 8px 2px rgba(247, 199, 199, 0.5);
}

@keyframes sparkle {
0%   { opacity: 0;   transform: scale(0) rotate(0deg); }
30%  { opacity: 1;   transform: scale(1) rotate(45deg); }
70%  { opacity: 0.6; transform: scale(0.8) rotate(90deg); }
100% { opacity: 0;   transform: scale(0) rotate(180deg); }
}

.hero-text { position: relative; z-index: 1; }

.hero-ornament {
font-family: 'Fugaz One', sans-serif;
font-size: 0.8rem;
letter-spacing: 0.3em;
color: var(--aqua-color);
opacity: 0;
animation: riseFade 0.7s ease forwards;
}
.ornament-top { animation-delay: 0.8s;  margin-bottom: 1rem; }
.ornament-mid { animation-delay: 1.4s;  margin: 0.6rem 0 1rem; }

.hero-title {
position: relative;
font-size: clamp(4rem, 11vw, 8rem);
line-height: 1;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.2em;
overflow: visible;
}

.hero-title::after {
content: "";
position: absolute;
top: 0; left: -100%;
width: 60%; height: 100%;
background: linear-gradient(105deg, transparent 40%, rgba(248, 239, 225, 0.15) 50%, transparent 60%);
animation: shimmer 1.2s ease 1.6s forwards;
}

@keyframes shimmer { to { left: 200% } }

.word {
display: inline-block;
opacity: 0;
animation: wordEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
animation-delay: calc(0.6s + var(--i) * 0.25s);
text-shadow:
0 0 40px rgba(241, 209, 183, 0.4),
0 4px 20px rgba(0,0,0,0.5);
}


@keyframes wordEntrance {
from { opacity: 0; transform: translateY(40px) scale(0.85); filter: blur(8px); }
to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}


.hero-subtitle {
font-size: clamp(1.4rem, 4vw, 2.2rem);
color: rgba(242, 231, 209, 0.85);
opacity: 0;
size: 5rem;
animation: riseFade 0.8s ease 1.2s forwards;
}

@keyframes riseFade {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
font-size: 1.15rem;
line-height: 1.7;
margin-bottom: 2rem;
color: rgba(255, 233, 199, 0.75);
opacity: 0;
animation: riseFade 0.8s ease 1.6s forwards;
}

.hero-btn {
display: inline-block;
opacity: 0;
animation: riseFade 0.8s ease 1.9s forwards;
padding: 0.75em 2.4em;
background: var(--aqua-color);
color: var(--text-color);
font-family: 'Fugaz One', sans-serif;
font-size: 0.88rem;
letter-spacing: 0.07em;
text-decoration: none;
border-radius: 999px;
box-shadow: 0 4px 20px rgba(45, 65, 58, 0.35);
transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 28px rgba(255, 237, 166, 0.5);
}

/* 
===================================================================
INFO PANEL
=================================================================== 
*/
.panel-info {
color: #e7baba;         
}

.panel-info h3 {
font-size: clamp(2rem, 5vw, 3rem);
text-align: center;
margin-bottom: 3rem;
color: rgb(129, 56, 106);
letter-spacing: 0.04em;
text-shadow: 0 2px 12px rgba(67, 32, 32, 0.4);
}

.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 1.5rem;
}

.info-card {
background: rgba(255,255,255,0.12);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.25);
border-radius: 1.2rem;
padding: 2rem 1.5rem;
text-align: center;
transition: transform 0.2s, background 0.2s;
}

.info-card:hover {
transform: translateY(-5px);
background: rgba(64, 114, 30, 0.2);
}

.info-icon { font-size: 2.4rem; display: block; margin-bottom: 0.75rem; }

.info-card h4 {
font-size: 0.9rem;
letter-spacing: 0.08em;
margin-bottom: 0.5rem;
color: rgb(129, 56, 106)
}

.info-card p { 
    font-size: 1.1rem; 
    color: var(--text-color);  
    line-height: 1.55; opacity: 0.9; }

/*
===================================================================
FAQ PANEL
=================================================================== 
*/
.panel-faq { color: #fff; }

.panel-faq h3 {
font-size: clamp(2rem, 5vw, 3rem);
text-align: center;
margin-bottom: 2.5rem;
letter-spacing: 0.04em;
text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.faq-item {
border-bottom: 1px solid rgba(255,255,255,0.20);
}

.faq-question {
width: 100%;
background: none;
border: none;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 1.3rem 0;
font-family: 'Markazi Text', serif;
font-size: 1.25rem;
color: #fff;
text-align: left;
transition: color 0.2s;
}

.faq-question:hover { color: var(--aqua-); }

.faq-icon {
font-size: 1.7rem;
font-weight: 300;
line-height: 1;
flex-shrink: 0;
color: var(--aqua-color);
transition: transform 0.25s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
font-size: 1.1rem;
line-height: 1.7;
color: rgba(255,255,255,0.8);
max-height: 0;
overflow: hidden;
transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
max-height: 300px;
padding-bottom: 1.25rem;
}


/* ===================================================================
ANNOUNCEMENT POPUP
=================================================================== */
#popup-backdrop {
position: fixed;
inset: 0;
z-index: 2000;
background: rgba(9, 56, 36, 0.65);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
animation: backdropIn 0.4s ease forwards;
}

@keyframes backdropIn {
from { opacity: 0; }
to   { opacity: 1; }
}

#popup-backdrop.popup-hidden {
animation: backdropOut 0.4s ease forwards;
}

@keyframes backdropOut {
to { opacity: 0; }
}

#popup {
position: relative;
width: min(560px, 95vw);
background: rgba(9, 56, 36, 0.55);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
border: 1px solid rgba(120, 254, 207, 0.30);
border-radius: 2rem;
box-shadow:
0 12px 60px rgba(0,0,0,0.55),
inset 0 1px 0 rgba(255,255,255,0.08);
color: #fff;
overflow: hidden;
animation: popupIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes popupIn {
from { opacity: 0; transform: scale(0.88) translateY(20px); }
to   { opacity: 1; transform: scale(1)    translateY(0); }
}

#popup-backdrop.popup-hidden #popup {
animation: popupOut 0.35s ease forwards;
}

@keyframes popupOut {
to { opacity: 0; transform: scale(0.92) translateY(10px); }
}

/* Corner swirls */
.popup-swirl {
position: absolute;
width: 130px;
height: 130px;
pointer-events: none;
}
.popup-swirl-tl { top: -10px;    left: -10px; }
.popup-swirl-br { bottom: -10px; right: -10px; }

.popup-swirl-path {
stroke-dasharray: 600;
stroke-dashoffset: 600;
animation: drawSwirl 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

/* Close × button */
#popup-close {
position: absolute;
top: 1rem;
right: 1.2rem;
background: none;
border: none;
color: rgba(255,255,255,0.6);
font-size: 1.8rem;
line-height: 1;
cursor: pointer;
z-index: 10;
transition: color 0.2s, transform 0.2s;
}
#popup-close:hover { color: var(--aqua-color); transform: rotate(90deg); }

/* Inner content */
.popup-inner {
padding: 2.5rem 2.5rem 2rem;
text-align: center;
position: relative;
z-index: 1;
}

.popup-ornament {
font-family: 'Fugaz One', sans-serif;
font-size: 0.75rem;
letter-spacing: 0.3em;
color: var(--aqua-color);
margin: 0.4rem 0;
}

.popup-inner h2 {
font-family: 'Lavishly Yours', cursive;
font-size: clamp(2.2rem, 6vw, 3.2rem);
margin: 0.3em 0;
text-shadow: 0 0 30px rgba(120,254,207,0.3);
}

/* Update list */
.popup-updates {
list-style: none;
margin: 1.5rem 0 2rem;
text-align: center;
display: flex;
flex-direction: column;
gap: 0.9rem;
}

.popup-updates li {
font-size: 1.1rem;
line-height: 1.5;
padding: 0.75rem 1rem;
background: rgba(255,255,255,0.07);
border-radius: 0.75rem;
border-left: 3px solid var(--aqua-color);
}

.popup-updates strong { color: var(--aqua-color); }

/* Dismiss button */
.popup-dismiss-btn {
display: inline-block;
padding: 0.7em 2.5em;
background: var(--aqua-color);
color: var(--text-color);
font-family: 'Fugaz One', sans-serif;
font-size: 0.88rem;
letter-spacing: 0.07em;
border: none;
border-radius: 999px;
cursor: pointer;
box-shadow: 0 4px 20px rgba(120,254,207,0.35);
transition: transform 0.2s, box-shadow 0.2s;
}
.popup-dismiss-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(120,254,207,0.5);
}


/* 
===================================================================
FOOTER
=================================================================== 
*/
footer {
position: relative;
z-index: 1;
background: rgba(9, 56, 36, 0.60);  
color: var(--grey-color);
text-align: center;
padding: 2rem 1rem;
font-family: 'Fugaz One', sans-serif;
font-size: 0.82rem;
letter-spacing: 0.06em;
}

footer a { color: var(--aqua-color); text-decoration: none; }
footer a:hover { opacity: 0.75; }

/* 
===================================================================
RESPONSIVE
=================================================================== 
*/
@media (max-width: 600px) {
#navbar ul { gap: 1em; }
#navbar a  { font-size: 0.72rem; }
.info-grid { grid-template-columns: 1fr 1fr; }
}