/* Global Styles */
:root {
  --primary-blue: #0066b2;
  --primary-teal: #00ab73;
  --dark-gray: #4d4d4d;
  --light-gray: #fcfcfc;
  --white: #ffffff;
  --black: #222222;
  --gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  --gradient-reverse: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --glow: 0 0 15px rgba(0, 169, 157, 0.5);
  --card-border-radius: 12px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-teal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.highlight-blue {
  color: var(--primary-blue);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.highlight-blue::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.highlight-alt {
  color: white;
  position: relative;
}

.highlight-alt::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.highlight-alt:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Update the tech-background class to ensure it spans the entire hero section on all screen sizes */
.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5)),
    url("img/HomepageHeroOffice.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  will-change: transform, height; /* Optimize for animations */
}

@keyframes patternFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-reverse);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: var(--white);
  border-color: transparent;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-cta {
  padding: 15px 30px;
  font-size: 1.1rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-cta:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
}

header.scrolled {
  height: calc(var(--header-height) - 20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo img {
  width: 150px;
  height: auto;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 60px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li a.active {
  color: var(--primary-blue);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 5px;
  z-index: 102;
}

.mobile-menu-toggle:hover {
  color: var(--primary-teal);
}

/* Update the hero section to ensure proper positioning and containment */
.hero {
  position: relative;
  padding: 100px 0 80px;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: hidden; /* Add overflow hidden to contain all elements */
  width: 100%; /* Ensure full width */
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.1) 0%, rgba(0, 169, 157, 0) 70%);
  animation: pulse 10s infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 178, 0.1) 0%, rgba(0, 102, 178, 0) 70%);
  animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-reverse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-content h1:hover {
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-features {
  margin: 2rem 0;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.hero-feature:hover {
  transform: translateX(5px);
}

.hero-feature i {
  color: var(--primary-teal);
  margin-right: 10px;
  font-size: 1.2rem;
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.hero-feature:hover i {
  transform: scale(1.2);
}

.hero-feature p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero-tagline {
  margin-top: 2rem;
  padding-top: 1.5rem;
  animation: fadeIn 2s ease;
}

.hero-tagline p {
  font-weight: 600;
  color: var(--primary-blue);
}

.company-name {
  margin-top: 1rem;
}

.company-name h2 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.company-name h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}

.company-name p {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.hero-visual {
  position: relative;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-visual img {
  border-radius: 10px;
  width: 100%;
  box-shadow: var(--box-shadow);
  transition: all 0.5s ease;
  border: 2px solid var(--primary-blue);
  transform-style: preserve-3d;
}

.hero-visual img:hover {
  transform: rotateY(5deg) rotateX(5deg);
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-teal);
}

@keyframes borderPulse {
  0% {
    border-color: var(--primary-teal);
  }
  100% {
    border-color: var(--primary-blue);
  }
}

.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(15px);
  animation: glow 4s infinite alternate;
}

@keyframes glow {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  100% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 169, 157, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 102, 178, 0.05) 0%, transparent 50%);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

@keyframes breathing {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 102, 178, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 102, 178, 0.3), 0 0 15px rgba(0, 169, 157, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 102, 178, 0.2);
  }
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 102, 178, 0.2);
  animation: breathing 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.feature-icon i {
  font-size: 2.2rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
  transition: all 0.3s ease;
}

.feature-card:hover {
  scale: 1.02;
  transform: translateY(-20px);
  border-color: rgba(67, 97, 238, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-20px);
  border-color: rgba(67, 97, 238, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

.feature-content p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* About Preview Section */
.about-preview {
  background: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.1) 0%, rgba(0, 169, 157, 0) 70%);
}

/* Update the about-preview container to add more padding to accommodate the absolutely positioned elements */
.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 30px; /* Add padding to contain the absolutely positioned elements */
}

.about-content {
  position: relative;
}

