/**
 * Front Page Styles
 * QLYS Theme
 */

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0d47a1 40%, #1a5fc7 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Geometric decorations */
.geo {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.geo-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.geo-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  border-radius: 20px;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.geo-4 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  border-radius: 8px;
  transform: rotate(15deg);
  animation: float 7s ease-in-out infinite reverse;
}

.geo-5 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  right: 25%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero entrance animations */
.hero-title,
.hero-subtitle,
.hero-desc,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Highlights Section
   ============================================ */
.highlights-section {
  padding: 80px 0;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
  padding: 80px 0;
}

.service-card {
  text-align: left;
  padding: 40px 30px;
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.service-link:hover {
  letter-spacing: 1px;
}

/* ============================================
   Cases Section
   ============================================ */
.cases-section {
  padding: 80px 0;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.case-image {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 95, 199, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-overlay h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.case-info {
  padding: 20px;
}

.case-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.case-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cases-more {
  text-align: center;
  margin-top: 50px;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .hero-desc {
    font-size: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .geo-1 {
    width: 250px;
    height: 250px;
  }
  
  .geo-2 {
    width: 180px;
    height: 180px;
  }
  
  .geo-3 {
    width: 80px;
    height: 80px;
  }
  
  .highlights-section,
  .services-section,
  .cases-section {
    padding: 50px 0;
  }
  
  .service-card {
    padding: 30px 24px;
  }
  
  .case-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
}
