/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

/* ROOT COLORS */
:root {
  --primary: #0f4c81;
  --secondary: #00a8cc;
  --accent: #74c0fc;
  --light: #f8fbff;
  --dark: #1b262c;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth; /* smooth scrolling */
  scroll-padding-top: 80px; /* height of your navbar */
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #eef6ff, #ffffff);
  color: var(--dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 76, 129, 0.85);
  padding: 12px 0;
  width: 100%;
  z-index: 1000;
}

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

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* UNDERLINE ANIMATION */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: var(--accent);
  transition: 0.3s;
}

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

/* HEADER */
header {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 100%;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  opacity: 0.9;
}

/* SECTIONS */
section {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  text-align: center; /* Center all text */
}

/* SECTION TITLES */
h2 {
  margin-bottom: 25px;
  font-size: 2rem;
  color: var(--primary);
}

/* INTRO */
#intro {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 30px;
}

/* HIGHLIGHTS GRID (CENTERED) */
/* Section Title */
#highlights-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #0f4c81; /* primary color */
  }
  
  /* Container for highlights */
  .highlights-container {
    display: flex;
    justify-content: center; /* center the row */
    gap: 30px; /* space between cards */
    flex-wrap: wrap; /* wrap on smaller screens */
  }
  
  /* Highlight cards */
  .highlights-container .card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 300px; /* consistent card width */
    flex: 1 1 300px; /* flexible but not too small */
    transition: transform 0.3s ease;
    text-align: center;
  }
  
  .highlights-container .card:hover {
    transform: translateY(-5px) scale(1.03);
  }
  
  .highlights-container .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
  }
  
  .highlights-container .card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: #0f4c81;
  }
  
  .highlights-container .card p {
    padding: 0 15px 15px;
    font-size: 0.95rem;
    color: #333;
  }
  
  /* Responsive for mobile */
  @media (max-width: 768px) {
    .highlights-container {
      flex-direction: column;
      align-items: center;
    }
  }

/* GALLERY (CENTERED) */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center all photos */
  gap: 20px;
}

.gallery figure {
  overflow: hidden;
  border-radius: 15px;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
  width: 220px;
}

.gallery figure:hover {
  transform: scale(1.03);
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.4s;
}

.gallery img:hover {
  transform: scale(1.1);
}

figcaption {
  padding: 10px;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

/* RATING */
#rating {
  background: linear-gradient(135deg, #dff6ff, #ffffff);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 20px;
}

/* REFLECTION */
#reflection {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 20px;
}

#reflection p {
  margin-bottom: 12px;
}

/* SCROLL ANIMATION */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

section:nth-child(even) {
  animation-delay: 0.2s;
}

section:nth-child(odd) {
  animation-delay: 0.4s;
}

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

/* MOBILE */
@media (max-width: 600px) {
  header h1 {
    font-size: 2.2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .card, .gallery figure {
    width: 90%; /* smaller on mobile */
  }
}

/* POPUP MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}

/* POPUP IMAGE */
.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  animation: zoomIn 0.3s ease;
}

/* ANIMATION */
@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* CLICKABLE CURSOR */
.gallery img,
.card img {
  cursor: pointer;
}