/* Custom CSS for Cedarvis International */

/* Button Styles */
.btn-primary {
  @apply px-6 py-3 bg-gradient-to-r from-cedarvis-gold to-cedarvis-green text-white font-semibold rounded-lg transition-all duration-300 hover:shadow-lg hover:scale-105 inline-block;
}

.btn-primary-large {
  @apply px-8 py-4 bg-gradient-to-r from-cedarvis-gold to-cedarvis-green text-white font-semibold rounded-lg transition-all duration-300 hover:shadow-xl hover:scale-105 text-lg inline-block;
}

.btn-secondary-large {
  @apply px-8 py-4 bg-white text-cedarvis-dark font-semibold rounded-lg transition-all duration-300 hover:shadow-xl hover:scale-105 text-lg inline-block;
}

.btn-outline-large {
  @apply px-8 py-4 border-2 border-white text-white font-semibold rounded-lg transition-all duration-300 hover:bg-white hover:text-cedarvis-dark text-lg inline-block;
}

.btn-outline-white-large {
  @apply px-8 py-4 border-2 border-white text-white font-semibold rounded-lg transition-all duration-300 hover:bg-white hover:text-cedarvis-green text-lg inline-block;
}

.btn-white-large {
  @apply px-8 py-4 bg-white text-cedarvis-green font-semibold rounded-lg transition-all duration-300 hover:shadow-xl hover:scale-105 text-lg inline-block;
}

/* Particle Animation */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #D4AF37, #0A4A3B);
  border-radius: 50%;
  animation: float-particle 20s infinite linear;
}

.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-duration: 30s;
  animation-delay: 2s;
  width: 6px;
  height: 6px;
}

.particle:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-duration: 28s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-duration: 22s;
  animation-delay: 1s;
  width: 8px;
  height: 8px;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-duration: 26s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  top: 50%;
  left: 90%;
  animation-duration: 24s;
  animation-delay: 5s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(7) {
  top: 70%;
  left: 20%;
  animation-duration: 27s;
  animation-delay: 2.5s;
}

.particle:nth-child(8) {
  top: 90%;
  left: 60%;
  animation-duration: 23s;
  animation-delay: 1.5s;
  width: 7px;
  height: 7px;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-200px) translateX(100px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-400px) translateX(-100px) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-200px) translateX(50px) rotate(270deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
    opacity: 0.5;
  }
}

/* Service Card Hover Effect */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* African Pattern Background */
.african-pattern {
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.05) 10px, rgba(212, 175, 55, 0.05) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(10, 74, 59, 0.05) 10px, rgba(10, 74, 59, 0.05) 20px);
}

/* Testimonial Card */
.testimonial-card {
  @apply bg-white p-8 rounded-xl shadow-lg transition-all duration-300 hover:shadow-2xl hover:-translate-y-2;
}

/* Blog Card */
.blog-card {
  @apply bg-white rounded-xl overflow-hidden shadow-lg transition-all duration-300 hover:shadow-2xl hover:-translate-y-2;
}

/* Loading Animation */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #D4AF37;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0A4A3B, #D4AF37);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #D4AF37, #0A4A3B);
}

/* Form Styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-cedarvis-gold focus:border-transparent transition-all duration-300;
}

.form-textarea {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-cedarvis-gold focus:border-transparent transition-all duration-300 resize-none;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #D4AF37, #0A4A3B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

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

/* Team Member Card */
.team-card {
  @apply bg-white rounded-xl overflow-hidden shadow-lg transition-all duration-300 hover:shadow-2xl group;
}

.team-card img {
  @apply w-full h-64 object-cover transition-transform duration-300 group-hover:scale-110;
}

/* Portfolio Grid */
.portfolio-item {
  @apply relative overflow-hidden rounded-xl group cursor-pointer;
}

.portfolio-overlay {
  @apply absolute inset-0 bg-gradient-to-t from-cedarvis-dark to-transparent opacity-0 group-hover:opacity-90 transition-opacity duration-300 flex items-end p-6;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slideshow-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-slide {
  flex: 0 0 100%;
  width: 100%;
}

.slideshow-slide.three-items {
  flex: 0 0 33.333%;
}

@media (max-width: 1024px) {
  .slideshow-slide.three-items {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .slideshow-slide.three-items {
    flex: 0 0 100%;
  }
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 74, 59, 0.9);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slideshow-nav:hover {
  background: #D4AF37;
  transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
  left: 20px;
}

.slideshow-nav.next {
  right: 20px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background: #D4AF37;
  width: 24px;
  border-radius: 5px;
}

/* Auto-play indicator */
.slideshow-autoplay-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #0A4A3B);
  animation: slideshow-progress 5s linear infinite;
}

@keyframes slideshow-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  #mobile-menu.active {
    max-height: 500px;
  }
}