/* Custom Styles */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Glassmorphism Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.navbar-dark {
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav Links */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #6366f1;
  border: 2px solid #6366f1;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: currentColor;
  color: white;
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-sm:hover {
  transform: scale(1.05);
}
/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero Content Animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
}
/* Service Cards */
.service-card {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}
.dark .service-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}
/* Stat Cards */
.stat-card {
  text-align: center;
  padding: 1rem;
}
/* Skill Bars */
.skill-bar {
  width: 100%;
  height: 10px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}
/* Project Cards */
.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
}
.dark .project-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}
.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-card:hover .project-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Optional: make buttons pop on hover */
.project-overlay a {
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay a {
  transform: translateY(0);
}

.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.dark .tech-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
/* Testimonial Cards */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  height: 100%;
}
.dark .testimonial-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial-swiper {
  padding: 2rem 0 4rem 0;
}
.swiper-pagination-bullet {
  background: #6366f1;
}
/* Gallery Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}
/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: none;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .whatsapp-btn {
    width: 3.5rem;
    height: 3.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .back-to-top {
    width: 2.5rem;
    height: 2.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
  }
}
/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}
/* Three.js Container */
#three-container {
  border-radius: 1rem;
  overflow: hidden;
}
/* Parallax Effect */
.parallax {
  transition: transform 0.3s ease;
}
.parallax:hover {
  transform: translateY(-10px);
}

/* FIX FLASHING CONTENT */
* {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Fix Alpine x-data not hiding properly */
[x-cloak] {
  display: none !important;
}
