/* =====================================================
   STYLE.CSS — Optimized, Responsive, Performance-First
===================================================== */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-top: var(--nav-h);
  transition: background-color var(--t-slow), color var(--t-slow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ── Preloader ─────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
  will-change: opacity;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid #f3f3f3;
  border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Glass Navbar ──────────────────────────────────── */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(31,38,135,0.15);
  transition: background var(--t-base), box-shadow var(--t-base);
  display: flex;
  align-items: center;
  will-change: background;
}
.glass-nav.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
[data-theme="dark"] .glass-nav          { background: rgba(12,16,32,0.6); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .glass-nav.scrolled { background: rgba(12,16,32,0.97); }

.navbar-inner { display: flex; align-items: center; gap: 20px; width: 100%; }

.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.8rem; font-weight: 700; flex-shrink: 0;
}
.logo-text { color: var(--heading); }
.logo-highlight { color: var(--primary); }

.navbar-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-weight: 500;
  color: var(--heading) !important;
  margin: 0 10px;
  padding: 8px 0 !important;
  position: relative;
  font-size: 0.95rem;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.glass-nav:not(.scrolled) .nav-link { color: #fff !important; }
[data-theme="dark"] .glass-nav.scrolled .nav-link { color: var(--text) !important; }
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--t-base);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.glass-dropdown {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(31,38,135,0.15);
  min-width: 200px;
}
[data-theme="dark"] .glass-dropdown { background: rgba(20,29,46,0.98); }
.dropdown-item {
  padding: 8px 15px; font-size: 0.9rem;
  color: var(--text); transition: all var(--t-fast);
}
.dropdown-item:hover { background: rgba(11,51,232,0.08); padding-left: 20px; color: var(--primary); }

.navbar-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--t-base);
  position: relative; overflow: hidden; cursor: pointer;
}
.glass-nav.scrolled .theme-toggle { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.theme-icon { position: absolute; transition: all var(--t-base); }
.theme-icon--moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-icon--sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-icon--moon { opacity: 1; transform: none; }

.hamburger-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; background: rgba(255,255,255,0.15);
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
}
.hamburger-btn span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 1px;
  transition: all var(--t-base);
}
.glass-nav.scrolled .hamburger-btn span,
[data-theme="dark"] .glass-nav.scrolled .hamburger-btn span { background: var(--text); }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.offcanvas {
  position: fixed; top: 0; right: -100%;
  width: min(320px, 90vw); height: 100%;
  z-index: 1200; background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: right var(--t-slow);
  display: flex; flex-direction: column;
}
.offcanvas.show { right: 0; }
.offcanvas-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.offcanvas-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--t-fast);
}
.offcanvas-close:hover { background: var(--primary); color: #fff; }
.offcanvas-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; overflow-y: auto;
}
.offcanvas-body .nav-link {
  display: block; padding: 12px 0 !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border); font-size: 1rem;
}
.offcanvas-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: all var(--t-base);
}
.offcanvas-overlay.show { opacity: 1; visibility: visible; }

/* Buttons */
.btn-primary {
  background: var(--primary); color: #fff !important;
  border: none; font-weight: 500;
  padding: 10px 22px; border-radius: 6px;
  transition: all var(--t-base);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; white-space: nowrap;
}
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(67,97,238,.4); }
.btn-glow { box-shadow: 0 4px 15px rgba(67,97,238,.3); }
.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.8); color: #fff !important;
  background: transparent; padding: 10px 22px; border-radius: 6px;
  font-weight: 500; transition: all var(--t-base); display: inline-block;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ── HERO — YouTube Video Background ─────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff;
  background: #050d1a;
  padding: 0;
  contain: layout;
}

.hero__yt-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__yt-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  pointer-events: none;
  will-change: transform;
}
.hero__yt-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; transform: scale(1.04);
}
.hero__yt-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.72) 100%);
}

.hero__center {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(16px,5vw,40px) 110px;
  max-width: 820px; width: 100%;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 6px 18px; border-radius: 999px;
  margin-bottom: 28px;
}

