/* ============================================================
   RAIN STUDIOS — Perez-style dark modern theme
   ============================================================ */
:root {
  --bg: #0b0b0e;
  --bg2: #101014;
  --surface: #15151b;
  --surface2: #1c1c24;
  --text: #f4f4f5;
  --muted: #a8a8b5;
  --accent: #c9f24b;          /* lime — Perez signature */
  --accent-dark: #a8d63a;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  color-scheme: dark;
}

/* ---------- Light mode ---------- */
[data-theme="light"] {
  --bg: #f6f6f3;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #ecece7;
  --text: #16161a;
  --muted: #5e5e69;
  --accent: #86b62b;          /* deeper lime — light bg te readable */
  --accent-dark: #6f9c22;
  --border: rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

/* light mode e header scroll korle dark na hoye halka background */
[data-theme="light"] #site-header.scrolled { background: rgba(246, 246, 243, 0.9); }

/* light mode e "Let's Work Together" box halka */
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #ffffff, #f1f1ea);
  border-color: rgba(134, 182, 43, 0.45);
}

/* light mode e icon placeholder thumb halka */
[data-theme="light"] .work-thumb.icon-thumb { background: linear-gradient(135deg, #f0f0ea, #e4e4d8); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg2); }

/* ---------- Typography helpers ---------- */
.section-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }
.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #0b0b0e;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.8rem; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201, 242, 75, 0.35); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: rgba(201, 242, 75, 0.12); box-shadow: none; }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.9rem; }

#hire-btn { white-space: nowrap; flex-shrink: 0; }

/* ---------- Header ---------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled { background: rgba(11, 11, 14, 0.88); backdrop-filter: blur(12px); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
#main-nav { display: flex; gap: 1.6rem; }
#main-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
#main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
#theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.3s;
}
#theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(20deg); }
#theme-toggle svg { width: 20px; height: 20px; }
#nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.4rem; }
#nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { padding: 9rem 0 4rem; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201, 242, 75, 0.13), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.eyebrow { font-family: var(--font-head); font-size: 1.15rem; color: var(--muted); margin-bottom: 0.4rem; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(12deg); } }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.05; }
.hero h2 { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; margin: 0.5rem 0 1rem; }
.hero-tagline { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.btn-hero { padding: 1rem 2.6rem; font-size: 1.1rem; }
.hero-alt { margin: -0.6rem 0 1.8rem; color: var(--muted); font-size: 0.93rem; }
.hero-alt a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--accent); }
.hero-alt a:hover { border-bottom-style: solid; }
.social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: 0.25s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0e; transform: translateY(-3px); }

.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  border-radius: 28px; overflow: hidden; position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  max-width: 380px;
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 14, 0.55));
}
.photo-frame img { width: 100%; height: 480px; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 26px; left: -30px;
  background: var(--accent); color: #0b0b0e;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  padding: 0.7rem 1.2rem; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg);
}

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); display: block; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(201, 242, 75, 0.45); }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem;
  background: rgba(201, 242, 75, 0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 0.6rem; }
.service-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-tools { font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.4px; margin-bottom: 1rem; }
.service-card ul { list-style: none; margin-bottom: 1.4rem; }
.service-card ul li { color: var(--muted); font-size: 0.93rem; padding: 0.28rem 0 0.28rem 1.5rem; position: relative; }
.service-card ul li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.service-links { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.gig-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.88rem; font-weight: 500;
  transition: 0.2s;
}
.gig-link:hover { border-color: var(--accent); color: var(--accent); }
.service-note { font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 24px; border: 1px solid var(--border); height: 520px; width: 100%; object-fit: cover; }
.exp-badge {
  position: absolute; bottom: 24px; right: -18px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 16px; padding: 1rem 1.4rem; display: flex; gap: 0.8rem; align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.exp-badge strong { font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.exp-badge span { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
#about-paragraphs p { color: var(--muted); margin-bottom: 1rem; }
.info-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem; margin: 1.6rem 0; }
.info-list li { font-size: 0.93rem; }
.info-list .k { color: var(--muted); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.info-list .v { font-weight: 600; }
.say-hello { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.say-hello span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.say-hello a { font-size: 1.05rem; font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---------- Resume ---------- */
.resume-actions { margin-bottom: 2.5rem; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.resume-h { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 1.4rem; }
.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.8rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.8rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  transform: translateX(0.5px);
}
.timeline-item .period {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  background: rgba(201, 242, 75, 0.12); color: var(--accent);
  padding: 0.2rem 0.8rem; border-radius: 999px; margin-bottom: 0.5rem;
}
.timeline-item h4 { font-family: var(--font-head); font-size: 1.08rem; }
.timeline-item .org { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.timeline-item p { color: var(--muted); font-size: 0.92rem; }
.skills { display: flex; flex-direction: column; gap: 1.1rem; }
.skill .skill-top { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 0.4rem; }
.skill .skill-top b { color: var(--accent); }
.skill-bar { height: 8px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 999px; transition: width 1.2s ease; }

/* ---------- Portfolio ---------- */
.filter-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: 0.55rem 1.4rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--muted); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, opacity 0.3s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(201, 242, 75, 0.45); }
.work-card.hidden { display: none; }
.work-thumb { height: 210px; position: relative; overflow: hidden; background: var(--surface2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb.icon-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a21, #23232e); }
.work-thumb.icon-thumb svg { width: 64px; height: 64px; color: var(--accent); opacity: 0.9; }
.work-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11, 11, 14, 0.8); backdrop-filter: blur(6px);
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid rgba(201, 242, 75, 0.35);
}
.work-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.4rem; }
.work-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; flex: 1; }
.work-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.work-link:hover { text-decoration: underline; }

