/* 
 * Hero Section Styles for Jan Gessenhardt Website
 * Enhanced for visual impact and conversion optimization
 */

:root {
  --primary-color: #1A365D;     /* Deep blue */
  --secondary-color: #3182CE;   /* Medium blue */
  --accent-color: #D69E2E;      /* Gold */
  --text-dark: #2D3748;         /* Dark gray for text */
  --text-light: #FFFFFF;        /* White for text on dark backgrounds */
  --background-light: #FFFFFF;  /* White background */
  --background-dark: #1A365D;   /* Dark blue background */
  --background-gray: #F7FAFC;   /* Light gray background */
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-standard: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 120px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: 700;
}

.hero-text h1 span {
  color: var(--accent-color);
  display: block;
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-standard);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  z-index: -1;
  transition: var(--transition-standard);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image:hover::before {
  top: -25px;
  right: -25px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  opacity: 0.7;
  transition: var(--transition-standard);
  cursor: pointer;
  z-index: 3;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.875rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--text-light);
  border-radius: 50%;
  position: relative;
  animation: bounce 2s infinite;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-text p {
    font-size: 1.125rem;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-image {
    max-width: 300px;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0 30px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    max-width: 250px;
  }
  
  .hero-image::before {
    display: none;
  }
}

/* High-contrast mode for accessibility */
@media (prefers-contrast: high) {
  .hero {
    background-color: #000;
  }
  
  .hero-text h1, .hero-text p {
    color: #fff;
  }
  
  .hero-text h1 span {
    color: #fff;
    text-decoration: underline;
  }
  
  .scroll-indicator, .scroll-arrow, .scroll-arrow::before {
    border-color: #fff;
  }
}
