* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: #ddd;
  color: #35424a;
  text-size-adjust: 100%;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

header {
  background: transparent;
  padding: 1px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background 0.3s ease;
}

header.scrolled {
  background: #ddd;
}

.logo img {
  width: 100px;
  height: auto;
  cursor: pointer;
}

.hero-carousel {
  height: 100vh;
}

.hamburger {
  cursor: pointer;
  display: none;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  /* The size of the SVG defines the overall size */
  height: 2.3em;
  /* Define the transition for transforming the SVG */
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: black;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.hamburger input:not(:checked) + svg {
  transform: rotate(0deg);
}

.hamburger input:not(:checked) + svg .line-top-bottom {
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
}

nav a {
  color: black;
  text-decoration: none;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 40px;
  cursor: pointer;
}
nav ul li {
  position: relative;
}
nav ul li a {
  text-decoration: none;
}
nav ul li a:hover {
  color: #f5a623;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ddd;
  padding: 10px 0;
  border-radius: 6px;
  min-width: 220px;
  list-style: none;
  z-index: 999;
  max-height: 300px;
  overflow-y: auto;
}
.submenu li a {
  display: block;
  padding: 10px 15px;
  color: black;
  white-space: nowrap;
}

.submenu li a:hover {
  color: #f5a623;
}

.dropdown:hover .submenu {
  display: block;
}

.dropdown i {
  margin-left: 70px;
  font-size: 0.8em;
  display: none;
}

.btn {
  display: inline-block;
  background: #ddd;
  color: #35424a;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
  animation: initialJump 0.8s ease-in-out 1s forwards;
}

.btn:hover {
  animation: jump 0.6s ease-in-out;
}

.hero-btn {
  display: inline-block;
  background: #35424a;
  color: #ddd;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
  animation: initialJump 0.8s ease-in-out 1s forwards;
}

.hero-btn:hover {
  animation: jump 0.6s ease-in-out;
}

@keyframes jump {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes initialJump {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.about {
  padding: 40px 20px;
  text-align: center;
  margin-top: 30px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px;
}

.about-image img {
  width: 90%;
  height: 390px;
  object-fit: cover;
  border-radius: 6px;
}

.about-image {
  flex: 0 0 55%;
}

.about-text {
  flex: 1;
  position: relative;
}

.about h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #35424a;
}

.about-btn {
  display: inline-block;
  margin-top: 20px;
  background: #35424a;
  color: #ddd;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
  margin-bottom: 20px;
}

.about-btn:hover {
  animation: jump 0.6s ease-in-out;
}

.border-box {
  border-left: 4px solid #f5a623; /* Orange left border */
  border-top: 4px solid #f5a623; /* Orange top border */
  border-bottom: 4px solid #f5a623; /* Orange bottom border */
  border-right: none; /* No right border */
  padding: 10px 20px; /* Space inside the border */
  display: inline-block;
  position: relative;
}

/* Create the missing parts of the lines so the border looks like the image*/

.border-box::before,
.border-box::after {
  content: "";
  position: absolute;
  background-color: #f5a623;
}

.border-box::before {
  width: 4px;
  height: 20px;
  top: 0;
  right: 0;
}

.border-box::after {
  width: 4px;
  height: 20px;
  bottom: 0;
  right: 0;
}

.client-grid {
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;

  background: #35424a;
}

.client-grid h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.client-grid p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ddd;
  margin-top: 1rem;
  font-style: italic;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  /* background: #ffffff; */
}

.client-card {
  /* background-color: #ffffff; */
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  color: #ddd;
  margin-bottom: 5px;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-footer {
  background: #35424a;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 150px;
  max-width: 1100px;
  margin: auto;
}
.site-footer h3 {
  margin-bottom: 10px;
  color: #f5a623;
}
.footer-contact p,
.footer-about p {
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact a {
  color: #fff;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin: 6px 0;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: none;
}

.footer-contact i {
  margin-right: 8px;
  color: #f5a623;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
}

/* Insights & News Section */
.insights-news {
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  margin: 10px;
}

.insights-news h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #35424a;
}

.insights-news p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #35424a;
  margin-top: 1rem;
}

.insights-news .btn {
  margin-bottom: 1rem;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  /* background: #ffffff; */
}

.news-card {
  /* background-color: #f9f9f9; */
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  color: #35424a;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.news-card .article-date {
  font-size: 0.85rem;
  color: #f5a623;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #35424a;
}

.news-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #35424a;
}