/* ---------- Reviews slider ---------- */
.slider { max-width: 780px; margin: 0 auto; }
.slider-track { display: grid; }
.review-card {
  grid-area: 1 / 1; opacity: 0; transform: translateX(40px); visibility: hidden;
  transition: opacity 0.5s, transform 0.5s, visibility 0.5s; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.4rem; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.review-card.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
/* desktop: 3 reviews side-by-side */
@media (min-width: 900px) {
  .slider { max-width: 1120px; }
  .slider-track { display: flex; gap: 1.2rem; }
  .review-card { display: none; flex: 1 1 0; min-width: 0; grid-area: auto; transform: translateY(24px); }
  .review-card.active { display: flex; }
}
.review-card .quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--accent); line-height: 1; }
.review-card blockquote { font-size: 1.12rem; font-style: italic; margin: 0.6rem 0 1.4rem; }
.review-card .who strong { font-family: var(--font-head); }
.review-card .who span { color: var(--muted); font-size: 0.88rem; display: block; }
.sample-tag {
  display: inline-block; margin-top: 0.9rem; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); border: 1px dashed var(--accent); padding: 0.2rem 0.7rem; border-radius: 999px;
}
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.slider-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 1.4rem; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-nav button:hover { background: var(--accent); color: #0b0b0e; border-color: var(--accent); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); }
.slider-dots button.active { background: var(--accent); border-color: var(--accent); }

/* ---------- Social embeds ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.social-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
}
.social-card .social-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.social-card .social-head .icon-btn { width: 36px; height: 36px; }
.social-card .social-head b { font-family: var(--font-head); font-size: 0.95rem; display: block; }
.social-card .social-head small { color: var(--muted); font-size: 0.78rem; display: block; }
.social-embed { padding: 0.6rem; display: flex; justify-content: center; }
.social-embed iframe { max-width: 100% !important; border-radius: 12px; }
.social-embed .instagram-media { margin: 0 !important; max-width: 100% !important; min-width: 0 !important; }
.link-card-body { padding: 2rem 1.4rem; text-align: center; }
.link-card-body svg { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 1rem; }
.link-card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem; position: relative;
  display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(201, 242, 75, 0.07), var(--surface)); }
.pop-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0b0b0e; font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 999px; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.price-card h3 { font-family: var(--font-head); font-size: 1.3rem; }
.price-card .p-tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent); }
.price small { font-size: 0.85rem; color: var(--muted); font-weight: 400; display: block; }
.price-card ul { list-style: none; margin: 1.4rem 0 1.8rem; flex: 1; }
.price-card ul li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--muted); font-size: 0.93rem; }
.price-card ul li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.price-actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- CTA ---------- */
.cta-section { padding: 5rem 0; }
.cta-box {
  background: linear-gradient(135deg, #17171e, #1e1e28);
  border: 1px solid rgba(201, 242, 75, 0.25);
  border-radius: 28px; padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px; background: radial-gradient(ellipse, rgba(201, 242, 75, 0.16), transparent 65%);
  pointer-events: none;
}
.cta-box h2 { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; position: relative; }
.cta-box > p { color: var(--muted); max-width: 620px; margin: 0 auto 2rem; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.2rem; text-align: center; transition: 0.25s;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(201, 242, 75, 0.45); }
.contact-card .icon-btn { width: 54px; height: 54px; background: rgba(201, 242, 75, 0.1); border-color: transparent; color: var(--accent); }
.contact-card .icon-btn svg { width: 24px; height: 24px; }
.contact-card:hover .icon-btn { background: var(--accent); color: #0b0b0e; }
.contact-card b { font-family: var(--font-head); }
.contact-card span { color: var(--muted); font-size: 0.85rem; word-break: break-all; }

/* ---------- Follow ---------- */
.follow-row { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.follow-row .icon-btn { width: 52px; height: 52px; }
.follow-row .icon-btn svg { width: 22px; height: 22px; }
.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 2.2rem 0; background: var(--bg2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; }
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
footer p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Back to top ---------- */
#to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #0b0b0e; border: 0; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: 0.2s;
}
#to-top.show { display: block; }
#to-top:hover { transform: translateY(-3px); }
/* chat button thakle up button ta or upore thakbe (overlap hobe na) */
body.has-chat #to-top{bottom:94px}
@media(max-width:600px){body.has-chat #to-top{bottom:86px;right:16px}}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .photo-frame img { height: 420px; }
  .hero-badge { left: 10px; }
  .services-grid, .portfolio-grid, .pricing-grid, .social-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .resume-grid { grid-template-columns: 1fr; }
  #main-nav {
    position: fixed; top: 0; right: 0; width: min(320px, 80vw); height: 100vh;
    background: var(--surface); flex-direction: column; padding: 5rem 2rem;
    border-left: 1px solid var(--border);
    transform: translateX(105%); visibility: hidden;
    transition: transform 0.32s ease, visibility 0.32s;
  }
  #main-nav.open { transform: translateX(0); visibility: visible; }
  #nav-toggle { display: flex; }
  #nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle.open span:nth-child(2) { opacity: 0; }
  #nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .section { padding: 4rem 0; scroll-margin-top: 84px; }
  /* mobile glow jeno dan dike overflow na kore (hero katchelo) */
  .hero { overflow: clip; }
  /* routed page (about/blog) te fixed header er niche jeno chapa na pore */
  body.sec-page main > section.sec-on { padding-top: calc(4rem + 84px); }
  .services-grid, .portfolio-grid, .pricing-grid, .social-grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .cta-box { padding: 3rem 1.5rem; }
  .exp-badge { right: 8px; bottom: 16px; padding: 0.8rem 1.1rem; }
  .exp-badge strong { font-size: 1.6rem; }
  .about-photo img { height: 400px; }
  .service-card, .price-card { padding: 1.7rem; }
  .review-card { padding: 1.8rem 1.4rem; }
  .review-card blockquote { font-size: 1rem; }
  .contact-form-wrap { padding: 1.6rem; }
  .faq-item { padding: 0 1.2rem; }
  .stat strong { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  .cta-box .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  /* choto screen e header e jaiga bachate brand text lukaw (logo thakbe) */
  #brand-name { display: none; }
}

/* ---------- v1.1 additions: availability badge, WhatsApp float, contact form ---------- */
.avail-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 0.45rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.avail-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }

#wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
  animation: waPulse 2.4s ease-in-out infinite;
}
#wa-float:hover { transform: scale(1.1); }
#wa-float svg { width: 30px; height: 30px; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); } 50% { box-shadow: 0 10px 38px rgba(37, 211, 102, 0.65); } }

.contact-form-wrap {
  max-width: 660px; margin: 3.5rem auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.4rem;
}
.contact-form-wrap h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 0.3rem; }
#contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#contact-form input, #contact-form textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1.1rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; width: 100%;
  transition: border-color 0.2s;
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--accent); }
#contact-form textarea { resize: vertical; }
#contact-form .btn { align-self: flex-start; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } #wa-float { left: 16px; bottom: 16px; } }

