/* All Services Page - Enhanced Attractive Design */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Open+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #441818;
  --secondary-color: #441818;
  --accent-color: #f59e0b;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  --border-radius: 25px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.services-page {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Enhanced Hero Section */
.services-hero {
  background: linear-gradient(135deg, rgba(177, 166, 132, 0.15) 0%, rgba(214, 48, 48, 0.08) 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/svg/background1-svg.svg') no-repeat center;
  background-size: cover;
  opacity: 0.08;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

.services-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214, 48, 48, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.services-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.services-hero-text {
  animation: fadeInUp 1.2s ease-out;
}

.services-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  line-height: 1.1;
  position: relative;
}

.services-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out 0.5s both;
}

.services-hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 50px;
  font-weight: 400;
  line-height: 1.6;
}

.services-hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.services-stat-item {
  text-align: center;
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.services-stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.services-stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.services-stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.services-hero-image {
  animation: fadeInRight 1.2s ease-out 0.3s both;
  position: relative;margin-top: 36px;
}

.services-hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.services-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.services-hero-img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--hover-shadow);
}

/* Enhanced Services Container */
.services-enhanced-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 30px;
  position: relative;
}

.services-enhanced-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.services-enhanced-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 1s ease-out;
}

.services-enhanced-title {
  font-family: 'Poppins', sans-serif';
  font-size: 3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
}

.services-enhanced-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.services-enhanced-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Enhanced Services Grid */
.services-enhanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.services-enhanced-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  cursor: pointer;
}

.services-enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 2;
}

.services-enhanced-card:hover::before {
  transform: scaleX(1);
}

.services-enhanced-card.animate-in {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.services-enhanced-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--hover-shadow);
}

.services-enhanced-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.services-enhanced-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.services-enhanced-card:hover .services-enhanced-image img {
  transform: scale(1.15);
}

