/* ========================================
   GUDIÑO DEV — Sections
   Hero, Services, Projects, About, Stack, Contact
   ======================================== */

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Offset for fixed navbar */
  background: var(--gradient-dark);
  overflow: hidden;
}

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

.hero-content {
  max-width: 700px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  pointer-events: none;
}

/* Watermark decorativa */
.hero-watermark {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 700;
  color: var(--color-orange);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  letter-spacing: -5px;
  line-height: 1;
}

/* Grid decorativo */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-orange-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-orange-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--color-orange);
  border-radius: 15px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

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

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* === SERVICES SECTION === */
.services {
  background: var(--bg-primary);
}

/* === PROJECTS SECTION === */
.projects {
  background: var(--bg-secondary);
}

/* === ABOUT SECTION === */
.about {
  background: var(--bg-primary);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--color-orange);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-orange);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Differentiators */
.differentiator-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.differentiator-item:hover {
  border-color: var(--color-orange);
  transform: translateX(4px);
}

.differentiator-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.differentiator-item .text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === STACK SECTION === */
.stack {
  background: var(--bg-secondary);
}

.stack-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* === CONTACT SECTION === */
.contact {
  background: var(--bg-primary);
}

/* === ANIMATIONS ON SCROLL === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }
