/* Prudencia 2026 MUN Conference Website Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base font size for the entire website */
}

:root {
  /* Color scheme based on the Prudencia logo - teal/mint on dark background */
  --primary-color: #212121;
  --secondary-color: #7fbfb0; /* Mint/teal color from the logo */
  --accent-color: #88ccc0;
  --background-color: #1a1a1a;
  --text-color: #ffffff;
  --light-text: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.7);
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}


.preloader-logo {
  width: 320px;
  height: 320px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-img {
  max-width: 100%;
  max-height: 100%;
  animation: pulse 3.5s infinite; /* Slower animation (was 2s) */
  filter: brightness(1.05); /* Slight glow effect */
}

.loading-bar-container {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: 300px;
  height: 8px; /* Slightly taller bar */
  background-color: rgba(255, 255, 255, 0.15); /* Dimmer background */
  border-radius: 4px;
}

.loading-bar {
  height: 100%;
  width: 0;
  background-color: rgba(127, 191, 176, 0.9); /* Slightly brighter */
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(127, 191, 176, 0.5); /* Adding glow to the bar */
}

.loading-percentage {
  position: absolute;
  bottom: 14px; /* Significantly reduced spacing - very close to the bar */
  left: 275px; /* Position toward right side */
  color: var(--secondary-color); /* Use the teal/mint color */
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
  white-space: nowrap; /* Prevent wrapping */
}

@keyframes pulse {
  0% { transform: scale(0.97); opacity: 0.7; }
  50% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(0.97); opacity: 0.7; }
}

@keyframes dots {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem; /* Slightly larger base text - 16.8px */
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Cinzel font for all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

/* Glassmorphism effect for header */
.glassmorphism {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparent page overlay for all pages except home */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

/* Header styles */
header {
  color: var(--light-text);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo in header */
.logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
  transition: all 0.4s ease;
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(127, 191, 176, 0.6));
  margin-right: 10px;
  transition: all 0.4s ease;
}

.logo:hover img {
  filter: drop-shadow(0 0 12px rgba(127, 191, 176, 1));
  transform: rotate(5deg) scale(1.1);
}

.logo h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--secondary-color);
}

nav {
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--light-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

/* Hero section */
.hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  padding: 0 20px;
  overflow: hidden;
}

/* Background Carousel */
.background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

/* Hero overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(33, 33, 33, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

/* Hero content */
.hero-content {
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(40px, 8vh, 100px);
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Logo styling */
.logo-container {
  margin-bottom: 15px;
  transition: all 0.5s ease;
}

.logo-container:hover .main-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(127, 191, 176, 0.8));
}

.main-logo {
  width: 350px;
  height: auto;
  margin-bottom: clamp(16px, 4vh, 40px);
  animation: logoFadeIn 2s ease-in-out;
  filter: drop-shadow(0 0 20px rgba(127, 191, 176, 0.6));
  transition: all 0.5s ease;
  
}

@keyframes logoPulse {
  0% {
    filter: drop-shadow(0 0 15px rgba(127, 191, 176, 0.7));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(127, 191, 176, 0.9));
    transform: scale(1.02);
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(127, 191, 176, 0.7));
    transform: scale(1);
  }
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main title styling */
.main-title {
  margin-top: 10px;
  flex-shrink: 0;
  max-width: 100%;
  text-align: center;
}

.main-title h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 10px;
  color: var(--secondary-color);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(127, 191, 176, 0.5);
  animation: titleFadeIn 2s ease-in-out 0.5s both;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(127, 191, 176, 0.2);
}

.main-title h1::after {
  content: '';
  position: absolute;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  transform: translateX(-50%);
  animation: underlineAnimate 3s ease-in-out infinite alternate;
}

