/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== ANIMATED BACKGROUND ===== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

/* SVG Background */
.hero-svg-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    object-fit: cover;
    opacity: 0.4;
    animation: svgFloat 20s ease-in-out infinite;
    filter: brightness(0.8);
}

@keyframes svgFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
    }
}

.svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Floating particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-teal);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 0;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ===== HERO TITLE ===== */
.hero-title {
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

.title-line {
    display: block;
    margin-bottom: 0.3rem;
}

.highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* ===== HERO DESCRIPTION ===== */
.hero-description {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-buttons .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.hero-buttons .btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

/* ===== TRUST INDICATORS ===== */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 15px;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.1);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 217, 213, 0.1);
    border-color: rgba(0, 217, 213, 0.3);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 1s ease-out 1s backwards;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--primary-teal);
    border-radius: 15px;
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-teal);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.scroll-indicator p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        padding-top: 70px;
    }
    
    .hero-title {
        letter-spacing: -1px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 80px;
        padding-bottom: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-svg-background {
        width: 140%;
        height: 140%;
        opacity: 0.3;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATED BUTTON (from Uiverse.io by ilkhoeri) ===== */
.button {
  --h-button: 48px;
  --w-button: 180px;
  --round: 0.75rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  background: radial-gradient(
      65.28% 65.28% at 50% 100%,
      rgba(0, 217, 213, 0.8) 0%,
      rgba(0, 217, 213, 0) 100%
    ),
    linear-gradient(0deg, #00d9d5, #00d9d5);
  border-radius: var(--round);
  border: none;
  outline: none;
  padding: 1.2rem 3rem;
  min-width: 200px;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  inset: var(--space);
  transition: all 0.5s ease-in-out;
  border-radius: calc(var(--round) - var(--space));
  z-index: 0;
}

.button::before {
  --space: 1px;
  background: linear-gradient(
    177.95deg,
    rgba(255, 255, 255, 0.19) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.button::after {
  --space: 2px;
  background: radial-gradient(
      65.28% 65.28% at 50% 100%,
      rgba(14, 206, 65, 0.8) 0%,
      rgba(0, 217, 213, 0) 100%
    ),
    linear-gradient(0deg, #050f0e, #00d9d5);
}

.button:active {
  transform: scale(0.95);
}

.button:hover {
  background: radial-gradient(
      65.28% 65.28% at 50% 100%,
      rgba(0, 217, 213, 0.9) 0%,
      rgba(0, 217, 213, 0) 100%
    ),
    linear-gradient(0deg, #00b8b5, #00b8b5);
}

.fold {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  height: 1rem;
  width: 1rem;
  display: inline-block;
  transition: all 0.5s ease-in-out;
  background: radial-gradient(
    100% 75% at 55%,
    rgba(0, 217, 213, 0.8) 0%,
    rgba(0, 217, 213, 0) 100%
  );
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: 0.5rem;
  border-top-right-radius: var(--round);
}

.fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150%;
  height: 150%;
  transform: rotate(45deg) translateX(0%) translateY(-18px);
  background-color: #e8e8e8;
  pointer-events: none;
}

.button:hover .fold {
  margin-top: -1rem;
  margin-right: -1rem;
}

.points_wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.points_wrapper .point {
  bottom: -10px;
  position: absolute;
  animation: floating-points infinite ease-in-out;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
}

@keyframes floating-points {
  0% {
    transform: translateY(0);
  }
  85% {
    opacity: 0;
  }
  100% {
    transform: translateY(-55px);
    opacity: 0;
  }
}

.points_wrapper .point:nth-child(1) {
  left: 10%;
  opacity: 1;
  animation-duration: 2.35s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(2) {
  left: 30%;
  opacity: 0.7;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}

.points_wrapper .point:nth-child(3) {
  left: 25%;
  opacity: 0.8;
  animation-duration: 2.2s;
  animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(4) {
  left: 44%;
  opacity: 0.6;
  animation-duration: 2.05s;
}

.points_wrapper .point:nth-child(5) {
  left: 50%;
  opacity: 1;
  animation-duration: 1.9s;
}

.points_wrapper .point:nth-child(6) {
  left: 75%;
  opacity: 0.5;
  animation-duration: 1.5s;
  animation-delay: 1.5s;
}

.points_wrapper .point:nth-child(7) {
  left: 88%;
  opacity: 0.9;
  animation-duration: 2.2s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(8) {
  left: 58%;
  opacity: 0.8;
  animation-duration: 2.25s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(9) {
  left: 98%;
  opacity: 0.6;
  animation-duration: 2.6s;
  animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(10) {
  left: 65%;
  opacity: 1;
  animation-duration: 2.5s;
  animation-delay: 0.2s;
}

.inner {
  z-index: 2;
  gap: 6px;
  position: relative;
  width: 100%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease-in-out;
}

.inner svg.icon {
  width: 18px;
  height: 18px;
  transition: fill 0.1s linear;
}

.button:focus svg.icon {
  fill: white;
}

.button:hover svg.icon {
  fill: transparent;
  animation:
    dasharray 1s linear forwards,
    filled 0.1s linear forwards 0.95s;
}

@keyframes dasharray {
  from {
    stroke-dasharray: 0 0 0 0;
  }
  to {
    stroke-dasharray: 68 68 0 0;
  }
}

@keyframes filled {
  to {
    fill: white;
  }
}

/* Responsive styles for button */
@media (max-width: 768px) {
  .button {
    width: 100%;
    min-width: auto;
    padding: 1rem 2rem;
  }
  
  .inner {
    font-size: 1rem;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== TEXT CHANGE ON HOVER FOR GET STARTED BUTTON ===== */
.btn-text-change {
    position: relative;
    overflow: hidden;
}

.btn-text-default,
.btn-text-hover {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-text-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
}

.btn-text-change:hover .btn-text-default {
    transform: translateY(-100%);
    opacity: 0;
}

.btn-text-change:hover .btn-text-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}
/* ===== SCROLL ANIMATIONS ===== */
.hero-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}