/* ================================
   Control 360® Landing - Custom Styles
   ================================ */

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

/* Base body - Inter font is set via Tailwind config, but ensure fallback */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Fade-in scroll animation
   ================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Laptop mockup frame (hero section)
   ================================ */
.mockup-frame {
  background: #1f2937;
  border-radius: 16px;
  padding: 14px 14px 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mockup-frame img {
  border-radius: 8px 8px 0 0;
  width: 100%;
  display: block;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

/* ================================
   Feature cards hover effect
   ================================ */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
}

/* ================================
   Role tab active state
   ================================ */
.role-tab {
  transition: all 0.2s ease;
  position: relative;
}

.role-tab.active {
  font-weight: 600;
}

/* ================================
   WhatsApp floating button
   ================================ */
.whatsapp-float {
  animation: pulse-whatsapp 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ================================
   Contact form focus effects
   ================================ */
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ================================
   Smooth transitions for navigation
   ================================ */
#navbar {
  transition: box-shadow 0.3s ease;
}

/* ================================
   Image hover effect on feature pages
   ================================ */
.fade-in img {
  transition: transform 0.3s ease;
}

.fade-in:hover img {
  transform: scale(1.02);
}

/* ================================
   Custom scrollbar (subtle)
   ================================ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ================================
   Selection color
   ================================ */
::selection {
  background-color: rgba(37, 99, 235, 0.15);
  color: inherit;
}

/* ================================
   Responsive adjustments
   ================================ */
@media (max-width: 768px) {
  .mockup-frame {
    border-radius: 12px;
    padding: 10px 10px 0;
  }

  .mockup-dots span {
    width: 8px;
    height: 8px;
  }
}

/* ================================
   Lightbox
   ================================ */
#lightbox {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}

.lightbox-trigger {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Print styles */
@media print {
  #navbar,
  #whatsapp-float,
  .whatsapp-float,
  #lightbox {
    display: none !important;
  }
}
