/* Base styles & custom properties */
:root {
  --color-coral-400: #ff8a52;
  --color-coral-500: #ff6b35;
  --color-coral-600: #ef501b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a24;
}
::-webkit-scrollbar-thumb {
  background: #3f3f4d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #525262;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(15, 15, 22, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover effects */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Gallery item hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for the live dot */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.animate-pulse {
  animation: pulse-ring 2s infinite;
}

/* Scroll reveal base — only applies when JS adds the class */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-hidden,
  .service-card,
  .gallery-item img,
  .gallery-item::after {
    transition: none;
    animation: none;
  }
  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
}

/* Form styles */
input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #ececf0;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input::placeholder, textarea::placeholder {
  color: #6b6b7e;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Mobile menu link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
}
