@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,700,900");

body {
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: #38B;
  transition: all 0.3s ease;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.solution-detail {
  scroll-margin-top: 100px; /* navbar height */
}

/* Utilities */
.tm-font-big {
  font-size: 1.25rem;
}

/* ===== Refined Navbar ===== */
.tm-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

/* Scroll state */
.tm-navbar.scroll {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Brand */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.tm-navbar.scroll .navbar-brand {
  color: #1b3c59;
}

/* Nav links */
.tm-nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #ffffff;
  padding: 8px 0;
  margin: 0 18px;
  transition: color 0.3s ease;
}

/* Scroll color */
.tm-navbar.scroll .tm-nav-link {
  color: #1b3c59;
}

/* Underline animation */
.tm-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3ba0dd, #38b);
  transition: width 0.3s ease;
}

.tm-nav-link:hover::after,
.tm-nav-link.current::after {
  width: 100%;
}

/* Hover color */
.tm-nav-link:hover {
  color: #3ba0dd;
}

/* Toggler */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  color: #ffffff;
  font-size: 1.4rem;
}

.tm-navbar.scroll .navbar-toggler-icon {
  color: #1b3c59;
}

/* Mobile menu */
@media (max-width: 767px) {
  .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .navbar-collapse .tm-nav-link {
    color: #1b3c59;
    margin: 12px 0;
    display: inline-block;
  }

  .navbar-collapse .tm-nav-link::after {
    bottom: -4px;
  }
}


/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ================= HERO SECTION ================= */
#infinite {
  height: 100vh;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}

/* ===== SHARED BG STYLES ===== */
#infinite::before,
#infinite::after,
#infinite .hero-bg {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 21s infinite;
  z-index: 0;
}

/* IMAGE 1 */
#infinite::before {
  background-image: url("../img/infinite-loop-01.png");
  animation-delay: 0s;
}

/* IMAGE 2 */
#infinite::after {
  background-image: url("../img/second.png");
  animation-delay: 5s;
}

/* IMAGE 3 */
#infinite .bg3 {
  background-image: url("../img/bg3.jpg");
  animation-delay: 9s;
}

/* ===== FADE KEYFRAMES ===== */
@keyframes heroFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ===== CONTENT ABOVE BACKGROUND ===== */
#infinite > * {
  position: relative;
  z-index: 2;
}

/* ================= NAVBAR ================= */
.tm-navbar {
  padding: 20px 0;
}

.tm-navbar .navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

.tm-navbar .nav-link {
  color: #fff;
  margin-left: 20px;
  font-weight: 500;
}

.tm-navbar .nav-link:hover {
  color: #00b7ff;
}

/* ================= HERO TEXT ================= */
.tm-hero-text {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.tm-hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.tm-hero-text p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* ================= DOWN ARROW ================= */
.tm-hero-arrow {
  position: absolute;
  bottom: 60px;
  width: 100%;
  text-align: center;
}

.tm-hero-arrow a {
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 14px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tm-hero-arrow a:hover {
  background: #00b7ff;
  padding: 18px 44px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .tm-navbar .nav-link {
    color: #333;
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
  }

  .tm-hero-text h1 {
    font-size: 2.4rem;
  }

  .tm-hero-text p {
    font-size: 1rem;
  }
}

/* ================= SCROLL OFFSET ================= */
#whatwedo {
  scroll-margin-top: 100px;
}


/* Section Background */
.collaboration-section {
  background: linear-gradient(180deg, #1b2a4a 0%, #0f1b33 100%);
  padding: 80px 60px;
  color: #ffffff;
}



/* Layout */
.collaboration-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Left Text Content */
.collaboration-text {
  flex: 1;
}

.collaboration-text h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.collaboration-text p {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cfd6f6;
  margin-bottom: 32px;
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background-color: #1a56ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #003cff;
}

/* Right Image Grid */
.collaboration-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: 20px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  animation: shake 1.5s infinite; /* continuous slow vibration */
}

/* Image Placeholder */
.grid-item {
  background-color: #1b2457;
  border-radius: 14px;
  overflow: hidden;
}

/* Larger Center Image */
.grid-large {
  grid-row: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .collaboration-container {
    flex-direction: column;
  }

  .collaboration-text h2 {
    font-size: 2.4rem;
  }

  .collaboration-grid {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .collaboration-section {
    padding: 60px 20px;
  }

  .collaboration-grid {
    grid-template-columns: 1fr;
  }

  .grid-large {
    grid-row: span 1;
  }
}

/* Grid item base */
.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

/* Image styling */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Overlay text */
.grid-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 45, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
}

/* Hover effects */
.grid-item:hover img {
  transform: scale(1.08);
  animation: shake 0.3s infinite; /* shakes continuously while hovering */
}


.grid-item:hover .overlay {
  opacity: 1;
}


/* Solution Detail Section */
.solution-detail {
  max-width: 1400px;
  margin: 100px auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Reverse layout */
.solution-detail.reverse {
  flex-direction: row-reverse;
}

/* Text */
.solution-text {
  flex: 1;
}

.solution-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff; /* Changed from #0b1f66 to white */
  margin-bottom: 20px;
}

.solution-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ddd; /* Changed from #5a5a5a to a light gray */
  max-width: 560px;
}


