/* --------- RESET --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* --------- COLOR THEME --------- */
:root {
  --primary: #0d3b66;
  --accent: #1e90ff;
  --highlight: #0ea5e9;
  --bg: #f0faff;
  --text: #1e293b;
}

/* --------- BODY --------- */
body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* --------- NAVBAR --------- */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--primary);
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav h1 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--highlight);
}

/* Gallery section */
.gallery {
  padding: 60px 20px;
  text-align: center;
}

.gallery h3 {
  margin-bottom: 25px;
}


/* Default → MOBILE */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 × 2 */
  gap: 12px;
}

.gallery-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}


/* LAPTOP & ABOVE */
@media (min-width: 768px) {
  .gallery-images {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .gallery-images img {
    width: 220px;
    height: 160px;
  }
}

/* --------- HERO --------- */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-out;
}

.hero h2 {
  font-size: 2rem;
  animation: slideUp 1s ease-out;
}

.hero p {
  margin-top: 15px;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
  animation: slideUp 1.4s ease-out;
}

.hero button {
  margin-top: 30px;
  background: var(--highlight);
  border: none;
  padding: 12px 28px;
  color: white;
  border-radius: 25px;
  font-weight: 500;
  transition: 0.3s;
  animation: slideUp 1.6s ease-out;
}

.hero button:hover {
  background: #0284c7;
}

/* --------- SECTIONS --------- */
section:not(.gallery) {
  padding: 90px 20px;
  text-align: center;
}

section h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 25px;
  animation: fadeIn 0.8s ease-out;
}

section p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeIn 1s ease-out;
}

/* --------- CARDS --------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: floatUp 1s ease-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.card h4 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* --------- FOOTER --------- */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 35px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

/* --------- ANIMATIONS --------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------- RESPONSIVE --------- */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  section h3 {
    font-size: 1.3rem;
  }
}
