/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Theme variables */
:root {
  --accent: #6b5bfa;
  --primary-bg: #ffffff;
  --primary-text: #111827;
  --secondary-bg: #f5f5f5;
  --transition: all 0.3s ease;
  --footer-bg: linear-gradient(135deg, rgba(107,91,250,0.08), rgba(240,78,154,0.08));
  --footer-text: #374151;
}
[data-theme="dark"] {
  --primary-bg: #1f2937;
  --primary-text: #f9fafb;
  --secondary-bg: #374151;
  --footer-bg: #1f2937;
  --footer-text: #9ca3af;
}
html, body {
  margin: 0; padding: 0;
  background: var(--primary-bg);
  color: var(--primary-text);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

/* Fade-in-up animation */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero heading */
.hero-heading {
  opacity: 0; animation: fade-in-up .8s ease-out .3s forwards;
}

/* Buttons */
.btn {
  opacity: 0; transform: translateY(20px);
  transition: var(--transition);
}
.btn-primary {
  padding: .75rem 1.5rem; border-radius: .5rem;
  font-weight: 600; background: var(--accent); color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  animation: fade-in-up .8s ease-out .6s forwards;
}
.btn-secondary {
  padding: .75rem 1.5rem; border-radius: .5rem;
  font-weight: 600; background: transparent;
  border: 2px solid var(--accent); color: var(--accent);
  animation: fade-in-up .8s ease-out .8s forwards;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-secondary:hover {
  background: var(--accent); color: #fff;
  transform: scale(1.05);
}

/* Marquee */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-60%); }
}
.animate-scroll {
  display: inline-flex; white-space: nowrap;
  will-change: transform; animation: marquee-scroll 12s linear infinite;
}

/* Services section */
#services {
  background: linear-gradient(135deg,
    rgba(107,91,250,0.12),
    rgba(240,78,154,0.12)
  );
}
.service-card {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-radius: .75rem; padding: 1.5rem;
  transition: var(--transition); will-change: transform;
  opacity: 0; animation: fade-in-up .6s ease-out forwards;
}
.service-card:nth-child(1){ animation-delay:.2s }
.service-card:nth-child(2){ animation-delay:.3s }
.service-card:nth-child(3){ animation-delay:.4s }
.service-card:nth-child(4){ animation-delay:.5s }
.service-card:nth-child(5){ animation-delay:.6s }
.service-card:nth-child(6){ animation-delay:.7s }
.service-card:nth-child(7){ animation-delay:.8s }
.service-card:nth-child(8){ animation-delay:.9s }
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px var(--accent);
  color: var(--accent);
  transition: var(--transition);
}
[data-theme="dark"] .service-card {
  background: rgba(31,41,55,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  transform: translateY(-6px) scale(1.02);
  transition: var(--transition);
}

/* About Us styles */
.about-hero {
  background: linear-gradient(135deg,
    rgba(107,91,250,.1),
    rgba(240,78,154,.1)
  );
}
.info-card {
  background: var(--secondary-bg);
  border-radius: .75rem; box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 2rem; text-align: center; transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,0.2);
}
.team-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 1rem; padding: 1.5rem;
  text-align: center; transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
[data-theme="dark"] .team-card {
  background: rgba(31,41,55,0.3);
    backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* Contact & Footer */
#contact {
  background: var(--secondary-bg);
  transition: var(--transition);
}
#contact input, #contact textarea {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid var(--primary-text);
  transition: var(--transition);
}
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}
.fa {
  padding: 20px;
  font-size: 30px;
  width: 30px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
}
.fa:hover {
  opacity: 0.7;
}

/* Mobile nav */
#mobile-menu { display: none; }
.hamburger { display: none; cursor: pointer; }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  #mobile-menu.show { display: block; }
}

/* WhatsApp Button */
#whatsapp-button {
  background-color: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: center;
  gap: 16px;
  transition: background-color 0.3s, transform 0.2s;
}
#whatsapp-button:hover {
  background-color: #1ebe5b;
  transform: translateY(-2px);
}
#whatsapp-button img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.work-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem; /* 16px */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow: hidden; /* Ensures the image corners are rounded */
  transition: all 0.3s ease-in-out;
  will-change: transform;
  
  /* Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s ease-out forwards;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.5);
  box-shadow: 0 20px 40px rgba(107, 91, 250, 0.2); /* Accent color shadow */
}

/* Styles for the work card in dark mode */
[data-theme="dark"] .work-card {
  background: rgba(31, 41, 55, 0.4); /* dark:bg-gray-800 with transparency */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.discount-card {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  padding: 20px;
  border-radius: 8px;
  color: var(--accent);
  line-height: 1.7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.discount-subtitle {
  font-size: 0.8rem;
}

/* Styles for the service card status text */
.service-status-active {
  color: green;
  font-size: 0.75rem; /* 12px */
}

.service-status-dev {
  color: grey;
  font-size: 0.75rem; /* 12px */
}

/* Styles for the "Explore The Project" button in work cards */
.work-card-btn {
  background-color: #6b5bfa;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.work-card-btn:hover {
    transform: scale(1.05);
}


/* Styles for the WhatsApp button in the contact form */
.whatsapp-btn {
  align-items: center;
  margin-left: auto; /* Use auto margins for centering */
  margin-right: auto;
  background-color: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  display: inline-flex;
  gap: 12px;
  transition: background-color 0.3s, transform 0.2s;
}
.whatsapp-btn:hover {
  background-color: #1ebe5b;
  transform: translateY(-2px);
}
.whatsapp-btn img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* Styles for the floating WhatsApp widget */
.whatsapp-widget {
  position: fixed;
  bottom: -80px;
  left: 20px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.6s ease;
}
.whatsapp-widget-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 10px 14px;
  border-radius: 50px;
  font-family: Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 14px;
}
.whatsapp-widget-icon {
  width: 24px;
  height: 24px;
}

/* Styles for the footer */
.footer-section {
    background: var(--footer-bg);
    color: var(--footer-text);
}
.footer-copyright {
    color: var(--footer-text);
}