/* Hero Section Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(197, 75, 116, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(107, 70, 193, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-5xl);
  align-items: center;
  position: relative;
  z-index: 1;
 /* background: rgba(var(--overlay-hero-rgb), 0.5);*/
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-2xl);
  max-width: 500px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-2xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-xl);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cta-button::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.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
  color: var(--color-white);
}

.cta-button::after {
  content: '→';
  margin-left: var(--spacing-sm);
  transition: transform var(--transition-fast);
}

.cta-button:hover::after {
  transform: translateX(4px);
}

/* Hero Visual - Code Preview */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease-out;
}

.code-preview {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.code-preview:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.code-dots {
  display: flex;
  gap: var(--spacing-sm);
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  display: block;
}

.code-dots span:nth-child(1) {
  background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
  background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background-color: #27ca3f;
}

.code-title {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.code-content {
  background-color: #1a202c;
  padding: var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: #e2e8f0;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}

.code-content code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Syntax highlighting */
.code-content .token.comment {
  color: #718096;
}

.code-content .token.keyword {
  color: var(--color-primary-light);
}

.code-content .token.string {
  color: #68d391;
}

.code-content .token.function {
  color: #63b3ed;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.code-preview {
  animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .hero-container {
    gap: var(--spacing-4xl);
  }
  
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding-top: 60px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin: 0 auto var(--spacing-xl);
  }
  
  .cta-button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
  }
  
  .code-preview {
    max-width: 400px;
    transform: none;
  }
  
  .code-preview:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 70px;
  }
  
  .hero-container {
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-2xl);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .code-preview {
    max-width: 100%;
  }
  
  .code-content {
    font-size: var(--font-size-xs);
    padding: var(--spacing-md);
  }
}

@media (min-width: 1281px) and (max-width: 1920px) {

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
}

