/* ═══════════════════════════════════════════════════════════════
   AiMateurs — sections.css
   Hero · Services · About · Process · Portfolio · Contact · Footer
═══════════════════════════════════════════════════════════════ */

/* ═══════════ HERO ═══════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Radial glow in hero center */
#hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 245, 255, 0.06) 0%,
    rgba(168, 85, 247, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-typewriter {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  min-height: 1.75em;
  font-weight: 400;
}

.hero-description {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-plus {
  font-size: 1rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-dim);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line-drop 2s ease-in-out infinite;
}

/* ═══════════ SERVICES ═══════════ */
#services {
  background: linear-gradient(180deg, transparent 0%, rgba(168,85,247,0.03) 50%, transparent 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 12px;
  color: var(--cyan);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.service-card:hover .service-icon-wrap {
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.25);
  transform: scale(1.08);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  opacity: 0.7;
  transition: opacity var(--t-fast), gap var(--t-fast);
  margin-top: 0.25rem;
}

.service-link:hover {
  opacity: 1;
}

.link-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}

.service-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ═══════════ ABOUT ═══════════ */
#about {
  background: linear-gradient(180deg, transparent 0%, rgba(0,245,255,0.02) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  cursor: default;
}

.stat-card:nth-child(1) { animation: glow-pulse-cyan 4s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: glow-pulse-purple 4s ease-in-out 1s infinite; }
.stat-card:nth-child(3) { animation: glow-pulse-purple 4s ease-in-out 2s infinite; }
.stat-card:nth-child(4) { animation: glow-pulse-cyan 4s ease-in-out 3s infinite; }

.stat-card-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
}

.stat-counter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  padding-bottom: 0.2rem;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════ PROCESS ═══════════ */
#process {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.03), transparent);
}

.process-wrapper {
  position: relative;
}

.process-track {
  position: absolute;
  top: 34px;
  left: calc(12.5%);
  width: 75%;
  height: 2px;
  z-index: 0;
}

.process-track-bg {
  position: absolute;
  inset: 0;
  background: var(--border-dim);
  border-radius: 2px;
}

.process-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0,245,255,0.4);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .process-track { display: none; }
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.step-node {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-dim);
  border-radius: 50%;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  z-index: 2;
}

.process-step:hover .step-node {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: step-pulse 3s ease-out infinite;
}

.process-step:nth-child(1) .step-pulse { animation-delay: 0s; }
.process-step:nth-child(2) .step-pulse { animation-delay: 0.75s; }
.process-step:nth-child(3) .step-pulse { animation-delay: 1.5s; }
.process-step:nth-child(4) .step-pulse { animation-delay: 2.25s; }

.step-content { flex: 1; }

.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════ PORTFOLIO ═══════════ */
#portfolio {
  background: linear-gradient(180deg, transparent, rgba(0,245,255,0.02), transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-card-featured {
  border-color: rgba(168,85,247,0.25);
}

.case-card-featured:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-card), var(--glow-purple);
}

.case-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  top: -80px;
  right: -80px;
  animation: glow-drift 8s ease-in-out infinite;
}

.case-glow-cyan  { background: var(--cyan); }
.case-glow-purple { background: var(--purple); }

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.case-card-featured .case-tag {
  color: var(--purple);
  background: var(--purple-dim);
  border-color: rgba(168,85,247,0.2);
}

.case-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.case-card-featured .metric-num {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.case-tech span {
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ═══════════ CONTACT ═══════════ */
#contact {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.03), transparent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info .section-title {
  text-align: left;
}

.contact-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1.25rem 0 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

a.contact-item:hover {
  color: var(--cyan);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 8px;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-form-wrap {
  padding: 2.5rem;
  position: relative;
}

.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
}

.form-success.visible {
  display: flex;
}

.success-check {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #050510;
  animation: success-pop 0.5s var(--ease-out) forwards;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.form-success p {
  color: var(--text-secondary);
}

/* ═══════════ FOOTER ═══════════ */
#footer {
  position: relative;
  z-index: 2;
  padding: 5rem 0 2rem;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)),
                    linear-gradient(90deg, var(--purple), var(--cyan), var(--purple));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
}

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--t-fast);
}

.newsletter-input:focus {
  border-color: var(--cyan);
}

.newsletter-btn {
  font-size: 0.75rem;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-legal a:hover {
  color: var(--text-secondary);
}
