/* Vertizone - Home Page Specific Styles */

/* HERO - FIXED ALIGNMENT WITH LARGER LOGO */
.hero {
  position: relative;
  height: calc(100vh - 90px);
  min-height: 800px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  box-sizing: border-box;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle 20s infinite linear;
}

.particle:nth-child(1) {
  width: 10px;
  height: 10px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  background: var(--accent-red);
}

.particle:nth-child(2) {
  width: 15px;
  height: 15px;
  top: 60%;
  left: 80%;
  animation-delay: 5s;
  background: var(--accent-teal);
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 40%;
  left: 30%;
  animation-delay: 10s;
  background: var(--accent-yellow);
}

.particle:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 70%;
  left: 40%;
  animation-delay: 15s;
  background: var(--accent-purple);
}

.particle:nth-child(5) {
  width: 6px;
  height: 6px;
  top: 30%;
  left: 70%;
  animation-delay: 20s;
  background: var(--accent-blue);
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-10px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -10px) rotate(270deg);
  }
}

/* Fixed Video Container */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* Fix aspect ratio */
@media (min-aspect-ratio: 16/9) {
  .video-wrapper {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-wrapper {
    width: auto;
    height: 100%;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  color: #fff;
  z-index: 3;
  padding: 0 64px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s ease forwards 0.5s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: -20px;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 32px;
  border-radius: 50px;
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
  z-index: 1002;
  pointer-events: auto;
}

.badge-text {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.badge-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(20px);
  animation: badgeGlow 3s infinite alternate;
}

@keyframes badgeGlow {
  0% { opacity: 0.2; }
  100% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.hero p {
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 160px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 160px;
  max-width: 180px;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-color, var(--primary-color));
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--stat-color, var(--primary-color));
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Mobile robot is DISABLED as requested */
@media (max-width: 768px) {
  .robot-container {
    display: none;
  }
}

/* Home Page Responsive - FIXED FOR MOBILE */
@media (max-width: 1200px) {
  .hero-content {
    padding: 0 40px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-badge {
    padding: 14px 28px;
    margin-bottom: 25px;
  }
  
  .stat-item {
    min-width: 150px;
    max-width: 170px;
  }
  
  .hero-stats {
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .hero p {
    font-size: 1.05rem;
    max-width: 600px;
  }
  
  .stat-number {
    font-size: 2.3rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
}

/* MOBILE FIXES - Issue 2: Fixed scrambled layout */
@media (max-width: 768px) {
  .hero {
    min-height: 700px;
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
    overflow: hidden;
  }
  
  .hero-content {
    padding: 30px 15px;
    margin-top: 0;
    justify-content: center;
    animation: heroFadeIn 0.8s ease forwards 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: calc(100vh - 120px);
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    padding: 0 10px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-badge {
    padding: 12px 24px;
    margin-bottom: 20px;
    width: auto;
    max-width: 85%;
    text-align: center;
  }
  
  .badge-text {
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 0 20px;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    font-size: 1rem;
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding: 0 15px;
    justify-content: center;
    width: 100%;
  }
  
  .stat-item {
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    padding: 15px 10px;
    margin: 0;
    flex: none;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Fix video for mobile */
  .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Ensure hero overlay covers properly */
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

/* FIX FOR VISUAL BREAK SECTION ON MOBILE - "Clarity. Intelligence. Impact." */
@media (max-width: 768px) {
  .visual-break {
    min-height: 250px;
    height: 40vh;
  }
  
  .visual-text {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    padding: 0 10px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .visual-word {
    font-size: 2rem;
    padding: 0 8px;
    margin: 0 2px;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
  }
  
  .visual-word::after {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 600px;
    padding-bottom: 30px;
  }
  
  .hero-content {
    padding: 20px 10px;
    min-height: calc(100vh - 100px);
  }
  
  .hero h1 {
    font-size: 1.6rem;
    padding: 0 5px;
  }
  
  .hero p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  
  .hero-badge {
    padding: 10px 20px;
    margin-bottom: 15px;
  }
  
  .badge-text {
    font-size: 0.8rem;
  }
  
  .hero-buttons {
    padding: 0 15px;
  }
  
  .hero-stats {
    gap: 12px;
    padding: 0 10px;
  }
  
  .stat-item {
    min-width: calc(50% - 12px);
    max-width: calc(50% - 12px);
    padding: 12px 8px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Extra small screens for visual break */
  .visual-text {
    font-size: 1.4rem;
    gap: 3px;
  }
  
  .visual-word {
    font-size: 1.7rem;
    padding: 0 6px;
  }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }
  
  .hero-content {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .hero-buttons {
    margin-top: 15px;
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-buttons a {
    min-width: 140px;
  }
  
  .hero-stats {
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .stat-item {
    min-width: calc(50% - 10px);
    padding: 10px;
  }
  
  /* Landscape visual break */
  .visual-break {
    height: 35vh;
    min-height: 200px;
  }
  
  .visual-text {
    font-size: 1.3rem;
  }
  
  .visual-word {
    font-size: 1.5rem;
    padding: 0 5px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .stat-item {
    min-width: 100%;
    max-width: 100%;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  /* Very small screens visual break */
  .visual-text {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 2px;
  }
  
  .visual-word {
    font-size: 1.4rem;
    padding: 0 4px;
    margin: 2px 0;
  }
}

/* Ensure proper spacing */
.hero-overlay {
  pointer-events: none;
}

.hero-video-container, .video-wrapper, .hero-video {
  pointer-events: none;
}