/* Dreamy Home Works - Main Stylesheet */
/* 2025 Design Standards - Modern, Clean, Responsive */

/* Color Palette */
:root {
  --primary-navy: #2A3D66;
  --secondary-aqua: #3CCFBD;
  --accent-coral: #FF5A5F;
  --background-ivory: #FAFAF5;
  --text-charcoal: #2B2B2B;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-gray: #E9ECEF;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-charcoal);
  background-color: var(--background-ivory);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-charcoal);
}

/* Navigation */
.navbar {
  background-color: var(--white) !important;
  box-shadow: 0 2px 10px rgba(42, 61, 102, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
}

.navbar-nav .nav-link {
  color: var(--text-charcoal) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-aqua) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-coral);
  border-color: var(--accent-coral);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e54a4f;
  border-color: #e54a4f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

.btn-outline-primary {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2a4a 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Cards */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(42, 61, 102, 0.1);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(42, 61, 102, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-aqua), #2bb3a0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-aqua);
  border-radius: 2px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(42, 61, 102, 0.08);
  text-align: center;
  margin: 1rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary-aqua);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer a {
  color: #b8c5d6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-aqua);
}

/* Enhanced animations and effects */
.typing-effect {
  display: inline-block;
  animation: blink 1s infinite;
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: block;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading overlay styles */
.loading-spinner {
  text-align: center;
  color: var(--primary-navy);
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Enhanced form validation styles */
.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Statistics section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-aqua));
  color: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-item .counter {
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Enhanced hover effects */
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(42, 61, 102, 0.2);
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(42, 61, 102, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 61, 102, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .stat-item {
    padding: 1.5rem 0.5rem;
  }
  
  .loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--secondary-aqua);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-primary { color: var(--primary-navy) !important; }
.text-secondary { color: var(--secondary-aqua) !important; }
.text-accent { color: var(--accent-coral) !important; }
.bg-light-custom { background-color: var(--light-gray) !important; }

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 2px solid var(--border-gray);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-aqua);
  box-shadow: 0 0 0 0.2rem rgba(60, 207, 189, 0.25);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(42, 61, 102, 0.1);
}

/* Map Container */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(42, 61, 102, 0.1);
}

/* Subscription Section */
.subscription-section {
  background: linear-gradient(135deg, var(--secondary-aqua), #2bb3a0);
  color: var(--white);
  border-radius: 15px;
  padding: 3rem;
  margin: 2rem 0;
}

.subscription-section h3 {
  color: var(--white);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}