/* Remove any default margins/padding that might cause spacing issues */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* Ensure no spacing between header and hero */
#hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Fixed the container sizing issue */
.hero-container {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  z-index: 2;
}

.hero-row {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left content section - reduced to 30% to give right side more space */
.hero-left {
  flex: 0 0 30%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(220, 112, 28, 0.95), rgba(202, 95, 12, 0.9)), 
              linear-gradient(45deg, #1c1c1c, #2f2f2f);
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeInLeft 1s ease-out;
}

/* Add subtle overlay patterns */
.hero-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(220, 112, 28, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Right video section - increased to 70% width */
.hero-right {
  flex: 0 0 70%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  animation: fadeInRight 1s ease-out 0.3s both;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

/* Updated text styles for better contrast on dark background */
.hero-left h1 {
  margin: 0 0 30px 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  font-family: "Raleway", sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-left h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
  border-radius: 2px;
}

.hero-left p {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-buttons .btn {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
}

.hero-buttons .btn::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.6s;
}

.hero-buttons .btn:hover::before {
  left: 100%;
}

.btn-get-started {
  background: linear-gradient(135deg, #ffbd60, #ffbd60);
  color: #8b4513;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transform: translateY(0);
}

.btn-get-started:hover {
  background: linear-gradient(135deg, #fce250, #f9ca48);
  color: #654321;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.btn-our-products {
  background: linear-gradient(135deg, #eb9047, #eeaa72);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-our-products:hover {
  background: linear-gradient(135deg, #ffd1ab, #f3c6a1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: "Raleway", sans-serif;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.2;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .hero-left {
    flex: 0 0 35%;
    padding: 50px;
  }
  
  .hero-right {
    flex: 0 0 65%;
  }
  
  .hero-left h1 {
    font-size: clamp(28px, 4vw, 42px);
  }
  
  .hero-left p {
    font-size: clamp(15px, 2vw, 17px);
    padding: 20px;
  }
}

@media (max-width: 991.98px) {
  #hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .hero-left,
  .hero-right {
    flex: 1 1 100%;
  }
  
  .hero-left {
    padding: 60px 40px;
    text-align: center;
    order: 2;
  }
  
  .hero-right {
    height: 50vh;
    min-height: 300px;
    order: 1;
  }
  
  .hero-left h1 {
    font-size: clamp(24px, 5vw, 36px);
  }
  
  .hero-left h1::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .hero-buttons .btn {
    width: auto;
    min-width: 160px;
    flex: 0 0 auto;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-left {
    padding: 40px 20px;
  }
  
  .hero-right {
    height: 40vh;
    min-height: 250px;
  }
  
  .hero-left h1 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 20px;
  }
  
  .hero-left p {
    font-size: clamp(14px, 2vw, 16px);
    margin-bottom: 30px;
    padding: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 25px;
    font-size: 14px;
  }
  
  .hero-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero-left {
    padding: 30px 15px;
  }
  
  .hero-right {
    height: 35vh;
    min-height: 200px;
  }
  
  .hero-left h1 {
    font-size: clamp(20px, 6vw, 28px);
  }
  
  .hero-left p {
    font-size: clamp(13px, 3vw, 15px);
    padding: 15px;
  }
  
  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .hero-stats {
    gap: 10px;
  }
  
  .stat-item {
    padding: 10px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
}

/* Additional styles for demo content */
#content-intro {
  background: #f8f9fa !important;
  padding: 60px 0;
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e67a21;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(230, 122, 33, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: #d46911;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 122, 33, 0.4);
}

/* Utility classes to remove unwanted spacing */
.no-margin { margin: 0 !important; }
.no-padding { padding: 0 !important; }

/* If you have a specific header class, add this rule */
header + #hero,
.header + #hero,
nav + #hero {
  margin-top: 0 !important;
}