/* ============================================================
   🌐 FONT IMPORTS
   ------------------------------------------------------------
   Loads Google Fonts for clean, modern typography.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=Arbutus&family=Homemade+Apple&family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jaldi:wght@400;700&family=Jockey+One&family=Josefin+Slab:ital,wght@0,100..700;1,100..700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Macondo&family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Tilt+Neon&display=swap');

#home {
  scroll-margin-top: 90px;
}

/* ============================================================
   🧩 GLOBAL RESET + BASE STYLES
   ------------------------------------------------------------
   Ensures consistent spacing, box sizing, and smooth scrolling.
============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}



html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-overflow-scrolling: auto;
  margin: 0;
  background: white;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.fade-out {
  opacity: 0;
}

/* ============================================================
   🧭 NAVIGATION BAR — iPhone Island Style
   ------------------------------------------------------------
   Floating, centered nav on desktop. Full-width on smaller screens.
============================================================ */
.nav {
  position: relative;
  z-index: 1000; 
  max-width: 900px; 
  min-width: 340px; 
}

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 900px;
  height: 55px;
  background: white;
  color: #141E46;
  padding: 0 24px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: 'Afacad', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar:hover {
  background: #f9f9f9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.navbar img {
  width: 70px;
  height: auto;
  transition: transform 0.3s ease;
}

.navbar img:hover {
  transform: scale(1.05);
}

.r-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar a {
  color: #141E46;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #346347;
}

.navbar i {
  font-size: 18px;
  color: #141E46;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.navbar i:hover {
  color: #346347;  
  transform: scale(1.2); 
}


/* ============================================================
   🍔 HAMBURGER ICON (Mobile Trigger)
   ------------------------------------------------------------
   Hidden on desktop; appears on mobile. Animates into an “X”.
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 20000;
  position: relative;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #141E46;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}


/* ============================================================
   📱 MOBILE MENU — Modern Glassy Sidebar
   ------------------------------------------------------------
   Smooth slide-in sidebar with a blurred glass aesthetic.
============================================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  padding-top: 0;
  transition: right 0.4s ease, opacity 0.3s ease;
  z-index: 15000;
  visibility: hidden;
  opacity: 0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
  opacity: 1;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.menu-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.menu-title {
  font-family: 'Afacad', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #141E46;
}

.menu-close {
  background: #141E46;
  color: white;
  font-size: 22px;
  font-weight: 600;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-close:hover {
  background: #346347;
  transform: rotate(90deg) scale(1.1);
}

.mobile-menu a {
  display: block;
  padding: 15px 25px;
  color: #141E46;
  font-family: 'Afacad';
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu a:hover {
  background: #f0f4f3;
  color: #346347;
  padding-left: 35px;
}


/* ============================================================
   🌑 OVERLAY (Behind Mobile Menu)
   ------------------------------------------------------------
   Dark semi-transparent background when the sidebar is active.
============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 14000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}


/* ============================================================
   🌊 HERO SECTION
   ------------------------------------------------------------
   Background image container with overlay, title, and floating button.
============================================================ */

.background-wrapper {
  position: relative;
  margin: 20px;
  overflow: visible; 
}

.background {
  position: relative;
  width: 100%;
  height: 355px;
  border-radius: 25px;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s ease, border-radius 0.4s ease;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #141e46e7;
  z-index: 2;
}

.main-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.main-content p {
  color: white;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btn {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-decoration: none;
}

.hero-btn button {
  padding: 12px 35px;
  font-size: 16px;
  background: white;
  color: #141E46;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.hero-btn button:hover {
  background: #346347;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}



/* ============================================
   ⚡ QUICK HIGHLIGHTS SECTION (Responsive)
   ------------------------------------------------------------
   Displays cards with images, titles, and hover animations.
============================================ */

.highlights-section {
  width: 100%;
  text-align: center;
  margin: 60px auto;
  padding: 0 5%;
  box-sizing: border-box;
}

.h-title {
  color: #141E46;
  font-size: 30px;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: left;
  padding-left: 8%;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  text-align: center;
  color: white;
  font-family: 'Afacad', sans-serif;
}

.h-card {
  position: relative;
  width: 220px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex: 1 1 200px; 
  max-width: 240px;
}

.h-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.h-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.h-card:hover img {
  transform: scale(1.05);
}

.h-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #76be9351, #264633);
}

.h-card p {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: white;
  font-family: 'Afacad', sans-serif;
  font-size: 22px;
  font-weight: 600;
  z-index: 2;
  width: 85%;
}

/* ============================================
   🌀 Spinner Animation (if used)
============================================ */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top: 2px solid #1d4d1d;
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Upload Button */
.upload-btn {
  background-color: #141E46;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Afacad';
  font-weight: 600;
}

.upload-btn:hover {
  background-color: #346347;
}
