* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --color-primary: #67267A;
  --color-primary-dark: #630181;
  --color-primary-light: #be27ec;
  --color-primary-light1: #e8b6f7;

  /* Secondary Colors */
  --color-secondary: #f59e0b;
  --color-secondary-dark: #d97706;
  --color-secondary-light: #fbbf24;

  /* Accent Colors */
  --color-accent: #ffffff;
  --color-accent-gray: #f9fafb;
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;

  /* Gradient */
  --gradient-primary: linear-gradient(
    to bottom right,
    var(--color-primary),
    var(--color-primary-dark)
  );
  --gradient-secondary: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-dark),
    var(--color-primary)
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  height: 100%;
  width: 100%;
}

@keyframes slide {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-slide {
  animation: slide 20s linear infinite;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.nav-link {
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal),
    visibility var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--gradient-primary);
  z-index: 999;
  transition: right var(--transition-normal);
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu-sidebar.active {
  right: 0;
}

/* Apply CSS Variables */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-dark {
  background-color: var(--color-primary-dark);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-secondary-dark {
  background-color: var(--color-secondary-dark);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.border-secondary {
  border-color: var(--color-secondary);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  transition: background-color var(--transition-normal),
    transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  transition: background-color var(--transition-normal),
    transform var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: scale(1.05);
}

.card-hover {
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

.card-hover:hover {
  transform: translateY(-8px);
}

@keyframes scrollX {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scrollX 35s linear infinite;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 8px;
}

.custom-scroll:hover::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#gallery img {
  border: 3px solid transparent;
}

#gallery .group:hover img {
  border-color: var(--color-secondary);
}

/* Hero slide animations */
.hero-slide {
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1 !important;
}

.hero-slide img {
  transform: scale(1);
  transition: transform 10s ease-out;
}

.hero-slide.active img {
  transform: scale(1.1);
}

/* Slide indicator animations */
.slide-indicator {
  transition: all 0.5s ease;
  cursor: pointer;
}

.slide-indicator.active {
  background-color: white !important;
}

/* Fade in up animation with stagger */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

/* Pulse animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Bounce animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Responsive font sizes */
@media (max-width: 640px) {
  #home h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  #home h2 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  #home p {
    font-size: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #home h1 {
    font-size: 3rem;
  }

  #home h2 {
    font-size: 4rem;
  }
}

/* Ensure content stays centered */
.container1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #home {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-slide {
    height: 100vh;
  }
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  /* visibility: hidden; */
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu-sidebar.active {
  transform: translateX(0);
}
.mobile-dropdown-content {
  max-height: 0;
  overflow: auto;
  transition: max-height 0.3s ease;
}

/* Hide scrollbar (works on all major browsers) */
.mobile-dropdown-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.mobile-dropdown-content {
  -ms-overflow-style: none;  /* IE, Edge */
  scrollbar-width: none;     /* Firefox */
}

.mobile-dropdown-content.active {
  max-height: 200px;
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

.dropdown-icon.rotated {
  transform: rotate(180deg);
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-slide {
  display: inline-block;
  animation: slide 30s linear infinite;
}

/* Desktop dropdown styles */
@media (min-width: 768px) {
  .group:hover .group-hover\:opacity-100 {
    opacity: 1;
  }
  .group:hover .group-hover\:visible {
    visibility: visible;
  }
}