/* ── BOLD "From Concept To Creation" ──────────────── */
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
  letter-spacing: -0.02em;
}
.hero__gradient {
  background: linear-gradient(90deg, #a8d8ff, #c3aeff, #ffb3c6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block;
}

/* Bold tagline */
.hero__sub {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 36px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  background: linear-gradient(90deg, #ffffff, #a8d8ff, #ffffff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.35s;
}

.hero__btns {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-bottom: 56px;
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.5s;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__stats {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 5vw, 40px);
  flex-wrap: wrap;
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.65s;
}
.hero__stats .stat-item { text-align: center; }
.hero__stats .stat-item h3 {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700;
  color: #fff; margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero__stats .stat-item p {
  font-size: 0.75rem; opacity: 0.7;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.hero__stats .stat-item:not(:last-child) {
  padding-right: clamp(20px, 5vw, 40px);
  border-right: 1px solid rgba(255,255,255,0.2);
}

.hero__mute-btn {
  position: absolute; bottom: 100px; right: 28px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; backdrop-filter: blur(8px); cursor: pointer;
  transition: all 0.28s ease;
}
.hero__mute-btn:hover {
  background: rgba(11,51,232,0.75); border-color: #4895ef;
  color: #fff; transform: scale(1.08);
}

.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0; z-index: 3; pointer-events: none;
}
.hero-wave svg { width: 100%; height: auto; }

/* ── ABOUT ──────────────────────────────────────────── */
.about-section { padding: clamp(50px,8vw,80px) 0; background: var(--bg); transition: background var(--t-slow); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(30px,5vw,60px);
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-slow);
  /* Performance: use transform not width/height */
  will-change: transform;
}
.about-img-wrap:hover .about-img { transform: scale(1.02); }
.about-img-overlay {
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(to top, rgba(11,51,232,.2), transparent 60%);
  pointer-events: none;
}
.floating-elements { position: absolute; inset: 0; pointer-events: none; }
.floating-icon {
  position: absolute; width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 5px 15px rgba(0,0,0,.15);
  animation: floatIcon 8s ease-in-out infinite;
  will-change: transform;
}
.floating-icon.icon-web   { top:18%; left:-15px; background:#fff; color:var(--primary); }
.floating-icon.icon-brush { top:55%; right:-16px; background:var(--accent); color:#fff; animation-delay:1.5s; }
.floating-icon.icon-print { bottom:22%; left:12%; background:#0096c7; color:#fff; animation-delay:3s; }
.floating-icon.icon-star  { top:8%; right:20%; background:#ff6b6b; color:#fff; animation-delay:2s; }
[data-theme="dark"] .floating-icon.icon-web { background: var(--surface); }
@keyframes floatIcon {
  0%,100%{ transform:translate(0,0) rotate(0deg); }
  25%    { transform:translate(8px,8px) rotate(5deg); }
  75%    { transform:translate(-6px,-4px) rotate(-4deg); }
}

.experience-badge {
  position: absolute; bottom: -20px; right: -20px; z-index: 4;
}
.badge-inner {
  background: var(--surface); padding: 18px 22px;
  border-radius: 14px; box-shadow: var(--shadow-md);
  text-align: center; position: relative; z-index: 2;
}
.badge-inner span { font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; display: block; }
.badge-inner p    { margin: 4px 0 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.badge-aura {
  position: absolute; inset: 0; border-radius: 14px;
  background: var(--primary); z-index: 1; opacity: .25;
  animation: aura 2.5s ease-in-out infinite;
}
@keyframes aura { 0%,100%{transform:scale(1);opacity:.25} 50%{transform:scale(1.1);opacity:.15} }

.section-subtitle-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(11,51,232,0.08);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
[data-theme="dark"] .section-subtitle-tag { background: rgba(11,51,232,0.18); }
.section-title-main {
  font-size: clamp(1.6rem,3.5vw,2.5rem); font-weight: 700;
  color: var(--heading); line-height: 1.2; margin-bottom: 14px;
  transition: color var(--t-slow);
}
.title-underline { position: relative; display: inline-block; }
.title-underline::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 3px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  animation: underlineGrow 1s forwards 1.6s;
}
@keyframes underlineGrow { to { transform: scaleX(1); } }
.typing-text { color: var(--primary); }
.typed-cursor { color: var(--primary); animation: blink .75s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.about-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; font-size: 0.97rem; }
.highlight-word { position: relative; font-weight: 600; color: var(--primary); }

.about-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.feature-box {
  display: flex; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-slow);
}
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(11,51,232,.1); color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  animation: pulsate 2s ease-in-out infinite;
  will-change: transform;
}
@keyframes pulsate { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.feature-content h4 { font-size: 1rem; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.feature-content p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.feature-progress { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.progress-fill.animated { transform: scaleX(1); }

.stat-item { position: relative; padding: 0 clamp(12px,3vw,24px); text-align: center; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); width: 1px; height: 32px; background: var(--border);
}
.stat-item h3 {
  font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 4px;
  transition: color var(--t-fast);
}
.stat-item h3:hover { color: var(--secondary); }
.stat-item p { color: var(--text-muted); font-size: 0.85rem; }

/* ── SERVICES ──────────────────────────────────────── */
.services-section {
  position: relative; padding: clamp(60px,8vw,100px) 0;
  background: linear-gradient(135deg, var(--svc-bg-from), var(--svc-bg-to));
  overflow: hidden; z-index: 1;
  contain: layout;
}
[data-theme="dark"] .services-section { --svc-bg-from: #0d1117; --svc-bg-to: #161b27; }
.svc-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sblob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); mix-blend-mode: screen;
  animation: floatBlob 14s ease-in-out infinite alternate;
  will-change: transform;
}
.sblob-1 { width: 350px; height: 350px; background: rgba(0,212,255,.08); top:-100px; right:-80px; }
.sblob-2 { width: 280px; height: 280px; background: rgba(124,58,237,.07); bottom:-80px; left:-60px; animation-delay:3s; }
.sblob-3 { width: 200px; height: 200px; background: rgba(240,124,0,.05); top:50%; left:55%; animation-delay:1.5s; }
@keyframes floatBlob { 0%{transform:translateY(0) scale(1)} 100%{transform:translateY(-28px) scale(1.15)} }

.services-section .container { position: relative; z-index: 1; }
.services-section .section-title-main { color: var(--neon); text-align: center; margin-bottom: 50px; }
.services-grid { display: flex; flex-direction: column; gap: 24px; max-width: 1000px; margin-inline: auto; }

.service-item {
  display: flex; align-items: flex-start; gap: 22px;
  padding: clamp(18px,3vw,28px) clamp(18px,3vw,30px);
  background: var(--svc-card-bg); border: 1px solid var(--svc-card-border);
  border-left: 4px solid var(--neon);
  border-radius: 18px; backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  position: relative; overflow: hidden;
  transition: transform var(--t-base), background var(--t-base);
}
.service-item:hover { transform: translateX(8px); background: rgba(255,255,255,.08); }
.svc-icon {
  font-size: 2.2rem; flex-shrink: 0; line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon);
  filter: drop-shadow(0 0 8px var(--neon));
}
#icon_color { color: var(--primary-light); }
.svc-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--svc-text); margin-bottom: 6px; }
.svc-body p  { font-size: 0.92rem; color: var(--svc-sub); line-height: 1.65; }
.glow-line {
  position: absolute; bottom: 0; left: 10%;
  height: 2px; width: 80%;
  background: linear-gradient(to right, transparent, rgba(240,124,0,.7), transparent);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:.25;transform:scaleX(.5)} 50%{opacity:1;transform:scaleX(1)} }

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio-section { padding: clamp(50px,8vw,80px) 0; background: var(--bg); transition: background var(--t-slow); }
.portfolio-header { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 30px; }
.portfolio-header h4 { font-size: 1rem; font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 8px; }