@keyframes underlineAnimate {
  0% {
    width: 0;
    opacity: 0.5;
  }
  100% {
    width: 80%;
    opacity: 1;
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(127, 191, 176, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(127, 191, 176, 0.7), 0 0 35px rgba(127, 191, 176, 0.4);
  }
}

.main-title .tagline {
  font-size: 1.4rem;
  margin-bottom: 20px;
  margin-top: 15px;
  font-style: italic;
  color: var(--accent-color);
  letter-spacing: 2px;
  animation: taglineFadeIn 2s ease-in-out 1s both;
  transition: all 0.5s ease;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(136, 204, 192, 0.4);
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 25px;
  border-radius: 25px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(136, 204, 192, 0.3);
  display: inline-block;
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
}

.main-title:hover .tagline {
  letter-spacing: 3px;
}

@keyframes taglineGlow {
  0% {
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(127, 191, 176, 0.2);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(127, 191, 176, 0.5), 0 0 20px rgba(127, 191, 176, 0.3);
  }
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes taglineFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Countdown styling */
.countdown {
  display: flex;
  justify-content: center;
  margin: 25px 0;
  font-family: 'Times New Roman', Times, serif;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(127, 191, 176, 0.2);
  min-width: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.countdown-item:hover {
  transform: translateY(-5px);
  border-color: rgba(127, 191, 176, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.countdown-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(127, 191, 176, 0.4);
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  display: block;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Section styling */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.title-underline {
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  margin: 0 auto;
  margin-top: 15px;
  animation: none !important;
  display: none; /* Hide all title underlines */
  justify-content: center;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--accent-color);
  display: none; /* Hide all section title underlines */
}

/* Remove glowing underline animation on forms page */
.forms-section .title-underline {
  animation: none !important;
}

/* Secretariat section */
.secretariat {
  background: rgba(20, 25, 35, 0.95);
  position: relative;
}

.secretariat .container {
  position: relative;
  z-index: 2;
}

.secretariat-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.letter {
  background: rgba(30, 35, 45, 0.9);
  padding: 40px;
  border-radius: 15px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.4s ease;
  font-family: 'Times New Roman', Times, serif;
  border: 1px solid rgba(127, 191, 176, 0.2);
  max-width: 100%;
}

.letter:hover {
  box-shadow: 0 15px 40px rgba(127, 191, 176, 0.3);
  transform: translateY(-5px);
}

.letter-intro {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 1.9rem;
  margin-bottom: 25px;
  text-shadow: 0 0 5px rgba(127, 191, 176, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}


.letter p {
  margin-bottom: 18px;
  line-height: 1.9;
  font-size: 1.45rem;
  letter-spacing: 0.5px; /* Slight spacing for typewriter effect */
  word-spacing: 1px;
}

@media (max-width: 900px) {
  .letter {
    padding: 24px;
  }
  .letter-intro {
    font-size: 1.3rem;
  }
  .letter p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .letter {
    padding: 12px;
  }
  .letter-intro {
    font-size: 1.1rem;
  }
  .letter p {
    font-size: 0.98rem;
    line-height: 1.5;
  }
}

.letter p em {
  color: var(--secondary-color);
  font-weight: 500;
  font-style: italic;
  border-bottom: 1px dotted var(--secondary-color);
}

.letter-closing {
  font-style: italic;
  text-align: right;
  margin-top: 35px;
  color: var(--secondary-color);
  text-shadow: 0 0 3px rgba(127, 191, 176, 0.2);
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.6;
}

/* Section background collage */
.secretariat {
  position: relative;
  overflow: hidden;
}

.section-background-collage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Alternative: Sliding carousel effect */
.bg-photo {
  position: absolute;
  opacity: 0;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  filter: blur(2px);
  animation: slideFadeCarousel 16s ease-in-out infinite;
}

/* Same delay structure as above */
.bg-photo-1 { animation-delay: 2s; }
.bg-photo-2 { animation-delay: 4s; }
.bg-photo-3 { animation-delay: 6s; }
.bg-photo-4 { animation-delay: 8s; }
.bg-photo-5 { animation-delay: 10s; }
.bg-photo-6 { animation-delay: 12s; }
.bg-photo-7 { animation-delay: 14s; }
.bg-photo-8 { animation-delay: 16s; }
.bg-photo-9 { animation-delay: 2s; }
.bg-photo-10 { animation-delay: 4s; }
.bg-photo-11 { animation-delay: 6s; }
.bg-photo-12 { animation-delay: 8s; }
.bg-photo-13 { animation-delay: 10s; }
.bg-photo-14 { animation-delay: 12s; }
.bg-photo-15 { animation-delay: 14s; }
.bg-photo-16 { animation-delay: 16s; }


@keyframes slideFadeCarousel {
  0%, 6.25% { 
    opacity: 0;
    transform: translateX(-100px) scale(0.8) rotate(var(--rotation, 0deg));
  }
  12.5% { 
    opacity: 0.85;
    transform: translateX(0) scale(1.05) rotate(var(--rotation, 0deg));
  }
  18.75% { 
    opacity: 0.85;
    transform: translateX(0) scale(1) rotate(var(--rotation, 0deg));
  }
  25%, 100% { 
    opacity: 0;
    transform: translateX(100px) scale(0.8) rotate(var(--rotation, 0deg));
  }
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.35);
  z-index: 1;
}

.secretariat .container {
  position: relative;
  z-index: 2;
}

.secretariat-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.secretariat-placeholder {
  width: 100%;
  height: 700px;
  background: rgba(30, 35, 45, 0.9);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(127, 191, 176, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.secretariat-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(127, 191, 176, 0.2);
}

.secretariat-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(26, 26, 26, 0.7) 70%);
  z-index: 0;
}

/* Background collage photo positioning - Focused on empty spaces, avoiding letter area */
/* Right side photos - positioned outside secretariat placeholder area */
.bg-photo-1 { width: 600px; height: 200px; top: 5%; right: 1%; transform: rotate(-8deg); }

@media (max-width: 600px) {
  .bg-photo-1 {
    width: 95vw;
    height: 80px;
    top: 2%;
    right: 0;
    left: 2vw;
    transform: rotate(-6deg);
    object-fit: cover;
    border-radius: 6px;
  }
}
.bg-photo-2 { width: 200px; height: 200px; top: 25%; right: 1%; transform: rotate(12deg); }
.bg-photo-3 { width: 200px; height: 200px; bottom: 15%; right: 2%; transform: rotate(5deg); }
.bg-photo-4 { width: 200px; height: 200px; bottom: 2%; right: 5%; transform: rotate(-15deg); }
.bg-photo-5 { width: 200px; height: 200px; bottom: 2%; right: 20%; transform: rotate(10deg); }

/* Center-right photos - between letter and placeholder */
.bg-photo-6 { width: 200px; height: 200px; top: 40%; left: 3%; transform: rotate(-7deg); }
.bg-photo-7 { width: 200px; height: 200px; top: 25%; right: 35%; transform: rotate(3deg); }
.bg-photo-8 { width: 200px; height: 200px; top: 50%; right: 40%; transform: rotate(-12deg); }
.bg-photo-9 { width: 200px; height: 200px; bottom: 30%; right: 38%; transform: rotate(8deg); }

/* Top and bottom edge photos */
.bg-photo-10 { width: 200px; height: 200px; top: 2%; left: 20%; transform: rotate(-5deg); }
.bg-photo-11 { width: 200px; height: 200px; top: 5%; left: 45%; transform: rotate(15deg); }
.bg-photo-12 { width: 200px; height: 200px; bottom: 3%; left: 15%; transform: rotate(-10deg); }
.bg-photo-13 { width: 200px; height: 200px; bottom: 8%; left: 40%; transform: rotate(6deg); }

/* Far left edge photos - minimal overlap with letter */
.bg-photo-14 { width: 200px; height: 200px; top: 8%; left: 1%; transform: rotate(-18deg); }
.bg-photo-15 { width: 200px; height: 200px; top: 70%; left: 2%; transform: rotate(12deg); }
.bg-photo-16 { width: 200px; height: 200px; bottom: 2%; left: 5%; transform: rotate(-8deg); }

.globe-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.secretariat-placeholder h3 {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.secretariat-placeholder p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-color);
  position: relative;
  z-index: 2;
}

.placeholder-decoration {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.decoration-line {
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  opacity: 0.6;
}

.decoration-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.placeholder-decoration {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  width: 80%;
}

.decoration-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.decoration-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  margin: 0 10px;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background-color: rgba(40, 40, 40, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: var(--accent-color);
  font-style: italic;
}

/* Social Media Icons Section */
.social-media-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  margin-bottom: 0;
}

.social-media-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  max-width: 500px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(40, 40, 40, 0.6);
  color: var(--secondary-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icon:hover {
  background-color: rgba(127, 191, 176, 0.1);
  color: var(--accent-color);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.timeline-item:nth-child(odd) {
  margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
  margin-left: calc(50% + 30px);
}

.timeline-item:after {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd):after {
  right: -40px;
}

.timeline-item:nth-child(even):after {
  left: -40px;
}

/* Committees section */
.committees {
  background-color: #fff;
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.committee-card {
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.committee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.committee-img {
  height: 200px;
  overflow: hidden;
}

.committee-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.committee-card:hover .committee-img img {
  transform: scale(1.1);
}

.committee-info {
  padding: 20px;
}

.committee-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-family: 'Cinzel', serif;
}

/* Registration section */
.registration {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/registration-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-text);
  text-align: center;
}

/* Contact section */
.contact {
  background-color: #fff;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-info, .contact-form {
  padding: 20px;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: 'Cinzel', serif;
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 40px 0;
  border-top: 1px solid rgba(127, 191, 176, 0.2);
  margin-top: 0;
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-social .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(40, 40, 40, 0.6);
  color: var(--secondary-color);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.footer-social .social-icon:hover {
  background-color: rgba(127, 191, 176, 0.1);
  color: var(--accent-color);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.copyright p {
  margin: 0;
  padding: 0;
}

/* Responsive design */
@media (max-width: 1180px) {
  .hero-content {
    padding-top: 20px;
  }

  .main-logo {
    width: 260px;
    margin-bottom: 25px;
  }

  .main-title {
    margin-top: -10px;
  }

  .main-title h1 {
    margin-bottom: 10px;
  }

  .main-title .tagline {
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    padding: 10px 24px;
    margin-top: 0;
  }

  .flip-countdown {
    margin-top: -5px;
  }
}

@media (max-width: 1133px) {
  .hero {
    min-height: 100vh;
    padding: 45px 30px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0;
  }

  .main-logo {
    width: 200px;
    margin-bottom: 12px;
  }

  .main-title {
    margin-top: 0;
  }

  .main-title h1 {
    font-size: 1.95rem;
    letter-spacing: 2.5px;
    padding: 9px 20px;
    margin-bottom: 5px;
  }

  .main-title .tagline {
    font-size: 0.88rem;
    letter-spacing: 0.7px;
    padding: 7px 16px;
    max-width: 90%;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .flip-countdown {
    margin: 12px 0 18px;
  }

  .flip-container {
    width: 820px;
    max-width: 95%;
    height: 220px;
  }

  .flip-side {
    padding: 20px 16px;
  }

  .conference-header {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .conference-header i,
  .conference-header .conference-icon {
    font-size: 2.3rem;
    margin-bottom: 7px;
  }

  .conference-header .conference-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 10px auto;
  }

  .conference-header h3 {
    font-size: 1.65rem;
    margin-bottom: 0;
  }

  .conference-header p {
    font-size: 0.95rem;
  }

  .countdown-display {
    gap: 7px;
    margin: 16px 0;
  }

  .countdown-display .time-unit {
    padding: 9px 7px;
  }

  .countdown-display .number {
    font-size: 1.5rem;
  }

  .countdown-display .label {
    font-size: 0.75rem;
    margin-top: 5px;
  }
}

@media (max-width: 992px) {
  .secretariat-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .main-title h1 {
    font-size: 3rem;
    letter-spacing: 6px;
  }
  
  .social-icons-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .main-title h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }
  
  .main-title .tagline {
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    max-width: 95%;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .mobile-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
  
  .nav-container {
    justify-content: flex-start;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    width: 80%;
    height: 100vh;
    transition: right 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
    align-items: center;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  nav ul li a {
    font-size: 1.1rem;
  }
  
  .social-icons-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .footer-social {
    gap: 20px;
  }
  
  .footer-social .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .main-logo {
    width: 250px;
  }
  
  .main-title h1 {
    font-size: 2rem;
    letter-spacing: 3px;
  }
  
  .main-title .tagline {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    max-width: 98%;
  }
  
  .letter {
    padding: 25px;
  }
  
  /* Footer and Social Media responsive styles */
  .social-icons-container {
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .footer-social {
    gap: 15px;
  }
  
  .footer-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  footer {
    padding: 30px 0;
  }
  
  .copyright {
    font-size: 0.8rem;
    padding: 0 10px;
  }
}

/* Media query for iPhone SE, 6, 7, 8 (375px width) */
@media (max-width: 375px) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 90px 10px 30px;
    justify-content: flex-start;
    overflow: visible;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-top: 0;
  }

  .logo-container {
    margin-bottom: 8px;
  }

  .main-logo {
    width: 150px;
    max-width: 75vw;
    height: auto;
    margin-bottom: 12px;
  }

  .main-title {
    width: 100%;
    margin-top: 0;
  }

  .main-title h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    padding: 10px 15px;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    white-space: normal;
    margin-bottom: 8px;
  }

  .main-title .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    max-width: 95%;
    line-height: 1.3;
    margin-top: 0;
    word-wrap: break-word;
  }

  /* Countdown timer optimization for 375px */
  .flip-countdown {
    margin: 30px 0;
  }

  .flip-container {
    width: 100%;
    max-width: 345px;
    height: 290px;
  }

  .flip-side {
    padding: 18px 12px;
    border-radius: 18px;
  }

  .conference-header {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .conference-header i,
  .conference-header .conference-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .conference-header .conference-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin: 0 auto 10px auto;
  }

  .conference-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
  }

  .conference-header p {
    font-size: 0.95rem;
  }

  .countdown-display {
    gap: 3px;
    margin: 20px 0;
  }

  .countdown-display .time-unit {
    padding: 10px 3px;
    border-radius: 8px;
    max-width: calc(25% - 4px);
  }

  .countdown-display .number {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .countdown-display .label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-top: 6px;
  }

  /* Adjust spacing for navbar */
  nav ul li {
    margin: 12px 0;
  }

  nav ul li a {
    font-size: 1rem;
  }
}

/* Secretariat Photo Styling */
.secretariat-photo-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(158, 213, 197, 0.3);
  transition: all 0.3s ease;
}

.secretariat-photo-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(158, 213, 197, 0.4);
}

.secretariat-photo {
    width: 100%;
    height: auto;           /* 🔑 KEY LINE */
    display: block;
    border-radius: 15px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.secretariat-photo-container:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #9ED5C5;
}

.photo-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Fix for 375x667 devices (iPhone SE, iPhone 8 and similar) */
@media (max-width: 375px) and (max-height: 700px) {
    .secretariat-photo-container {
        height: 320px;
    }

    .secretariat-photo {
        object-fit: contain;
        object-position: center;
    }

    .photo-overlay h3 {
        font-size: 1.1rem;
    }

    .photo-overlay p {
        font-size: 0.85rem;
    }
}

/* Fix for 393x852 devices (iPhone 14 Pro and similar) */
@media (max-width: 393px) and (min-height: 700px) {
    .secretariat-photo-container {
        height: 350px;
    }

    .secretariat-photo {
        object-fit: contain;
        object-position: center;
    }

    .photo-overlay h3 {
        font-size: 1.2rem;
    }

    .photo-overlay p {
        font-size: 0.9rem;
    }
}

/* Fix for 402x874 devices (Pixel 6/7 and similar) */
@media (max-width: 402px) and (min-height: 850px) and (max-height: 900px) {
    .secretariat-photo-container {
        height: 360px;
    }

    .secretariat-photo {
        object-fit: contain;
        object-position: center;
    }

    .photo-overlay h3 {
        font-size: 1.25rem;
    }

    .photo-overlay p {
        font-size: 0.92rem;
    }
}

/* Fix for 430x932 devices (iPhone 14 Pro Max and similar) */
@media (max-width: 430px) and (min-height: 900px) {
    .secretariat-photo-container {
        height: 380px;
    }

    .secretariat-photo {
        object-fit: contain;
        object-position: center;
    }

    .photo-overlay h3 {
        font-size: 1.3rem;
    }

    .photo-overlay p {
        font-size: 0.95rem;
    }
}

/* Fix for 440x956 devices (Pixel 8 Pro and similar) */
@media (max-width: 440px) and (min-height: 950px) {
    .secretariat-photo-container {
        height: 390px;
    }

    .secretariat-photo {
        object-fit: contain;
        object-position: center;
    }

    .photo-overlay h3 {
        font-size: 1.35rem;
    }

    .photo-overlay p {
        font-size: 0.97rem;
    }
}

/* Fixed Flip Countdown Timer Styles */
.flip-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    perspective: 1200px; /* Increased perspective */
}

.flip-container {
    position: relative;
    width:  1000px;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 1.5s ease-in-out; /* Slower transition to see it better */
}

.flip-container.flipped {
    transform: rotateY(180deg);
}

.flip-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari support */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    border: 1px solid rgba(158, 213, 197, 0.3);
    border-radius: 25px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.flip-side.front {
    border-left: 4px solid #9ED5C5;
    transform: rotateY(0deg); /* Explicitly set */
}

.flip-side.back {
    border-left: 4px solid #7FB3A3;
    transform: rotateY(180deg); /* Explicitly set */
}

/* Rest of the countdown styling remains the same */
.conference-header {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conference-header i,
.conference-header .conference-icon {
    font-size: 3rem;
    color: #9ED5C5;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 3px 8px rgba(158, 213, 197, 0.4);
}

.conference-header .conference-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    text-shadow: none;
    margin: 0 auto 10px auto;
}

.conference-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: white;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.conference-header p {
    color: #9ED5C5;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 15px 0 0 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.countdown-display .time-unit {
    text-align: center;
    background: rgba(158, 213, 197, 0.15);
    border-radius: 12px;
    padding: 4px 2px;
    flex: 1;
    max-width: calc(25% - 6px);
    border: 1px solid rgba(158, 213, 197, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.countdown-display .time-unit:hover {
    background: rgba(158, 213, 197, 0.2);
    transform: translateY(-2px);
}

.countdown-display .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9ED5C5;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.countdown-display .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 500;
}

.flip-indicator {
  display: none;
  
}

.flip-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
}

.dot.active {
    background: #9ED5C5;
    box-shadow: 
        0 0 15px rgba(158, 213, 197, 0.6),
        0 0 25px rgba(158, 213, 197, 0.3);
    transform: scale(1.2);
}

/* Enhanced Mobile Responsive */
@media (max-width: 980px) {
    .flip-container {
        width: 350px;
        height: 300px;
    }
    
    .countdown-display {
        gap: 6px;
    }
    
    .countdown-display .time-unit {
        padding: 15px 6px;
        border-radius: 10px;
    }
    
    .countdown-display .number {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .flip-container {
        width: 300px;
        height: 280px;
    }
    
    .flip-side {
        padding: 20px 15px;
    }
    
    .countdown-display {
        gap: 4px;
    }
    
    .countdown-display .time-unit {
        padding: 12px 4px;
        border-radius: 8px;
    }
    
    .countdown-display .number {
        font-size: 1.5rem;
    }
    
    .countdown-display .label {
        font-size: 0.75rem;
    }
}

/* Keep countdown always in 1 row + scale properly */
@media (max-width: 980px) {
  .countdown-display {
      gap: 6px;
  }

  .countdown-display .time-unit {
      flex: 1 1 auto;
      max-width: none;        /* Remove fixed limits */
      padding: 10px 4px;
  }

  .countdown-display .number {
      font-size: 1.4rem;
  }

  .countdown-display .label {
      font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .countdown-display {
      gap: 4px;
  }

  .countdown-display .time-unit {
      flex: 1 1 auto;
      padding: 8px 2px;
  }

  .countdown-display .number {
      font-size: 1.2rem;
  }

  .countdown-display .label {
      font-size: 0.6rem;
  }
}

@media (max-height: 700px) {
  .main-title h1 {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .main-title .tagline {
    font-size: 1rem;
    padding: 8px 18px;
  }
}


