/* GLOBAL STYLES */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #354f52;
  color: #f6f6f4;
}

/* HEADER */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  background-color: #354f52;

  border-bottom: 2px solid #cad2c5;

  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #f6f6f4;
  letter-spacing: 1px;
}

.logo a {
  color: #f6f6f4;
  text-decoration: none;
}

.logo a:hover {
  color: #cad2c5;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #f6f6f4;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #cad2c5;
}

/* RESPONSIVE HEADER */
@media (max-width: 800px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .search-container {
    text-align: center;
    margin-top: 10px;
  }
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 80px;
  gap: 40px;
}

.hero .text {
  max-width: 500px;
  margin: 20px;
}

.hero h1 {
  color: #fdfdfc;
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.hero img {
  width: 400px;
  border-radius: 12px;
  border: 3px solid #cad2c5;
}
.molecule-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.molecule-banner img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  border: 2px solid #cad2c5;
  background-color: #1e2a2a;
  padding: 5px;
}

/* ABOUT SECTION */
.about {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 35px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(209, 193, 155, 0.3);
}

.about h2 {
  color: #f6f6f4;
  font-size: 2rem;
  margin: 0 0 20px 0;
  text-align: center;
}

.about p {
  color: #e6e6e4;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: left;
}

.about p:last-child {
  margin-bottom: 0;
}

.about a,
.about a:link {
  color: #ffff6e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.about a:visited {
  color: #ffd000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about a:hover {
  color: #fee35c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CATEGORIES */
.categories {
  max-width: 1000px;
  margin: 140px auto;
  padding: 0 20px 100px;
  text-align: center;
}

.categories h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f6f6f4;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.pill {
  text-decoration: none;
  color: #f6f6f4;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 18px 45px;
  border: 2px solid #cad2c5;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.pill:hover {
  background-color: #cad2c5;
  color: #354f52;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* BREADCRUMBS */
.breadcrumbs {
  max-width: 1000px;
  margin: 20px auto 0;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: #cad2c5;
}

.breadcrumbs a {
  color: #f6f6f4;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* CONTENT AREA */
.content {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(202, 210, 197, 0.4);
}

.content h1 {
  text-align: center;
  color: #f6f6f4;
  font-size: 2.3rem;
  margin-bottom: 40px;
  border-bottom: 2px solid #cad2c5;
  padding-bottom: 10px;
}

.content a:not(.pill),
.content a:not(.pill):link {
  color: #ffff6e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.content a:not(.pill):visited {
  color: #ffd000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:not(.pill):hover {
  color: #fee35c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* TUTORIAL SECTIONS */
.tutorial-section h2 {
  color: #f2f2f2;
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SEQUENCE SECTIONS (for case-sensitive scientific notation) */
.sequence-section h2 {
  color: #f2f2f2;
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.tutorial-section ul {
  list-style: disc;
  padding-left: 25px;
  color: #f2f1ee;
}

/* LINK COLORS */
a,
a:link,
a:visited {
  color: #f6f6f4;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #f6f6f4;
}

/* TUTORIAL SECTION LINKS */
.tutorial-section a,
.tutorial-section a:link {
  color: #ffff6e;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tutorial-section a:visited {
  color: #ffd000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.tutorial-section a:hover {
  color: #fee35c;
}

/* UPDATED TEXT */
.updated {
  margin-top: 40px;
  text-align: right;
  color: #cad2c5;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 2px solid #cad2c5;
  color: #f6f6f4;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

#backToTop {
  display: inline-block;
  margin: 0 auto 25px auto;
  padding: 12px 28px;
  background-color: #52796f;
  color: #f6f6f4;
  border: 2px solid #cad2c5;
  border-radius: 30px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

#backToTop::before {
  content: "↑";
  margin-right: 6px;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

#backToTop:hover {
  background-color: #cad2c5;
  color: #354f52;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#backToTop:hover::before {
  transform: translateY(-2px);
}

#backToTop:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* SEARCH BAR */
.search-container {
  position: relative;
  text-align: right;
  margin-right: 40px;
}

.contact-section {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(202, 210, 197, 0.4);
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(202, 210, 197, 0.5);
  transform: translateY(-3px);
}

.contact-card h2 {
  color: #f6f6f4;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-card p {
  color: #f2f2f0;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ABOUT US PAGE STYLES */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin: 40px 0;
}

.about-photo-column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.about-photo {
  flex: 0 0 auto;
  margin-left: 20px;
}

.about-photo img {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(202, 210, 197, 0.3);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-photo img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.photo-caption {
  margin-top: 12px;
  color: #e6e6e4;
  font-size: 0.9rem;
  font-style: italic;
  text-align: left;
  line-height: 1.5;
}

.achievements-box {
  width: 320px;
  max-width: 100%;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(202, 210, 197, 0.15) 0%,
    rgba(136, 162, 158, 0.15) 100%
  );
  border: 2px solid rgba(202, 210, 197, 0.4);
  border-left: 4px solid #88a29e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.achievements-box:hover {
  background: linear-gradient(
    135deg,
    rgba(202, 210, 197, 0.2) 0%,
    rgba(136, 162, 158, 0.2) 100%
  );
  border-color: rgba(202, 210, 197, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.achievements-box h3 {
  color: #f6f6f4;
  font-size: 1.3rem;
  margin: 0 0 18px 0;
  font-weight: 600;
}

.achievements-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievements-box li {
  color: #f6f6f4;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
}

.achievements-box li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #a7c5b9;
  font-size: 1rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.about-text h2 {
  color: #f6f6f4;
  font-size: 2rem;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.about-text p {
  color: #f2f2f0;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Responsive: About Us Page */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    gap: 30px;
  }

  .about-photo-column {
    width: 100%;
    align-items: center;
  }

  .about-photo {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .about-photo img {
    width: 280px;
    margin: 0 auto;
  }

  .achievements-box {
    width: 100%;
    max-width: 500px;
  }

  .about-text {
    width: 100%;
  }
}

/* SEQUENCE BLOCK STYLES (for introInstructions.html) */
.sequence-block {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(202, 210, 197, 0.3);
  border-left: 3px solid #88a29e;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 15px 0 25px 0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.sequence-block:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(202, 210, 197, 0.5);
}

/* SOFTWARE PAGE STYLES */
.software-item {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(202, 210, 197, 0.2);
}

.software-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.software-item-content {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.software-image-placeholder {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-full-width-image {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.software-full-width-image img {
  max-width: 70%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.software-text {
  flex: 1;
}

.software-text h3 {
  color: #f6f6f4;
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.software-text p {
  color: #e6e6e4;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 600px) {
  .software-item-content {
    flex-direction: column;
    gap: 15px;
  }

  .software-image-placeholder {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}

.software-image-placeholder img {
  width: 140px; 
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
/* Google Search container */
.search-container {
  width: 300px;
  max-width: 300px;
}

/* Search input */
.gsc-input-box {
  border-radius: 6px !important;
  height: 36px;
}

/* Search button */
.gsc-search-button-v2 {
  padding: 6px 10px !important;
  border-radius: 6px !important;
}

.gsc-control-cse {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
/* Google CSE autocomplete dropdown */
.gssb_c,
.gssb_c table,
.gssb_c td {
  color: #000 !important;
  background: #fff !important;
}

/* Highlighted suggestion */
.gssb_c .gssb_e {
  background: #f1f5f9 !important;
}

/* Normal suggestion text */
.gssb_a {
  color: #000 !important;
}
