/* ============================================
   FUTURISTIC ANIMATIONS
   ============================================ */

/* Page Load Animation - Subtle fade in */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: pageLoad 0.8s ease-out;
}

/* Hero Section Loading Animation */
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(1.05) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero {
  animation: heroReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1) 0.2s both;
}

/* Logo Animation - Subtle pulse */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.logo img {
  transition: all 0.3s ease;
  animation: logoPulse 4s ease-in-out infinite;
}

.logo img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Navigation Link Animation - Underline effect */
.nav-links a {
  transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  letter-spacing: 0.5px;
}

/* Mobile navigation */
.mobile-nav a {
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Hero Title Animation - Gradient reveal */
@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation: titleReveal 1s ease-out 0.4s both;
}

.hero-content p {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Animation - Subtle glow and transform */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
  animation: fadeInUp 0.8s ease-out 0.8s both;
  border: 1px solid rgba(246, 164, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(246, 164, 0, 0.2),
              0 0 15px rgba(246, 164, 0, 0.1);
  background: var(--primary-hover);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

/* About Section Entrance Animation */
.about-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Icon Animation */
.about-feature i {
  position: relative;
  transition: all 0.3s ease;
}

.about-feature:hover i {
  transform: translateY(-3px);
  color: var(--primary-light);
}

.about-feature i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(246, 164, 0, 0.1), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.about-feature:hover i::after {
  width: 40px;
  height: 40px;
}

/* Highlight Box Animation - Subtle gradient shift */
.about-highlight {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.about-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.about-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-highlight:hover::before {
  left: 100%;
}

/* Footer Social Icons Animation */
.footer-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: rgba(246, 164, 0, 0.1);
  color: var(--primary-light);
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.footer-social a:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

/* Contact Info Animation */
.footer-contact p {
  position: relative;
  transition: all 0.3s ease;
  padding-left: 5px;
}

.footer-contact p:hover {
  transform: translateX(5px);
  color: var(--white);
}

.footer-contact p i {
  transition: all 0.3s ease;
}

.footer-contact p:hover i {
  transform: scale(1.2);
  color: var(--primary-light);
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Mobile hero content animation */
@media (max-width: 768px) {
  .hero-content {
    animation: mobileContentFadeIn 1s ease-out 0.3s both;
  }
  
  @keyframes mobileContentFadeIn {
    0% {
      opacity: 0;
      transform: translateY(30px) translateY(-50%);
    }
    100% {
      opacity: 1;
      transform: translateY(0) translateY(-50%);
    }
  }
}


/* Futuristic contact section reveal animation */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) rotateY(15deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(60px) rotateY(-15deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0);
  }
}

/* Glow effect for futuristic feel */
@keyframes gentleGlow {
  0%, 100% {
    box-shadow: 0 15px 35px rgba(0, 18, 44, 0.2);
  }
  50% {
    box-shadow: 0 15px 35px rgba(0, 18, 44, 0.3), 0 0 30px rgba(246, 164, 0, 0.1);
  }
}

.contact-info {
  animation: gentleGlow 4s ease-in-out infinite;
}

/* Futuristic border animation for form */
@keyframes borderPulse {
  0%, 100% {
    border-color: rgba(0, 0, 0, 0.05);
  }
  50% {
    border-color: rgba(246, 164, 0, 0.2);
  }
}

.contact-form {
  animation: borderPulse 3s ease-in-out infinite;
}

/* Futuristic button animation for submit */
@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(246, 164, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(246, 164, 0, 0.4), 0 0 10px rgba(246, 164, 0, 0.2);
  }
}

.submit-btn {
  animation: buttonGlow 3s ease-in-out infinite;
}
/* Subtle parallax effect on scroll */
.contact-info {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.contact-form {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Futuristic gradient overlay animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.contact-info::after {
  background: linear-gradient(
    45deg,
    rgba(246, 164, 0, 0.1),
    rgba(0, 18, 44, 0.3),
    rgba(246, 164, 0, 0.1)
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Services section animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-card-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.services-card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards */
.services-card-animate:nth-child(1) { transition-delay: 0.1s; }
.services-card-animate:nth-child(2) { transition-delay: 0.2s; }
.services-card-animate:nth-child(3) { transition-delay: 0.3s; }
.services-card-animate:nth-child(4) { transition-delay: 0.4s; }
.services-card-animate:nth-child(5) { transition-delay: 0.5s; }

/* CLEAN WELCOME SECTION - Minimal & Plain */
.clean-welcome-section {
  margin: 40px 20px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.welcome-typer {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient border effect */
.welcome-typer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* background: linear-gradient(90deg,  */
    /* transparent 0%,
    var(--primary-color) 50%,
    transparent 100%
  ); */
}

.typewriter-container {
  max-width: 800px;
  margin: 0 auto;
}

.typewriter-text {
  font-size: 48px;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  min-height: 60px;
}

.static-text {
  font-weight: 300;
  color: var(--text-light);
}

.typing-dynamic {
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-right: 3px;
}

/* Typing cursor */
.typing-dynamic::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.2em;
  background: var(--primary-color);
  animation: blink 1s infinite;
}

.welcome-icon {
  font-size: 40px;
  color: var(--primary-color);
  animation: wave 2s ease-in-out infinite;
  margin-left: 10px;
  filter: drop-shadow(0 2px 4px rgba(246, 164, 0, 0.2));
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(15deg) scale(1.1);
  }
  75% {
    transform: rotate(-15deg) scale(1.1);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  50.1%, 100% {
    opacity: 0;
  }
}

.welcome-tagline {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 15px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 3.5s forwards;
}

.welcome-typer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(246, 164, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(246, 164, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.typewriter-container {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */

@media (max-width: 768px) {
  .clean-welcome-section {
    margin: 40px 10px !important; /* Force consistent margins */
    width: calc(100% - 20px);
  }
  
  .welcome-typer {
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .typewriter-container {
    width: 100%;
    padding: 0 10px;
  }
  
  .typewriter-text {
    font-size: 36px;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    text-align: center;
  }
  
  .welcome-icon {
    margin-left: 0;
    margin-top: 10px;
    font-size: 32px;
  }
  
  .welcome-tagline {
    font-size: 16px;
    text-align: center;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .clean-welcome-section {
    margin: 30px 8px !important;
    width: calc(100% - 16px);
  }
  
  .typewriter-text {
    font-size: 28px;
  }
  
  .static-text, .typing-dynamic {
    font-size: 28px;
  }
  
  .welcome-icon {
    font-size: 28px;
  }
}

.mobile-nav.active ~ .hero-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active ~ .navbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}