:root {
  --primary: #0a2342;
  --secondary: #2ca58d;
  --text: #333;
  --light: #f9f9f9;
}

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background: var(--primary);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  list-style: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: opacity 0.3s;
}

.nav-brand:hover {
  opacity: 0.9;
}

.logo {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Header */
header {
  background: linear-gradient(rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.9)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Typography */
h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.hero-text {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #238f77;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-links {
  margin-top: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--secondary);
}

/* Lists */
ul {
  padding-left: 2rem;
  margin: 1rem 0;
}

/* Links */
.content a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.content a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    background: var(--primary);
    padding: 0;
    height: 100vh;
    width: 100%;
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  nav.active {
    transform: translateX(0);
  }

  nav ul {
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
  }

  .nav-brand {
    margin-bottom: 2rem;
    justify-content: center;
  }

  .logo {
    height: 50px;
    margin-bottom: 0.5rem;
  }

  .nav-brand {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  nav a {
    font-size: 1.1rem;
    padding: 0.8rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--secondary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle:hover {
    background: #238f77;
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }

  /* CTA Button in mobile menu */
  .mobile-cta {
    margin-top: 2rem;
    width: 100%;
  }

  .mobile-cta .cta-button {
    width: 100%;
    text-align: center;
    background: var(--secondary);
    border-radius: 8px;
    padding: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  main {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  header {
    padding: 6rem 1rem 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    padding: 1.5rem;
  }

  .nav-brand {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 1rem;
  }

  footer {
    padding: 1.5rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  footer a {
    margin: 0;
  }
}
