:root {
  --main-color: #46688f;
}

* {
  font-family: "Cairo", sans-serif;
  scroll-behavior: smooth;
}

.m-color {
  color: var(--main-color);
}

.b-color {
  background-color: var(--main-color);
}

/* hero-section */
.animate-svg-float {
  width: 600px;
  height: 400px;
}

@media screen and (max-width: 650px) {
  .animate-svg-float {
    width: 350px;
    height: 400px;
  }

  .animate-pulse-soft {
    font-size: 12px;
  }
}

/* Hero section */
.icon-container {
  background-color: var(--main-color);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

/* chat-popup */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.chat-popup {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.chat-popup.show {
  transform: translateY(0);
  opacity: 1;
}

/* service section  */
.morphing-bg {
  background: #fafafa;
}

.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.icon-container {
  background: linear-gradient(135deg, #46688f 0%, #5a7ba8 100%);
  transition: all 0.3s ease;
}

.service-card:hover .icon-container {
  background: linear-gradient(135deg, #5a7ba8 0%, #46688f 100%);
  transform: rotate(5deg) scale(1.1);
}

.floating-animation {
  animation: floating 6s ease-in-out infinite;
}

.floating-animation:nth-child(1) {
  animation-delay: 0s;
}

.floating-animation:nth-child(2) {
  animation-delay: -1s;
}

.floating-animation:nth-child(3) {
  animation-delay: -2s;
}

.floating-animation:nth-child(4) {
  animation-delay: -3s;
}

.floating-animation:nth-child(5) {
  animation-delay: -4s;
}

.floating-animation:nth-child(6) {
  animation-delay: -5s;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  25% {
    transform: translateY(-8px) rotateZ(0.5deg);
  }
  50% {
    transform: translateY(-15px) rotateZ(0deg);
  }
  75% {
    transform: translateY(-8px) rotateZ(-0.5deg);
  }
}

.section-enter {
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-reveal {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  animation: cardReveal 0.8s ease-out forwards;
}

.card-reveal:nth-child(1) {
  animation-delay: 0.1s;
}
.card-reveal:nth-child(2) {
  animation-delay: 0.2s;
}
.card-reveal:nth-child(3) {
  animation-delay: 0.3s;
}
.card-reveal:nth-child(4) {
  animation-delay: 0.4s;
}
.card-reveal:nth-child(5) {
  animation-delay: 0.5s;
}
.card-reveal:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(70, 104, 143, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(70, 104, 143, 0.5);
  }
}

.rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bounceIn {
  animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.95) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.wave-animation {
  position: relative;
  overflow: hidden;
}

.wave-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: wave 3s infinite;
}

@keyframes wave {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.morphing-bg {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-shimmer {
  background: linear-gradient(45deg, #46688f 30%, #46688f 50%, #46688f 70%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.parallax-bg {
  transform-style: preserve-3d;
  animation: parallaxFloat 8s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(0px) translateX(20px);
  }
  75% {
    transform: translateY(20px) translateX(10px);
  }
}

.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.typing-animation {
  overflow: hidden;
  border-right: 3px solid #46688f;
  white-space: nowrap;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #46688f;
  }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* clients */
#clients {
  display: flex;
  justify-content: center;
  align-items: center;
}

#clients img {
  border-radius: 10px;
}

/* contact section */
@keyframes float-up-down {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.animate-float {
  animation: float-up-down 3s ease-in-out infinite;
}

.animate-pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
  opacity: 0;
}

.animate-wiggle {
  animation: wiggle 0.5s ease-in-out;
}

.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  border-color: #46688f;
  box-shadow: 0 0 0 3px rgba(70, 104, 143, 0.1);
  transform: translateY(-2px);
}

.form-input:hover {
  border-color: #6b8eb5;
}

.contact-card {
  background: linear-gradient(
    135deg,
    rgba(70, 104, 143, 0.1) 0%,
    rgba(182, 195, 219, 0.05) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(70, 104, 143, 0.2);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(70, 104, 143, 0.15);
}

.gradient-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.svg-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.svg-element:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: linear-gradient(135deg, #46688f 0%, #5a7ba3 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(70, 104, 143, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}