/* ---------- v1.2: shop buttons on T-shirt cards ---------- */
.shop-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.shop-row > span { font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-right: 0.2rem; }
.shop-btn {
  font-size: 0.78rem; font-weight: 600; padding: 0.34rem 0.85rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); transition: 0.2s;
}
.shop-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- v1.3: portfolio pager ---------- */
.pager-row { display: flex; gap: 0.6rem; justify-content: center; align-items: center; margin-top: 2.5rem; }
.page-btn {
  min-width: 46px; height: 46px; padding: 0 1rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- v1.5: FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 1.6rem; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer; padding: 1.25rem 0; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; font-size: 1.6rem; font-weight: 400;
  color: var(--accent); transition: transform 0.25s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 1.4rem; }

/* ---------- v1.9: Find me everywhere — map block ---------- */
.map-block {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center;
  margin-top: 3.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 2.5rem;
}
.map-info h3 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-bottom: 0.8rem; }
.map-info > p { color: var(--muted); margin-bottom: 1.6rem; }
.map-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (max-width: 860px) {
  .map-block { grid-template-columns: 1fr; padding: 1.8rem; }
  .map-frame iframe { height: 280px; }
}

/* ================= PROCESS ================= */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.3rem; position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.process-card:hover { transform: translateY(-6px); border-color: rgba(201, 242, 75, 0.45); }
.process-num {
  font-size: 2.2rem; font-weight: 800; color: var(--accent);
  opacity: 0.85; line-height: 1; margin-bottom: 0.7rem;
}
.process-card h3 { font-size: 1.08rem; margin: 0 0 0.5rem; }
.process-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ================= SHOP ================= */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.shop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.shop-card:hover { transform: translateY(-6px); border-color: rgba(201, 242, 75, 0.45); }
.shop-thumb { height: 240px; position: relative; overflow: hidden; background: var(--surface2); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.shop-card:hover .shop-thumb img { transform: scale(1.06); }
.shop-thumb .icon-thumb { height: 100%; display: flex; align-items: center; justify-content: center; }
.shop-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.shop-body h3 { margin: 0; font-size: 1.1rem; }
.shop-body p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.shop-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* ================= BLOG ================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.25s, border-color 0.25s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(201, 242, 75, 0.45); }
.blog-thumb { height: 170px; overflow: hidden; background: var(--surface2); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.blog-date { color: var(--muted); font-size: 0.82rem; margin: 0; }
.blog-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.blog-body p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.blog-more { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-top: auto; padding-top: 0.5rem; }
.blog-reader {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.72);
  overflow-y: auto; padding: 2.5rem 1.2rem;
}
.blog-reader[hidden] { display: none; }
.blog-reader-inner {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem;
}
.blog-reader-inner h2 { margin: 0.4rem 0 1.2rem; line-height: 1.3; }
#reader-img-wrap img { width: 100%; border-radius: 10px; margin-bottom: 1.2rem; }
#reader-body p { line-height: 1.75; color: var(--text); margin: 0 0 1.1rem; }
#blog-back { margin-bottom: 1.4rem; }

