@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-border {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
  }
}

.navbar {
  animation: slideDown 0.5s ease-out;
}

.mobile-menu {
  animation: slideInRight 0.3s ease-out;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #f97316);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.logo-text {
  background: linear-gradient(135deg, #14b8a6 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
}

.menu-btn {
  transition: transform 0.3s ease;
}

.menu-btn:hover {
  transform: rotate(90deg);
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  animation: pulse-border 1.5s infinite;
}

.footer-link {
  position: relative;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-link:hover::before {
  opacity: 1;
  left: -15px;
}

.footer-link:hover {
  padding-left: 10px;
  color: #14b8a6;
}

/* Mobile menu overlay */
.menu-overlay {
  transition: opacity 0.3s ease;
}

.btn-gradient {
  background: linear-gradient(135deg, #14b8a6 0%, #f97316 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

/* Hamburger animation */
.hamburger span {
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  height: 2px;
  background: white;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* Background color animation */
@keyframes colorChange {
  0% {
    background-color: #1e3a8a;
  } /* blue-800 */
  25% {
    background-color: #2563eb;
  } /* blue-600 */
  50% {
    background-color: #3b82f6;
  } /* blue-500 */
  75% {
    background-color: #60a5fa;
  } /* blue-400 */
  100% {
    background-color: #1e3a8a;
  }
}
.animate-bg {
  animation: colorChange 10s infinite alternate ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 2s ease-in-out forwards;
}

/* Slider styling */
.slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
  height: 100%;
}
.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* button ui */
/* From Uiverse.io by ShrinilDhorda */
.btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  outline: none;
  border-radius: 0.2rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(14, 14, 26);
  color: rgb(234, 234, 234);
  font-weight: 700;
  transition: 0.6s;
  box-shadow: 0px 0px 60px #1f4c65;
  -webkit-box-reflect: below 10px
    linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

.btn:active {
  scale: 0.92;
}

.btn:hover {
  background: rgb(2, 29, 78);
  background: linear-gradient(
    270deg,
    rgba(2, 29, 78, 0.681) 0%,
    rgba(31, 215, 232, 0.873) 60%
  );
  color: rgb(4, 4, 38);
}

/* services Page */
/* Background color animation */
@keyframes bgColorChange {
  0% {
    background-color: #0f172a;
  } /* slate-900 */
  25% {
    background-color: #134e4a;
  } /* teal-800 */
  50% {
    background-color: #1e293b;
  } /* slate-800 */
  75% {
    background-color: #0f766e;
  } /* teal-700 */
  100% {
    background-color: #0f172a;
  }
}
.animate-bg {
  animation: bgColorChange 10s infinite alternate ease-in-out;
}

/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 1.2s ease-in-out forwards;
}

/* portfolio page  */
/* Custom Keyframes for Background Color Animation */
@keyframes colorChange {
  0% {
    background-color: #0d9488;
  } /* Teal */
  25% {
    background-color: #64748b;
  } /* Slate */
  50% {
    background-color: #1f2937;
  } /* Charcoal */
  75% {
    background-color: #f97316;
  } /* Tangerine */
  100% {
    background-color: #0d9488;
  } /* Back to Teal */
}

/* Custom Keyframes for Text Gradient Animation */
@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typing Effect for Tagline */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Fade-In Animation for Sections */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zoom Effect for Background Image */
@keyframes zoomBackground {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.animate-bg-color {
  animation: colorChange 10s infinite;
}

.animate-text-gradient {
  background: linear-gradient(90deg, #0d9488, #64748b, #1f2937, #f97316);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 5s ease infinite;
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #f97316;
  animation: typing 3s steps(30, end) 1, blink 0.5s step-end infinite;
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.zoom-bg {
  animation: zoomBackground 15s ease-in-out infinite;
}

/* Hover Animation for Cards and Buttons */
.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.image-hover:hover {
  transform: rotate(5deg);
}

/* Glow Effect */
.glow-effect:hover {
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); /* Tangerine glow */
}

/* Video Overlay */
.video-overlay {
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
}

/* portfolio page css  */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.color-shift {
  animation: colorShift 8s ease-in-out infinite;
  background-size: 400% 400%;
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 4s ease-in-out infinite;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.rotate-animation {
  animation: rotate 20s linear infinite;
}

.bounce-animation {
  animation: bounce 2s infinite;
}

.gradient-text {
  background: linear-gradient(45deg, #14b8a6, #fb923c, #f8fafc, #475569);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorShift 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
}

.enhanced-heading {
  background: linear-gradient(135deg, #14b8a6, #ffffff, #fb923c);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: colorShift 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(20, 184, 166, 0.6));
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(20, 184, 166, 0.3),
    rgba(71, 85, 105, 0.4),
    rgba(55, 65, 81, 0.3),
    rgba(251, 146, 60, 0.3)
  );
  z-index: -1;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stagger-animation {
  animation-delay: calc(var(--i) * 0.2s);
}

.typing-animation {
  overflow: hidden;
  border-right: 3px solid #14b8a6;
  white-space: nowrap;
  animation: typing 3.5s 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: #14b8a6;
  }
}

.glow-effect {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
  transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.8);
}

/* contact page css */
/* Custom Keyframes for Background Color Animation */
@keyframes colorChange {
  0% {
    background-color: #0d9488;
  } /* Teal */
  25% {
    background-color: #64748b;
  } /* Slate */
  50% {
    background-color: #1f2937;
  } /* Charcoal */
  75% {
    background-color: #f97316;
  } /* Tangerine */
  100% {
    background-color: #0d9488;
  } /* Back to Teal */
}

/* Custom Keyframes for Text Gradient Animation */
@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Slide-In Animation for Form */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulsating Glow for Button */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
  }
}

/* Success Message Animation */
@keyframes fadeInSuccess {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-bg-color {
  animation: colorChange 10s infinite;
}

.animate-text-gradient {
  background: linear-gradient(90deg, #0d9488, #64748b, #1f2937, #f97316);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 5s ease infinite;
}

.slide-in {
  animation: slideIn 1s ease-out forwards;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.success-message {
  animation: fadeInSuccess 0.5s ease-out;
}

/* Hover Animation for Buttons */
.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Form */
.glass-form {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Label Animation */
.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  transition: all 0.3s ease;
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #64748b; /* Slate */
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -20px;
  left: 8px;
  font-size: 0.75rem;
  color: #f97316; /* Tangerine */
}

/* Input Underline Effect */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom: 2px solid #f97316; /* Tangerine */
}

/* Tooltip for Social Icons */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937; /* Charcoal */
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
}


/* From Uiverse.io by adamgiebl */ 
.contact_button {
  border: none;
  display: block;
  position: relative;
  padding: 0.7em 2.4em;
  font-size: 18px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  color: royalblue;
  z-index: 1;
  font-family: inherit;
  font-weight: 500;
}

.contact_button span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  border: 4px solid royalblue;
}

.contact_button span::before {
  content: "";
  display: block;
  position: absolute;
  width: 8%;
  height: 500%;
  background: var(--lightgray);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-60deg);
  transition: all 0.3s;
}

.contact_button:hover span::before {
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 100%;
  background: royalblue;
}

.contact_button:hover {
  color: white;
}

.contact_button:active span::before {
  background: #2751cd;
}