/* ===========================
   Nexadream Portfolio Styles
   =========================== */

:root {
  --brand-yellow: #FFCC00;
  --brand-yellow-soft: #FFDB4D;
  --brand-yellow-deep: #E6B800;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --paper: #FAFAF7;
  --muted: #6B6B6B;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ===========================
   Animated Background Grid
   =========================== */
.bg-grid {
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

.bg-radial-yellow {
  background: radial-gradient(circle at 50% 0%, rgba(255, 204, 0, 0.18), transparent 55%);
}

/* ===========================
   Floating Blobs
   =========================== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

.blob.b1 {
  width: 380px;
  height: 380px;
  background: var(--brand-yellow);
  top: -120px;
  right: -80px;
  animation-delay: 0s;
}

.blob.b2 {
  width: 300px;
  height: 300px;
  background: #FFE680;
  bottom: 10%;
  left: -100px;
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ===========================
   Reveal on Scroll
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Hero Title Animation
   =========================== */
.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line>span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(1)>span {
  animation-delay: 0.1s;
}

.hero-line:nth-child(2)>span {
  animation-delay: 0.25s;
}

.hero-line:nth-child(3)>span {
  animation-delay: 0.4s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Marquee
   =========================== */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: scroll 28s linear infinite;
}

@keyframes scroll {
  to {
    transform: translateX(-100%);
  }
}

/* ===========================
   Phone Mockup (consistent, no notch)
   =========================== */
.phone {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  background: linear-gradient(145deg, #1c1c1e, #050505);
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1.5px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone--sm {
  max-width: 180px;
}

/* ===========================
   Browser Mockup
   =========================== */
.browser {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: #1a1a1a;
  box-shadow:
    0 30px 70px -25px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.browser__dot.r {
  background: #ff5f57;
}

.browser__dot.y {
  background: #febc2e;
}

.browser__dot.g {
  background: #28c840;
}

.browser__url {
  flex: 1;
  margin-left: 12px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
}

.browser__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===========================
   Portfolio Grid Card (uniform shell, mobile/web variants inside)
   =========================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.06);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  isolation: isolate;
}

.p-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 204, 0, 0.55);
  box-shadow: 0 24px 48px -22px rgba(10, 10, 10, 0.18);
}

/* mockup stage — uniform across mobile + web */
.p-card__stage {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF7CC 0%, #FFE680 100%);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.p-card__stage--dark {
  background: linear-gradient(160deg, #1f1f1f 0%, #0a0a0a 100%);
}

.p-card__stage--paper {
  background: linear-gradient(160deg, #FAFAF7 0%, #EFEFEA 100%);
}

.p-card__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 204, 0, 0.25), transparent 60%);
  pointer-events: none;
}

.p-card__stage .phone {
  transform: translateY(28px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-card:hover .p-card__stage .phone {
  transform: translateY(20px) scale(1.02);
}

.p-card__stage .browser {
  width: 88%;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-card:hover .p-card__stage .browser {
  transform: translateY(-4px) scale(1.02);
}

.p-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.p-card__desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===========================
   Magnetic Arrow Link
   =========================== */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  position: relative;
  transition: gap 0.3s ease;
}

.arrow-link:hover {
  gap: 0.85rem;
}

.arrow-link svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.arrow-link:hover svg {
  transform: translateX(2px);
}

/* ===========================
   Tag chip
   =========================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(10, 10, 10, 0.06);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.chip--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chip--yellow {
  background: var(--brand-yellow);
  color: var(--ink);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* ===========================
   CTA Button
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--ink);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 204, 0, 0.55);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(10, 10, 10, 0.15);
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ===========================
   Hero Illustration (web + mobile)
   =========================== */
.hero-art {
  min-height: 460px;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-art {
    min-height: 520px;
  }
}

.hero-art__browser {
  position: absolute;
  top: 30px;
  left: 0;
  right: 60px;
  transform: rotate(-3deg);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-art__phone {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: rotate(6deg);
  animation: heroFloat 9s ease-in-out infinite;
  animation-delay: -2.5s;
  z-index: 2;
}

.hero-art__phone .phone {
  max-width: 170px;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(var(--rot, -3deg));
  }

  50% {
    transform: translate(0, -10px) rotate(var(--rot, -3deg));
  }
}

.hero-art__browser {
  --rot: -3deg;
}

.hero-art__phone {
  --rot: 6deg;
}

/* Sparkles */
.hero-art__sparkle {
  position: absolute;
  z-index: 3;
  animation: spin 12s linear infinite;
}

.hero-art__sparkle--tl {
  top: 8px;
  left: 18px;
}

.hero-art__sparkle--br {
  bottom: 30%;
  right: 30%;
  animation-duration: 9s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating chips */
.hero-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 12px 28px -10px rgba(10, 10, 10, 0.18);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.hero-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-chip--top {
  top: 60px;
  left: -20px;
  animation: heroFloat 7s ease-in-out infinite;
  --rot: 0deg;
}

.hero-chip--bottom {
  bottom: 80px;
  left: 20px;
  animation: heroFloat 8s ease-in-out infinite;
  animation-delay: -3s;
  --rot: 0deg;
  z-index: 4;
}

/* ----- Browser dashboard inside hero ----- */
.hero-dash {
  background: #FAFAF7;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.hero-dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dash__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dash__logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
}

.hero-dash__logo::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--brand-yellow);
  border-radius: 3px;
}

.hero-dash__title {
  width: 70px;
  height: 8px;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.15);
}