/* Update the about-content::before positioning to ensure it stays within the container */
.about-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  opacity: 0.2;
  border-radius: 8px;
  z-index: -1; /* Ensure it stays behind the content */
}

/* Update the about-content h2 styling to make it display inline-block on smaller screens */
.about-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Add this media query to adjust the h2 element on smaller screens */
@media (max-width: 992px) {
  .about-content h2 {
    display: inline-block;
    width: auto;
    margin: 0 auto 20px;
  }

  /* Adjust the ::before element position to align with the h2 text */
  .about-content::before {
    display: none;
  }
}

.about-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.about-image {
  position: relative;
  perspective: 1000px;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 655px;
  height: auto;
  max-height: 500px;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.about-image:hover img {
  transform: rotateY(-5deg);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.1);
}

/* Update the tech-frame positioning to ensure it's visible and offset to the bottom right */
.tech-frame {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  z-index: -1;
  transition: all 0.5s ease;
  display: block; /* Ensure it's displayed */
}

.about-image:hover .tech-frame {
  top: 25px;
  left: 25px;
  border-color: var(--primary-teal);
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta .btn {
  background: var(--white);
  color: var(--primary-blue);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.cta .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  z-index: -1;
}

.cta .btn:hover {
  background: var(--white);
}

.cta .btn:hover::before {
  left: 0;
}

.tech-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

/* Customers Section */
.customers {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
}

.customers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="%23007bff" fill-opacity="0.05"/></svg>');
  background-size: 20px 20px;
  opacity: 0.5;
}

.customers-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--dark-gray);
  font-size: 1.4rem;
}

.logo-slideshow {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.logo-container {
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 180px; /* Further reduced from 220px */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 119, 182, 0.15);
  background-color: white;
}

.logo-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  padding: 20px; /* Further reduced from 30px */
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
  gap: 20px; /* Reduced from 30px */
}

.logo-slide.active {
  opacity: 1;
  z-index: 1;
}

.logo-image {
  flex: 0 0 180px; /* Reduced from 200px */
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 10px; /* Reduced from 15px */
  border-right: 1px solid rgba(0, 119, 182, 0.1);
}

.logo-info {
  flex: 1;
  padding-left: 20px;
  overflow: hidden; /* Prevent text overflow */
}

.customer-logo {
  max-width: 180px; /* Reduced from 220px */
  max-height: 80px; /* Reduced from 100px */
  width: auto;
}

.customer-name {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 10px; /* Reduced from 15px */
  font-size: 2rem; /* Increased from 1.8rem */
}

.customer-description {
  color: var(--dark-gray);
  line-height: 1.5; /* Adjusted from 1.6 */
  font-size: 1.3rem; /* Increased from 1.2rem */
}

.slideshow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--black);
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #a9a9a9;
  transform: scale(1.2);
}

