/* Symbex blue #7aa4ca */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Fix sideways drift */
  scroll-behavior: smooth;
  font-family: "Franklin Gothic Medium", "Arial", Arial, sans-serif;
}

/* Add spacing so content isn't hidden under fixed header */
body {
  background: #ffffff;
}

/* --- NAVBAR --- */
/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 30px 60px 10px 30px;

  background: #7aa4ca;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

.navbar .logo img {
  max-height: 130px;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
  align-items: left;
  white-space: nowrap;
  padding-right: 4%;
}

.nav-links li {
  position: relative; /* Important for dropdown anchoring */
}

.nav-links a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute; /* Fixes left shifting */
  top: 100%;
  left: 0;

  background: rgba(10, 29, 53, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 12px 0;
  min-width: 200px;
  border-radius: 10px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 2000;
}

/* HOVER REVEAL */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* DROPDOWN LINKS */
.dropdown-menu li a {
  color: #fff;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  color: #a4a4a4f7;
  border-radius: 6px;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 97vh;
  overflow: hidden;
}

/* Container for sliding images */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* ensure it's behind header */
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Text overlay stays centered */
.hero {
  position: absolute;
  top: 7%;
  left: 0.5%;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  font-size: 3em;
}

.hero h1 {
  letter-spacing: 2vw; /* scales with screen width */
  font-size: clamp(2rem, 8vw, 8rem); /* responsive font size */
  color: white;
  margin: 0;
  margin-top: 11%;
}

/* Dark overlay for readability */
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .arrow {
    font-size: 2rem;
  }
}

.about-preview {
  padding-top: 0px;
  background-color: #ffffff;
  text-align: right;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 20px;
}

.about-preview h2 {
  font-size: 2em;
  font-family: "Arial";
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 20px;
}

.about-preview p {
  font-size: 1.1em;
  font-family: "Arial", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0a1d35;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.about-button:hover {
  background-color: #1b2f4b;
}

.portfolio-preview {
  padding-top: 20px;
  background-color: #7aa4ca;
  text-align: left;
  padding-bottom: 30px;
}

.portfolio-container {
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-preview h2 {
  margin-top: 2px;
  font-family: "Arial";
  font-size: 2em;
  color: #ffffff;
}

.portfolio-preview p {
  font-size: 1.1em;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  margin-bottom: 0.2px;
  color: #ffffff;
  line-height: 1.8;
}

/* Portfolio Section */
.portfolio-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #7aa4ca;
  color: #ffffff;
}

.portfolio-section h2 {
  font-size: 2rem;
}

.portfolio-column {
  display: flex;
  width: 33%;
  flex-direction: column;
  margin: 0% 1.5%;
}

.column-container {
  display: flex;
}

.column-header {
  width: 100%;
  background: #0a1d35;
  color: #ffffff;
  border-radius: 12px;
  perspective: 1000px;
  font-family: "Arial";
  box-shadow: 1px 6px 10px rgba(0, 0, 0, 0.25);
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 40px;
  margin: 60px auto;
  max-width: 1300px; /* fits roughly 3 cards side by side */
  text-align: center;
}

.category-card {
  width: 400px;
  height: 80px;
  background-color: #0a1d35;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Flip Card Container */
.portfolio-card {
  width: 100%;
  aspect-ratio: 4/5;
  perspective: 1000px;
  position: relative;
  margin-top: 10%;
}

/* Inner wrapper to handle rotation */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}

/* Flip on hover */
/* .portfolio-card:hover .card-inner {
  transform: rotateY(180deg);
} */

/* On touch devices, disable hover flip and use a class instead */
body.touch-device .portfolio-card:hover .card-inner {
  transform: none;
}

body.touch-device .portfolio-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* Shared card face styles */
.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  /* transform-style: preserve-3d; */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Front side */
.card-front {
  background-color: #7aa4ca;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
  z-index: 2;
  transform-style: preserve-3d;
}

.card-front img {
  width: 100%;
  height: auto;
  display: block;
}

/* Back side */
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-color: #ffffff;
  color: #0a1d35;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  pointer-events: auto;
}

.card-back-content {
  width: 100%;
  height: 100%;
  padding: 5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  transform-style: flat;
}

/* Content styling */
.card-back h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 1.5vw, 4em);
  font-family: "Arial";
  flex-shrink: 0;
  margin: 0 0 1rem 0;
}

.card-back p {
  font-size: clamp(1em, 1vw, 3em);
  font-family: "Arial";
  font-weight: bold;
  line-height: 1.4;
  /* text-align: center; */
  margin-left: 2em;
  margin-right: 2em;
  letter-spacing: 0em;
  touch-action: pan-y;
}

