/* ============================================
   DEK69 FIET Step Together 2026
   Premium Design System
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #E02440;
  --primary-dark: #b81d35;
  --primary-light: #ff4d63;
  --primary-bg: #FFF5F6;
  --accent: #FFB800;
  --accent-light: #FFD54F;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --white: #ffffff;
  --bg-light: #fafbfc;
  --bg-section: #f5f6fa;
  --shadow-sm: 0 2px 8px rgba(224, 36, 64, 0.08);
  --shadow-md: 0 8px 30px rgba(224, 36, 64, 0.12);
  --shadow-lg: 0 20px 60px rgba(224, 36, 64, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Kanit', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(224, 36, 64, 0.08);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.3rem;
}

.logo-fiet {
  color: var(--primary);
  letter-spacing: 2px;
}

.logo-dek {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 10px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #fff5f6 30%, #fdecef 60%, #fce4e8 100%);
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 50%;
  left: 50%;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 80%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-three-cols {
  justify-content: center;
}

.hero-side {
  position: absolute;
  bottom: 0;
  z-index: 5;
}

.hero-side-left {
  left: 0;
}

.hero-side-right {
  right: 0;
}

.hero-side img {
  height: 85vh;
  max-height: 850px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 15px 30px rgba(224,36,64,0.15));
}

.hero-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(224, 36, 64, 0.3);
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.title-sub {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
}

.title-main {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.hero-slogan {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: rgba(224, 36, 64, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.slogan-quote {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}

.slogan-text {
  display: flex;
  flex-direction: column;
}

.slogan-en {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.slogan-th {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-info-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(224, 36, 64, 0.08);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: 12px;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Countdown Timer */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.title-ribbon-curved {
  margin-top: -30px;
  margin-bottom: -10px;
  z-index: 2;
  flex-shrink: 0;
  width: 115%;
  min-width: 600px;
  max-width: 800px;
  display: flex;
  justify-content: center;
}

.title-sub {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: -5px;
}
.sub-line {
  width: 30px;
  height: 2px;
  background-color: #e6192b;
}

.title-main-huge {
  font-size: 4.5rem;
  font-weight: 900;
  color: #e6192b;
  text-shadow: 
    -3px -3px 0 #fff, 
    3px -3px 0 #fff, 
    -3px 3px 0 #fff, 
    3px 3px 0 #fff, 
    0 8px 15px rgba(0,0,0,0.15);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -2px;
}

.title-divider-dots {
  border-bottom: 4px dotted #e6192b;
  width: 60%;
  margin: 5px 0 10px;
}

.title-secondary-huge {
  font-size: 2.8rem;
  font-weight: 900;
  color: #222;
  text-shadow: 
    -2px -2px 0 #fff, 
    2px -2px 0 #fff, 
    -2px 2px 0 #fff, 
    2px 2px 0 #fff, 
    0 6px 12px rgba(0,0,0,0.1);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1px;
}


.countdown-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.time-value {
  display: flex;
  gap: 4px;
}

.time-value span {
  background: var(--white);
  color: var(--primary);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  padding: 20px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  min-width: 70px;
  text-align: center;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
}

.time-value span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,0,0,0.05);
  transform: translateY(-50%);
}

.time-colon {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 4px;
  padding-bottom: 30px;
}

.time-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(224, 36, 64, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 36, 64, 0.45);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}

