/*--------------------------------------------------------------
# Hero Section - Fixed Styles
--------------------------------------------------------------*/

/* Base Hero Section */
#hero {
  background: linear-gradient(135deg, #37517e 0%, #2c4169 50%, #1e2e54 100%);
  position: relative;
  overflow: hidden;
  /* FIXED: Remove min-height and use flexible height */
  min-height: auto;
  display: flex;
  align-items: center;
  /* FIXED: Reduced top padding for tighter layout */
  padding-top: 40px;
  padding-bottom: 60px;
  /* FIXED: Add margin-top to push content below header */
  margin-top: 70px;
  /* Height of your header */
  /* FIXED: Ensure hero is below header z-index */
  z-index: 1;
}

/* FIXED: Header positioning to work with hero section */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  /* Updated to match header-navigation.css */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* FIXED: Ensure body accounts for fixed header */
body {
  padding-top: 0;
  /* No body padding needed with margin-top approach */
}

/* Animated Background Pattern */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: heroPattern 30s linear infinite;
}

@keyframes heroPattern {
  0% {
    transform: translateX(0) translateY(0);
  }

  100% {
    transform: translateX(60px) translateY(60px);
  }
}

/* Hero Content Layout */
#hero .row {
  margin: 0;
  align-items: center;
  text-align: center;
  /* FIXED: Ensure content is properly positioned */
  position: relative;
  z-index: 2;
}

#hero .container {
  padding-left: 20px;
  padding-right: 20px;
  /* FIXED: Ensure container is properly positioned */
  position: relative;
  z-index: 2;
}

#hero .col-lg-6 {
  padding: 0 15px;
  margin-bottom: 30px;
}

/* Hero Badge */
.hero-badge {
  margin-bottom: 25px;
  display: inline-block;
}

.hero-badge .badge-text {
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(71, 178, 228, 0.4);
  animation: pulse-glow 3s ease-in-out infinite alternate;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 10px 30px rgba(71, 178, 228, 0.4);
    transform: translateY(0);
  }

  100% {
    box-shadow: 0 15px 40px rgba(71, 178, 228, 0.6);
    transform: translateY(-2px);
  }
}

/* Hero Typography */
#hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #47b2e4, #73c5eb, #47b2e4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  animation: gradient-flow 4s ease-in-out infinite;
}

@keyframes gradient-flow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#hero h2 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 90%;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.btn-get-started,
.btn-learn-more {
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.btn-get-started {
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  color: #fff;
  box-shadow: 0 10px 30px rgba(71, 178, 228, 0.4);
}

.btn-get-started:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(71, 178, 228, 0.5);
  color: #fff;
  text-decoration: none;
}

.btn-learn-more {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-learn-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Hero Image */
.hero-img-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.hero-main-img {
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Featured Product Card */
.hero-featured-product {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  max-width: 100%;
}

.hero-featured-product:hover {
  transform: translateY(-5px);
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.featured {
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  color: #fff;
  box-shadow: 0 4px 15px rgba(71, 178, 228, 0.4);
}

.product-badge.coming-soon {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.product-details {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.product-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(71, 178, 228, 0.3);
}

.product-icon i {
  font-size: 22px;
  color: #fff;
}

.product-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.product-cta {
  text-align: center;
}

.btn-notify-me {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-notify-me:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
  color: #fff;
  text-decoration: none;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 24px;
  color: #47b2e4;
}

.floating-card span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.card-2 {
  top: 60%;
  right: -15%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 20%;
  left: -5%;
  animation-delay: 4s;
}

/* Desktop Responsive (992px+) */
@media (min-width: 992px) {
  #hero {
    text-align: left;
    min-height: auto;
    /* FIXED: Reduced desktop padding for tighter layout */
    padding-top: 60px;
    /* Reduced from 100px */
    padding-bottom: 60px;
    /* Reduced from 80px */
    margin-top: 70px;
    /* Keep margin-top for header clearance */
  }

  #hero .row {
    text-align: left;
    height: auto;
  }

  #hero .container {
    padding-left: 15px;
    padding-right: 15px;
    height: auto;
  }

  #hero .col-lg-6:first-child {
    order: 1;
    display: flex;
    align-items: center;
  }

  #hero .col-lg-6:last-child {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #hero h1 {
    font-size: 3.5rem;
    text-align: left;
    line-height: 1.2;
  }

  #hero h2 {
    font-size: 1.1rem;
    text-align: left;
    max-width: 100%;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .hero-featured-product {
    margin: 25px 0;
    padding: 20px;
    max-width: 100%;
    text-align: left;
  }

  .product-details {
    justify-content: flex-start;
    text-align: left;
  }

  .product-badges {
    justify-content: flex-start;
  }

  .product-cta {
    text-align: left;
  }

  .hero-img-container {
    text-align: center;
  }

  .hero-main-img {
    max-width: 90%;
    width: auto;
    height: auto;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  #hero h1 {
    font-size: 4rem;
  }

  #hero h2 {
    font-size: 1.2rem;
  }

  .hero-main-img {
    max-width: 100%;
  }
}

