#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 80px 100px;
  background: transparent;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 60px;
  z-index: 10;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* CODE WINDOW STYLES */
.code-window {
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(139, 92, 246, 0.15);
  animation: floatWindow 6s ease-in-out infinite;
  overflow: hidden;
}

.window-header {
  background: var(--glass-shimmer);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--primary-light);
  opacity: 0.8;
}

.window-body {
  padding: 25px;
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

/* Syntax Highlighting */
.keyword { color: var(--accent); }
.variable { color: var(--primary-light); }
.property { color: var(--primary); }
.string { color: var(--accent-light); }
.function { color: var(--accent-dark); }

@keyframes floatWindow {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Floating Hero Icons Background */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.15;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
  animation: floatIcon 8s ease-in-out infinite;
}

.icon-1 { top: 15%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 60%; left: 15%; animation-delay: -2s; font-size: 4rem; }
.icon-3 { top: 20%; right: 15%; animation-delay: -4s; font-size: 3.5rem; opacity: 0.1; }
.icon-4 { top: 70%; right: 10%; animation-delay: -6s; font-size: 4.5rem; opacity: 0.08; }
.icon-5 { top: 85%; left: 40%; animation-delay: -3s; font-size: 2.5rem; }
.icon-6 { top: 10%; left: 50%; animation-delay: -7s; font-size: 2rem; opacity: 0.2; }

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.hero-badge {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  background-size: 200% auto;
  animation: badgeShimmer 3s linear infinite;
}

@keyframes badgeShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

#hero h2 {
  position: relative;
  z-index: 10;
  font-family: "Cinzel", serif;
  font-size: 3rem;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
  line-height: 1.2;
  margin-bottom: 5px;
  opacity: 0;
  animation: premiumEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

#hero h2 .highlight {
  color: transparent;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 40px rgba(167, 139, 250, 0.4);
  position: relative;
  display: inline-block;
}

.hero-role {
  position: relative;
  z-index: 10;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: var(--primary-light);
  letter-spacing: 2px;
  margin: 0 0 5px;
  opacity: 0;
  animation: premiumEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.cursor {
  display: inline-block;
  color: #8b5cf6;
  animation: blink 0.7s ease infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-description {
  position: relative;
  z-index: 10;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  max-width: 550px;
  color: #888888;
  line-height: 1.8;
  opacity: 0;
  animation: premiumEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

.hero-buttons {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn {
  font-family: "Inter", sans-serif;
  padding: 12px 35px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.25));
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.6s ease;
}

.btn:hover::before { left: 100%; }

.btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(109, 40, 217, 0.55));
  border-color: #d8b4fe;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4), 0 0 15px rgba(167, 139, 250, 0.2);
}

.btn-outline {
  background: transparent;
  color: #888888;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 1.5s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text { align-items: center; text-align: center; }
  #hero { padding: 100px 40px; }
  .hero-description { max-width: 600px; }
  .code-window { max-width: 420px; }
}

@media (max-width: 768px) {
  .hero-visual { width: 100%; max-width: 360px; }
  .code-window { max-width: 100%; font-size: 0.8rem; backdrop-filter: blur(10px); }
  .window-body { padding: 16px; font-size: 0.78rem; border-radius: 0; }
  .hamburger { display: flex; }
  #hero { padding: 80px 20px 100px; text-align: center; }
  #hero h2 { font-size: clamp(1.5rem, 7vw, 2.5rem); letter-spacing: 1px; }
  .hero-description { font-size: 0.9rem; }
  .hero-buttons { justify-content: center; }
  .btn { width: 100%; text-align: center; backdrop-filter: none; }
  .hero-badge { backdrop-filter: none; background: rgba(139, 92, 246, 0.12); }
  .floating-icons { display: none; }
}

@media (max-width: 480px) {
  #hero h2 { font-size: 1.6rem; }
  .hero-badge { font-size: 0.75rem; }
}
