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

/* GLOBAL STYLES */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafc;
  color: #333;
  line-height: 1.7;
}

a {
  color: #457b9d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NAVIGATION */
#navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: top 0.4s ease-in-out;
  will-change: top;
}

.nav-hidden {
  top: -100px;
}

.top-nav {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #457b9d;
  text-decoration: none;
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  color: black;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #457b9d;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #457b9d;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* PROJECT HERO */
.project-hero {
  padding: 4rem 1.5rem 2.5rem;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.project-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 1rem;
}

.project-subtitle {
  font-size: 1.25rem;
  color: #5c677d;
  margin-bottom: 2.25rem;
  max-width: 700px;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  row-gap: 1.5rem;
}

.detail-block {
  flex: 1 1 200px;
}

.detail-label {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.detail-value {
  font-size: 1rem;
  color: #1d3557;
  font-weight: 500;
  margin-bottom: 0;
}

.detail-value a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.detail-value a:hover {
  text-decoration: underline;
  color: #457b9d;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  background: transparent;
  border: 1px solid #2ec4b6;
  color: #2ec4b6;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.tag:hover {
  background-color: #2ec4b6;
  color: white;
  cursor: pointer;
}

/* PAGE LAYOUT */
.page-wrapper {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 16px 0px 16px;
  gap: 2rem;
}

.container {
  max-width: 950px;
  margin: 0 70px;
  padding: 0 1.75rem 1rem;
  flex: 1;
  animation: fadeInUp 0.6s ease-in-out both;
  animation-delay: 0.2s;
}

.container p,
.container ul,
.container li {
  font-size: 18px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 10px;
}

h2, h3 {
  color: #1d3557;
  margin-bottom: 1rem;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  margin-top: 3rem;
  scroll-margin-top: 120px;
}

h2::before {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #2ec4b6, #457b9d);
  margin-bottom: 1rem;
  border-radius: 2px;
}

h3 {
  font-size: 28px;
  font-weight: 600;
  padding: 10px 0 5px;
}

h4 {
  font-size: 24px;
  font-weight: 600;
  color: #444444;
  margin-bottom: 5px;
}

/* COMPETITIVE ANALYSIS */
.competitive-analysis {
  max-width: 1000px;
}

.competitive-analysis h2 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 2rem;
}

.competitor-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.competitor-icon {
  flex: 0 0 180px;
  text-align: center;
}

.competitor-icon img {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
}

.competitor-icon h4 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  color: #333;
}

.competitor-feedback {
  flex: 1;
}

.competitor-feedback p {
  margin-bottom: 1rem;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* PAINPOINT */
.painpoint {
  max-width: 1000px;
  margin-bottom: 36px;
}

.painpoint label {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.painpoint p {
  font-size: 18px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* FINAL PRODUCT */
.feature-card {
  display: flex;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  align-items: center;
}

.feature-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h4 {
  margin-bottom: 1rem; 
}

.feature-media {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.feature-media video {
  width: 80%;
  max-width: 270px;
  border-radius: 12px;
}

.feature-gallery {
  margin-top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.feature-toggle {
  background: none;
  color: #457b9d;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.feature-toggle:hover {
  text-decoration: underline;
}

.feature-details {
  margin-top: 1rem;
  font-size: 15.5px;
  color: #444;
  line-height: 1.7;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.label {
  vertical-align: top;
  flex: 0 0 140px;
  color: #333;
}

.label h4 {
  margin: 0;
  font-size: 25px;
}

.content {
  flex: 1;
  font-size: 18px;
  color: #444;
  line-height: 1.75;
}

.graph {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph img {
  width: 100%;
  max-width: 360px; /* or 400px */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-top: 0;
}

/* STYLING */
mark {
  background-color: #fff29a; 
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  color: inherit; 
}

ul {
  padding-left: 24px;
}

li {
  line-height: 26px;
}

/* IMAGE STYLING */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

.banner{
  width: 100%;
  display: block;
}

.full-image {
  width: 80%;
  margin: 1rem auto;
  display: block;
}

.equal-height-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom:30px;
}

.equal-height-row img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.equal-height-row img:hover {
  box-shadow: 0 0 15px rgba(46, 196, 182, 0.4), 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

/* BUTTON */
.button {
  padding: 0.6rem 1.2rem;
  background-color: #457b9d;
  color: white;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: #315e81;
}

/* General Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

thead {
background-color: #f1f5f9;
}

th, td {
padding: 16px 20px;
text-align: left;
border-bottom: 1px solid #e5e7eb; /* Horizontal lines */
border-right: 1px solid #e5e7eb;  /* Vertical lines */
}

th:last-child, td:last-child {
border-right: none; /* No border on last column */
}

th {
font-weight: 600;
color: #111827;
}

td {
color: #374151;
vertical-align: top;
}

table tbody tr:nth-child(even) {
background-color: #f9fbfd;
}

/* TOC NAVIGATION */
.toc-nav {
  width: 200px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background: #fff;
  border-left: 4px solid #eee;
  padding-top: 1rem;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #777;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #444;
}

.toc-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-nav li {
  margin-bottom: 0.75rem;
}

.toc-nav a {
  text-decoration: none;
  color: #999;
  transition: color 0.3s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: #457b9d;
  font-weight: 600;
}

/* LIGHTBOX - IMAGE ENLARGE */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0,0,0,0.4);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  color: #555;
}

.footer-icons {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.footer-icons .social-icon {
  font-size: 1.3rem;
  margin: 0 10px;
  color: #333;
  transition: color 0.3s ease;
}

.footer-icons .social-icon:hover {
  color: #0077b5;
}

/* RESPONSIVE */
/* RESPONSIVE DESIGN */

/* Small Devices: Mobile Phones */
@media (max-width: 768px) {
  /* Layout Adjustments */
  .page-wrapper {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .container {
    margin: 0;
    padding: 0 1rem;
  }

  /* Navigation */
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0.75rem;
  }

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

  .nav-links a {
    margin-left: 0;
  }

  /* Typography Scaling */
  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  h4 {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
  }

  body {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
  }

  /* Feature Cards */
  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 24px;
  }

  .feature-text.center-content {
    align-items: center;
    text-align: center;
  }

  .feature-media video {
    width: 100%;
    max-width: 400px;
  }

  /* Rows */
  .row {
    flex-direction: column;
    gap: 1rem;
  }

  .label {
    flex: none;
    font-size: 1rem;
  }

  .graph img {
    max-width: 100%;
  }

  /* Images */
  .equal-height-row {
    flex-direction: column;
    align-items: center;
  }

  .equal-height-row img {
    width: 90%;
    height: auto;
  }

  img,
  .banner,
  .full-image {
    max-width: 100%;
    height: auto;
  }

  /* TOC Navigation */
  .toc-nav {
    position: static;
    width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
    margin-bottom: 2rem;
    padding: 1rem 0 0 0;
  }

  .toc-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .toc-nav li {
    margin-bottom: 0;
  }
}

/* Medium Devices: Tablets */
@media (max-width: 1024px) {
  /* Typography Tweaks */
  h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }

  h4 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  body {
    font-size: clamp(1rem, 2vw, 1.1rem);
  }

  /* Equal Height Image Rows */
  .equal-height-row {
    flex-direction: column;
    align-items: center;
  }

  .equal-height-row img {
    height: auto;
    width: 90%;
  }

  /* Table Wrapping */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ANIMATION */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
