/* Platinum Pool & Spa - Custom Styles */

/* CSS Custom Properties */
:root {
  /* Brand Colors */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --secondary-blue: #60a5fa;
  --accent-blue: #93c5fd;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-gray-light: #f9fafb;
  --bg-gray-dark: #1f2937;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-overlay-light: rgba(0, 0, 0, 0.3);
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-white: #ffffff;
  --text-blue: #2563eb;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Hero Background Images */
  --hero-bg-1: url('../images/cycle/image1.JPG');
  --hero-bg-2: url('../images/cycle/image2.jpg');
  --hero-bg-3: url('../images/cycle/image3.jpg');
  --hero-bg-4: url('../images/cycle/image4.JPG');
  --hero-bg-5: url('../images/cycle/image5.JPG');
  
  /* Service Background Images - Removed until actual images are available */
  
  /* Typography */
  --font-family-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

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

/* Animation Delays */
.animation-delay-150 {
  animation-delay: 150ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-450 {
  animation-delay: 450ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

/* Utility Classes */
.bg-overlay {
  background-color: var(--bg-overlay);
}

.bg-overlay-light {
  background-color: var(--bg-overlay-light);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

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

/* Focus Styles */
.focus-ring:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Hero Background Cycling Classes */
.hero-bg-1 {
  background-image: var(--hero-bg-1);
}

.hero-bg-2 {
  background-image: var(--hero-bg-2);
}

.hero-bg-3 {
  background-image: var(--hero-bg-3);
}

.hero-bg-4 {
  background-image: var(--hero-bg-4);
}

.hero-bg-5 {
  background-image: var(--hero-bg-5);
}

/* Service Background Classes - Removed until actual images are available */

/* Responsive Typography */
@media (max-width: 640px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-5xl: 2.25rem;
    --font-size-6xl: 3rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Navigation Styles */
#navbar {
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Logo Styles */
.logo-image {
  transition: transform var(--transition-fast);
  max-width: 100%;
  height: auto;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Ensure logo works on different backgrounds */
img[alt*="Logo"] {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mobile Menu Styles */
#mobile-menu {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--gray-200);
}

.mobile-menu-button {
  transition: transform var(--transition-fast);
}

.mobile-menu-button:hover {
  transform: scale(1.1);
}

/* Social Media Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.social-icon:hover::before {
  transform: translateX(100%);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-icon.facebook:hover {
  background-color: #1877f2;
  color: white;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

/* Hero Section Styles */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

#hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.hero-cta:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-cta:active {
  transform: translateY(0);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* CTA Button Enhancements */
.cta-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:focus {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

/* Service Area Highlight */
.service-area {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* Responsive Hero Adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-cta {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }

  #hero-background {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Services Section Styles */
.service-tile {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(
    135deg,
    var(--gray-800) 0%,
    var(--gray-700) 50%,
    var(--gray-800) 100%
  );
  border: 2px solid var(--gray-600);
}

.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 50%,
    var(--primary-blue) 100%
  );
  border-color: var(--primary-blue-light);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: white;
  transition: all var(--transition-normal);
}

.service-icon {
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-tile:hover .service-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.service-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-description {
  font-size: var(--font-size-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.service-tile:hover .feature-tag {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Service Specific Colors - All Same Darker Blue */
.service-plaster,
.service-tile-bg,
.service-coping,
.service-decking,
.service-lighting,
.service-circulation {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e40af 100%);
}

.service-plaster:hover,
.service-tile-bg:hover,
.service-coping:hover,
.service-decking:hover,
.service-lighting:hover,
.service-circulation:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e3a8a 50%, #1e3a8a 100%);
}

/* Service Tile Responsive Styles */
@media (max-width: 768px) {
  .service-tile {
    height: 350px;
  }

  .service-overlay {
    padding: 1.5rem;
  }

  .service-title {
    font-size: var(--font-size-xl);
  }

  .service-description {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .service-tile {
    height: 300px;
  }

  .service-overlay {
    padding: 1rem;
  }

  .service-icon i {
    font-size: 2.5rem;
  }

  .service-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
  }

  .service-description {
    font-size: var(--font-size-xs);
    margin-bottom: 1rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
  }
}

/* Service Tile Animation on Scroll */
.service-tile.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

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

/* Gallery Section Styles */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--gray-100);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  color: white;
  padding: 1rem;
}

.gallery-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-description {
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.gallery-view-btn {
  background: rgba(37, 99, 235, 0.9);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.gallery-view-btn:hover {
  background: rgba(29, 78, 216, 1);
  transform: translateY(-2px);
}

/* Gallery Modal Styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal.hidden {
  display: none;
}

.gallery-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.gallery-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.gallery-modal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-modal-info {
  padding: 1.5rem;
  background: white;
}

.gallery-modal-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gallery-modal-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Gallery Responsive Styles */
@media (max-width: 1024px) {
  .gallery-image-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .gallery-image-container {
    height: 200px;
  }

  .gallery-title {
    font-size: var(--font-size-base);
  }

  .gallery-description {
    font-size: var(--font-size-xs);
  }

  .gallery-view-btn {
    font-size: var(--font-size-xs);
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-image-container {
    height: 180px;
  }

  .gallery-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .gallery-modal-info {
    padding: 1rem;
  }

  .gallery-modal-title {
    font-size: var(--font-size-lg);
  }

  .gallery-modal-description {
    font-size: var(--font-size-sm);
  }
}

/* Section Responsive Layouts */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Section Spacing Responsive */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
  }

  .section-description {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .section-description {
    font-size: var(--font-size-base);
  }
}

/* Contact Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-600);
  border-radius: var(--radius-md);
  background-color: var(--gray-700);
  color: var(--text-white);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: var(--gray-600);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: #ef4444;
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.form-submit-btn:hover::before {
  left: 100%;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.form-status.hidden {
  display: none;
}

/* File Upload Styles */
.file-upload-container {
  position: relative;
  border: 2px dashed var(--gray-600);
  border-radius: var(--radius-lg);
  background-color: var(--gray-700);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.file-upload-container:hover {
  border-color: var(--primary-blue);
  background-color: var(--gray-600);
}

.file-upload-container.dragover {
  border-color: var(--primary-blue);
  background-color: rgba(37, 99, 235, 0.1);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  pointer-events: none; /* Disable by default */
}

.file-input.active {
  pointer-events: auto; /* Enable only when needed */
}

.file-upload-display {
  padding: 2rem;
  text-align: center;
  color: var(--gray-300);
}

.file-upload-icon {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.file-upload-text {
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
}

.file-upload-subtext {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

.file-preview {
  padding: 1rem;
  border-top: 1px solid var(--gray-600);
  background-color: var(--gray-800);
}

.file-preview.hidden {
  display: none;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--gray-700);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-600);
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-preview-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-500);
}

.file-preview-details {
  color: var(--text-white);
}

.file-preview-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.file-preview-size {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

.file-remove-btn {
  background: var(--gray-600);
  color: var(--gray-300);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-remove-btn:hover {
  background: #ef4444;
  color: white;
}

/* Clear Images Button */
.clear-images-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  width: fit-content;
}

.clear-images-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* File upload responsive */
@media (max-width: 768px) {
  .file-upload-display {
    padding: 1.5rem;
  }

  .file-upload-icon i {
    font-size: 2rem;
  }

  .file-upload-text {
    font-size: var(--font-size-sm);
  }

  .file-upload-subtext {
    font-size: var(--font-size-xs);
  }
}

/* Contact Information Styles */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.contact-details {
  flex: 1;
}

.contact-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.contact-text {
  color: var(--gray-300);
  line-height: var(--leading-relaxed);
}

.contact-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.contact-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* Maps Section Styles */
.maps-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.maps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.maps-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.maps-preview {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: white;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.maps-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

.maps-buttons {
  display: flex;
  gap: 1rem;
}

.maps-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.maps-btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
}

.maps-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.maps-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section Responsive */
@media (max-width: 1024px) {
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .contact-icon {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .maps-buttons {
    flex-direction: column;
  }

  .contact-info-item {
    padding: 0.75rem;
  }

  .maps-section {
    padding: 1rem;
  }

  .maps-preview {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-info-item {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
  }

  .contact-icon {
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-title {
    font-size: var(--font-size-base);
  }

  .maps-preview {
    padding: 1rem;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.footer-heading {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-300);
  font-size: var(--font-size-sm);
}

.footer-contact-item i {
  color: var(--primary-blue);
  width: 16px;
  text-align: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.footer-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-heading {
    font-size: var(--font-size-base);
  }

  .footer-contact-item {
    font-size: var(--font-size-xs);
  }

  .footer-link {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  footer {
    padding: 2rem 0;
  }

  .footer-heading::after {
    width: 1.5rem;
  }
}

/* Mobile-First Additional Optimizations */
@media (max-width: 375px) {
  /* Extra small devices */
  .hero-content {
    padding: 0 0.75rem;
  }

  .service-tile {
    height: 280px;
  }

  .service-overlay {
    padding: 0.75rem;
  }

  .gallery-image-container {
    height: 160px;
  }

  .contact-info-item {
    padding: 0.5rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.625rem 0.75rem;
    font-size: var(--font-size-sm);
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch devices */
  .service-tile:hover {
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
  }

  .service-overlay {
    opacity: 1;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .hero-title,
  .service-title,
  .gallery-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Print styles */
@media print {
  .no-print,
  #navbar,
  .scroll-indicator,
  .gallery-modal,
  footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }

  .hero-content {
    color: black;
    text-shadow: none;
  }

  .service-overlay,
  .gallery-overlay {
    background: none;
    color: black;
  }
}

/* Cross-Browser Compatibility Fixes */

/* Flexbox fallbacks for older browsers */
.flex-fallback {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-center-fallback {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Grid fallbacks for older browsers */
@supports not (display: grid) {
  .services-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .service-tile {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(33.333% - 1.5rem);
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
  }

  .gallery-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .gallery-item {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(25% - 0.75rem);
    flex: 1 1 calc(25% - 0.75rem);
    min-width: 250px;
  }
}

/* Backdrop filter fallbacks */
@supports not (backdrop-filter: blur(10px)) {
  #navbar {
    background-color: rgba(255, 255, 255, 0.95);
  }

  .service-area {
    background: rgba(255, 255, 255, 0.15);
  }

  .feature-tag {
    background: rgba(255, 255, 255, 0.25);
  }
}

/* CSS Custom Properties fallbacks */
@supports not (color: var(--primary-blue)) {
  :root {
    /* Fallback colors for browsers that don't support CSS custom properties */
  }

  .hero-cta {
    background-color: #2563eb;
  }

  .hero-cta:hover {
    background-color: #1d4ed8;
  }

  .form-submit-btn {
    background: #2563eb;
  }

  .nav-link::after {
    background-color: #2563eb;
  }
}

/* Smooth scrolling fallback */
@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}

/* Object-fit fallback for older browsers */
@supports not (object-fit: cover) {
  .gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Transform fallbacks */
@supports not (transform: translateY(-4px)) {
  .gallery-item:hover,
  .service-tile:hover {
    margin-top: -4px;
  }
}

/* Sticky positioning fallback */
@supports not (position: sticky) {
  #navbar {
    position: fixed;
  }
}

/* CSS Grid minmax fallback */
@supports not (grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Internet Explorer specific fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /* IE10+ specific styles */
  .service-tile {
    -ms-flex: 1 1 calc(33.333% - 2rem);
  }

  .gallery-item {
    -ms-flex: 1 1 calc(25% - 1rem);
  }

  .hero-content {
    -ms-flex-align: center;
    -ms-flex-pack: center;
  }
}

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
  .form-input,
  .form-select,
  .form-textarea {
    -webkit-appearance: none;
    -webkit-border-radius: 0.5rem;
  }

  .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
  }
}

/* Performance Optimizations */

/* GPU acceleration for animations */
.service-tile,
.gallery-item,
.hero-cta,
.form-submit-btn,
.social-icon {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimize repaints */
.service-overlay,
.gallery-overlay {
  will-change: opacity;
}

/* Lazy loading styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optimize scrolling performance */
* {
  -webkit-overflow-scrolling: touch;
}

/* Contain layout shifts */
.service-tile,
.gallery-item {
  contain: layout style paint;
}

/* Optimize background attachments for mobile */
@media (max-width: 768px) {
  #hero-background {
    background-attachment: scroll;
    transform: translate3d(0, 0, 0);
  }
}

/* Critical CSS loading optimization */
.above-fold {
  /* Styles for above-the-fold content */
  font-display: swap;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .service-tile,
  .gallery-item {
    will-change: auto;
  }
}

/* Optimize for high refresh rate displays */
@media (min-resolution: 120dpi) {
  .animate-fade-in-up,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-scale-in {
    animation-duration: 0.4s;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  #hero {
    background-attachment: scroll;
  }
}