.port-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 16px;
}
.filter-link {
  padding: 8px 20px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  transition: all var(--t-base); cursor: pointer;
}
.filter-link:hover  { border-color: var(--primary); color: var(--primary); }
.filter-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-slow);
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(11,51,232,.12); }
.project-card.hidden { display: none; }
.project-card__img { position: relative; overflow: hidden; height: 190px; }
.project-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
  /* Perf: lazy loading handled in HTML */
}
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__overlay {
  position: absolute; inset: 0;
  background: rgba(11,51,232,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t-base);
}
.project-card:hover .project-card__overlay { opacity: 1; }
.card-body { padding: 16px 18px; }
.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: rgba(11,51,232,.08);
  padding: 2px 10px; border-radius: 999px; margin-bottom: 6px;
}
.card-body h4 { font-size: 0.97rem; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.card-body p  { font-size: 0.85rem; color: var(--text-muted); }
.btn-view {
  background: var(--primary); color: #fff !important;
  padding: 8px 20px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; transition: all var(--t-base);
}
.btn-view:hover { background: var(--secondary); }

/* ── TESTIMONIALS — Full-Screen Carousel ─────────── */
.testimonial-section {
  padding: 0;
  background: var(--bg-alt);
  transition: background var(--t-slow);
  overflow: hidden;
}

/* Header sits above the carousel */
.testi-header {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: clamp(40px,6vw,60px) 0 0;
  margin-bottom: 0;
}
.testi-header h4 {
  font-size: 1rem; font-weight: 700; color: var(--heading);
  display: flex; align-items: center; gap: 8px;
}

/* Full-screen slide wrapper */
.testi-fullscreen {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

/* Track */
.testi-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Each slide = full viewport width */
.testi-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px,6vw,80px) clamp(20px,8vw,120px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

/* Subtle radial background per slide */
.testi-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Alternating slide accent colors */
 
.testi-slide:nth-child(4) { background: linear-gradient(135deg, #0b33e8); }
 

.testi-content {
  max-width: 780px; width: 100%; text-align: center;
  position: relative; z-index: 1;
}

/* Large quote icon */
.testi-quote-icon {
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(255,255,255,0.15);
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  display: block;
}

.testi-stars { color: #f7c948; margin-bottom: 20px; font-size: 1.2rem; letter-spacing: 4px; }

.testi-text {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 32px;
  font-weight: 300;
}

.testi-author {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.4);
}
.testi-author-info strong { display: block; font-size: 1rem; color: #fff; font-weight: 700; }
.testi-author-info span   { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* Prev/Next arrows */
.testi-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-base);
  backdrop-filter: blur(6px);
}
.testi-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }
.testi-arrow-prev { left: clamp(8px, 2vw, 24px); }
.testi-arrow-next { right: clamp(8px, 2vw, 24px); }

/* Dots */
.testi-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 28px 0 clamp(30px,5vw,50px);
  background: var(--bg-alt);
  transition: background var(--t-slow);
}
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: all var(--t-base); border: none;
}
.testi-dot.active { background: var(--primary); width: 28px; border-radius: 4px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-section { padding: clamp(50px,8vw,80px) 0; background: var(--bg); transition: background var(--t-slow); }
.faq-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.faq-header h4 { font-size: 1rem; font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 8px; }
.faq-sub { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }

.faq-container { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow var(--t-base), background var(--t-slow);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; width: 100%; text-align: left;
  background: none; transition: color var(--t-fast);
}
.faq-question span { font-size: 1rem; font-weight: 600; color: var(--primary); }
.faq-question:hover span { color: var(--secondary); }
.faq-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; transition: transform var(--t-base); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 22px 18px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }

/* ── CONTACT ────────────────────────────────────────── */
.contact-section { padding: clamp(50px,8vw,80px) 0; background: var(--bg-alt); transition: background var(--t-slow); }
.contact-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 40px; }
.contact-header h4 { font-size: 1rem; font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 8px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info, .contact-form-box {
  background: var(--surface); padding: clamp(20px,4vw,30px);
  border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.05);
  border: 1px solid var(--border); transition: background var(--t-slow);
}
.contact-info h3 { font-size: 1.6rem; font-weight: 700; color: var(--heading); margin-bottom: 18px; }
.contact-info p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.contact-info strong { color: var(--heading); }
.map-container { margin-top: 18px; border-radius: 10px; overflow: hidden; }
.map-container iframe { display: block; width: 100%; }

