body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0f2c;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: rgba(18, 25, 59, 0.97);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 15px 0 10px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 110px;
  width: auto;
}

.title-container h1 {
  margin: 0;
  font-size: 2.2em;
}

.tagline {
  color: #4ecdc4;
  font-style: italic;
  margin: 5px 0 0;
  font-size: 1.1em;
}

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding-top: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #4ecdc4;
}

.card {
  background: #1b2345;
  border-radius: 10px;
  padding: 30px;
  margin: 60px auto;
  max-width: 950px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

footer {
  text-align: center;
  padding: 25px;
  background: linear-gradient(90deg, #12193b, #0a0f2c);
  color: #aaa;
  font-size: 0.9em;
}
/* Global link colors */
a {
  color: #4ecdc4;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #88fff4;
  text-decoration: underline;
}

a:visited {
  color: #4ecdc4;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #4ecdc4;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: background-color 0.3s;
}

#backToTop:hover {
  background-color: #36b8af;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .header-content {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    height: 90px;
  }
  .title-container h1 {
    font-size: 1.8em;
  }
  nav {
    gap: 15px;
  }
  .card {
    margin: 40px 20px;
    padding: 20px;
  }
}
/* Contact Form Improvements */
#contact form input,
#contact form textarea {
  width: 100%;
  max-width: 600px;
  font-size: 1em;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #4ecdc4;
  background-color: #0d1335;
  color: #fff;
  box-sizing: border-box;
}

#contact form button {
  background-color: #4ecdc4;
  color: #000;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact form button:hover {
  background-color: #36b8af;
}
/* === Title + Tagline Color Override === */
.title-container h1 {
  color: #ffffff !important;   /* White title */
}

.title-container .tagline {
  color: #4ecdc4 !important;   /* Cyan accent tagline */
}
/* === Light Mode Styles === */
body.light-mode {
  background: #f4f4f7;
  color: #1a1a1a;
}

/* Header in light mode */
body.light-mode .sticky-header {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Title + tagline */
body.light-mode .title-container h1 {
  color: #0A314D !important;
}

body.light-mode .title-container .tagline {
  color: #0096FF !important;
}

/* Cards */
body.light-mode .card {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Links */
body.light-mode a {
  color: #0A314D;
}

body.light-mode a:hover {
  color: #0096FF;
}

/* Footer */
body.light-mode footer {
  background: #e2e7f0;
  color: #333;
}

/* Toggle button in light mode */
body.light-mode #themeToggle {
  background: #132E5B !important;
  color: #ffffff !important;
}
/* === Ensure Header is Centered === */
header .header-content {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

header .title-container {
  text-align: center !important;
}
/* === Light Mode Form Fields === */
body.light-mode #contact form input,
body.light-mode #contact form textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #132E5B !important; /* subtle dark blue border */
}

body.light-mode #contact form input::placeholder,
body.light-mode #contact form textarea::placeholder {
  color: #555 !important;
}

/* === MOBILE HEADER FIX: Unstick + Reduce Size === */
@media (max-width: 800px) {

  /* Header scrolls away normally */
  .sticky-header {
    position: static;
    padding: 8px 0;
  }

  .header-content {
    flex-direction: row;
    gap: 12px;
  }

  /* Smaller logo */
  .logo {
    height: 55px;
  }

  /* Smaller title */
  .title-container h1 {
    font-size: 1.3em;
  }

  /* Optional: hide tagline if too big */
  .tagline {
    font-size: 0.85em;
    margin-top: 2px;
  }
}