.news-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card a:hover {
  text-decoration: none;
}

/* Insights Page Styles */
.insights-hero {
  height: 50vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #35424a, #2c3e50);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #35424a;
}

.insights-hero .hero-content {
  z-index: 2;
  position: relative;
}

.insights-hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.insights-hero .hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.insights-content {
  padding: 4rem 2rem;
  /* background: #ffffff; */
}

.insights-content .container {
  max-width: 1000px;
  margin: 0 auto;
}

.insight-article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.insight-article:last-child {
  border-bottom: none;
}

.insight-article img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.insight-article h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #35424a;
}

.insight-article .article-date {
  font-size: 0.9rem;
  color: #f5a623;
  margin-bottom: 1rem;
  font-style: italic;
}

.article-content .article-date {
  color: #f5a623;
}

.insight-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: #35424a;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-block;
  background: #35424a;
  color: #ddd;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

span {
  color: black;
  font-weight: bold;
}

.read-more:hover {
  animation: jump 0.6s ease-in-out;
}

.fade-slide {
  opacity: 0;
  transform: translateX(-50px);
}

/* when visible, play animation */
.fade-slide.visible {
  animation: fadeSlideIn 0.8s ease forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

hr {
  width: 60%;
  margin: 40px auto;
  border: none;
  height: 1px;
  background-color: #35424a;
}

/* Hero Carousel */
.hero-carousel {
  height: 100vh;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  text-align: center;
  width: 100%;
  z-index: 2;
  color: #ddd;
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.2;
  color: #ddd;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
  margin-inline: auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

/* Carousel indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 180px;
  height: 4px;
  background: transparent;
  z-index: 10000;
  display: none;
}

.carousel-indicators .indicator {
  flex: 1;
  height: 4px;
  background-color: #bbb;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 0;
}

.carousel-indicators .indicator.active {
  background-color: black;
}

@media (max-width: 768px) {
  header {
    padding: 1px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1002;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .hamburger {
    display: block;
    z-index: 1003;
  }

  .logo {
    z-index: 1002;
  }

  .carousel-arrow {
    display: none;
  }

  body {
    overflow-x: hidden;
  }

  .border-lines {
    top: -5x;
    left: -5px;
    right: -8px;
    bottom: -5px;
  }

  .dropdown i {
    display: block;
    float: right;
    margin-top: 2px;
    transition: transform 0.3s ease;
  }

  .dropdown.open i {
    transform: rotate(90deg);
  }

  .hero-carousel {
    height: 100vh;
  }

  .hero-content {
    padding: 0 20px;
    line-height: 1.4;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
  }

  #mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ddd;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  #mobile-nav.open {
    max-height: 100vh;
  }

  nav ul {
    flex-direction: column;
    width: 80%;
    gap: 0;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  nav ul li {
    border-bottom: 1px solid #eee;
    margin: 0;
    width: 100%;
  }

  nav ul li a {
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
  }

  .submenu {
    position: static;
    width: 90%;
    margin: 0 auto;
    padding-left: 20px;
    box-shadow: none;
    /* background: #ffffff; */
    display: none;
  }

  .submenu li {
    border-bottom: 1px solid #eee;
    width: 100%;
    margin: 0;
  }

  .submenu li a {
    display: block;
    padding: 12px 20px;
    width: 100%;
  }

  .dropdown.open .submenu {
    display: block !important;
  }
  .dropdown .submenu {
    display: none !important;
  }

  .about {
    margin-top: 0;
  }

  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-text {
    flex: 1 1 100%;
  }

  .about-image img {
    height: auto;
  }

  .about h2 {
    font-size: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 100vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .btn {
    padding: 12px 25px;
  }

  .carousel-indicators {
    bottom: 120px;
  }

  nav.open {
    max-height: 100vh !important;
    z-index: 10001 !important;
  }

  .about {
    margin-top: 0;
  }

  .carousel-indicators {
    bottom: 120px;
  }
}

@media (max-width: 376px) {
  .hero-carousel {
    height: 100vh;
  }

  .hero-content h1 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 150px;
  }
}

/* Insights Detail Page Styles */

.hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-content {
  text-align: center;
  width: 100%;
  z-index: 2;
  color: #ddd;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.2;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.article-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-date {
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
}