.card-back a {
  font-size: clamp(1em, 1vw, 3em);
}

.scroll-container {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  /* pointer-events: none; */
}

.learn-more-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  background-color: #de1111;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #ff5425;
}

.learn-more-btn-bl {
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  background-color: #00b5ff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.learn-more-btn-bl:hover {
  background-color: #2592fff7;
}

.learn-more-btn-gr {
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  background-color: #cbdc09;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.learn-more-btn-gr:hover {
  background-color: #cbdc09f7;
}

.learn-more-btn-pi {
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  background-color: #f48f9d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.learn-more-btn-pi:hover {
  background-color: #f48f9df7;
}

.site-footer {
  background-color: #ffffff;
  color: #000000;
  padding: 0px 20px 20px;
  text-align: center;
  margin-top: 20px;
}
/* Test Comment */
.social-spacer {
  color: black;
  font-size: 1.5em;
  margin-left: 5px;
  margin-right: 5px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 316px;
  /* width: 20vw; */
  margin: 100px 0 20px 0;
}

.footer-social {
  display: flex;
  font-size: 17pt;
  justify-content: center;
}

.footer-info {
  font-size: 1.5em;
  line-height: 1;
}

.footer-info p,
.footer-social a {
  font-weight: bold;
  /* margin: 3px 0; */
  color: #000000;
  text-decoration: none;
  display: block;
}

.footer-social a:hover {
  text-decoration: #6b6c6d;
}

.footer-social img {
  max-height: 5vw;
  width: auto;
  margin-left: 2vw;
}

.footer-bottom {
  font-size: 0.9em;
  color: #ccc;
}

.company-hero {
  position: absolute;
  font-size: 3em;
  top: 60%;
  left: 20%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #ffffff;
  padding: 50px;
  border-radius: 100px;
  max-width: 80%;
}

.company-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 150px;
  background-color: #7aa4ca;
  max-width: 800px;
  padding: 60px 20px;
  margin: 0 auto;
}

.company-card {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 500px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s;
  transform: scale(1.05);
}

.company-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.company-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.503); /* opaque tint */
  z-index: 1;
}

.company-card h3,
.company-card p {
  position: relative;
  z-index: 2;
  color: white;
  margin: 0 auto;
  padding: 0 20px;
}

.company-card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

.company-card p {
  font-size: 0.95em;
}

.company-card:hover {
  transform: translateY(-20px);
  z-index: 2;
}

/* HERO SECTION */
.about-hero {
  position: relative;
  height: 97vh;
  width: 100%;
  overflow: hidden; /* keeps the image from affecting other elements */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
}

.about-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes sure the image fills the space without stretching */
  z-index: -1; /* pushes it behind the text */
}

.hero-text {
  position: relative;
  text-align: center;
  padding: 40px 60px;
  border-radius: 20px;
  top: 0;
}

.hero-text h1 {
  letter-spacing: 1vw; /* scales with screen width */
  font-size: clamp(2rem, 8vw, 8rem); /* responsive font size */
  color: white;
  margin: 0;
  margin-top: 11%;
}

.hero-text p {
  font-size: 1.3rem;
  font-family: "Arial";
  font-weight: 400;
  /* letter-spacing: 0.5em; scales with screen width */
  font-size: clamp(1px, 1vw, 2rem); /* responsive font size */
}

/* WHITE SECTION */
.about-white {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.about-white .content-wrapper {
  max-width: 70vw;
  margin: 0 auto;
  text-align: left;
}

.about-white h2 {
  font-size: 2rem;
  font-family: "Arial";
  font-weight: bold;
  margin-bottom: 20px;
}

.about-white p {
  font-size: 1.1rem;
  font-family: "Arial";
  font-weight: bold;
  letter-spacing: 0em;
  line-height: 1.8;
  margin-bottom: 25px;
}

.about-white ul {
  font-size: 1.1rem;
  font-family: "Arial";
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0em;
}

/* BLUE SECTION */
.about-blue {
  background-color: #7aa4ca;
  color: #ffffff;
  padding: 80px 20px;
}

.about-blue .content-wrapper {
  max-width: 70vw;
  margin: 0 auto;
  text-align: left;
  color: white;
}

.about-blue h2 {
  font-size: 2rem;
  font-family: "Arial";
  font-weight: bold;
  margin-bottom: 20px;
}

.about-blue p,
.about-blue ul {
  font-size: 1.1rem;
  font-family: "Arial";
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0em;
}

.about-blue ul {
  padding-left: 25px;
  list-style-type: disc;
  margin-top: 15px;
}

.about-blue li {
  margin-bottom: 10px;
}

.symbex-preview {
  padding: 30px;
  padding-top: 0px;
  background-color: #ffffff;
  text-align: center;
}

.symbex-container {
  max-width: 100%;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 70px;
}

.symbex-continer img {
  width: 30%;
}

.symbex-preview h2 {
  font-size: 4.5em;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 1vw;
  margin-top: 35px;
  line-height: 0.5;
  text-align: center;
}

.symbex-preview p {
  font-size: 16pt;
  font-family: "Arial";
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1;
  text-align: center;
}

.symbex-container-desc p {
  font-size: 17pt;
  margin-top: 15px;
  margin-bottom: 15px;
}

.contact-preview {
  padding-top: 40px;
  background-color: #7aa4ca;
  text-align: left;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  display: flex;
  text-align: center;
  padding: 60px 20px;
  background-color: #7aa4ca;
  color: #ffffff;
}

.contact-section h2 {
  font-size: 2.5rem;
}

/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 40px;
  margin: 60px auto;
  max-width: 1300px; /* fits roughly 3 cards side by side */
  text-align: center;
}

