/* COLORS */
:root {
  --bg-dark-color: rgb(15, 15, 15);
  --bg-1st-color: rgb(30, 30, 30);
  --bg-2nd-color: rgb(60, 60, 60);
  --bg-3rd-color: rgb(90, 90, 90);
  --bg-4th-color: rgb(120, 120, 120);
  --border-color: rgb(210, 210, 210);
  --text-color: rgb(210, 210, 210);
  --card-text-color: rgb(230, 230, 230);
  --navbar-text-color: rgb(245, 245, 245);
  --primary-color: rgb(50, 204, 204);
  --navbar-background: rgba(50, 210, 210, 0.8);
  --link-hover: rgb(0, 100, 100);
  --highlight-color: rgb(10, 150, 150);
  --alternative-hover: rgb(90, 90, 90);
}

/* Reset box sizing */
* {
  box-sizing: border-box;
}

/* Typography */
body {
  font-size: 1.1em;
  line-height: 1.6em;
  color: var(--text-color);
}

/* Headings and Links */
h1, h2, h3, h4, h5, h6, a {
  color: var(--primary-color);
}

h2 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0;
}

h3 {
  font-size: 1.3rem;
}

.lead {
  font-size: 1.4rem;
}

a {
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

.emphasis {
  font-size: 1.8rem;
  font-weight: 600;
  color: rgb(90, 200, 100);
  line-height: 2em;
}

.bold-custom {
  font-weight: 600;
}

/* NAVBAR */
.custom-navbar {
  background: var(--navbar-background);
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  font-size: 1.05em;
  font-weight: 600;
}

.navbar-logo {
  height: 35px;
  width: auto;
}

.custom-navbar .nav-link {
  color: var(--navbar-text-color);
}

@keyframes bump {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-4px) scale(1.05); }
  50% { transform: translateY(-2px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.custom-navbar .nav-link {
  position: relative;
  transition: color 0.3s ease-in-out;
  display: inline-block;
}

.custom-navbar .nav-link:hover {
  color: var(--link-hover);
  animation: bump 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* HERO SECTION */
.color-highlight {
  color: var(--primary-color);
}

.smaller {
  font-size:1em;
}

.hero-section {
  background: var(--bg-1st-color);
  color: var(--text-color);
  padding-top: 4rem;
  display: flex;
  align-items: center;
  height: auto;
  min-height: 50vh;
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 40vh;
  }
}

/* HERO LOGO */
.hero-logo {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.50);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-logo.visible {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 992px) {
  .hero-logo {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 60%;
  }
}

/* CARDS */
.card {
  background: var(--bg-3rd-color);
  border: none;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-text {
  color: var(--card-text-color);
}

.card-title {
  color: var(--primary-color);
}

.card-img-top {
  width: auto;
  max-width: 100%;
  height: 350px;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px) rotate(-2deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card-img-top.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.special-card {
  background-color: var(--bg-1st-color);
  border-radius: 20px;
}

/* BUTTONS */
.btn-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--navbar-text-color);
  font-size: 1.2rem;
}

.btn-custom:hover {
  background-color: var(--link-hover);
  border-color: var(--link-hover);
}

/* FOOTER */
footer {
  font-size: 0.9rem;
  background: var(--bg-1st-color);
  color: var(--text-color);
  text-align: center;
  padding: 0;
}

/* FORM */
.custom-form label {
  font-weight: bold;
  font-size: 100%;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form textarea {
  border: 2px solid var(--border-color);
  box-shadow: none;
  font-size: 100%;
  width: 100%;
  margin-bottom: 1em;
}

/* SECTIONS */
/* Clients */
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.client-logo {
  opacity: 0;
  will-change: transform, opacity;
  max-height: 100%;
  width: auto;
}

/* Client logo container styling */
.col-md-3.col-6.mb-4 {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo.from-left {
  animation: slideFromLeft 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.client-logo.from-right {
  animation: slideFromRight 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Others */
.section-1st {
  background: var(--bg-2nd-color);
}

.section-2nd {
  background: var(--bg-3rd-color);
}

.section-3rd {
  background: var(--bg-dark-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* ANIMATED BANNER AND HOTSITE BACKGROUND */

/* Progressive Enhancement: Base styles first */
.gtld-page {
  position: relative;
  background: var(--bg-dark-color);
  min-height: 100vh;
}

/* Static fallback for browsers without animation support */
.gtld-page-background {
  position: absolute;  /* Fallback from fixed */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  opacity: 0.06;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(45deg, var(--bg-2nd-color) 25%, var(--bg-3rd-color) 75%);
}

/* Enhanced styles for browsers that support position: fixed */
@supports (position: fixed) {
  .gtld-page-background {
    position: fixed;
  }
}

/* Basic row styles */
.gtld-page-row {
  font-family: monospace;
  font-size: 1.1rem;
  white-space: nowrap;
  letter-spacing: 0.15em;
  position: absolute;
  left: 0;
  width: max-content;
  color: rgb(210, 210, 210);
  padding-right: 50px;
  opacity: 0;  /* Start invisible for fade-in */
  transition: opacity 0.3s ease;
}

/* Progressive Enhancement: Basic animation fallback */
@keyframes slideLeftBasic {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 25px)); }
}

/* Advanced animation with transform3d */
@keyframes slideLeftAdvanced {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 25px), 0, 0); }
}

/* Apply basic styles first */
.gtld-page-row::after {
  content: attr(data-content);
  position: absolute;
  left: 100%;
  top: 0;
  padding-right: 50px;
}

/* Progressive Enhancement: Basic animation for all browsers */
.gtld-page-row {
  opacity: 1;
}

.gtld-page-row:nth-child(1) { top: 10%; animation: slideLeftBasic 360s linear infinite; }
.gtld-page-row:nth-child(2) { top: 22%; animation: slideLeftBasic 315s linear infinite reverse; }
.gtld-page-row:nth-child(3) { top: 34%; animation: slideLeftBasic 405s linear infinite; }
.gtld-page-row:nth-child(4) { top: 46%; animation: slideLeftBasic 345s linear infinite reverse; }
.gtld-page-row:nth-child(5) { top: 58%; animation: slideLeftBasic 375s linear infinite; }
.gtld-page-row:nth-child(6) { top: 70%; animation: slideLeftBasic 330s linear infinite reverse; }
.gtld-page-row:nth-child(7) { top: 82%; animation: slideLeftBasic 390s linear infinite; }
.gtld-page-row:nth-child(8) { top: 94%; animation: slideLeftBasic 360s linear infinite reverse; }

/* Progressive Enhancement: Advanced animation for browsers that support transform3d */
@supports (transform: translate3d(0,0,0)) {
  .gtld-page-row:nth-child(1) { animation: slideLeftAdvanced 360s linear infinite; }
  .gtld-page-row:nth-child(2) { animation: slideLeftAdvanced 315s linear infinite reverse; }
  .gtld-page-row:nth-child(3) { animation: slideLeftAdvanced 405s linear infinite; }
  .gtld-page-row:nth-child(4) { animation: slideLeftAdvanced 345s linear infinite reverse; }
  .gtld-page-row:nth-child(5) { animation: slideLeftAdvanced 375s linear infinite; }
  .gtld-page-row:nth-child(6) { animation: slideLeftAdvanced 330s linear infinite reverse; }
  .gtld-page-row:nth-child(7) { animation: slideLeftAdvanced 390s linear infinite; }
  .gtld-page-row:nth-child(8) { animation: slideLeftAdvanced 360s linear infinite reverse; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .gtld-page-row {
    animation: none !important;
    opacity: 0.5;
  }
}

.gtld-banner {
  background: var(--bg-dark-color);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .gtld-banner {
    padding: 3rem 0;
  }
  
  .gtld-content h2 {
    font-size: 1.75rem;
  }
  
  .gtld-content p.lead {
    font-size: 1.2rem;
  }
}

.gtld-banner:hover {
  background: var(--alternative-hover);
}

.gtld-banner:hover .gtld-content h2 {
  transform: scale(1.02);
}

.gtld-banner:hover .gtld-content p {
  transform: scale(1.02);
}

.gtld-content h2,
.gtld-content p {
  transition: transform 0.3s ease;
}

.gtld-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .gtld-background {
    opacity: 0.06;
  }
}

.gtld-row {
  font-family: monospace;
  font-size: 1.2rem;
  white-space: nowrap;
  letter-spacing: 0.15em;
  position: absolute;
  left: 0;
  width: max-content;
  color: rgb(210, 210, 210);
  padding-right: 50px;
  margin: 0.5rem 0;
}

.gtld-row::after {
  content: attr(data-content);
  position: absolute;
  left: 100%;
  top: 0;
  padding-right: 50px;
}

/* Progressive Enhancement: Basic animation fallback for banner */
@keyframes slideLeftBannerBasic {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 25px)); }
}

