/* ==========================================================
   Aki Health Analytics css
   ========================================================== */

/* PAGE LAYOUT */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

main {
  flex: 1;
  margin-bottom: 20px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
nav {
  position: sticky;
  top: 0;
  background: rgba(10, 42, 67, 0.98);
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.nav-logo {
  height: 60px;
  width: auto;
  border: 3px solid #0a2a43;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2e8b57;
}

/* ==========================================================
   HEADER (HERO SECTION)
   ========================================================== */
header {
  background: #ffffff;
  color: #0a2a43;
  text-align: center;
  padding: 100px 20px;
  border-bottom: 2px solid #e0e0e0;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  animation: fadeInDown 1.2s ease;
  color: #0a2a43;
}

header p {
  font-size: 1.2em;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease;
  color: #2e8b57;
}

/* Buttons */
.btn {
  background: #2e8b57;
  color: #fff;
  padding: 14px 28px;
  margin: 5px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #256f47;
  transform: scale(1.05);
}

/* ==========================================================
   SECTIONS & CARDS
   ========================================================== */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: #0a2a43;
  border-left: 5px solid #2e8b57;
  padding-left: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  border: none;
  border-radius: 12px;
  padding: 25px;
  background: #f8f9fb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Why Work With Me Section */
.why {
  background: #f1f4f8;
  padding: 80px 20px;
}

ul {
  line-height: 1.8;
  padding-left: 20px;
}

/* ==========================================================
   PUBLICATIONS SECTION
   ========================================================== */
.publications {
  text-align: left;
  margin-top: 40px;
}

.publications h2 {
  text-align: left;
  color: #0a2a43;
}

.publication-links {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 15px;
}

.publication-links .btn {
  background-color: #2e8b57;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.publication-links .btn:hover {
  background-color: #256f47;
  transform: scale(1.05);
}

/* ==========================================================
   FORMS & FOOTER
   ========================================================== */
form {
  max-width: 600px;
  margin: 40px auto;
  background: #f8f9fb;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

form button {
  background: #2e8b57;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #256f47;
}

footer {
  background: #0a2a43;
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 0.9em;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   MOBILE OPTIMIZATION 
   ========================================================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    background-color: rgba(10, 42, 67, 0.97);
    padding: 20px 14px;
    border-radius: 12px;
    width: 96%;
    margin: 10px auto;
    box-sizing: border-box;
    overflow: visible;
  }

  .nav-links a {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #0a2a43;
    border: 2px solid #2e8b57;
    border-radius: 28px;
    padding: 10px 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    box-shadow: 0 0 0 2px transparent;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: #2e8b57;
    color: #ffffff;
    transform: scale(1.02);
  }

  .nav-logo {
    margin-bottom: 12px;
  }

  header {
    padding: 60px 15px;
  }

  header h1 {
    font-size: 1.8em;
    line-height: 1.3;
  }

  header p {
    font-size: 1em;
  }

  .btn {
    display: inline-block;
    margin: 8px 5px;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  section {
    padding: 50px 15px;
  }

  h2 {
    font-size: 1.5em;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  footer {
    font-size: 0.85em;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  header p {
    font-size: 0.9em;
  }

  .btn {
    width: 100%;
  }
}