/* Image */
.solution-image {
  flex: 1;
  position: relative;
}

.solution-image img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Blue accent frame (like your screenshot) */
.solution-image::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background-color: #0b47ff;
  z-index: -1;
}

/* Responsive */
@media (max-width: 992px) {
  .solution-detail,
  .solution-detail.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .solution-detail {
    padding: 0 20px;
  }

  .solution-text h3 {
    font-size: 1.8rem;
  }
}


/* ============================= */
/* PARTNERS SECTION STYLES       */
/* ============================= */
.partners-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}

/* ============================= */
/* PARTNERS AUTO-SCROLL SECTION */
/* ============================= */

.partners-section {
  background: linear-gradient(180deg, #2f4c7f 0%, #223b63 100%);
  padding: 60px 40px;
  overflow: hidden;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partners-section h2 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 800;
}

/* Track */
.partners-track {
  overflow: hidden;
  position: relative;
}

/* Animated row */
.partners-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollPartners 40s linear infinite;
}

/* Pause animation on hover */
.partners-track:hover .partners-scroll {
  animation-play-state: paused;
}

/* Animation */
@keyframes scrollPartners {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Partner card */
.partner-card {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 20px 15px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.partner-card img {
  max-width: 100px;
  margin-bottom: 12px;
  object-fit: contain;
}

.partner-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.partner-card p {
  font-size: 0.8rem;
  color: #555;
}

/* Mobile */
@media (max-width: 600px) {
  .partner-card {
    min-width: 150px;
  }
}


/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(180deg, #1b2a4a 0%, #0f1b33 100%);
  padding: 100px 60px;
  color: #ffffff;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 60px;
}

/* Slider */
.testimonials-slider {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 40px;
  animation: scrollTestimonials 35s linear infinite;
}

/* Testimonial Card */
.testimonial-card {
  min-width: 320px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Client Image */
.testimonial-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #3ba0dd;
}

/* Text */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #e6ebff;
  margin-bottom: 20px;
}

.testimonial-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-card span {
  font-size: 0.85rem;
  color: #b8c2ff;
}

/* Animation */
@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.testimonials-slider:hover .testimonials-track {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 80px 20px;
  }

  .testimonials-title {
    font-size: 2.2rem;
  }

  .testimonial-card {
    min-width: 280px;
  }
}



/* Shake / Vibrate Animation */
@keyframes shake {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  10% { transform: translate(-2px, -2px) rotate(-1deg); }
  20% { transform: translate(2px, -2px) rotate(1deg); }
  30% { transform: translate(-2px, 2px) rotate(-1deg); }
  40% { transform: translate(2px, 2px) rotate(1deg); }
  50% { transform: translate(-2px, -2px) rotate(-1deg); }
  60% { transform: translate(2px, -2px) rotate(1deg); }
  70% { transform: translate(-2px, 2px) rotate(-1deg); }
  80% { transform: translate(2px, 2px) rotate(1deg); }
  90% { transform: translate(-1px, -1px) rotate(0deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* ===== Contact Section ===== */
.contact-section {
  background: #001f4d; /* deep blue */
  color: #ffffff;
  padding: 100px 0;
}

/* Wrapper: two-column grid */
.contact-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

/* Left column */
.contact-left {
  flex: 1 1 450px;
}

.contact-left h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-left p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-style: italic;
  color: #cdd6f0;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.contact-item i {
  font-size: 1.6rem;
  margin-right: 12px;
  color: #38b;
  transition: color 0.3s ease;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover,
.contact-item i:hover {
  color: #3ba0dd;
}

/* Contact Form */
.contact-form {
  max-width: 100%;
}

.tm-input {
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
}

.tm-input::placeholder {
  color: #cdd6f0;
}

.tm-btn-submit {
  font-size: 1rem;
  color: #fff;
  background-color: #38b;
  padding: 12px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tm-btn-submit:hover {
  background-color: #3ba0dd;
  transform: translateY(-2px);
}

/* Right column: image */
.contact-right {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-right img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991px) {
  .contact-wrapper {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .contact-right {
    margin-bottom: 30px;
  }
}

/* ===== Footer ===== */
.tm-footer {
  background-color: #001f4d; /* deep blue */
  color: #ffffff;
  padding: 80px 0 40px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* ===== Footer ===== */
.tm-footer {
  background-color: #001f4d; /* deep blue */
  color: #ffffff;
  padding: 70px 0 35px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Wrapper */
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
}

/* Footer Sections */
.footer-section {
  flex: 1 1 240px;
}

.footer-section h4 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: #3ba0dd;
  font-weight: 600;
}

/* Text */
.footer-section p {
  color: #cdd6f0;
  margin-bottom: 10px;
}

.footer-section a {
  color: #cdd6f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #3ba0dd;
}

/* About / Logo */
.footer-logo {
  max-width: 150px;
  margin-bottom: 18px;
}

/* Services List */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.services-list li a {
  display: inline-block;
  padding: 2px 0;
}

/* Separator */
.footer-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 35px 0 25px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #cdd6f0;
}

/* Responsive */
@media (max-width: 991px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 35px;
  }

  .footer-section {
    flex: 1 1 100%;
  }
}