@media (max-width: 1100px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shop-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .process-grid, .shop-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-reader-inner { padding: 1.4rem; }
}
/* room for 10 nav links on medium desktops */
@media (max-width: 1240px) and (min-width: 961px) {
  #main-nav { gap: 1rem; }
  #main-nav a { font-size: 0.87rem; }
}

/* ================= CAROUSEL (baki card gulo) ================= */
#portfolio-carousel, #shop-carousel, #blog-carousel { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.7rem; }
#portfolio-carousel[style*="none"], #shop-carousel[style*="none"], #blog-carousel[style*="none"] { margin-top: 0; }
.car-track {
  display: flex; gap: 1.2rem; overflow-x: auto; flex: 1;
  scroll-snap-type: x mandatory; padding: 0.4rem 0.15rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 300px; scroll-snap-align: start; }
.car-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: 0.2s;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
/* ---------- home layout + section routes ---------- */
main>section.off-home{display:none!important;}
body.sec-page main>section{display:none!important;}
body.sec-page main>section.sec-on{display:block!important;}
@media (max-width: 640px) {
  .car-track > * { flex-basis: 80%; }
  .car-btn { display: none; }
}

/* ---------- chat assistant ---------- */
#chat-btn{position:fixed;right:24px;bottom:24px;z-index:90;width:58px;height:58px;border-radius:50%;
  background:var(--accent);color:#0b0b0e;border:0;font-size:26px;cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .2s}
