/* Custom Colors and Variables */
:root {
  --color-primary: #0A2342;
  --color-primary-light: #153559;
  --color-accent: #00BCD4;
  --color-accent-light: #26C6DA;
  --color-accent-dark: #00ACC1;
  --color-white: #FFFFFF;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-green-50: #F0FDF4;
  --color-green-200: #BBF7D0;
  --color-green-700: #15803D;
  --color-red-500: #EF4444;
  --color-yellow-400: #FACC15;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Gradient */
.btn-primary {
  background: linear-gradient(to right, #FFBB00, #FF4C00) !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 75, 0, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Card Hover Effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Gallery Grid */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* Before/After Slider */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  cursor: col-resize;
}

.before-after-slider .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-slider .before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 50% 0 0);
}

.before-after-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  left: 50%;
  transform: translateX(-50%);
}

.before-after-slider .slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after-slider .slider-button::after {
  content: '';
  width: 6px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 3px;
}

/* Before/After Labels */
.before-after-slider .label-before,
.before-after-slider .label-after {
  position: absolute;
  top: 16px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.before-after-slider .label-before {
  left: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.before-after-slider .label-after {
  right: 16px;
  background: rgba(0, 188, 212, 0.8);
  color: white;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Sticky CTA Mobile */
@media (max-width: 1024px) {
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    border-top: 1px solid var(--color-slate-200);
    z-index: 40;
  }
}

@media (min-width: 1025px) {
  .sticky-cta {
    display: none;
  }
}

/* Header Shadow */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-input.error {
  border-color: var(--color-red-500);
}

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
  animation: fadeInUp 0.5s ease-out;
}

/* Navigation Active State */
nav a.active {
  color: var(--color-accent) !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