.hero-dash__avatars {
  display: flex;
  gap: -4px;
}

.hero-dash__avatars span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #FAFAF7;
  margin-left: -6px;
}

.hero-dash__avatars span:nth-child(1) {
  background: #FFCC00;
  margin-left: 0;
}

.hero-dash__avatars span:nth-child(2) {
  background: #0A0A0A;
}

.hero-dash__avatars span:nth-child(3) {
  background: #FFDB4D;
}

.hero-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-dash__stat {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(10, 10, 10, 0.05);
}

.hero-dash__stat--accent {
  background: var(--brand-yellow);
  border-color: transparent;
}

.hero-dash__num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.hero-dash__num span {
  font-size: 10px;
  opacity: 0.5;
}

.hero-dash__bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(10, 10, 10, 0.08);
  overflow: hidden;
}

.hero-dash__bar span {
  display: block;
  height: 100%;
  background: var(--brand-yellow-deep);
  border-radius: 2px;
}

.hero-dash__chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(10, 10, 10, 0.05);
  min-height: 70px;
}

.hero-dash__col {
  flex: 1;
  background: rgba(10, 10, 10, 0.12);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
}

.hero-dash__col--accent {
  background: var(--brand-yellow);
}

/* ----- Phone app inside hero ----- */
.hero-app {
  background: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  position: relative;
}

.hero-app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 4px;
}

.hero-app__status-dots {
  display: flex;
  gap: 2px;
}

.hero-app__status-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
}

.hero-app__header {
  margin-top: 6px;
  margin-bottom: 4px;
}

.hero-app__greet {
  width: 50px;
  height: 6px;
  border-radius: 3px;
  background: rgba(10, 10, 10, 0.15);
  margin-bottom: 6px;
}

.hero-app__title {
  width: 90px;
  height: 12px;
  border-radius: 4px;
  background: var(--ink);
}

.hero-app__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: #FAFAF7;
  border-radius: 8px;
}

.hero-app__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-app__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-app__lines span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(10, 10, 10, 0.18);
  width: 80%;
}

.hero-app__lines span:last-child {
  background: rgba(10, 10, 10, 0.08);
}

.hero-app__fab {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(255, 204, 0, 0.6);
}

/* ===========================
   Service / Feature card
   =========================== */
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.06);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-yellow);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ===========================
   Marquee tape
   =========================== */
.tape {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tape__inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tape__star {
  color: var(--brand-yellow);
}

/* ===========================
   Cursor follower (subtle)
   =========================== */
.glow-follow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out;
  z-index: 1;
  display: none;
}

@media (min-width: 1024px) {
  .glow-follow {
    display: block;
  }
}

/* ===========================
   Utility
   =========================== */
.text-balance {
  text-wrap: balance;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  scrollbar-width: none;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}