/* Advanced animation with transform3d for banner */
@keyframes slideLeftBannerAdvanced {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 25px), 0, 0); }
}

/* Apply basic animations first */
.gtld-row:nth-child(1) {
  top: 2%;
  color: rgb(210, 210, 210);
  animation: slideLeftBannerBasic 420s linear infinite;
}

.gtld-row:nth-child(2) {
  top: 22%;
  color: rgb(180, 180, 180);
  animation: slideLeftBannerBasic 375s linear infinite reverse;
}

.gtld-row:nth-child(3) {
  top: 42%;
  color: rgb(150, 150, 150);
  animation: slideLeftBannerBasic 450s linear infinite;
}

.gtld-row:nth-child(4) {
  top: 62%;
  color: rgb(120, 120, 120);
  animation: slideLeftBannerBasic 405s linear infinite reverse;
}

.gtld-row:nth-child(5) {
  top: 82%;
  color: rgb(90, 90, 90);
  animation: slideLeftBannerBasic 435s linear infinite;
}

/* Progressive Enhancement: Advanced animation for browsers that support transform3d */
@supports (transform: translate3d(0,0,0)) {
  .gtld-row:nth-child(1) { animation: slideLeftBannerAdvanced 420s linear infinite; }
  .gtld-row:nth-child(2) { animation: slideLeftBannerAdvanced 375s linear infinite reverse; }
  .gtld-row:nth-child(3) { animation: slideLeftBannerAdvanced 450s linear infinite; }
  .gtld-row:nth-child(4) { animation: slideLeftBannerAdvanced 405s linear infinite reverse; }
  .gtld-row:nth-child(5) { animation: slideLeftBannerAdvanced 435s linear infinite; }
}

/* Reduce motion preference for banner */
@media (prefers-reduced-motion: reduce) {
  .gtld-row {
    animation: none !important;
    opacity: 0.5;
  }
}

.gtld-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-color);
}

.gtld-content h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.gtld-page .card ul {
  list-style-type: none;
  padding-left: 1.5rem;
}

.gtld-page .card ul li {
  position: relative;
}

.gtld-page .card ul li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.gtld-page .bg-light {
  background-color: rgba(60, 60, 60) !important;
  border: 1px solid rgba(60, 60, 60);
}