.contact-form-box form { display: flex; flex-direction: column; gap: 14px; }
.contact-form-box input,
.contact-form-box textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--bg); color: var(--text);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-slow);
  resize: vertical;
}
.contact-form-box input:focus,
.contact-form-box textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,51,232,.1);
}
.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder { color: var(--text-light); }
.contact-form-box button { padding: 14px; font-size: 1rem; border-radius: 8px; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--primary);
  color: rgba(255,255,255,.85);
  padding-top: 110px;
}
.footer-wave { position: absolute; top: 0; left: 0; right: 0; height: 90px; overflow: hidden; }
.footer-wave svg { width: 100%; height: 100%; }
.footer-wave path { fill: var(--bg-alt); transition: fill var(--t-slow); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-block: 40px;
}
.footer-logo img { height: 46px; filter: drop-shadow(0 0 8px #00bfff); margin-bottom: 10px; }
.footer-brand-text { font-size: 0.88rem; opacity: .75; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all var(--t-fast);
}
.footer-social a:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.footer-links h5, .footer-contact h5 {
  font-weight: 700; font-size: 0.85rem; color: #fff;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; opacity: .7; transition: all var(--t-fast); }
.footer-links a:hover { opacity: 1; padding-left: 4px; }
.footer-contact p { font-size: 0.88rem; opacity: .75; margin-bottom: 10px; display: flex; gap: 8px; }
.footer-contact p i { color: #ffb347; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; font-size: 0.82rem; opacity: .6; }

/* ── FAB Buttons ────────────────────────────────────── */
.fab-btn {
  position: fixed; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 2px 12px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all var(--t-base); cursor: pointer;
  will-change: transform, opacity;
}
.fab-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-btn:hover   { transform: translateY(-4px); }
.fab-wa  { right: 28px; bottom: 28px; background: #25d366; color: #fff; }
.fab-wa:hover  { background: #128c7e; }
.fab-top { right: 28px; bottom: 88px; background: var(--primary); color: #fff; border: none; }
.fab-top:hover { background: var(--secondary); }

/* ── Scroll-in animations ───────────────────────────── */
[data-anim] { opacity: 0; transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
[data-anim="up"]    { transform: translateY(30px); }
[data-anim="left"]  { transform: translateX(-30px); }
[data-anim="right"] { transform: translateX(30px); }
[data-anim].visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-inner  { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 65px; }

  /* Nav */
  .navbar-links, .navbar-cta-desktop { display: none !important; }
  .hamburger-btn { display: flex !important; }

  /* Hero */
  .hero__center { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 80px; }
  .hero__btns .btn, .hero__btns .btn-outline-light { width: 100%; max-width: 280px; text-align: center; }
  .hero__mute-btn { bottom: 80px; right: 14px; }
  .hero__stats { gap: 16px; }
  .hero__stats .stat-item:not(:last-child) { padding-right: 16px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { margin-bottom: 48px; }
  .experience-badge { bottom: -16px; right: 10px; }
  .floating-icon.icon-web  { left: -8px; }
  .floating-icon.icon-brush { right: -8px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Testimonials */
  .testi-slide { padding: 40px 20px; min-height: 350px; }
  .testi-arrow { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Services */
  .service-item { flex-direction: column; gap: 12px; }

  /* Contact */
  .contact-wrapper { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding-top: 80px; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 12px; }
  .hero__stats .stat-item:not(:last-child) {
    padding-right: 0; padding-bottom: 12px; border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .section-title-main { font-size: 1.5rem; }
  .testi-text { font-size: 0.95rem; }
  .testi-arrow { display: none; }
  .port-filters { gap: 6px; }
  .filter-link { padding: 6px 14px; font-size: 0.82rem; }
}

/* ── Print ──────────────────────────────────────────── */
@media print {
  .glass-nav, .fab-btn, .hero__mute-btn, .preloader { display: none !important; }
  body { padding-top: 0; }
}