#chat-btn:hover{transform:scale(1.1)}
[data-theme="light"] #chat-btn{color:#fff}
#chat-win{position:fixed;right:24px;bottom:94px;z-index:95;width:min(360px,calc(100vw - 32px));height:480px;max-height:70vh;
  background:var(--surface);border:1px solid var(--border);border-radius:18px;display:flex;flex-direction:column;
  overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.45)}
#chat-win[hidden]{display:none}
#chat-head{display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem;
  background:var(--accent);color:#0b0b0e;font-weight:700}
[data-theme="light"] #chat-head{color:#fff}
#chat-close{background:none;border:0;color:inherit;font-size:1.1rem;cursor:pointer}
#chat-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.chat-msg{max-width:85%;padding:.6rem .85rem;border-radius:14px;font-size:.9rem;line-height:1.5}
.chat-msg.bot{background:var(--surface2);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}
.chat-msg.user{background:var(--accent);color:#0b0b0e;align-self:flex-end;border-bottom-right-radius:4px}
[data-theme="light"] .chat-msg.user{color:#fff}
.chat-msg a{color:inherit;font-weight:700;text-decoration:underline}
#chat-chips{display:flex;gap:.4rem;padding:.5rem .8rem;flex-wrap:wrap;border-top:1px solid var(--border)}
.chat-chip{background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:999px;
  padding:.35rem .8rem;font-size:.8rem;cursor:pointer}
.chat-chip:hover{border-color:var(--accent)}
#chat-input-row{display:flex;gap:.5rem;padding:.7rem;border-top:1px solid var(--border)}
#chat-input{flex:1;background:var(--surface2);border:1px solid var(--border);border-radius:999px;
  padding:.6rem 1rem;color:var(--text);font-size:.9rem}
#chat-input:focus{outline:none;border-color:var(--accent)}
#chat-send{background:var(--accent);color:#0b0b0e;border:0;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:1rem}
[data-theme="light"] #chat-send{color:#fff}
@media(max-width:600px){#chat-btn{right:16px;bottom:16px}#chat-win{right:16px;bottom:86px}}

/* ---------- showreel ---------- */
.showreel{max-width:880px;margin:2.5rem auto 0;text-align:center}
.showreel .eyebrow{margin-bottom:1rem}
.showreel-frame{position:relative;display:block;width:100%;padding:0;border:1px solid var(--border);
  border-radius:18px;overflow:hidden;cursor:pointer;background:var(--surface2);box-shadow:0 20px 60px rgba(0,0,0,.4)}
.showreel-frame img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.showreel-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:84px;height:84px;border-radius:50%;
  background:var(--accent);color:#0b0b0e;font-size:1.8rem;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 40px rgba(0,0,0,.5);transition:transform .2s}
[data-theme="light"] .showreel-play{color:#fff}
.showreel-frame:hover .showreel-play{transform:translate(-50%,-50%) scale(1.1)}
.showreel-caption{position:absolute;left:0;right:0;bottom:0;padding:2.2rem 1.2rem .9rem;font-weight:600;font-size:.95rem;
  color:#fff;text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.video-modal{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;padding:1rem}
.video-modal[hidden]{display:none}
.video-modal-box{position:relative;width:min(920px,100%)}
.video-modal-close{position:absolute;top:-2.6rem;right:0;background:var(--accent);color:#0b0b0e;border:0;
  width:40px;height:40px;border-radius:50%;font-size:1.1rem;cursor:pointer;font-weight:700}
[data-theme="light"] .video-modal-close{color:#fff}
.video-modal-frame{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
.video-modal-frame iframe{position:absolute;inset:0;width:100%;height:100%}
.video-modal-alt{text-align:center;margin-top:.8rem}
.video-modal-alt a{color:var(--accent);font-weight:600;text-decoration:underline;font-size:.95rem}
