/* CSS variables for consistent theming */
:root {
  --primary: #0a1931;
  --secondary: #17e3e0;
  --accent: #14213d;
  --light-bg: #f5f7fa;
  --text-dark: #0a1931;
  --text-light: #ffffff;
  --border-radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
header {
  background: var(--primary);
  color: var(--text-light);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.6rem;
}

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

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  height: 2px;
  width: 24px;
  background: var(--text-light);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 75vh;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}

.btn-primary:hover {
  background: #14c9c8;
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.light-bg {
  background: var(--light-bg);
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

/* Grid layouts */
.grid-2 {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-item,
.feature-item {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-item i,
.service-item i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.feature-item h3,
.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature-item p,
.service-item p {
  font-size: 0.95rem;
}

.about-preview .about-image img,
.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--accent);
  color: var(--text-light);
  padding-top: 3rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-about h3 {
  margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 0.5rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.citations {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--secondary);
  font-size: 0.75rem;
}

.citations a {
  color: var(--secondary);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

/* Page Hero (subpages) */
.page-hero {
  position: relative;
  background: var(--accent) url('../images/hero-bg.png') no-repeat center/cover;
  color: var(--text-light);
  padding: 4rem 0 5rem;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
}

/* Contact Page */
.contact-wrapper {
  align-items: flex-start;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.contact-list i {
  margin-right: 0.75rem;
  color: var(--secondary);
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

/* Responsive Styles */
@media (max-width: 960px) {
  .grid-2 {
    flex-direction: column;
  }
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    background: var(--primary);
    width: 200px;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-links li {
    margin: 0;
  }
  .nav-links a {
    display: block;
    padding: 1rem;
  }
  .mobile-menu {
    display: flex;
  }
}