.slideshow-arrows {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid rgba(0, 119, 182, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.arrow:hover {
  transform: scale(1.08);
}

/* Add responsive styles for customers section */
@media (max-width: 992px) {
  .customers {
    padding: 80px 0;
  }

  .customers-intro {
    font-size: 1.2rem;
    max-width: 90%;
  }

  .logo-container {
    min-height: 220px; /* Reduced from 260px */
  }

  .customer-name {
    font-size: 1.9rem; /* Increased from 1.8rem */
    margin-bottom: 10px; /* Reduced from 15px */
  }

  .customer-description {
    font-size: 1.2rem; /* Increased from 1.1rem */
  }
}

@media (max-width: 768px) {
  .customers {
    padding: 60px 0;
  }

  .logo-slide {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .logo-container {
    min-height: 280px; /* Reduced from 320px */
  }

  .logo-image {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
    padding: 0 0 20px 0;
    width: 100%;
    max-width: 200px;
  }

  .logo-info {
    padding-left: 0;
    padding-top: 20px;
  }

  .customer-name {
    font-size: 1.7rem; /* Increased from 1.6rem */
    margin-bottom: 8px; /* Reduced from 12px */
  }

  .customer-description {
    font-size: 1.1rem; /* Increased from 1rem */
    max-height: 180px; /* Reduced from 200px to match smaller container */
  }

  .customer-logo {
    max-width: 180px;
    max-height: 80px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .customers {
    padding: 40px 0;
  }

  .logo-slide {
    display: flex; /* Change from flex to inline-flex */
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .logo-container {
    min-height: 320px; /* Reduced from 380px */
  }

  .customer-name {
    font-size: 1.5rem; /* Increased from 1.4rem */
    margin-bottom: 8px; /* Reduced from 10px */
  }

  .customer-description {
    font-size: 1rem; /* Increased from 0.9rem */
    line-height: 1.4;
    max-height: 200px; /* Reduced from 250px */
  }

  .customer-logo {
    max-width: 150px;
    max-height: 70px;
  }

  .dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  .arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .slideshow-controls {
    margin-top: 20px;
  }

  .slideshow-dots {
    margin-bottom: 15px;
  }
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 80px 0 20px;
  position: relative;
}

/* Footer Styles - Updated for better mobile responsiveness */
footer {
  background-color: #222;
  color: var(--white);
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  text-align: left;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.footer-section:hover h3::after {
  width: 80px;
}

.footer-section p {
  margin-bottom: 15px;
  color: #aaa;
  transition: all 0.3s ease;
}

/* Update the footer-section a styles to make hover effects only apply to the text */
.footer-section a {
  margin-bottom: 15px;
  color: #aaa;
  transition: all 0.3s ease;
  display: inline-block; /* Change from block to inline-block */
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-teal);
  transform: translateX(5px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section p:hover {
  transform: translateX(5px);
}

.footer-section ul li {
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-section ul li a {
  color: #aaa;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-teal);
  transform: translateX(5px);
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover::before {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--gradient);
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom:hover p {
  color: #ddd;
}

/* Improved footer responsive styles */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .footer-section {
    text-align: left; /* Keep text left-aligned on medium screens */
  }

  .footer-section h3 {
    text-align: center;
  }

  .footer-section h3::after {
    left: 0;
    transform: none;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

/* Update the footer-content grid layout for better mobile responsiveness */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
  }

  .footer-section {
    text-align: center;
    padding: 0 15px 25px;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }
}

/* Add these new styles for better footer layout on smaller screens */
@media (max-width: 576px) {
  footer {
    padding: 40px 0 15px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
  }

  .footer-section {
    padding: 0 5px 20px;
    margin-bottom: 0;
    text-align: center;
    font-size: 0.9rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Make contact information more readable on mobile */
  .footer-section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-align: center;
  }

  .footer-section a i {
    width: 20px;
    text-align: center;
  }

  /* Improve quick links display on mobile */
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .footer-section ul li {
    margin-bottom: 0;
    text-align: center;
  }

  /* Adjust footer bottom spacing */
  .footer-bottom {
    padding-top: 15px;
    margin-top: 10px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Add styles for extra small screens */
@media (max-width: 375px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section a,
  .footer-section p {
    font-size: 0.75rem;
  }

  .footer-section ul li a {
    font-size: 0.75rem;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
  }
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container,
  .about-preview .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-feature {
    justify-content: center;
  }

  .about-content {
    order: 2;
  }

  .about-image {
    order: 1;
    margin-bottom: 30px;
  }

  .tech-frame {
    display: none;
  }

  .hero-visual::before {
    display: none;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Hide hero-visual on smaller screens */
  .hero-visual {
    display: none;
  }

  /* Adjust feature card text sizes for medium screens */
  .features .container {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-content h3 {
    font-size: 1.4rem;
  }

  .feature-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  /* Mobile Menu Styles */
  header .container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 101; /* Higher than the overlay (99) */
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
    pointer-events: auto; /* Ensure clicks work on the menu */
  }

  /* Change this to make menu items display in columns */
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav ul li {
    margin: 0 0 15px 0;
    width: 100%;
    text-align: left;
  }

  nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    width: 100%;
    position: relative; /* Ensure it's above the overlay */
    z-index: 102; /* Higher than nav itself */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav ul li a::after {
    bottom: 0;
    height: 3px;
  }

  /* Overlay when menu is open */
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99; /* Lower z-index than the menu (101) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
  }

  body.menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Re-enable pointer events when visible */
  }

  /* Fix for scrolled header on mobile */
  header.scrolled {
    height: var(--header-height);
  }

  /* Fix for hero section height and positioning on smaller screens */
  .hero {
    min-height: calc(100vh - var(--header-height));
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
  }

  .hero .container {
    width: 100%;
    padding: 0 20px;
  }

  /* Fix tech background on mobile */
  .tech-background {
    position: absolute; /* Changed from fixed for better mobile performance */
    width: 100%;
    height: 100%;
    background-attachment: scroll; /* Better performance on mobile */
  }

  /* Ensure hero content is properly contained */
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Adjust hero features for better mobile display */
  .hero-features {
    width: 100%;
  }

  .hero-feature {
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-feature p {
    font-size: 1rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Further reduce text sizes for smaller screens */
  .feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .feature-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .feature-icon i {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  /* Reduce padding in feature cards */
  .feature-card {
    padding: 25px 20px;
  }
}

/* Additional fixes for extra small screens */
@media (max-width: 576px) {
  .hero {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    width: 100%;
  }

  /* Ensure the contact button is properly sized */
  .btn-cta {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  /* Ensure company name and tagline fit properly */
  .company-name h2 {
    font-size: 1.6rem;
    width: 100%;
  }

  .company-name p {
    font-size: 1rem;
    width: 100%;
  }

  /* Ensure the background covers the entire hero section on small screens */
  .tech-background {
    height: 100%; /* Will be dynamically set by JavaScript */
  }

  /* Single column layout for features on small screens */
  .features .container {
    grid-template-columns: 1fr;
  }

  /* Make feature cards more compact on small screens */
  .feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .feature-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .feature-icon i {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1.8rem;
  }

  /* Reduce padding in feature cards even more */
  .feature-card {
    padding: 20px 15px;
  }
}

/* Add this to the end of your CSS file */
/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: rotate(45deg);
}

/* Add a media query to adjust container padding on smaller screens */
@media (max-width: 768px) {
  .about-preview .container {
    padding: 40px 30px; /* Increase padding on smaller screens */
  }

  /* Adjust the about-content::before position on mobile */
  .about-content::before {
    display: none;
  }
}

/* Hide the tech frame on smaller screens */
@media (max-width: 992px) {
  .tech-frame {
    display: none; /* Hide on smaller screens */
  }
}

/* Update the CTA section to be more compact on smaller screens */
@media (max-width: 992px) {
  .cta {
    padding: 80px 0; /* Reduced from 100px */
  }

  .cta h2 {
    font-size: 2.5rem; /* Reduced from 3rem */
  }
}

@media (max-width: 768px) {
  .cta {
    padding: 60px 0; /* Further reduced padding */
  }

  .cta h2 {
    font-size: 2.2rem; /* Further reduced font size */
    margin-bottom: 15px; /* Reduced margin */
  }

  .cta p {
    font-size: 1.1rem; /* Slightly smaller paragraph text */
    margin-bottom: 25px; /* Reduced margin */
  }
}

@media (max-width: 576px) {
  .cta {
    padding: 40px 0; /* Even smaller padding for mobile */
  }

  .cta h2 {
    font-size: 1.8rem; /* Much smaller heading for mobile */
    margin-bottom: 12px;
  }

  .cta p {
    font-size: 1rem; /* Smaller paragraph text */
    margin-bottom: 20px;
    max-width: 90%; /* Ensure text doesn't get too wide */
  }
}
