/* Custom Tailwind Config Overrides via CDN Script Tag */
/* This file contains custom CSS for animations, utilities, and overrides */

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  --scod: #1876AA;
  --scod-dark: #145A85;
  --scod-light: #1E8BC3;
}

/* ===================================
   Typography
   =================================== */
body {
  font-family: 'Nunito Sans', sans-serif;
}

/* ===================================
   Animations - Replacing Framer Motion
   =================================== */

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

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

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Fade in left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

/* Fade in right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Spin slow for rotating text */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pulse animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ===================================
   Animation Utility Classes
   =================================== */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

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

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

.animate-spin-slow {
  animation: spin-slow 15s linear infinite;
}

/* Animation delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* Observer-triggered classes - items start hidden */
.observe-animate {
  opacity: 0;
}

.observe-animate.is-visible {
  opacity: 1;
}

/* ===================================
   Custom Colors
   =================================== */
.bg-scod {
  background-color: var(--scod);
}

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

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

.hover\:bg-scod:hover {
  background-color: var(--scod);
}

.hover\:text-scod:hover {
  color: var(--scod);
}

.hover\:border-scod:hover {
  border-color: var(--scod);
}

.shadow-scod {
  box-shadow: 0 0 20px rgba(24, 118, 170, 0.4);
}

/* ===================================
   Dropdown Styles
   =================================== */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===================================
   Mobile Menu Styles
   =================================== */
.mobile-menu {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.active {
  max-height: 500px;
}

/* ===================================
   Carousel/Slider Styles
   =================================== */
.carousel-container {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: center;
}

/* ===================================
   Video Modal Styles
   =================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   Image Modal Styles
   =================================== */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   Navbar Transparent/Solid Transition
   =================================== */
.navbar-transparent {
  background-color: transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-solid {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #f3f4f6;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ===================================
   Custom Scrollbar Hidden
   =================================== */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===================================
   Line Clamp Utilities
   =================================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   Accordion Transition
   =================================== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0;
}

.accordion-content.active {
  max-height: 500px;
  padding: 1rem 0 1.5rem 3.5rem;
}

/* ===================================
   Tab Content Transitions
   =================================== */
.tab-content {
  opacity: 0;
  display: none;
  transition: opacity 0.25s ease-in-out;
}

.tab-content.active {
  opacity: 1;
  display: block;
}

/* ===================================
   Service Content Tabs (Home Page)
   =================================== */
.service-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.service-content.active {
  display: block;
  opacity: 1;
}

/* ===================================
   Testimonial Carousel Styles
   =================================== */
.testimonial-card {
  transition: all 0.5s ease-in-out;
}

.testimonial-card.center {
  transform: scale(1);
  opacity: 1;
  z-index: 20;
}

.testimonial-card.left,
.testimonial-card.right {
  transform: scale(0.85);
  opacity: 0.6;
  z-index: 10;
}

.testimonial-card.left {
  transform: translateX(-60%) scale(0.85);
}

.testimonial-card.right {
  transform: translateX(60%) scale(0.85);
}

/* ===================================
   Button Hover Effects
   =================================== */
.btn-primary {
  background-color: var(--scod);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--scod-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(24, 118, 170, 0.3);
}

/* ===================================
   Responsive Helpers
   =================================== */
@media (max-width: 1023px) {
  .lg-hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg-show {
    display: flex !important;
  }
}