/* =========================================================
   Saiful Islam — portfolio styles
   Colours live in :root. Change --accent to re-tint the site.
   ========================================================= */
:root {
  --bg: #050507;
  --text: #F5F3FF;
  --muted: #B9B3CF;
  --soft: #D9D4EC;
  --dim: #A9A3BD;
  --accent: #7C3AED;
  --accent-rgb: 124, 58, 237;
  --accent-soft: #B79BFF;
  --magenta-rgb: 192, 38, 211;
  --btn-bg: linear-gradient(180deg, #A58BFF -30%, var(--accent) 100%);
  --btn-shadow: rgba(var(--accent-rgb), .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
button { font-family: inherit; }
video:not([src]) { display: none; }
img:not([src]) { display: none; }

.page { width: 100%; overflow: hidden; position: relative; }
.page-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 20% at 50% 0%, rgba(var(--accent-rgb), .55), transparent 70%),
    radial-gradient(40% 11% at 0% 26%, rgba(var(--accent-rgb), .24), transparent 70%),
    radial-gradient(40% 11% at 100% 38%, rgba(var(--magenta-rgb), .2), transparent 70%),
    radial-gradient(45% 12% at 0% 58%, rgba(var(--accent-rgb), .24), transparent 70%),
    radial-gradient(45% 12% at 100% 74%, rgba(var(--magenta-rgb), .2), transparent 70%),
    radial-gradient(60% 14% at 50% 100%, rgba(var(--accent-rgb), .42), transparent 70%);
}

.display { font-family: 'Inter Tight', sans-serif; }

/* ---------- Buttons ---------- */
.btn-main {
  display: inline-block; border-radius: 999px; font-weight: 600; color: #fff;
  background: var(--btn-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 36px var(--btn-shadow);
}
.btn-main:hover { filter: brightness(1.12); }
.btn-glass {
  display: inline-block; border-radius: 999px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.glass-link:hover, .btn-glass:hover { background: rgba(255,255,255,.1); }

/* ---------- Nav ---------- */
.nav-wrap { position: relative; max-width: 1000px; margin: 0 auto; padding: 22px clamp(16px,3vw,24px) 0; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 10px 12px 10px 24px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase;
}
.brand img { height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 12px 16px; border-radius: 999px; color: #C9C3DD; }
.nav .btn-main { padding: 13px 24px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px var(--btn-shadow); }
/* Phones: keep the nav on one row (name + Get started) */
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; padding: 8px 8px 8px 18px; }
  .nav-links { display: none; }
  .brand { font-size: 16px; }
  .nav .btn-main { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px clamp(20px,4vw,48px) 0; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  font-size: 14px; font-weight: 500; color: var(--soft);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 12px var(--accent-soft); }
.hero h1 {
  margin: 28px auto 0; font-family: 'Inter Tight', sans-serif; font-weight: 500;
  font-size: clamp(28px,6.2vw,84px); line-height: 1.14; padding-bottom: .06em; letter-spacing: -.04em;
  color: #fff; background: linear-gradient(180deg, #FFFFFF 15%, #B79BFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin: 28px auto 0; font-size: clamp(17px,1.6vw,20px); line-height: 1.6; color: var(--muted); }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-ctas .btn-main { padding: 18px 34px; font-size: 16px; }
.hero-ctas .btn-glass { padding: 17px 32px; font-size: 16px; }

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 clamp(12px,2vw,28px); text-align: center; }
.carousel { --s: clamp(112px,17vw,250px); position: relative; margin-top: 84px; height: clamp(300px,44vw,560px); }
.carousel-glow {
  position: absolute; left: 50%; top: 40%; width: 80%; height: 80%; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .5), transparent); filter: blur(20px);
}
.hero-card {
  position: absolute; left: 50%; top: 0; aspect-ratio: 9/16; overflow: hidden; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 70px rgba(0,0,0,.6);
  width: var(--s); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s, width .6s;
}
.arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 10;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.arrow:hover { background: rgba(255,255,255,.18); }
.arrow.prev { left: clamp(0px,.8vw,12px); }
.arrow.next { right: clamp(0px,.8vw,12px); }

/* Shared clip internals (hero cards and work cards) */
.clip-bg { position: absolute; inset: 0; }
.clip-silhouette { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 78%; opacity: .55; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(245,243,255,.25); z-index: 2; }
.progress i { display: block; height: 100%; border-radius: 3px; background: var(--text); }
.progress i.live { transition: width .25s linear; }

/* Placeholder gradients (visible only if a video is missing) */
.g1 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #6D28D9, #1E1038); }
.g2 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #A855F7, #2A0F4A); }
.g3 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #4F46E5, #150F3A); }
.g4 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #C026D3, #2E0B3A); }
.g5 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #7C3AED, #0F0A24); }
.g6 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #9333EA, #1D0B33); }
.g7 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #5B21B6, #0C0720); }
.g8 { background: radial-gradient(120% 55% at 88% 6%, rgba(255,255,255,.22), transparent 60%), linear-gradient(170deg, #8B5CF6, #1A1040); }

/* ---------- Chips ---------- */
.chips { position: relative; margin-top: -26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 15px; font-weight: 600;
}
.icon-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--btn-bg); flex: none;
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---------- Sections ---------- */
.section { position: relative; max-width: 1200px; margin: 0 auto; padding: 150px clamp(20px,4vw,48px) 0; text-align: center; }
.h2 {
  margin: 0 auto; font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: -.035em; color: #fff;
  font-size: clamp(34px,5.4vw,68px); line-height: 1.02;
}
.h2.sm { font-size: clamp(30px,4.4vw,52px); line-height: 1.05; }
.sub { margin: 22px auto 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Services */
.cards { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; text-align: left; }
.card { transition: transform .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(196,181,253,.45); }
.service {
  flex: 1 1 300px; max-width: 384px; padding: 34px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
}
.icon-box {
  width: 52px; height: 52px; border-radius: 16px; background: var(--btn-bg);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.service h3 { margin: 26px 0 12px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: #fff; }
.service p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span {
  font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--soft);
}

/* Work grid: 4 columns x 3 rows on desktop */
.work-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; text-align: left; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px)  { .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } }
.work-card { aspect-ratio: 9/16; border-radius: 22px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.work-card .progress { left: 12px; right: 12px; bottom: 12px; }
.play {
  position: absolute; right: 14px; bottom: 26px; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; padding: 0; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.play:hover { background: rgba(255,255,255,.24); }
.play .i-pause { display: none; }
.work-card.playing .play .i-play { display: none; }
.work-card.playing .play .i-pause { display: block; }
@media (max-width: 760px) { .play { width: 42px; height: 42px; right: 10px; bottom: 22px; } }

/* Tools + brands */
.pills { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pills span {
  padding: 16px 28px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  font-size: 17px; font-weight: 600; color: var(--text);
}
.brands { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.brand-box {
  flex: 1 1 150px; max-width: 200px; height: 84px; border-radius: 18px; position: relative; overflow: hidden;
  border: 1px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--dim);
}
.brand-box img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px 16px; object-fit: contain;
  background: #000000; /* black tile; logos are transparent PNGs */
}

/* Process */
.steps { margin-top: 60px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; text-align: left; }
.step { flex: 1 1 240px; max-width: 280px; padding: 28px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step .when { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent-soft); }
.step h3 { margin: 14px 0 10px; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.step p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Contact */
.contact { padding-bottom: 90px; text-align: initial; }
.cta {
  position: relative; overflow: hidden; border-radius: 36px; border: 1px solid rgba(255,255,255,.14);
  padding: clamp(48px,8vw,110px) clamp(24px,5vw,64px); text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(var(--accent-rgb), .6), transparent 70%),
    radial-gradient(60% 80% at 50% 120%, rgba(var(--magenta-rgb), .35), transparent 70%),
    #0B0716;
}
.cta h2 {
  margin: 0 auto; white-space: nowrap; font-family: 'Inter Tight', sans-serif; font-weight: 500; color: #fff;
  font-size: clamp(22px,6vw,88px); line-height: .98; letter-spacing: -.04em;
}
.cta p { margin: 24px auto 0; max-width: 42ch; font-size: 19px; line-height: 1.6; color: var(--soft); }
.cta .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-light { display: inline-block; padding: 18px 34px; border-radius: 999px; font-weight: 600; font-size: 16px; color: #0A0612; background: var(--text); }
.btn-light:hover { filter: brightness(1.12); }

/* Footer */
.footer { position: relative; border-top: 1px solid rgba(255,255,255,.08); }
.footer div { max-width: 1200px; margin: 0 auto; padding: 28px clamp(20px,4vw,48px); text-align: center; font-size: 14px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card, .card { transition: none; }
}