.hero-poster {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover .hero-poster {
  transform: scale(1.03);
}

.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(224, 36, 64, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.hero-scroll-indicator a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  animation: bounce 2s ease-in-out infinite;
  transition: var(--transition);
}

.hero-scroll-indicator a:hover {
  background: var(--primary);
  color: white;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(224, 36, 64, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(224, 36, 64, 0.1));
  color: var(--primary);
  font-size: 1.4rem;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header.light .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-header.light .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

.section-header.light .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0 80px;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(224, 36, 64, 0.25);
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */
.schedule-section {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.schedule-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tab-btn i {
  font-size: 1.3rem;
}

.tab-btn small {
  font-size: 0.75rem;
  font-weight: 300;
}

.tab-btn.active small {
  color: var(--text-muted);
}

.schedule-content {
  position: relative;
  z-index: 2;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.schedule-poster-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.schedule-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.schedule-poster img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.schedule-poster:hover img {
  transform: scale(1.02);
}

.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(6px);
}

.time-badge {
  background: var(--white);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   DRESS CODE SECTION
   ============================================ */
.dress-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.dress-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}

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

/* Carousel Navigation & Scrollbar Hiding */
.dress-carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-arrow:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.dress-note {
  background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.dress-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.dress-note i {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dress-note strong {
  color: var(--text);
}

.dress-note div {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   SAFE ZONE SECTION
   ============================================ */
.safe-section {
  padding: 80px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 8px 24px;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  margin-top: 15px;
  transition: var(--transition);
  background: transparent;
}

.pdf-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(230, 25, 43, 0.2);
}

@keyframes blinkEffect {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

.blink-icon {
  animation: blinkEffect 1.5s infinite ease-in-out;
  color: inherit;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes bounceLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

.arrow-bounce-right {
  animation: bounceRight 1s infinite ease-in-out;
  display: inline-block;
  margin-right: 15px;
}

.arrow-bounce-left {
  animation: bounceLeft 1s infinite ease-in-out;
  display: inline-block;
  margin-left: 15px;
}

.safe-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 36, 64, 0.15), transparent 70%);
  pointer-events: none;
}

.safe-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.safe-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.safe-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.safe-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.safe-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(224, 36, 64, 0.35);
}

.safe-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.safe-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   STAFF SECTION
   ============================================ */
.staff-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.staff-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.staff-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  height: 100%;
}

.staff-tab-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.staff-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(230, 25, 43, 0.15);
}

.staff-tab-btn i {
  font-size: 1.2rem;
}

.staff-tab-btn small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.staff-panel {
  display: none;
}

.staff-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.staff-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.staff-gallery-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.staff-gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.staff-gallery-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.staff-gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.staff-gallery-track {
  display: flex;
  gap: 20px;
  padding: 4px;
}

.staff-photo-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.staff-photo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.staff-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ============================================
   CONTACT / SOCIAL SECTION
   ============================================ */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
}

.social-card:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-card i {
  font-size: 1.4rem;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--bg-section);
  color: var(--text-muted);
  padding: 50px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(224, 36, 64, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(224, 36, 64, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.8s ease forwards 0.2s;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.animate-fade-up-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.animate-fade-up-delay2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.animate-fade-up-delay3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeLeft 1s ease forwards 0.4s;
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeRight 1s ease forwards 0.4s;
}

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

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

@keyframes fadeLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    max-width: 480px;
    margin-bottom: 10px;
  }

  .hero-slogan {
    text-align: left;
  }

  .hero-info-cards {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .title-main {
    font-size: 3.5rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-poster-row {
    grid-template-columns: 1fr;
  }

  .safe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .title-main {
    font-size: 2.8rem;
  }

  .title-year {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Hero Mobile Fixes */
  .title-ribbon-curved {
    min-width: 100%;
    width: 100%;
  }

  .title-main-huge {
    font-size: 3.5rem;
  }

  .title-secondary-huge {
    font-size: 2.2rem;
  }

  .time-value span {
    font-size: 2.5rem;
    padding: 15px 12px;
    min-width: 50px;
  }

  .time-colon {
    font-size: 2rem;
    padding-bottom: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .schedule-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 15px;
  }

  .time-badge {
    width: auto;
    display: inline-block;
  }

  .dress-carousel-item {
    width: 280px !important;
  }

  .carousel-arrow.prev {
    left: 5px !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }

  .carousel-arrow.next {
    right: 5px !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }

  .dress-gallery {
    grid-template-columns: 1fr;
  }

  .safe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .hero-three-cols {
    flex-wrap: wrap;
    justify-content: center;
    width: 95%;
  }

  .hero-center {
    flex: 1 1 100%;
    order: 1;
    margin-bottom: 30px;
    transform: scale(0.7);
  }

  .hero-side {
    flex: 0 0 45%;
    justify-content: center;
    order: 2;
  }

  .hero-side img {
    max-height: 350px;
  }

  .staff-photo-card {
    width: 220px;
  }

  .staff-photo-card img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .hero-side {
    display: none;
  }

  .hero-info-cards {
    flex-direction: column;
  }

  /* Hero Extra Small Mobile Fixes */
  .title-main-huge {
    font-size: 2.8rem;
  }

  .title-secondary-huge {
    font-size: 1.6rem;
  }

  .time-value span {
    font-size: 1.8rem;
    padding: 10px 8px;
    min-width: 40px;
    border-radius: 8px;
  }

  .time-colon {
    font-size: 1.5rem;
    margin: 0 2px;
    padding-bottom: 15px;
  }

  .countdown-timer {
    gap: 8px;
  }

  .time-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .timeline-item {
    padding: 12px;
  }

  .dress-carousel-item {
    width: 240px !important;
  }

  .carousel-arrow {
    display: none !important; /* Hide arrows on very small screens, use touch */
  }

  .staff-photo-card {
    width: 180px;
  }
  
  .staff-photo-card img {
    height: 180px;
  }

  .safe-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    flex-direction: column;
    align-items: center;
  }

  .social-card {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
