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

/* ----------------------------------------------------
   BODY & TYPOGRAPHY
---------------------------------------------------- */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #fff;
  background-color: #0a1a2f;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ----------------------------------------------------
   NAVIGATION
---------------------------------------------------- */
nav {
  position: absolute;
  top: 20px;
  left: 40px; /* moved to top-left */
  z-index: 3; /* ensures above hero overlays */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

nav a:hover {
  color: #5b8dd4; /* light blue on hover */
}

nav a.active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #5b8dd4; /* pale blue underline */
  text-underline-offset: 6px;
  cursor: default;
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* flipped background image using pseudo-element */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/IMG_3211a.jpg") no-repeat center center/cover;
  transform: scaleX(1); /* (1)=no flip — change to scaleX(-1) for horizontal */
  z-index: 0;
}

/* dark overlay for contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 20, 40, 0.55);
  z-index: 1;
}

/* content above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.logo {
  width: 220px;
  margin-bottom: 20px;
  animation: floatIn 2s ease forwards;
}

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

p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #dfe7f2;
}

/* ----------------------------------------------------
   BUTTON
---------------------------------------------------- */
.btn {
  background-color: #1a3b6b;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #325fa3;
}

/* ----------------------------------------------------
   CONTENT SECTION
---------------------------------------------------- */
.content {
  background-color: #112240;
  padding: 80px 20px;
  text-align: center;
}

.content h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #fff;
}

.content p {
  max-width: 800px;
  margin: 0 auto;
  color: #dbe2ef;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background-color: #08111e;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #a5b1c2;
}

/* ----------------------------------------------------
   BACK-TO-TOP BUTTON
---------------------------------------------------- */
.back-to-top {
  display: inline-block;
  color: #ffffff;              /* same as nav */
  text-decoration: none;        /* no underline */
  font-weight: 500;             /* same as nav */
  font-size: 0.66rem;           /* 2/3 size of nav font */
  background-color: #1a3b6b;    /* match nav button style */
  padding: 8px 18px;            /* slightly smaller padding */
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  margin: 40px 0 40px 20px;            /* spacing from bottom */
  text-align: center;
  display: block;               /* center using margin auto */
  width: fit-content;
}

.back-to-top:hover {
  background-color: #325fa3;   /* same hover as nav */
  color: #cce1ff;              /* optional: pale blue on hover */
}

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
@keyframes floatIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------- */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  .logo {
    width: 160px;
  }
}
