/* ==========================================================================
   SECTIONS.CSS — Section-Specific Styles
   LlionTec.com Design System
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   Full-viewport landing area with particle canvas overlay and gradient mesh.
   ========================================================================== */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Particle Canvas Layer ───────────────────────────────────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Gradient Mesh Background ────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(124, 58, 237, 0.12), transparent),
    radial-gradient(ellipse 50% 70% at 50% 80%, rgba(0, 212, 255, 0.08), transparent);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Light theme — subtle mesh */
:root[data-theme='light'] .hero-bg {
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 153, 204, 0.1), transparent),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(109, 40, 217, 0.08), transparent),
    radial-gradient(ellipse 50% 70% at 50% 80%, rgba(0, 153, 204, 0.06), transparent);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* ── Hero Content ────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ── Hero Title ──────────────────────────────────────────────────────── */
.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Hero Subtitle ───────────────────────────────────────────────────── */
.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--lh-normal);
}

/* ── Hero CTA ────────────────────────────────────────────────────────── */
.hero-cta {
  animation: pulse 2.5s ease infinite;
}

/* ── Hero Scroll Indicator ───────────────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  animation: bounceChevron 2s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll-indicator svg,
.hero-scroll-indicator i {
  width: 24px;
  height: 24px;
}


/* ==========================================================================
   APPS SECTION
   App showcase with category filter bar and card grid.
   ========================================================================== */
#apps {
  /* Inherits .section padding */
}

/* ── Filter Bar ──────────────────────────────────────────────────────── */
.apps-filters {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Mobile: horizontal scroll for filters */
@media (max-width: 768px) {
  .apps-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-2);
    margin-inline: calc(clamp(1rem, 4vw, 2rem) * -1);
    padding-inline: clamp(1rem, 4vw, 2rem);

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .apps-filters::-webkit-scrollbar {
    display: none;
  }
}


/* ==========================================================================
   LAB SECTION
   Hardware / IoT projects with surface background for visual separation.
   ========================================================================== */
#lab {
  background: var(--bg-surface);
}

.lab-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}


/* ==========================================================================
   ABOUT SECTION
   Bio, skills, and stats in an asymmetric two-column layout.
   ========================================================================== */
#about {
  /* Inherits .section padding */
}

/* ── About Grid ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: center;
}

/* ── About Image ─────────────────────────────────────────────────────── */
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── About Content ───────────────────────────────────────────────────── */
.about-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}

.about-bio {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ── Skills ──────────────────────────────────────────────────────────── */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2.5);
}

.about-skills .skill-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.about-skills .skill-chip:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

/* Light theme skill chips */
:root[data-theme='light'] .about-skills .skill-chip {
  background: rgba(0, 153, 204, 0.08);
  border-color: rgba(0, 153, 204, 0.2);
}

:root[data-theme='light'] .about-skills .skill-chip:hover {
  background: rgba(0, 153, 204, 0.15);
  border-color: rgba(0, 153, 204, 0.4);
}

/* ── Stats ───────────────────────────────────────────────────────────── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.about-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ── About — Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Image first on mobile */
  .about-image {
    max-width: 400px;
    margin-inline: auto;
  }

  .about-stats {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ==========================================================================
   CONTACT SECTION
   Two-column layout with info and form.
   ========================================================================== */
#contact {
  /* Inherits .section padding */
}

/* ── Contact Cards Grid ──────────────────────────────────────────────── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin-inline: auto;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.12);
}

:root[data-theme='light'] .contact-card:hover {
  border-color: rgba(0, 153, 204, 0.4);
  box-shadow: 0 12px 30px rgba(0, 153, 204, 0.12);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
  transition: transform var(--transition-normal), background var(--transition-normal);
}

:root[data-theme='light'] .contact-card-icon {
  background: rgba(0, 153, 204, 0.08);
  border-color: rgba(0, 153, 204, 0.15);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.08);
  background: rgba(0, 212, 255, 0.18);
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-card-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.contact-card-value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.contact-card-action,
.contact-card-sub {
  font-size: var(--fs-sm);
  color: var(--accent-primary);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  transition: gap var(--transition-fast);
}

.contact-card-sub {
  color: var(--text-muted);
}

.contact-card:hover .contact-card-action {
  gap: var(--space-2);
}

@media (max-width: 860px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ==========================================================================
   FOOTER
   Brand, navigation links, and bottom copyright bar.
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  padding-block: var(--space-10) var(--space-8);
}

/* ── Footer Flex Layout ────────────────────────────────────────────────── */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

/* ── Footer Brand ────────────────────────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand .footer-logo img {
  max-height: 36px;
  width: auto;
}

.footer-brand .footer-logo span {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brand .footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  max-width: 320px;
}

/* ── Footer Navigation ────────────────────────────────────────────────── */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.footer-nav h4 {
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding-block: var(--space-1);
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

/* ── Footer Bottom Bar ───────────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent-primary);
}

/* ── Footer — Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-nav ul {
    justify-content: center;
    gap: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
