@import url('common.css');

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-color-header);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.btn-cta {
  background-color: var(--primary-color);
  color: white;
  /* padding: 0.75rem 1.5rem; */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.nav-links a.btn-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Main Content */
main {
  margin-top: 80px;
}

section {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

section:not(#hero) {
  margin-top: 5rem;
}

section:not(#hero) > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container h2 {
  color: var(--primary-color);
  margin-bottom: 0;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footnote {
  font-size: 0.75rem;
  margin-bottom: 0;
}

li {
  font-size: 1.25rem;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  /* margin-top: 2rem; */
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  font-weight: 400;
  outline: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  /* border: 2px solid var(--border-color); */
}

.btn-secondary:hover {
  /* border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px); */
  cursor: pointer;
}

/* Hero Section */
#hero {
  height: 400px;
  max-width: 100%;
  background: url("../images/p/hero-background.png") center/cover no-repeat;
}

#hero > .container {
  height: 100%;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero > .container > h1 {
  color: var(--primary-color);
  margin-bottom: 0;
}

.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.hero > * {
  margin-bottom: 0;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 990px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0 1rem;
}

.service-card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.service-image {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.service-info {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-info > * {
  margin-bottom: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Technology Section */
#technology {
  display: none;
}

.subsection {
  margin: 2rem 0;
}

.subsection h3 {
  color: var(--primary-color);
}

.subsection h3.no-highlight {
  color: var(--text-color);
}

.subsection ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Case Studies Carousel */
#case-studies > .container {

}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.case-study-card {
  min-width: 100%;
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  border-radius: 12px;
}

.case-study-images {
  position: relative;
  overflow: visible;
  flex: 1;
  height: 100%;
}

.case-study-image {
  width: 20%;
  height: 300px;
  background-color: var(--border-color);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: rgba(0,0,0,0.1) -2px 5px 10px 2px;
}

/* Lufthansa */
.case-study-card:nth-child(1) > .case-study-images > .case-study-image:nth-child(1) {
  width: 100%;
  height: auto;
}

/* UpTick */
.case-study-card:nth-child(2) > .case-study-images > .case-study-image {
  width: 170px;
  height: auto;
  position: absolute;
}

.case-study-card:nth-child(2) > .case-study-images > .case-study-image:nth-child(1) {
  left: 0;
  bottom: 10%;
}

.case-study-card:nth-child(2) > .case-study-images > .case-study-image:nth-child(2) {
  left: 25%;
  top: 0;
}

.case-study-card:nth-child(2) > .case-study-images > .case-study-image:nth-child(3) {
  left: 50%;
  bottom: 10%;
}

.case-study-card:nth-child(2) > .case-study-images > .case-study-image:nth-child(4) {
  right: 0;
  top: 0;
}

/* CryptoAlerts */
.case-study-card:nth-child(3) > .case-study-images > .case-study-image:nth-child(1) {
  width: 50%;
  height: auto;
  position: absolute;
  top: 20px;
  right: 45%;
  z-index: 1;
}

.case-study-card:nth-child(3) > .case-study-images > .case-study-image:nth-child(2) {
  width: 50%;
  height: auto;
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 2;
}

/* Senecto */

.case-study-card:nth-child(4) > .case-study-images {
  display: flex;
  justify-content: end;
  align-items: center;
}

.case-study-card:nth-child(4) > .case-study-images > .case-study-image:nth-child(1) {
  width: 80%;
  height: auto;
}

/* TopView */
.case-study-card:nth-child(5) > .case-study-images > .case-study-image:nth-child(1) {
  width: 590px;
  height: auto;
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 1;
}

.case-study-card:nth-child(5) > .case-study-images > .case-study-image:nth-child(2) {
  width: 240px;
  height: auto;
  position: absolute;
  top: -10px;
  right: 10%;
  z-index: 2;
}

.case-study-content {
  flex: 1;
}

.case-study-content h3 {
  color: var(--text-secondary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#own-products {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Logo Scroll */
#company-logos {
  max-width: 100%;
}

.logo-scroll {
  background-color: var(--logo-bg-color);
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 3rem;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scroll-seamless 40s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.logo-item {
  background-color: var(--logo-bg-color);
  border-radius: 8px;
  flex-shrink: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: grayscale(100%);
  opacity: 0.7;
  cursor: pointer;
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .logo-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scroll-seamless {
  0% {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
    -webkit-transform: translate3d(-50%, 0, 0);
  }
}

/* Testimonials */
.testimonials-container {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
  height: 560px;
}

.testimonials {
  position: relative;
  height: 100%;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden;
}

.testimonial > blockquote {
  height: 100%;
  overflow-y: auto;
  margin: 0;
}

.testimonial.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial:not(.active) {
  pointer-events: none;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: justify;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  text-align: left;
}

.testimonial-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonial-carousel-btn {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  pointer-events: auto; /* re-enable for the buttons */
  background: rgba(0,0,0,0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
}

#prevTestimonial {
  left: 0.5rem;
}

#nextTestimonial {
  right: 0.5rem;
}

/* About Us Section */
#about {
  display: none;
}

/* Footer */
footer {
  background-color: var(--bg-color-footer);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-footer);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-footer);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section p {
  font-size: 1rem;
  color: var(--text-footer);
}

.copyright {
  width: 1200px;
  display: flex;
  justify-content: end;
  margin-top: 2rem;
}

.copyright p {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .copyright {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .case-study-card {
    flex-direction: column;
  }

  .case-study-image {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-content {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .logo-scroll {
    padding: 2rem 0;
  }

  .logo-track {
    animation-duration: 30s;
    gap: 3rem;
  }
}