/* Elegant Blue Sea Travel Theme Styles */
:root {
  --primary-blue: linear-gradient(135deg, #2196F3, #21CBF3);
  --light-blue: #64B5F6;
  --dark-blue: #0D47A1;
  --accent-blue: #00BCD4;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --soft-gray: #E9ECEF;
  --font-family: 'Poppins', sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 15px;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  color: var(--dark-blue);
  background-color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, #2196F3, #21CBF3);
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100px;
}

.logo span {
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: 0.3s;
}

nav a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--light-blue);
}

main {
  margin-top: 80px;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.6), rgba(0, 188, 212, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-right: 3px solid var(--white);
  animation: blink 1s infinite, sway 8s ease-in-out infinite;
}

.hero-text p {
  font-size: 1.3rem;
  font-weight: 300;
  max-width: 700px;
  opacity: 0;
  line-height: 1.8;
  text-align: center;
}

@keyframes blink {

  0%,
  50% {
    border-color: var(--white);
  }

  51%,
  100% {
    border-color: transparent;
  }
}

section {
  padding: 4rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--soft-gray);
  animation: breathe 4s ease-in-out infinite;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.card-content p {
  color: var(--dark-blue);
  line-height: 1.6;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .overlay-text {
  transform: translateY(0);
}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.main-gallery {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-bottom: 1rem;
}

.main-gallery-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

.gallery-instruction {
  text-align: center;
  color: var(--dark-blue);
  font-size: 1.1rem;
  margin-top: 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--light-blue);
  border-radius: 4px;
  font-family: var(--font-family);
}

button {
  background: linear-gradient(135deg, #2196F3, #21CBF3);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.donate-btn {
  display: block;
  margin: 2rem auto;
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

footer {
  background-color: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
}

.decoration {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes sway {

  0%,
  100% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll Animation Styles */
#scroll-animation-container {
  height: 500vh;
  /* Adjust height to control scroll speed: higher = slower animation */
  position: relative;
  background-color: #000;
  /* Contrast for the video frames */
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scroll-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  /* or contain, depending on frame aspect ratio */
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0D47A1, #2196F3);
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    transition: 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }

  nav ul.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  nav ul li a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #scroll-animation-container {
    height: 300vh;
    /* Shorter scroll on mobile for better UX */
  }
}

/* Specific Small Desktop Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Premium Assistant & Welcome UI --- */
.assistant-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: var(--font-family);
}

.assistant-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.assistant-bubble {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 20px 20px 0 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform-origin: bottom right;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assistant-bubble.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  pointer-events: none;
}

#assistant-text {
  font-size: 0.95rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.assistant-actions {
  display: flex;
  gap: 12px;
}

.assistant-actions button {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
}

#guide-skip {
  background: var(--soft-gray);
  color: var(--dark-blue);
  box-shadow: none;
}

.assistant-mascot {
  width: 75px;
  height: 75px;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
  cursor: pointer;
  position: relative;
  transition: transform 0.4s ease;
  animation: floatMascot 4s ease-in-out infinite;
}

.assistant-mascot:hover {
  transform: scale(1.15) rotate(5deg);
}

.assistant-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--light-blue);
  border-radius: 50%;
  animation: pulseAssistant 2.5s infinite;
  pointer-events: none;
}

.premium-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.premium-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal-card {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-modal-overlay.active .premium-modal-card {
  transform: translateY(0);
}

.modal-image-header {
  position: relative;
  height: 220px;
}

.modal-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(33, 150, 243, 0.4));
}

.modal-logo-badge {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.modal-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body-content {
  padding: 45px 30px 30px;
  text-align: center;
}

.modal-body-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.modal-body-content p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-primary-glow {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
  transition: 0.3s;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(33, 150, 243, 0.4);
}

.btn-outline-soft {
  background: transparent;
  color: #888;
  border: 1px solid #ddd;
  padding: 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline-soft:hover {
  background: #f8f9fa;
  color: var(--dark-blue);
}

@keyframes floatMascot {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseAssistant {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.tour-highlight {
  position: relative;
  z-index: 2001 !important;
  box-shadow: 0 0 0 10px rgba(33, 150, 243, 0.15), 0 0 0 4px var(--light-blue) !important;
  transition: box-shadow 0.4s ease;
}

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tour-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .assistant-container {
    bottom: 25px;
    right: 25px;
  }

  .assistant-bubble {
    max-width: 260px;
    padding: 1.25rem;
  }

  .assistant-mascot {
    width: 65px;
    height: 65px;
  }

  .premium-modal-card {
    border-radius: 20px;
  }

  .modal-image-header {
    height: 180px;
  }

  .modal-body-content h2 {
    font-size: 1.5rem;
  }
}

/* --- Instagram Section Styles --- */
.instagram-section {
  max-width: 935px;
  margin: 3rem auto;
  padding: 0 20px;
}

.ig-profile-header {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #dbdbdb;
}

.ig-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #dbdbdb;
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-info {
  flex: 1;
}

.ig-username-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ig-username-row h2 {
  font-size: 1.8rem !important;
  font-weight: 300 !important;
  margin: 0 !important;
  color: #262626 !important;
  text-align: left !important;
}

.btn-ig-follow {
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.ig-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.ig-stats span strong {
  color: #262626;
}

.ig-bio p {
  color: #262626 !important;
  margin-bottom: 5px !important;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ig-post {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.ig-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  color: white !important;
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-post:hover .ig-post-overlay {
  opacity: 1;
}

.ig-post:hover img {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .ig-profile-header {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .ig-username-row {
    flex-direction: column;
    gap: 15px;
  }

  .ig-username-row h2 {
    font-size: 1.5rem !important;
    text-align: center !important;
  }

  .ig-stats {
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}