/* Page Background Animations */
.page-bg-left,
.page-bg-right {
  position: fixed;
  top: 0;
  width: 160px;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.page-bg-left {
  left: 0;
}

.page-bg-right {
  right: 0;
}

/* Left Side - Hexagonal Grid */
.hex-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.hex {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(107, 155, 209, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexPulse 6s ease-in-out infinite;
}

.hex-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}

.hex-2 {
  top: 35%;
  left: 35%;
  animation-delay: 1.5s;
}

.hex-3 {
  top: 55%;
  left: 15%;
  animation-delay: 3s;
}

.hex-4 {
  top: 75%;
  left: 30%;
  animation-delay: 4.5s;
}

.circuit-lines {
  position: absolute;
  top: 15%;
  left: 45%;
}

.circuit-svg {
  width: 160px;
  height: 550px;
}

.circuit-path {
  stroke-dasharray: 100;
  animation: circuitFlow 8s ease-in-out infinite;
}

.path-1 { animation-delay: 0s; }
.path-2 { animation-delay: 4s; }

.circuit-node {
  animation: circuitBlink 4s ease-in-out infinite;
}

.node-1 { animation-delay: 2s; }
.node-2 { animation-delay: 6s; }

/* Right Side - Quantum Field */
.quantum-field {
  position: relative;
  width: 100%;
  height: 100%;
}

.quantum-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.8), rgba(107, 155, 209, 0.3));
  border-radius: 50%;
  animation: quantumFloat 9s ease-in-out infinite;
}

.q1 {
  top: 20%;
  right: 25%;
  animation-delay: 0s;
}

.q2 {
  top: 40%;
  right: 15%;
  animation-delay: 2.25s;
}

.q3 {
  top: 60%;
  right: 30%;
  animation-delay: 4.5s;
}

.q4 {
  top: 80%;
  right: 20%;
  animation-delay: 6.75s;
}

.energy-waves {
  position: absolute;
  right: 10%;
  top: 25%;
  width: 80px;
  height: 300px;
}

.energy-wave {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(107, 155, 209, 0.6), transparent);
  animation: energyPulse 5s ease-in-out infinite;
}

.e1 {
  top: 30%;
  animation-delay: 0s;
}

.e2 {
  top: 50%;
  animation-delay: 1.67s;
}

.e3 {
  top: 70%;
  animation-delay: 3.33s;
}

/* Expertise Page Animation Keyframes */
@keyframes hexPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

@keyframes circuitFlow {
  0% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

@keyframes circuitBlink {
  0%, 90% { opacity: 0.8; }
  95% { opacity: 1; }
  100% { opacity: 0.8; }
}

@keyframes quantumFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
  33% { transform: translateY(-20px) scale(1.2); opacity: 1; }
  66% { transform: translateY(10px) scale(0.9); opacity: 0.6; }
}

@keyframes energyPulse {
  0%, 100% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 1024px) {
  .page-bg-left,
  .page-bg-right {
    width: 120px;
  }
  
  .hex {
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .page-bg-left,
  .page-bg-right {
    display: none;
  }
}

/* Solutions Page Styles */
.solutions-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.solutions-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern/pattern-01.png") repeat;
  opacity: 0.1;
  z-index: 1;
}

.solutions-hero .container {
  position: relative;
  z-index: 2;
}

.solutions-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.solutions-subtitle {
  font-size: 1.3rem;
  max-width: 800px;
  margin-left: 200px;
  opacity: 0.9;
  line-height: 1.6;
  text-align: center;
  /* text-justify: inter-word; */
}

.solutions-content {
  padding: 80px 0;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.solution-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 28px 32px;
}

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  border-color: #3b82f6;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.card-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1px;
}

.solution-tag {
  background: rgba(107, 155, 209, 0.1);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 0px solid #bfdbfe;
  transition: all 0.2s ease;
}

.solution-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-left: 24px;
  flex-shrink: 0;
}

.solution-card:hover .card-arrow {
  gap: 12px;
  color: #1d4ed8;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.solution-card:hover .arrow-icon {
  transform: translateX(4px);
}

.contact-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 60px 36px;
  border-radius: 16px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern/pattern-02.png") repeat;
  opacity: 0.1;
  z-index: 1;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.9;
  text-align: center;
}

.contact-email {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background-color: white;
  color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
  .solutions-title {
    font-size: 2.2rem;
  }

  .solutions-subtitle {
    font-size: 1.1rem;
  }

  .solution-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }

  .card-arrow {
    margin-left: 0;
    align-self: flex-end;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-description {
    font-size: 0.95rem;
  }

  .card-highlight {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 40px 20px;
    margin-top: 40px;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* Loading animation */
.solution-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.solution-card:nth-child(1) {
  animation-delay: 0.1s;
}
.solution-card:nth-child(2) {
  animation-delay: 0.2s;
}
.solution-card:nth-child(3) {
  animation-delay: 0.3s;
}
.solution-card:nth-child(4) {
  animation-delay: 0.4s;
}
.solution-card:nth-child(5) {
  animation-delay: 0.5s;
}

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