/* Flip Card Container */
.contact-card {
  width: 400px;
  height: 500px;
  perspective: 1000px;
  position: relative;
}

/* Inner wrapper to handle rotation */
.contact-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}

/* Flip on hover */
.contact-card:hover .contact-card-inner {
  transform: rotateY(180deg);
}

/* Shared card face styles */
.contact-card-front,
.contact-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Front side */
.contact-card-front {
  background-color: #7aa4ca;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
  z-index: 2;
}

.contact-card-front img {
  width: 100%;
  height: auto;
  display: block;
}

/* Back side */
.contact-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-color: #ffffff;
  color: #0a1d35;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  pointer-events: auto;
}

/* Content styling */
.contact-card-back h3 {
  margin-bottom: 10px;
  font-size: clamp(14pt, 2vw, 27pt);
  /* line-height: 0.5; */
}

.contact-card-back p {
  font-size: clamp(10pt, 1.5vw, 24pt);
  margin-top: 0em;
  margin-bottom: 0em;
  /* line-height: 1.0; */
  /* text-align: center; */
}

.contact-card-back a {
  max-width: 70%;
  font-size: clamp(10pt, 1.5vw, 24pt);
}

.contact-card-back p a {
  word-break: break-all;
}

.contact-card-back p:nth-last-of-type(2) {
  margin-top: 0.5em;
}

.contact-card-back p:first-of-type {
  margin-top: 0.2em;
}

#home-logo {
  display: none;
}

@media only screen and (max-width: 500px) {
  .column-divider {
    display: none;
  }
  .navbar {
    justify-content: center;
    font-size: 14pt;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar li a {
    font-size: 17pt;
  }

  .logo {
    display: none;
  }

  .nav-links {
    display: flex;
    justify-content: space-evenly;
    padding: 0;
  }

  .portfolio-column {
    width: 70vw;
    margin: 0;
  }

  .portfolio-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10px;
  }

  .column-header {
    margin-top: 10vw;
  }

  .column-container {
    flex-direction: column;
  }

  .contact-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .contact-section .card-front {
    overflow-y: none;
  }

  #home-title {
    display: none;
  }

  #home-logo {
    display: flex;
  }

  .about-container {
    width: 70vw;
    text-align: left;
  }

  .about-container p {
    font-size: 17pt;
  }

  .portfolio-container {
    width: 70vw;
  }
  .portfolio-preview p {
    font-size: 17pt;
  }

  .about-white {
    text-align: left;
  }

  .content-wrapper {
    width: 70vw;
  }

  .about-white .content-wrapper {
    text-align: left;
  }

  .site-footer img {
    width: 70vw;
  }

  .site-footer {
    margin-top: 0;
    padding-top: 0;
    font-size: 17pt;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-content p,
  .footer-content a {
    font-size: 17pt;
    font-weight: bold;
  }

  .footer-logo {
    max-width: 70vw;
  }

  .footer-content a img {
    max-height: 10vw;
    width: auto;
  }

  .symbex-continer {
    text-align: center;
  }

  .symbex-container .footer-social img {
    max-height: 10vw;
    width: auto;
  }

  .footer-social img {
    max-height: 10vw;
  }

  .footer-social a {
    width: fit-content;
    margin-left: 20%;
    margin-right: 20%;
  }

  /* .footer-social a:last-of-type {
    margin-left: 20%;
  } */

  .contact-card-back p {
    font-size: clamp(12pt, 1vw, 14pt);
    font-weight: bold;
  }

  .symbex-container-desc p {
    margin: 0px;
  }

  .symbex-container img {
    width: 70vw;
  }

  /* .about-white .content-wrapper p {
    text-align: justify;
  } */

  .about-blue .content-wrapper h2 {
    margin-top: 30px;
  }
}
