/* Custom styles for ISP Agency */

/* General setup */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* Custom primary color */
.text-primary {
  color: #5F1BF2;
}

.bg-primary {
  background-color: #5F1BF2;
}

.border-primary {
  border-color: #5F1BF2;
}

.focus\:border-primary:focus {
  border-color: #5F1BF2;
}

.focus\:ring-primary:focus {
  --tw-ring-color: rgba(95, 27, 242, 0.5);
}

.hover\:bg-primary\/80:hover {
  background-color: rgba(95, 27, 242, 0.8);
}

.hover\:text-primary:hover {
  color: #5F1BF2;
}

/* Custom accent color */
.text-accent {
  color: #FF6B35;
}

.bg-accent {
  background-color: #FF6B35;
}

.hover\:bg-opacity-90:hover {
  opacity: 0.9;
}

/* Custom success color */
.text-success {
  color: #10B981;
}

.bg-success {
  background-color: #10B981;
}

/* Diagonal background effect */
.diagonal-box {
  position: relative;
  overflow: hidden;
}

.diagonal-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background-color: #5F1BF2;
  transform: rotate(-3deg) translateX(-10%) translateY(0%);
  z-index: -1;
}

/* Animation delays */
[data-delay="100"] { animation-delay: 0.1s; }
[data-delay="200"] { animation-delay: 0.2s; }
[data-delay="300"] { animation-delay: 0.3s; }
[data-delay="400"] { animation-delay: 0.4s; }
[data-delay="500"] { animation-delay: 0.5s; }

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

.animate-fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.5s ease-out forwards;
}

.animate-fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.5s ease-out forwards;
}

/* Hover animations */
.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Keyframe animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header fixes */
header {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

header img.logo {
  height: 40px;
}

header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Fix spacing in hero section */
#hero {
  padding-top: 7rem; /* Increased padding to fix spacing with fixed header */
}

/* Fix for mobile menu */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Fixes for WhatsApp button */
.bg-\[\#25D366\] {
  background-color: #25D366;
}

/* Back to top button */
#back-to-top {
  transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
  transform: translateY(-5px);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  #hero {
    padding-top: 6rem;
  }
}

/* Grid system */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}