/* hero-section.css */

:root {
  --primary: #e63946;
  --primary-dark: #b91c1c;
  --secondary: #2563eb;
  --secondary-dark: #1e40af;
  --accent: #f97316;
  --text-dark: #111827;
  --text-light: #374151;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --gradient: linear-gradient(135deg, #e63946, #f97316, #2563eb);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  overflow: hidden;
  background: var(--background);
}

/* Animated geometric background */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, rgba(230, 57, 70, 0.05) 25%, transparent 25%, transparent 75%, rgba(230, 57, 70, 0.05) 75%),
    linear-gradient(-45deg, rgba(37, 99, 235, 0.05) 25%, transparent 25%, transparent 75%, rgba(37, 99, 235, 0.05) 75%);
  background-size: 40px 40px;
  animation: movePattern 17s linear infinite;
  z-index: 0;
}

@keyframes movePattern {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

/* Floating elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.float-1 {
  width: 100px;
  height: 100px;
  background: var(--primary);
  top: 20%;
  left: 5%;
  animation: floatElement 5s ease-in-out infinite;
}

.float-2 {
  width: 150px;
  height: 150px;
  background: var(--secondary);
  bottom: 10%;
  right: 10%;
  animation: floatElement 18s ease-in-out infinite 2s;
}

.float-3 {
  width: 80px;
  height: 80px;
  background: var(--accent);
  top: 60%;
  left: 15%;
  animation: floatElement 12s ease-in-out infinite 1s;
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

/* Left Content */
.hero-content {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  z-index: 2;
  position: relative;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-dark);
}

.hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  color: var(--text-light);
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--primary);
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.hero-buttons a {
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-dark);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--secondary);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Right Image */
.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  z-index: 2;
  position: relative;
  padding-left: 30px;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: var(--gradient);
  opacity: 1.1;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-image img {
  max-width: 80%;
  margin-top: 22px;
  height: auto;
  border-radius: 16px;
  animation: float 6s ease-in-out infinite;
  transition: all 0.5s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Stats Section */
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 3px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 0 3%;
  }
  
  .hero-stats {
    gap: 28px;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    height: auto;
    padding: 6px 2%;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-top: 10px;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .hero-content p {
    padding-left: 0;
    border-left: none;
    padding-top: 1px;
    border-top: 3px solid var(--primary);
    margin-bottom: 24px;
  }
  
  .hero-buttons {
    justify-content: center;
    margin-top: 2px;
    flex-direction: row;
  }
  
  .hero-stats {
    justify-content: center;
    margin-top: 12px;
    padding-top: 14px;
    gap: 20px;
  }
  
  .hero-image {
    padding-left: 0;
  }
  
  .hero-image::before {
    width: 300px;
    height: 300px;
  }
  
  .float-1, .float-2, .float-3 {
    display: none;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 15px;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .hero-buttons a {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4px 2%;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Buttons in a single row on mobile */
  .hero-buttons {
    flex-direction: row;
    gap: 12px;
  }
  
  .hero-buttons a {
    padding: 12px 10px;
    min-width: 120px;
    font-size: 0.85rem;
  }
  
  /* Mobile stats in a single row */
  .hero-stats {
    flex-direction: row;
    gap: 12px;
    margin-top: 30px;
  }
  
  .stat-item {
    text-align: center;
    padding: 0 5px;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .hero-image::before {
    width: 350px;
    height: 250px;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    gap: 8px;
  }
  
  .stat-value {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .hero-buttons {
    gap: 8px;
  }
  
  .hero-buttons a {
    padding: 10px 12px;
    min-width: 110px;
    font-size: 0.8rem;
  }
  
  .hero-buttons a i {
    margin-right: 4px;
  }
}