.services-enhanced-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(214, 48, 48, 0.9) 0%, rgba(245, 158, 11, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.services-enhanced-overlay i {
  font-size: 3.5rem;
  color: white;
  transform: scale(0.8);
  transition: var(--transition);
}

.services-enhanced-card:hover .services-enhanced-overlay {
  opacity: 1;
}

.services-enhanced-card:hover .services-enhanced-overlay i {
  transform: scale(1);
}

.services-enhanced-content {
  padding: 30px;
  position: relative;
}

.services-enhanced-name {
  font-family: 'Poppins', sans-serif';
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
  transition: var(--transition);
}

.services-enhanced-card:hover .services-enhanced-name {
  color: var(--primary-color);
}

.services-enhanced-description-text {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.services-enhanced-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-enhanced-feature {
  background: linear-gradient(135deg, #663130 0%, #8B4513 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.services-enhanced-feature::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: var(--transition);
}

.services-enhanced-card:hover .services-enhanced-feature::before {
  left: 100%;
}

/* Enhanced Call to Action Section */
.services-cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2d1b1b 100%);
  padding: 120px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.services-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/svg/background1-svg.svg') no-repeat center;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
  animation: float 15s ease-in-out infinite;
}

.services-cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.services-cta-title {
  font-family: 'Poppins', sans-serif';
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.services-cta-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.services-cta-description {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0.9;
  line-height: 1.6;
}

.services-cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 35px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.services-cta-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: var(--transition);
}

.services-cta-btn:hover::before {
  left: 100%;
}

.services-cta-btn.primary {
  background: white;
  color: var(--secondary-color);
  border: 2px solid white;
}

.services-cta-btn.primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.services-cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.services-cta-btn.secondary:hover {
  background: white;
  color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.2;
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* Stagger animation for service cards */
.services-enhanced-card:nth-child(1) { animation-delay: 0.1s; }
.services-enhanced-card:nth-child(2) { animation-delay: 0.2s; }
.services-enhanced-card:nth-child(3) { animation-delay: 0.3s; }
.services-enhanced-card:nth-child(4) { animation-delay: 0.4s; }
.services-enhanced-card:nth-child(5) { animation-delay: 0.5s; }
.services-enhanced-card:nth-child(6) { animation-delay: 0.6s; }
.services-enhanced-card:nth-child(7) { animation-delay: 0.7s; }
.services-enhanced-card:nth-child(8) { animation-delay: 0.8s; }
.services-enhanced-card:nth-child(9) { animation-delay: 0.9s; }
.services-enhanced-card:nth-child(10) { animation-delay: 1s; }
.services-enhanced-card:nth-child(11) { animation-delay: 1.1s; }

/* Responsive Design */
@media (max-width: 1200px) {
  .services-enhanced-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 80px 0 60px;
  }

  .services-hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .services-hero-title {
    font-size: 2.8rem;
  }

  .services-hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .services-enhanced-container {
    padding: 80px 20px;
  }

  .services-enhanced-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .services-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-cta-btn {
    width: 100%;
    max-width: 350px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 60px 0 40px;
  }

  .services-hero-title {
    font-size: 2.2rem;
  }

  .services-hero-subtitle {
    font-size: 1.1rem;
  }

  .services-enhanced-container {
    padding: 60px 15px;
  }

  .services-enhanced-title {
    font-size: 2.2rem;
  }

  .services-cta-title {
    font-size: 2.2rem;
  }

  .services-enhanced-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Loading animation for images */
.services-enhanced-image img {
  opacity: 0;
  animation: imageLoad 0.5s ease-out forwards;
}

@keyframes imageLoad {
  to {
    opacity: 1;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.services-page::-webkit-scrollbar {
  width: 8px;
}

.services-page::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.services-page::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

.services-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Modal Styling - Use same as index page */
.automaticform .input-wrapper:last-of-type label{
  margin-left: unset;
}
.automaticform .input-wrapper .email-input{
  margin-left: unset;
}
.automaticform .input-wrapper{
  display: block;
}

/* Enhanced Modal Styling - Force Override with Higher Specificity */
body .automaticform,
html body .automaticform,
.services-page .automaticform {
  background: linear-gradient(135deg, rgba(68, 24, 24, 0.5) 0%, rgba(45, 15, 15, 0.5) 100%) !important;
  backdrop-filter: blur(15px) !important;
  animation: modalFadeIn 0.4s ease-out !important;
}

body .automaticform form,
html body .automaticform form,
.services-page .automaticform form {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 40px !important;
  max-width: 450px !important;
  animation: formSlideUp 0.5s ease-out 0.2s both !important;
}

body .automaticform h1,
html body .automaticform h1,
.services-page .automaticform h1 {
  color: #782020 !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 20px !important;
}

body .automaticform #body_header,
html body .automaticform #body_header,
.services-page .automaticform #body_header {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 30px !important;
}

body .automaticform #body_header p,
html body .automaticform #body_header p,
.services-page .automaticform #body_header p {
  color: #ffffff !important;
  font-size: 20px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  margin-top: 10px !important;
}

body .automaticform input[type="text"],
body .automaticform input[type="email"],
body .automaticform input[type="number"],
body .automaticform input[type="datetime-local"],
html body .automaticform input[type="text"],
html body .automaticform input[type="email"],
html body .automaticform input[type="number"],
html body .automaticform input[type="datetime-local"],
.services-page .automaticform input[type="text"],
.services-page .automaticform input[type="email"],
.services-page .automaticform input[type="number"],
.services-page .automaticform input[type="datetime-local"] {
  border: 2px solid #f0f0f0 !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  background-color: #fafafa !important;
  transition: all 0.3s ease !important;
  height: 50px !important;
  margin-bottom: 20px !important;
}

body .automaticform input:focus,
html body .automaticform input:focus,
.services-page .automaticform input:focus {
  border-color: #441818 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(68, 24, 24, 0.1) !important;
  transform: translateY(-2px) !important;
}

body .automaticform button,
html body .automaticform button,
.services-page .automaticform button {
  background: linear-gradient(135deg, #441818 0%, #d63030 100%) !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 25px rgba(68, 24, 24, 0.3) !important;
  padding: 18px 30px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
}

body .automaticform button:hover,
html body .automaticform button:hover,
.services-page .automaticform button:hover {
  background: linear-gradient(135deg, #d63030 0%, #441818 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(68, 24, 24, 0.4) !important;
}

body .close-autoform,
html body .close-autoform,
.services-page .close-autoform {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #441818 0%, #d63030 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(68, 24, 24, 0.3) !important;
  z-index: 10 !important;
}

body .close-autoform:hover,
html body .close-autoform:hover,
.services-page .close-autoform:hover {
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 6px 20px rgba(68, 24, 24, 0.4) !important;
}

body .close-autoform i,
html body .close-autoform i,
.services-page .close-autoform i {
  color: white !important;
  font-size: 18px !important;
  font-weight: bold !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes formSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
