html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f1f7fd;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* HEADER */
header {
  background: #cce4f7;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #003366;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-name small {
  font-size: 0.75em;
  font-weight: 600;
  color: #0072ce;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 0.85rem;
  margin-top: 5px;
  font-style: italic;
  color: #555;
}

.nav-links {
  display: flex;
  gap: 20px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #ff3c38;
  transform: translateY(-2px);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: #ff3c38;
  transition: width 0.3s ease;
}

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

/* HERO */
.hero.centered-layout {
  text-align: center;
  background: linear-gradient(135deg, #d4e7f7 0%, #f1f7fd 50%, #ffffff 100%);
  color: #003366;
  padding: 60px 20px;
  border-radius: 20px 20px 0 0;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.hero.centered-layout h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.hero.centered-layout p {
  font-size: 1.15em;
  margin: 10px auto 30px;
  max-width: 700px;
  line-height: 1.6;
}

.nav-btn {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 16px;
  background-color: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background-color: #1e4ed9;
}

/* CARDS */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  text-align: center;
  padding: 40px;
  margin-top: 60px;
}

.card {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 300px;
  height: 380px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s;
  cursor: pointer;
}

.card-front {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.card-front h3,
.card-front p {
  color: #000;
  margin-bottom: 5px;
}

/* FOOTER */
footer {
  background: #cce4f7;
  color: #003366;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.95em;
  border-top: 1px solid #b0d4ee;
  margin-top: 60px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  padding: 5px;
  z-index: 110;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: #003366;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero.centered-layout h1 {
    font-size: 2em;
  }

  .hero.centered-layout p {
    font-size: 1em;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 70px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
    animation: fadeInMenu 0.3s ease;
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Deployment hardening: ensure feature cards fit narrower mobile screens. */
@media (max-width: 600px) {
  .card-container {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 20px;
    margin-top: 18px;
  }
  .card { width: 100%; max-width: 350px; }
  .card-inner { box-sizing: border-box; width: 100%; height: auto; min-height: 305px; }
  .card-front { box-sizing: border-box; }
  .card-front img { max-height: 180px; }
  .nav-container { gap: 12px; }
  .brand .tagline { font-size: .7rem; }
}
