/* Hero Section */

:root {
  --primary: #144a7c;
  --secondary: #3bb99f;
}

.hero {
  color: black;
  padding: 100px 0px 0px 0px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="900" cy="200" r="300" fill="rgba(255,255,255,0.05)"/><circle cx="1100" cy="600" r="200" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-height: 600px;
}

.hero-text {
  flex: 1;
  max-width: 750px;
}

.hero-text h1 {
  flex: 1;
  max-width: 750px;
  color: var(--primary);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.8s ease-in-out;
}

.hero-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary);
  display: block;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.slider-dots {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.slider-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
}

.hero-visual {
  flex: 1;
  max-width: 500px;
  position: relative;
  height: 500px;
}

.circle-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.hand-icons {
  display: flex;
  gap: 30px;
  font-size: 4rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.industry-card {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e5a7d;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.industry-card:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.industry-card .icon {
  font-size: 1.2rem;
}

.industry-card:nth-child(9) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.industry-card:nth-child(10) {
  top: 12%;
  right: 20%;
  animation-delay: 0.5s;
}

.industry-card:nth-child(11) {
  top: 35%;
  right: -1%;
  animation-delay: 1s;
}

.industry-card:nth-child(12) {
  bottom: 30%;
  right: -5%;
  animation-delay: 1.5s;
}

.industry-card:nth-child(13) {
  bottom: 10%;
  right: 25%;
  animation-delay: 2s;
}

.industry-card:nth-child(14) {
  bottom: 15%;
  left: 10%;
  animation-delay: 2.5s;
}

.industry-card:nth-child(15) {
  bottom: 40%;
  left: 5%;
  animation-delay: 3s;
}

.industry-card:nth-child(16) {
  top: 20%;
  left: 8%;
  animation-delay: 3.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.floating-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: floatDot 4s ease-in-out infinite;
}

.floating-dot:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.floating-dot:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-delay: 1s;
}

.floating-dot:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 2s;
}

@keyframes floatDot {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }

  50% {
    transform: translate(20px, -20px);
    opacity: 0.8;
  }
}

@media (max-width: 968px) {
  .hero-visual {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .case-study-content,
  .about-content {
    flex-direction: column;
  }

  .right-content {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-visual {
    max-width: 100%;
  }

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

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

.right-content {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.animation-container {
  position: relative;
  width: 500px;
  height: 500px;
}

.code-block {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  animation: float-code 6s ease-in-out infinite;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28ca42;
}

.code-content {
  margin-top: 20px;
  color: #333;
}

.code-line {
  margin: 5px 0;
  opacity: 0;
  animation: type-in 0.5s forwards;
}

.keyword {
  color: #c41e3a;
  font-weight: bold;
}
.function {
  color: #0066cc;
}
.string {
  color: #00aa00;
}
.comment {
  color: #999;
  font-style: italic;
}

.code-block-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  transform: rotate(-5deg);
}

.code-block-2 {
  top: 40%;
  right: 5%;
  animation-delay: 1s;
  transform: rotate(5deg);
}

.code-block-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 2s;
  transform: rotate(-3deg);
}

@keyframes float-code {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-20px) rotate(-5deg);
  }
}

@keyframes type-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animated Lines/Connections */
.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c41e3a, transparent);
  animation: flow 3s linear infinite;
}

@keyframes flow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
.grid-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(196, 30, 58, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(196, 30, 58, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Tablets and smaller laptops */
@media (max-width: 1200px) {
  .hero {
    padding: 80px 0;
  }

  .hero-content {
    gap: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .right-content .animation-container {
    width: 400px;
    height: 400px;
  }
}

/* Medium tablets and large mobiles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .right-content {
    display: none;
  }

  .hero-text {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .right-content {
    margin-top: 50px;
    height: auto;
  }

  .right-content .animation-container {
    width: 350px;
    height: 350px;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero-content {
    gap: 30px;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

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

  .cta-button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .right-content .animation-container {
    width: 280px;
    height: 280px;
  }

  .grid-bg {
    background-size: 30px 30px;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero {
    padding: 50px 0;
  }

  /* .hero h1 {
    font-size: 1.4rem;
  } */

  .hero p {
    font-size: 0.95rem;
  }

  .slider-dots {
    margin-top: 20px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .right-content .animation-container {
    width: 240px;
    height: 240px;
  }

  .service-card,
  .solution-card {
    width: 100%;
  }

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

  .solutions-swiper {
    padding: 0 10px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  /* .hero h1 {
    font-size: 1.2rem;
  } */

  .hero p {
    font-size: 0.9rem;
  }

  .cta-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .right-content .animation-container {
    width: 200px;
    height: 200px;
  }
}
