/* Base intrinsic size hint for images */
img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

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

html {
  font-family: "Questrial", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  color: #111;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

main,
.main {
  max-width: 1366px;
  margin: 0 auto;
}

.c-blue {
  color: #545cff;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Nav */
header {
  padding: 20px 0px;
}

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

header.main-nav-dt {
  position: relative;
  top: 30px;
  padding: 10px 60px;
  border-radius: 50px;
  z-index: 9999;
  max-width: 1300px;
  margin: 0 auto;
  width: 90%;
}

header.main-nav-dt.sticky {
  position: sticky;
  background: linear-gradient(90deg, #ff637b 0%, #8a2be2 100%);
  transform: translateX(-50%);
  animation: fadeInDown 0.4s ease forwards;
}

.nav .logo {
  width: 120px;
}

.nav-links {
  display: flex;
  font-size: 16px;
  gap: 24px;
  background: rgba(0, 0, 0, 0.9);
  padding: 0px 32px;
  border-radius: 999px;
}

.nav-links a {
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.nav .btn {
  padding: 10px 20px;
  background: #fff;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.nav .btn:hover,
.nav .btn:focus-visible {
  background: #f0f0f0;
}

.hamburger {
  display: none;
  background: #fff;
  border: none;
  font-size: 1.25rem;
  color: #111;
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  z-index: 2;
}

.mobile-menu {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  padding: 16px;
  width: 90%;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu li {
  margin-bottom: 12px;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.125rem;
}

/* Hero */
.hero {
  background: linear-gradient(90deg, #ff637b 0%, #8a2be2 100%);
  color: #fff;
  border-radius: 40px;
  padding: 6rem 0 0 3rem;
  margin-top: -45px !important;
}

.hero .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.hero .text {
  flex: 1 1 300px;
  display: flex;
  gap: 24px;
}
.hero .icon-box img {
  margin-top: 5px;
}
.hero h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero .txt-desc {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
}
.hero .image {
  flex: 1 1 300px;
  text-align: right;
  bottom: 0;
}

/* Genetic */
.sc-genetic {
  background: #f9f8fa;
  margin: 0;
  position: relative;
  padding-top: 100px;
  padding-bottom: 170px;
  margin-top: 15px;
  border-radius: 20px;
}
.sc-genetic .genetic-head {
  text-align: center;
  margin-bottom: 100px;
  position: relative;
  z-index: 1;
}
.sc-genetic h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sc-genetic .txt-subhead {
  font-size: 30px;
  font-weight: 700;
}
.sc-genetic .genetic-desc {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.sc-genetic .genetic-desc .inner-warp {
  max-width: 500px;
  width: 100%;
  margin-left: 40%;
}
.sc-genetic .genetic-desc .txt-desc {
  font-size: 18px;
  margin-bottom: 20px;
}
.sc-genetic .genetic-desc .txt-desc:last-child {
  margin-bottom: 0;
}
.sc-genetic .genetic-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 600px;
  width: 100%;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-title p {
  color: #555;
}

/* Services */
.sc-service {
  margin-top: 0;
  padding-top: 100px;
}
.sc-service .section-title {
  text-align: left;
  display: flex;
  gap: 24px;
}
.sc-service h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sc-service .section-title .txt-desc {
  font-size: 30px;
  font-weight: 700;
}
.sc-service .section-title .icon-box {
  width: 65px;
}
.sc-service .section-title .desc-box {
  width: calc(100% - 89px);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 30px;
  border-radius: 50px;
  color: #111;
}
.service-card .icon-service {
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card ul {
  list-style: none;
  margin-top: 8px;
}
.service-card ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 25px;
}
.service-card ul li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
}
.card-1 {
  background: #3ef2b1;
}
.card-2 {
  background: #20c4f4;
}
.card-3 {
  background: #4f98ff;
}
.card-4 {
  background: #ff83e4;
}

/* Stories */
.sc-stories {
  margin: 0;
  padding-top: 100px;
  padding-bottom: 100px;
}
.sc-stories .section-title {
  text-align: left;
  display: flex;
  gap: 24px;
}
.sc-stories h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sc-stories .section-title .txt-desc {
  font-size: 30px;
  font-weight: 700;
}
.sc-stories .section-title .icon-box {
  width: 65px;
}
.sc-stories .section-title .desc-box {
  width: calc(100% - 89px);
}

/* Banner Slider */
.banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 20px;
}
.banner .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.banner .slide.active {
  opacity: 1;
  z-index: 2;
}

.banner-nav {
  position: absolute;
  bottom: 16px;
  left: 5%;
  display: inline-flex;
  gap: 12px;
  background: linear-gradient(to right, #f05281, #9941f5);
  padding: 0;
  border-radius: 999px;
  z-index: 10;
  margin-right: 3%;
}
.banner-nav .nav-item {
  background: transparent;
  border: none;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 999px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  min-width: auto;
  line-height: 1;
}
.banner-nav .nav-item .title {
  font-size: 0.875rem;
  font-weight: 700;
}
.banner-nav .nav-item .subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
}
.banner-nav .nav-item.active {
  background: #fff;
  color: #111;
}
.banner-nav .nav-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Skills Section */
.skills {
  background: linear-gradient(180deg, #633da0 0%, #39117b 100%);
  color: #fff;
  text-align: center;
  padding: 80px;
}
.skills h2 {
  font-size: 64px;
}
.skills h2 img {
  display: inline-flex;
  width: 50px;
}
.skill-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  list-style: none;
  padding-left: 0;
}
.skill-tabs .tab {
  background: #ffffff20;
  color: #fff;
  border: 1px solid #ffffff30;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.skill-tabs .tab.active,
.skill-tabs .tab[aria-selected="true"] {
  background: #fff;
  color: #39117b;
}
.skill-tabs .tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.skill-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.skill-content .text {
  text-align: left;
}
.skill-content h3 {
  font-size: 40px;
  margin-bottom: 8px;
}
.skill-content p {
  font-size: 18px;
  opacity: 0.9;
}
.skill-content .icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(60px, 1fr));
  gap: 16px;
  align-items: center;
}
.skill-content .icons img {
  max-height: 48px;
  margin: 0 auto;
}

/* Contact */
.contact {
  background: #f9f8fa;
  border-radius: 20px;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 80px 40px;
}
.contact .info {
  text-align: center;
}
.contact .info h2 {
  font-size: 44px;
  margin-bottom: 10px;
  color: #3a2166;
}
.contact .info p {
  font-size: 20px;
  color: #333;
  opacity: 0.9;
  margin-bottom: 20px;
}
.contact .info ul {
  list-style: none;
  text-align: left;
  margin: 0;
  padding: 0;
}
.contact .info li {
  margin: 10px 0;
}
.contact .info ul li {
  margin-left: 32px;
}

.contact .info ul li::before {
  content: "✦";
  margin-right: 8px;
}

/* Footer */
footer {
  text-align: center;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 0.875rem;
  color: #777;
  position: relative;
}
footer .logo {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
}
footer img.footer-float-aw {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  max-width: 80%;
}
.wp-site-blocks {
  position: relative;
}

/* Responsive */
@media (max-width: 1200px) {
  .sc-genetic .genetic-bg img {
    width: 80%;
  }
}

@media (max-width: 991px) {
  .wp-site-blocks {
    padding: 0 20px;
  }
  .hero {
    padding: 7rem 2rem 0 2rem;
  }
  .hero .content {
    flex-direction: column;
  }
  .hero .text {
    flex: 1;
    flex-direction: column;
  }
  .hero .image {
    flex: 1;
  }
  .hero .icon-box img {
    width: 80px;
  }
  .sc-genetic {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .sc-genetic .genetic-head {
    margin-bottom: 60px;
  }
  .sc-genetic .genetic-bg {
    display: none;
  }
  .sc-genetic .genetic-desc .inner-warp {
    margin-left: 0;
    max-width: 768px;
    padding: 0 20px;
  }
  .sc-service {
    padding-top: 70px;
  }
  .sc-service .section-title {
    flex-direction: column;
  }
  .sc-stories {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .sc-stories .section-title {
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
    width: 40px;
    position: absolute;
    right: 16px;
  }
  .nav .btn {
    margin-left: auto;
    margin-right: 15px;
  }
  .nav .logo {
    position: absolute;
    left: 24px;
  }
}

@media (max-width: 768px) {
  .banner-nav .nav-item .subtitle {
    display: none;
  }
  .banner {
    height: 340px;
  }
  .banner .slide img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 575px) {
  .contact .info h2,
  .skills h2,
  .sc-stories h2,
  .sc-service h2,
  .sc-genetic h2,
  .hero h1 {
    font-size: 32px;
  }
  .contact .info p,
  .skills h2 img,
  .sc-stories h2,
  .sc-genetic h2,
  .hero .txt-desc,
  .sc-service .section-title .txt-desc {
    font-size: 22px;
  }
  .hero .icon-box img {
    width: 48px;
  }
  .wp-site-blocks {
    padding: 0;
  }
  .banner-nav {
    left: 0;
    right: 0;
    margin: 0 auto;
    gap: 0;
  }
  .banner-nav .nav-item {
    padding: 0.5rem 1rem;
    min-width: 0;
    flex: 1;
    text-align: center;
  }
  .banner-nav .nav-item .title {
    font-size: 0.75rem;
  }
  .sc-service .section-title .desc-box,
  .sc-service .section-title .icon-box {
    width: 100%;
  }
  footer + img.footer-float-aw {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .nav .btn {
    display: none;
  }
  .nav {
    padding: 18px 20px;
  }
  .nav-links {
    padding: 0px 16px;
  }
  .nav-links a {
    padding: 8px 12px;
  }
}

/* Skip link (accessibility) */
.skip-link.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
