/* BASE RESET & FONTS */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue: #3b82f6;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --gold: #d4af37;
  --red: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; background: var(--off-white); min-height: 100vh; }
body { font-family: 'Inter', sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased; }

.mono { font-family: 'Courier Prime', monospace; }
.names-script { font-family: 'Great Vibes', cursive; font-size: 2.2rem !important; color: var(--navy) !important; text-transform: none !important; margin: 5px 0 0 0 !important; }

/* SKY & CLOUDS BACKGROUND */
.sky-background {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #60a5fa 0%, #bfdbfe 100%);
  overflow: hidden; pointer-events: none;
}
.clouds {
  position: absolute; width: 200px; height: 60px;
  background: white; border-radius: 50px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.clouds::before, .clouds::after {
  content: ''; position: absolute; background: white; border-radius: 50%;
}
.clouds::before { width: 100px; height: 100px; top: -40px; left: 30px; }
.clouds::after { width: 70px; height: 70px; top: -20px; right: 30px; }

.cloud-1 { top: 15%; animation: panClouds 45s linear infinite; transform: scale(1.2); opacity: 0.8; }
.cloud-2 { top: 40%; animation: panClouds 60s linear infinite reverse; transform: scale(0.8); opacity: 0.6; }
.cloud-3 { top: 75%; animation: panClouds 35s linear infinite; transform: scale(1.5); opacity: 0.9; }

@keyframes panClouds {
  0% { left: -300px; }
  100% { left: 120vw; }
}

.flying-plane {
  position: absolute; width: 60px; height: 60px; color: white;
  top: 60%; left: -100px;
  animation: flyPlane 15s ease-in-out infinite;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

@keyframes flyPlane {
  0% { transform: translate(0, 0) rotate(15deg) scale(0.5); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(120vw, -30vh) rotate(15deg) scale(1.5); opacity: 0; }
}

/* INTRO TICKET */
.intro-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
}
.ticket-card {
  width: 100%; max-width: 360px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.ticket-header {
  background: var(--navy); color: var(--white);
  padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.airline-name { font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.ticket-class { font-size: 11px; letter-spacing: 2px; color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px; border-radius: 4px; }

.ticket-body { padding: 25px 20px; display: flex; flex-direction: column; gap: 20px; }

.ticket-photo-wrapper {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto; overflow: hidden;
  border: 4px solid var(--gray-light);
}
.ticket-photo { width: 100%; height: 100%; object-fit: cover; }

.ticket-row { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--gray-light); padding-bottom: 12px; }
.ticket-row.dual { flex-direction: row; justify-content: space-between; align-items: center; }
.ticket-row:last-child { border-bottom: none; padding-bottom: 0; }

.ticket-col { display: flex; flex-direction: column; gap: 4px; }
.text-right { text-align: right; }

.ticket-label { font-size: 10px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.ticket-value { font-size: 15px; font-weight: 800; color: var(--navy); text-transform: uppercase; }

.guest-row { background: var(--off-white); padding: 15px !important; border-radius: 8px; margin-top: 10px; border-bottom: none !important; }
.guest-name { font-size: 18px !important; color: var(--blue) !important; }

/* TEAR OFF LINE */
.ticket-tear {
  height: 20px; width: 100%;
  background-image: radial-gradient(circle at 10px 10px, transparent 10px, var(--white) 11px);
  background-size: 20px 20px;
  background-position: -10px 0;
  position: relative;
}
.ticket-tear::before {
  content: ''; position: absolute; top: 10px; left: 15px; right: 15px;
  border-top: 2px dashed var(--gray-light);
}

.ticket-footer {
  background: var(--white); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.barcode { display: flex; height: 40px; align-items: center; gap: 3px; justify-content: center; width: 100%; }
.bar { background: var(--navy); height: 100%; }
.bar.thin { width: 2px; } .bar.medium { width: 5px; } .bar.thick { width: 9px; }

.btn-checkin {
  width: 100%; background: var(--blue); color: var(--white);
  border: none; padding: 15px; border-radius: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: 2px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.btn-checkin:active { transform: scale(0.98); background: #2563eb; }

/* MAIN APP CONTAINER */
.app-container { width: 100%; max-width: 480px; min-height: 100vh; height: auto; margin: 0 auto; background: var(--white); position: relative; z-index: 10; box-shadow: 0 0 40px rgba(0,0,0,0.1); display: block; padding-bottom: 65px; overflow: hidden; }

.scroll-content { overflow: visible; height: auto; position: relative; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 50;
  height: 65px; background: var(--white);
  border-top: 1px solid var(--gray-light);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 999; box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--gray); text-decoration: none; font-size: 10px; font-weight: 600; text-transform: uppercase;
}
.nav-item:hover, .nav-item:active { color: var(--blue); }

/* SECTIONS */
.page-section { padding: 50px 25px; min-height: 100vh; position: relative; }
.bg-alt { background: var(--off-white); }

.section-title-wrap { text-align: center; margin-bottom: 40px; }
.title-main { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: 1px;}
.title-sub { font-size: 12px; color: var(--gray); margin: 0; letter-spacing: 2px; text-transform: uppercase; }

/* CREW */
.crew-grid { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.crew-card { background: var(--white); border-radius: 12px; padding: 20px; text-align: center; width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--gray-light); }
.crew-photo-wrap { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; border: 4px solid var(--off-white); }
.crew-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.crew-name { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 5px 0; }
.crew-parents { font-size: 12px; color: var(--gray); margin: 0; }
.crew-divider { font-family: 'Great Vibes', cursive; font-size: 40px; color: var(--blue); line-height: 1; }

/* ITINERARY (TIMELINE) */
.timeline { display: flex; flex-direction: column; gap: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 29px; top: 10px; bottom: 10px; width: 2px; background: var(--gray-light); }
.timeline-item { display: flex; gap: 20px; position: relative; z-index: 1; }
.timeline-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-light); display: flex; justify-content: center; align-items: center; color: var(--blue); flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.timeline-content { background: var(--white); padding: 20px; border-radius: 12px; flex: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--gray-light); }
.ev-badge { display: inline-block; background: var(--navy); color: var(--white); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; letter-spacing: 1px; }
.ev-title { font-size: 18px; font-weight: 800; margin: 0 0 10px 0; color: var(--navy); }
.ev-date, .ev-time { font-size: 13px; color: var(--gray); margin: 0 0 5px 0; font-weight: 600; }
.ev-location { font-size: 14px; font-weight: 700; color: var(--navy); margin: 15px 0 5px 0; }
.ev-address { font-size: 12px; color: var(--gray); margin: 0 0 15px 0; }
.btn-map { display: inline-block; background: var(--off-white); color: var(--blue); padding: 8px 15px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--gray-light); }

/* MEMORIES */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.polaroid { background: var(--white); padding: 8px 8px 30px 8px; border-radius: 4px; box-shadow: 0 8px 15px rgba(0,0,0,0.1); transform: rotate(-2deg); transition: transform 0.3s; }
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid img { width: 100%; height: 150px; object-fit: cover; border-radius: 2px; }

/* GUESTBOOK */
.guestbook-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--gray-light); }
.wishes-form input, .wishes-form select, .wishes-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid var(--gray-light); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; background: var(--off-white); }
.btn-submit { width: 100%; background: var(--navy); color: var(--white); border: none; padding: 15px; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }


