/* Hero Section Styles */
.hero {
  min-height: 80vh; /* Reduced from 100vh to 80vh */
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-tertiary) 50%,
    var(--bg-tertiary) 100%
  );
  overflow: hidden;
  padding: 140px 0; /* Added padding for better spacing */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shadow) 0%, var(--shadow) 100%);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.shape:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 10px 25px var(--shadow);
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-1 i {
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-2 i {
  font-size: 2.5rem;
  color: var(--accent-secondary);
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 30%;
  animation-delay: 4s;
}

.shape-3 i {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  left: 20%;
  animation-delay: 1s;
}

.shape-4 i {
  font-size: 2rem;
  color: var(--accent-secondary);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  color: var(--text-primary);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
}
.title-line:nth-child(2) {
  animation-delay: 0.4s;
}
.title-line:nth-child(3) {
  animation-delay: 0.6s;
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease 0.8s forwards;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease 1s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease 1.2s forwards;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease 1.4s forwards;
  box-shadow: 0 20px 40px var(--shadow);
}

.window-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background: #ff5f57;
}
.minimize {
  background: #ffbd2e;
}
.maximize {
  background: #28ca42;
}

.window-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.window-content {
  padding: 20px;
  font-family: "Fira Code", "Monaco", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 2s;
}
.code-line:nth-child(2) {
  animation-delay: 2.2s;
}
.code-line:nth-child(3) {
  animation-delay: 2.4s;
}
.code-line:nth-child(4) {
  animation-delay: 2.6s;
}
.code-line:nth-child(5) {
  animation-delay: 2.8s;
}
.code-line:nth-child(6) {
  animation-delay: 3s;
}
.code-line:nth-child(7) {
  animation-delay: 3.2s;
}

.indent {
  padding-left: 20px;
}

.code-keyword {
  color: #c792ea;
}
.code-variable {
  color: #82aaff;
}
.code-operator {
  color: #89ddff;
}
.code-string {
  color: #c3e88d;
}
.code-bracket {
  color: #f78c6c;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid #667eea;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .code-window {
    max-width: 100%;
    margin-top: 2rem;
  }

  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }
}
