/* ═══════════════════════════════════════════════════════════
   SECTIONS — Arshia Portfolio
   All section-specific styles
   ═══════════════════════════════════════════════════════════ */

/* ── Global Background Layer (scroll-driven color) ─────── */
.bg-transition-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-behind);
  pointer-events: none;
  background: var(--color-bg);
  transition: background 0.1s linear;
}

/* ── Noise Overlay ─────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-behind);
  pointer-events: none;
  opacity: var(--color-noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

/* ── Hero Background Decorations ───────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  will-change: transform;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15), transparent 70%);
  top: 10%;
  right: 10%;
  animation: subtle-drift 20s ease-in-out infinite;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 70%);
  bottom: 15%;
  left: 5%;
  animation: subtle-drift 25s ease-in-out infinite reverse;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.08), transparent 70%);
  top: 40%;
  left: 50%;
  animation: subtle-drift 18s ease-in-out infinite;
  animation-delay: -5s;
}

/* ── Hero Content ──────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.hero__headline-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Floating Cards ────────────────────────────────────── */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-card {
  position: absolute;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
  will-change: transform;
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.floating-card__icon {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
}

.floating-card--lg {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body);
  border-radius: var(--radius-xl);
}

.floating-card--sm {
  padding: 6px var(--space-sm);
  font-size: var(--text-xs);
}

/* Positions — Desktop */
.floating-card--1 { top: 18%; left: 8%; animation: float-1 8s ease-in-out infinite; }
.floating-card--2 { top: 12%; right: 10%; animation: float-2 10s ease-in-out infinite; }
.floating-card--3 { bottom: 28%; left: 5%; animation: float-3 9s ease-in-out infinite; }
.floating-card--4 { bottom: 20%; right: 6%; animation: float-1 11s ease-in-out infinite; animation-delay: -3s; }
.floating-card--5 { top: 38%; left: 3%; animation: float-2 7s ease-in-out infinite; animation-delay: -2s; }
.floating-card--6 { top: 32%; right: 4%; animation: float-3 12s ease-in-out infinite; animation-delay: -4s; }

@media (max-width: 1024px) {
  .floating-card--5,
  .floating-card--6 {
    display: none;
  }
}

@media (max-width: 768px) {
  .floating-card--3,
  .floating-card--4 {
    display: none;
  }

  .floating-card--1 { top: 14%; left: 4%; }
  .floating-card--2 { top: 10%; right: 4%; }

  .floating-card--lg {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-small);
  }
}


/* ═══════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════ */
.projects {
  position: relative;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: var(--space-lg);
}

/* ── Project Card ──────────────────────────────────────── */
.project-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-accent-rgb), 0.15);
}

.project-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-overlay);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}

.project-card__body {
  padding: var(--space-lg);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.project-card__arrow {
  display: inline-flex;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  color: var(--color-accent);
}

.project-card:hover .project-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.project-card__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ── Grid Sizes ────────────────────────────────────────── */
.project-card--featured {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.project-card--featured .project-card__image-wrap {
  aspect-ratio: 16 / 9;
}

.project-card--medium {
  grid-column: span 5;
}

.project-card--small {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .project-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-card--medium {
    grid-column: span 6;
  }

  .project-card--small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .project-card--medium,
  .project-card--small,
  .project-card--featured {
    grid-column: 1 / -1;
  }
}


/* ═══════════════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════════════ */
.skills {
  position: relative;
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: default;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.skill-pill:hover {
  transform: translateY(-3px);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.2);
  background: var(--color-accent-bg);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.skill-pill__tooltip {
  position: absolute;
  bottom: calc(100% + var(--space-sm));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 220px;
  padding: var(--space-md);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  z-index: var(--z-floating);
}

.skill-pill:hover .skill-pill__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-pill__tooltip-title {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.skill-pill__tooltip-desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

@media (max-width: 768px) {
  .skill-pill {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-small);
  }

  .skill-pill__tooltip {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */
.about {
  position: relative;
}

/* Dark background text overrides */
.about--dark {
  color: #E8E6F0;
}

.about--dark .section__label {
  color: rgba(255, 255, 255, 0.4);
}

.about--dark .section__label::before {
  background: rgba(255, 255, 255, 0.3);
}

.about__statement {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: #fff;
  max-width: 16ch;
  margin-bottom: var(--space-2xl);
}

.about__statement-line {
  display: block;
}

.about__statement-accent {
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__text {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  line-height: var(--leading-relaxed);
}


/* ═══════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE SECTION
   ═══════════════════════════════════════════════════════════ */
.experience {
  position: relative;
}

.experience--dark {
  color: #E8E6F0;
}

.experience--dark .section__label {
  color: rgba(255, 255, 255, 0.4);
}

.experience--dark .section__label::before {
  background: rgba(255, 255, 255, 0.3);
}

.experience--dark .section__title {
  color: #fff;
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-inline-start: var(--space-2xl);
}

/* ── Timeline Line ─────────────────────────────────────── */
.timeline__line {
  position: absolute;
  top: 0;
  inset-inline-start: 12px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-soft));
  transition: height 0.05s linear;
}

/* ── Timeline Nodes ────────────────────────────────────── */
.timeline__item {
  position: relative;
  padding-bottom: var(--space-3xl);
  opacity: 0.3;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.timeline__item--active {
  opacity: 1;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  inset-inline-start: calc(-1 * var(--space-2xl) + 6px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.timeline__item--active .timeline__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.4);
}

.timeline__date {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-xs);
  transition: color var(--duration-normal) var(--ease-out);
}

.timeline__item--active .timeline__date {
  color: var(--color-accent-soft);
}

.timeline__role {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: #fff;
  margin-bottom: var(--space-2xs);
}

.timeline__company {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
  line-height: var(--leading-normal);
  max-width: 480px;
}


/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */
.contact {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact--dark {
  color: #E8E6F0;
}

.contact__heading {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-lg);
  max-width: 14ch;
}

.contact__heading-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft), #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-shift 6s ease infinite;
}

.contact__sub {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-2xl);
  max-width: 440px;
}

.contact__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* ── Contact Glow Background ──────────────────────────── */
.contact__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: var(--text-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .contact {
    min-height: 60vh;
  }

  .contact__heading {
    font-size: var(--text-h1);
  }
}