/* INTRO / PRE-FLIGHT SECTION */
.intro-text { font-size: 15px; color: var(--navy); margin: 0; line-height: 1.6; }
.quote-box { text-align: center; margin: 30px 0; padding: 20px; background: var(--white); border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--gray-light); }
.quote-arab { font-family: 'Amiri', serif; font-size: 24px; color: var(--navy); margin: 0 0 15px 0; direction: rtl; line-height: 1.8; }
.quote-text { font-style: italic; color: var(--gray); font-size: 14px; margin: 0 0 10px 0; line-height: 1.6; }
.quote-source { font-weight: 700; color: var(--navy); font-size: 12px; margin: 0; letter-spacing: 1px; }

/* COUNTDOWN */
.save-date-wrap { margin-top: 50px; text-align: center; }
.countdown-grid { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.cd-box { background: var(--navy); color: var(--white); padding: 15px 10px; border-radius: 8px; min-width: 65px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 15px rgba(15,23,42,0.2); }
.cd-box span { font-size: 24px; font-weight: 800; line-height: 1; }
.cd-box small { font-size: 9px; letter-spacing: 1px; margin-top: 5px; opacity: 0.8; font-family: 'Inter', sans-serif; }

/* TICKET CARD STYLE (CUTOUT EFFECT) */
.ticket-card-style {
  background: var(--white);
  border-radius: 12px;
  -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 12px, black 13px), radial-gradient(circle at 100% 50%, transparent 12px, black 13px);
  -webkit-mask-size: 51% 100%;
  -webkit-mask-position: left top, right top;
  -webkit-mask-repeat: no-repeat;
  position: relative;
  border: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}
.ticket-card-style::before, .ticket-card-style::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  border-left: 2px dashed var(--gray-light);
  z-index: 1;
}
.ticket-card-style::before { left: 12px; }
.ticket-card-style::after { right: 12px; }



/* MUSIC TOGGLE */
.music-toggle { position: fixed; bottom: 85px; right: 20px; width: 45px; height: 45px; border-radius: 50%; background: var(--blue); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; z-index: 1000; cursor: pointer; transition: all 0.3s; opacity: 0.8; }
.music-toggle.playing { animation: pulsate-fwd 2s ease-in-out infinite both; opacity: 1; }
@keyframes pulsate-fwd { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(25,52,94,0.7); } 50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(25,52,94,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(25,52,94,0); } }
