/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

/* Stagger animations */
.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in-up:nth-child(5) {
  animation-delay: 0.5s;
}
.fade-in-up:nth-child(6) {
  animation-delay: 0.6s;
}
.fade-in-up:nth-child(7) {
  animation-delay: 0.7s;
}

.fade-in-down:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-down:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-down:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-down:nth-child(4) {
  animation-delay: 0.4s;
}

/* Hero Section */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-image {
  background: linear-gradient(135deg, #007bff15 0%, #0dcaf015 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  border-color: #007bff !important;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1);
}

/* Portfolio Cards */
.portfolio-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.filter-btn.active {
  animation: pulse 1s ease-in-out infinite;
}

/* Team Cards */
.team-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
}

.team-image-wrapper {
  overflow: hidden;
}

.team-image {
  transition: transform 0.4s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

/* Contact Cards */
.contact-card {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 255, 0.15) !important;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(0, 123, 255, 0.2);
  animation: glow 1.5s ease-in-out infinite;
}

/* Hover Effects */
.hover-primary:hover {
  color: #007bff !important;
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* Sections */
section {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-image {
    min-height: 300px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.8rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    margin-bottom: 20px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}
