/* ===== Modern Hero Section ===== */
.hero {
  position: relative;
  background-image: url('../assets/hero.jpeg');
  background-size: 100% 100%;       /* <-- SHOW FULL IMAGE */
  background-repeat: no-repeat; 
  background-position: center top;
  background-color: #000;         /* fallback behind image */
  min-height: 100vh;              /* keeps hero large */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  color: white;
}

.hero .hero-intro {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--space-lg) auto;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--space-2xl) auto;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.hero .button {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border: 2px solid transparent;
}

.hero .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 0.5s;
}

.hero .button:hover::before {
  left: 100%;
}

.hero .button.primary {
  background: var(--gradient-primary);
  color: white;
  border-color: rgba(59, 130, 246, 0.5);
  font-size: 1.2rem;
  padding: var(--space-lg) var(--space-2xl);
  font-weight: 700;
  min-width: 280px;
}

.hero .button.primary:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

/* How it works section in hero */
.hero .how-it-works-hero {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero .how-it-works-hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero .how-it-works-hero .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.hero .how-it-works-hero .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero .how-it-works-hero .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero .how-it-works-hero .step-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: white;
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero .container {
  animation: fadeInUp 0.8s ease-out, float 3s ease-in-out infinite;
}

/* ===== Responsive Design ===== */
/* Large Desktop */
@media (min-width: 1200px) {
  .hero {
    min-height: 90vh;
  }

  .hero > .container {
    padding: var(--space-3xl) var(--space-xl);
  }

  .hero h1 {
    font-size: 4.5rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll; /* Disable fixed background on tablets for better performance */
  }

  .hero > .container {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 8vw, 3.5rem);
  }

  .hero .hero-intro,
  .hero p {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
  }

  .hero .actions {
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .hero .button {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
  }

  .hero .how-it-works-hero {
    margin-top: var(--space-2xl);
    padding: var(--space-xl) var(--space-lg);
  }

  .hero .how-it-works-hero .steps {
    gap: var(--space-lg);
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: var(--space-xl) 0;
  }

  .hero > .container {
    padding: var(--space-xl) var(--space-lg);
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
  }

  .hero .actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }

  .hero .button {
    flex: 1;
    max-width: 200px;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }
}

/* Mobile Portrait */
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    background-attachment: scroll;
    background-size: 100% 70%;
    background-position: center top;
  }

  .hero::before {
 
  }

  .hero > .container {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
  }

  .hero .hero-intro,
  .hero p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    max-width: none;
  }

  .hero .actions {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-2xl);
  }

  .hero .button {
    width: 100%;
    max-width: 320px;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    justify-content: center;
  }

  .hero .how-it-works-hero {
    margin-top: var(--space-2xl);
    padding: var(--space-xl) var(--space-md);
  }

  .hero .how-it-works-hero .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero .how-it-works-hero .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .hero > .container {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: var(--space-sm);
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
  }

  .hero .button {
    max-width: 280px;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .hero .button {
    min-height: 52px;
  }

  .hero .button:hover {
    transform: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero .container {
    animation: fadeInUp 0.8s ease-out;
  }

  .hero .button:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero::before {
    background: rgba(0, 0, 0, 0.8);
  }

  .hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  .hero p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
}