/* Tablet (991px and below) */
@media (max-width: 991px) {
  #hero {
    text-align: center;
    min-height: auto;
    /* FIXED: Reduced tablet padding for tighter layout */
    padding-top: 50px;
    /* Reduced from 100px */
    padding-bottom: 50px;
    /* Reduced from 60px */
    margin-top: 70px;
    /* Keep margin-top for header clearance */
  }

  #hero .row {
    flex-direction: column-reverse;
  }

  #hero .col-lg-6 {
    margin-bottom: 20px;
  }

  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  #hero h2 {
    font-size: 1rem;
    line-height: 1.6;
  }

  .floating-elements {
    display: none;
  }

  .hero-actions {
    justify-content: center !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-featured-product {
    margin: 20px 0;
    padding: 20px;
    max-width: 100%;
    text-align: center;
  }

  .product-details {
    justify-content: center;
  }

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

  .product-cta {
    text-align: center;
  }

  .hero-main-img {
    max-width: 80%;
    width: auto;
    height: auto;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  #hero {
    /* FIXED: Reduced mobile padding for tighter layout */
    padding-top: 40px;
    /* Reduced from 120px */
    padding-bottom: 60px;
    /* Reduced from 80px */
    margin-top: 70px;
    /* Keep margin-top for header clearance */
  }

  #hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #hero h2 {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-badge .badge-text {
    font-size: 10px;
    padding: 8px 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .hero-featured-product {
    margin: 15px 0;
    padding: 16px;
  }

  .product-details {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .product-icon {
    width: 40px;
    height: 40px;
  }

  .product-info h4 {
    font-size: 18px;
  }

  .product-info p {
    font-size: 13px;
  }

  .hero-main-img {
    max-width: 90%;
  }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
  #hero {
    /* FIXED: Reduced small mobile padding for tighter layout */
    padding-top: 30px;
    /* Reduced from 140px */
    padding-bottom: 50px;
    /* Reduced from 100px */
    margin-top: 70px;
    /* Keep margin-top for header clearance */
  }

  #hero h1 {
    font-size: 1.75rem;
  }

  #hero h2 {
    font-size: 0.85rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .btn-get-started,
  .btn-learn-more {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 12px;
  }

  .hero-main-img {
    max-width: 95%;
  }
}

/* ADDITIONAL FIXES */

/* Fix for navbar overlap issue */
.main-content {
  padding-top: 0;
  margin-top: 0;
}

/* Alternative fix: If you want to use scroll-padding-top instead */
html {
  scroll-padding-top: 80px;
  /* Adjust based on navbar height */
}

/* FIXED: Remove problematic min-height rules for mobile */
/* Use content-based height instead of viewport height */
#hero {
  /* Remove min-height: 100vh and 100svh */
  height: auto;
  min-height: auto;
}

/* Ensure proper stacking order */
.navbar {
  z-index: 1000;
}

#hero {
  z-index: 1;
  position: relative;
}

/* MOBILE VIEWPORT FIX: Ensure hero content is always visible */
@media (max-width: 768px) {
  #hero {
    /* Force content-based height on mobile */
    min-height: auto !important;
    height: auto !important;
    /* Ensure sufficient space for all content */
    padding-top: 40px !important;
    padding-bottom: 60px !important;
  }

  /* Ensure body doesn't have hidden overflow */
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Make sure hero content container has proper spacing */
  #hero .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* Ensure buttons are properly spaced */
  .hero-actions {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  /* Ensure product card has proper spacing */
  .hero-featured-product {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
  }
}

/* ADDITIONAL MOBILE FIXES FOR CUTOFF ISSUES */
@media (max-width: 480px) {
  #hero {
    /* Reduced padding for tighter layout on very small devices */
    padding-top: 30px !important;
    padding-bottom: 50px !important;
    margin-top: 80px !important;
    /* Account for larger mobile headers */
  }

  /* Ensure all hero content has proper spacing */
  #hero h1 {
    margin-bottom: 15px !important;
  }

  #hero h2 {
    margin-bottom: 20px !important;
  }

  .hero-badge {
    margin-bottom: 20px !important;
  }

  .hero-featured-product {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
  }

  .hero-actions {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }
}

/* Fix for devices with very small heights */
@media (max-height: 600px) {
  #hero {
    padding-top: 30px !important;
    /* Reduced for short screens */
    padding-bottom: 40px !important;
    /* Reduced for short screens */
  }

  #hero h1 {
    font-size: 1.5rem !important;
  }

  #hero h2 {
    font-size: 0.8rem !important;
  }

  .hero-featured-product {
    padding: 12px !important;
  }
}

/* Ensure content never gets hidden behind mobile browser UI */
@media (max-width: 768px) {
  #hero {
    /* Use a safe minimum height that accounts for mobile browser UI */
    min-height: auto !important;
    padding-top: max(40px, 8vh) !important;
    padding-bottom: max(60px, 10vh) !important;
  }
}

/*--------------------------------------------------------------
# Hero Trust Indicators
--------------------------------------------------------------*/
.hero-trust-indicators {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #47b2e4, #73c5eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.trust-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 5px;
}

.trust-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 992px) {
  .hero-trust-indicators {
    justify-content: flex-start;
    gap: 40px;
  }

  .trust-number {
    font-size: 48px;
  }

  .trust-label {
    font-size: 14px;
  }

  .trust-divider {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .hero-trust-indicators {
    justify-content: center;
    gap: 15px;
  }

  .trust-number {
    font-size: 28px;
  }

  .trust-label {
    font-size: 11px;
  }

  .trust-divider {
    height: 40px;
  }
}

/*--------------------------------------------------------------
# Floating Tech Badges
--------------------------------------------------------------*/
.floating-tech-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.floating-tech-badge i {
  font-size: 24px;
  color: #47b2e4;
}

.floating-tech-badge span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-ai {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.badge-iot {
  top: 50%;
  left: -5%;
  animation-delay: 2s;
}

.badge-data {
  bottom: 15%;
  right: 10%;
  animation-delay: 4s;
}

@media (max-width: 991px) {
  .floating-tech-badge {
    display: none;
  }
}

@media (min-width: 992px) {
  .badge-ai {
    top: 5%;
    right: 0;
  }

  .badge-iot {
    top: 55%;
    left: -8%;
  }

  .badge-data {
    bottom: 10%;
    right: 5%;
  }
}