/* Base layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.9;
  color: #e0e0e0;

  background: url('Background 1.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 30, 0.65);
  z-index: -1;
}

/* Navbar */
.navbar {
  background-color: #e0e0e0;
  padding: 12px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.logo {
  font-size: 1.2em;
  font-weight: 900;
  color: #1f1f2e;
  margin-right: auto;
  padding: 12px 12px;
  white-space: nowrap;
}

.navbar button {
  background: none;
  border: none;
  color: #1f1f2e;
  font-size: 1.05em;
  font-weight: 700;
  padding: 12px 18px;
  margin: 4px;
  min-width: 100px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s ease;
}

.navbar button:hover {
  color: #4a4a4a;
  transform: scale(1.08);
}

/* Sections */
.section {
  opacity: 0;
  visibility: hidden;
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: none;
}

.section.showing {
  visibility: visible;
  opacity: 1;
  max-height: 2000px;
  pointer-events: auto;
  padding: 20px 24px;
  max-width: 880px;
  margin: auto;
  background-color: rgba(31, 31, 46, 0.6);
  backdrop-filter: blur(4px);

  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease forwards;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

p, ul {
  font-size: 1.15em;
  line-height: 1.7;
  color: #e0e0e0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

ul {
  list-style-type: disc;
  padding-left: 24px;
}

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

/* ✅ Expanded responsive adjustments — applies even in landscape phones */
@media (max-width: 800px) {
  html, body {
    font-size: 18px;
    line-height: 1.7;
  }

  .navbar {
    padding: 6px 12px;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
  }

  .logo {
    font-size: 0.95rem;
    flex-basis: 100%;
    text-align: center;
    margin-right: 0;
    padding: 4px 0;
    line-height: 1.2;
  }

  .navbar button {
    font-size: 0.85rem;
    padding: 4px 10px;
    margin: 2px 4px;
    min-width: auto;
  }

  h1 {
    font-size: 1.8em;
  }

  p, ul {
    font-size: 0.95em;
  }

  .section.showing {
    padding: 16px 12px;
    border-radius: 0;
    box-shadow: none;
  }
}

/* About Image Styling */
.about-img {
  display: block;
  margin: 24px auto 0;
  max-width: 220px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.showing .about-img {
  opacity: 1;
  transform: translateY(0);
}
