/**
 * Landing Page Pro CSS - Surprise Granite
 * Modern, premium styling with animations and effects
 */

/* ===== CSS VARIABLES ===== */
:root {
  --gold-primary: #f9cb00;
  --gold-light: #ffd633;
  --gold-dark: #e6b800;
  --orange-accent: #d4a800;
  --dark-bg: #1e293b;
  --dark-surface: #334155;
  --dark-elevated: #475569;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-gold: 0 0 40px rgba(249, 203, 0, 0.2);
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== ENHANCED HERO SECTION ===== */
.modern-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  overflow: hidden;
}

/* Animated background gradient */
.modern-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(249, 203, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(249, 203, 0, 0.08) 0%, transparent 50%);
  animation: heroGradientPulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes heroGradientPulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-5%, 5%) scale(1.1); opacity: 0.8; }
}

/* Enhanced overlay with premium gradient */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 18, 0.85) 0%,
    rgba(20, 20, 35, 0.7) 50%,
    rgba(10, 10, 18, 0.8) 100%
  );
}

/* Hero container improvements */
.hero-container {
  position: relative;
  z-index: 10;
  padding: 60px 50px;
  gap: 60px;
}

/* ===== TRUST BADGES ENHANCED ===== */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.badge-logo {
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.2));
  transition: transform 0.3s var(--transition-smooth);
}

.badge-logo:hover {
  transform: scale(1.1);
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s var(--transition-smooth);
}

.google-rating:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.google-rating svg {
  filter: drop-shadow(0 2px 4px rgba(253, 176, 34, 0.4));
}

/* ===== HERO TITLE ENHANCED ===== */
.hero-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--orange-accent) 50%, var(--gold-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===== HERO SUBTITLE ENHANCED ===== */
.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* ===== CTA BUTTON PREMIUM ===== */
.single-cta-container {
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.main-estimate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: 14px;
  color: var(--dark-bg);
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3),
              0 0 0 0 rgba(255, 215, 0, 0.4);
  transition: all 0.4s var(--transition-smooth);
  overflow: hidden;
  z-index: 1;
}

/* Button shine effect */
.main-estimate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transition: left 0.6s var(--transition-smooth);
  z-index: -1;
}

/* Button glow ring */
.main-estimate-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--gold-primary), var(--orange-accent), var(--gold-primary));
  border-radius: 17px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
}

.main-estimate-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4),
              0 0 0 4px rgba(255, 215, 0, 0.15);
}

.main-estimate-btn:hover::before {
  left: 100%;
}

.main-estimate-btn:hover::after {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.main-estimate-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-text {
  font-size: 17px;
  font-weight: 700;
}

/* ===== CTA NOTE ENHANCED ===== */
.cta-note {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-note a {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.cta-note a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s var(--transition-smooth);
}

.cta-note a:hover {
  color: var(--gold-light);
}

.cta-note a:hover::after {
  width: 100%;
}

/* ===== HERO GALLERY PREMIUM ===== */
.hero-gallery {
  animation: fadeInRight 1s var(--transition-smooth) forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 450px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--glass-border);
  transition: all 0.5s var(--transition-smooth);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  transition: all 0.4s var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 60px rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.gallery-item:hover::before {
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-large {
  grid-column: 1 / -1;
  height: 240px;
}

.gallery-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(12px);
  color: var(--gold-primary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 2;
  transition: all 0.3s var(--transition-smooth);
}

.gallery-item:hover .gallery-label {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-4px);
}

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

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

/* ===== FLOATING PARTICLES (Optional Enhancement) ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 20s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== MODAL ENHANCEMENTS ===== */
.form-modal-overlay {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(8px);
}

.form-modal-card {
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-deep), var(--shadow-gold);
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  color: #666;
  font-size: 20px;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 1;
  padding: 0;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff6b6b;
  transform: rotate(90deg);
}

/* Form progress bar */
.progress-bar {
  height: 6px;
  background: var(--glass-bg);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--orange-accent));
  border-radius: 100px;
  transition: width 0.5s var(--transition-smooth);
}

/* Step title */
.step-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Project options */
.project-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  text-align: left;
}

.project-option:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(8px);
}

.project-option.selected {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.project-icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s var(--transition-smooth);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

/* Selector buttons */
.selector-btn {
  padding: 14px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.selector-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--text-primary);
}

.selector-btn.selected {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Form buttons */
.btn-next,
.btn-submit {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border: none;
  border-radius: 12px;
  color: var(--dark-bg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  padding: 16px 24px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.btn-back:hover {
  background: var(--glass-bg);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 991px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .single-cta-container {
    align-items: center;
  }

  .cta-note {
    justify-content: center;
  }

  .hero-gallery {
    width: 100%;
    max-width: 600px;
  }

  .gallery-grid {
    height: 380px;
  }

  .gallery-large {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .modern-hero {
    min-height: auto;
    padding: 20px 0 40px;
  }

  .hero-container {
    padding: 30px 20px;
  }

  .trust-badges {
    flex-wrap: wrap;
    gap: 12px;
  }

  .badge-logo {
    height: 40px;
  }

  .google-rating {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .main-estimate-btn {
    padding: 20px 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
  }

  .btn-icon {
    font-size: 24px;
  }

  .btn-text {
    font-size: 18px;
  }

  .gallery-grid {
    height: 320px;
    gap: 12px;
  }

  .gallery-large {
    height: 180px;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .gallery-label {
    padding: 8px 12px;
    font-size: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 24px 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .main-estimate-btn {
    padding: 18px 28px;
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery-large,
  .gallery-item {
    grid-column: 1;
    height: 180px;
  }

  .hero-gallery {
    display: none;
  }
}

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

  .hero-title .highlight {
    animation: none;
    background-size: 100% auto;
  }
}
