/* ============================================================
   BODLIZ STUDIO — styles.css
   Black background + emerald gem (logo-matched grid + particles)
   ============================================================ */

:root {
  /* emerald accent — from logo_bodliz gem facets */
  --green: #2ee6a0;
  --green-soft: #6fffc0;
  --green-dim: rgba(46, 230, 160, 0.14);
  --green-deep: #0d3d2e;
  --mint: #5fffd7;

  /* deep black backgrounds; dark forest cards */
  --black: #050807;
  --charcoal: #0a1210;
  --charcoal-2: #0e1814;
  --bg-warm: #07100c;

  --line: rgba(46, 230, 160, 0.16);
  --text: #e8fff4;
  --text-dim: #8aafa0;
  --navy: #040806;

  --glow: 0 0 16px rgba(46, 230, 160, 0.5), 0 0 44px rgba(46, 230, 160, 0.22);
  --radius: 14px;
  --maxw: 1180px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Oxanium', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

body.ai-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

a, button, input, select, textarea, .btn, .nav-toggle, .ai-launcher {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-cta-mobile { display: none; }

/* Full-page drifting grid (entire site, not just hero) */
.site-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
  animation: gridDrift 28s linear infinite;
  opacity: 0.45;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Page load fade-in / section leave fade-out */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(.2, .75, .2, 1),
    transform 0.75s cubic-bezier(.2, .75, .2, 1),
    filter 0.75s cubic-bezier(.2, .75, .2, 1);
}
body.page-ready .page-shell {
  opacity: 1;
  transform: none;
  filter: none;
}
body.page-exit .page-shell {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
  transition:
    opacity 0.4s cubic-bezier(.4, 0, .2, 1),
    transform 0.4s cubic-bezier(.4, 0, .2, 1),
    filter 0.4s cubic-bezier(.4, 0, .2, 1);
}

[id] { scroll-margin-top: 5.5rem; }

/* subtle warm + blue backdrop glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(46,230,160, 0.07), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(46,230,160, 0.05), transparent 45%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--green); color: #03140c; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #1a2e26; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-soft); }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--green); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--green);
  transition: width .18s, height .18s, background .18s, opacity .18s;
  opacity: .7;
}
.cursor-ring.hover { width: 56px; height: 56px; background: var(--green-dim); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 4px; width: 0%;
  background: linear-gradient(90deg, #0d3d2e, #2ee6a0, #5fffd7, #2ee6a0);
  box-shadow: var(--glow);
  z-index: 9998;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  position: relative;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .82rem; }

.btn-glow {
  background: linear-gradient(135deg, #1a9e6a 0%, #2ee6a0 45%, #5fffd7 100%);
  color: #03140c;
  box-shadow: var(--glow);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--green);
  opacity: 0;
  pointer-events: none;
}
.btn-glow:hover::after { animation: btnRing .8s ease-out; }
@keyframes btnRing {
  0% { opacity: .3; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.btn-glow:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 24px rgba(46,230,160,.8), 0 0 64px rgba(46,230,160,.4); }

.btn-outline {
  background: transparent;
  color: var(--green-soft);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-dim); transform: translateY(-3px); box-shadow: var(--glow); color: var(--green-soft); }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 13px rgba(46,230,160,.4), 0 0 34px rgba(46,230,160,.16); }
  50% { box-shadow: 0 0 22px rgba(46,230,160,.65), 0 0 56px rgba(46,230,160,.32); }
}

.accent { color: var(--green); }
.accent-text {
  color: var(--green);
  text-shadow: 0 0 18px rgba(46,230,160,.4);
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 7, 0.6);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.navbar.scrolled {
  background: rgba(5, 8, 7, 0.9);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(46,230,160,.65));
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .06em;
}
.brand-name .accent { text-shadow: 0 0 10px rgba(46,230,160,.8); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-dim);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green);
  box-shadow: var(--glow);
  transition: width .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--green);
  transition: transform .3s, opacity .3s;
}

/* ============ LAYOUT ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 1.5rem;
  position: relative;
  z-index: 1;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-tag {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--green-soft);
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #2ee6a0;
  margin-right: .7rem;
  box-shadow: 0 0 8px rgba(46,230,160,.6);
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #2ee6a0;
  border-radius: 2px;
  margin-top: .9rem;
}
.section-head .section-title::after { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--text-dim); margin-top: 1rem; font-size: 1.05rem; }

/* ============ HERO (stays dark navy + warm glow) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
  background: transparent;
  color: #e8fff4;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(46,230,160, 0.05), transparent 60%);
}
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(46,230,160,.10), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  animation: floatGlow 9s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,100% { transform: translateY(-20px) scale(1); }
  50% { transform: translateY(20px) scale(1.08); }
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.hero-logo {
  width: clamp(148px, 24vw, 220px);
  height: clamp(148px, 24vw, 220px);
  margin: 0 auto 1.25rem;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 36px rgba(46,230,160,.55));
  animation: floatGlow 9s ease-in-out infinite;
}
.hero-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  letter-spacing: .14em;
  margin-bottom: 1.1rem;
  color: #ffffff;
}
.hero-brand .accent { text-shadow: 0 0 14px rgba(46,230,160,.85); }
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: .25em;
  font-size: .8rem;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 1.6rem;
  color: #ffffff;
}
.hero-sub {
  color: #b8d4c8;
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  gap: 2.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--green);
  text-shadow: 0 0 16px rgba(46,230,160,.5);
}
.stat-label { font-size: .8rem; color: #8aafa0; letter-spacing: .08em; text-transform: uppercase; }

/* glitch headline word */
.glitch { position: relative; color: var(--green); text-shadow: 0 0 18px rgba(46,230,160,.5); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden;
  color: var(--green);
}
.glitch::before { animation: glitch 2.6s infinite linear alternate; opacity: .75; }
.glitch::after { animation: glitch 3.2s infinite linear alternate-reverse; opacity: .55; }
@keyframes glitch {
  0%,100% { clip-path: inset(0 0 98% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(45% 0 40% 0); transform: translate(2px, 0); }
  40% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(20% 0 70% 0); transform: translate(1px, 0); }
  80% { clip-path: inset(60% 0 25% 0); transform: translate(-2px, 0); }
}

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--green); border-radius: 14px; position: relative;
}
.mouse::before {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--green);
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:1;top:7px;} 100%{opacity:0;top:18px;} }
.scroll-text { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .3em; color: #8aafa0; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(46,230,160,.10), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: inset 3px 0 0 0 var(--green), 0 18px 40px rgba(26,26,46,.12), 0 0 26px rgba(46,230,160,.16);
}
.service-card:hover::before { opacity: 1; }
.featured-service { border-color: rgba(46,230,160,.45); }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-dim);
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
  color: var(--green-soft);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: .6rem; }
.service-card p { color: var(--text-dim); font-size: .96rem; position: relative; z-index: 1; }

/* ============ PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 8px 32px rgba(46,230,160,0.12), 0 18px 40px rgba(26,26,46,.12); }
.project-featured { grid-column: 1 / -1; flex-direction: row; }
.project-media { position: relative; flex: 1; min-height: 200px; overflow: hidden; }
.project-featured .project-media { flex: 0 0 45%; }
.project-art {
  width: 100%; height: 100%; min-height: 200px;
  background-size: 200% 200%;
  animation: artShift 8s ease infinite;
}
@keyframes artShift { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }
.project-img {
  width: 100%; height: 100%; min-height: 200px;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-contain {
  object-fit: contain;
  background: #ffffff;
  padding: 1.6rem;
}
.art-watch { background-image: linear-gradient(135deg, #002233, #2ee6a0 60%, #003a4d); }
.art-1 { background-image: linear-gradient(135deg, #00222e, #009fd6, #002233); }
.art-2 { background-image: linear-gradient(135deg, #001f2a, #6fffc0, #002a38); }
.art-3 { background-image: linear-gradient(135deg, #052033, #33c6ff, #04263b); }
.featured-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--green); color: #03140c;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .1em;
  box-shadow: var(--glow); z-index: 2;
}
.project-body { padding: 1.7rem; display: flex; flex-direction: column; gap: .8rem; }
.project-featured .project-body { justify-content: center; flex: 1; }
.project-body h3 { font-family: var(--font-head); font-size: 1.5rem; }
.project-body p { color: var(--text-dim); font-size: .96rem; }
.project-body p strong { color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--font-mono); font-size: .72rem;
  padding: .25rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--green-soft);
  background: var(--green-dim);
}
.project-body .btn { align-self: flex-start; margin-top: .4rem; }

/* ============ PACKAGES / PRICING ============ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.package-card {
  position: relative;
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.package-card:hover { transform: translateY(-8px); border-color: var(--green); box-shadow: 0 8px 32px rgba(46,230,160,0.12), 0 18px 40px rgba(26,26,46,.12); }
.package-popular {
  border-color: var(--green);
  box-shadow: 0 0 26px rgba(46,230,160,.16);
}
.package-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #03140c;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; padding: .3rem .8rem; border-radius: 999px;
  box-shadow: var(--glow); white-space: nowrap;
}
.package-head h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: .5rem; }
.package-desc { color: var(--text-dim); font-size: .95rem; min-height: 3.2em; }
.package-price {
  display: flex; align-items: baseline; gap: .7rem;
  margin: 1.4rem 0 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.price-old { font-family: var(--font-mono); color: #6e8a7c; text-decoration: line-through; font-size: 1.05rem; }
.price-now {
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
  color: var(--green-soft); text-shadow: 0 0 18px rgba(46,230,160,.35);
  display: inline-flex; align-items: baseline; gap: .4rem;
}
.price-around {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-shadow: none;
  text-transform: lowercase;
  margin-right: .35rem;
}
.package-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; flex: 1; }
.package-list li {
  position: relative; padding-left: 1.6rem; color: var(--text-dim); font-size: .94rem;
}
.package-list li::before {
  content: "▹"; position: absolute; left: 0; color: var(--green-soft);
}
.package-card .btn { width: 100%; justify-content: center; }
.packages-note {
  max-width: 760px; margin: 2.6rem auto 0; text-align: center;
  color: var(--text-dim); font-size: .92rem;
  border: 1px dashed var(--line); border-radius: 12px; padding: 1.1rem 1.4rem;
}
.packages-note strong { color: var(--green-soft); }

/* ============ ABOUT ============ */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text { color: var(--text-dim); margin-top: 1.2rem; font-size: 1.04rem; }
.about-text strong { color: var(--text); }
.about-motto {
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--green-soft);
  border-left: 3px solid var(--green);
  padding-left: 1rem;
}
.skills-title { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1.2rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.skill {
  font-family: var(--font-mono); font-size: .82rem;
  padding: .45rem .9rem; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text);
  background: var(--charcoal);
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s;
}
.skill:hover { transform: translateY(-3px); border-color: var(--green); color: var(--green-soft); box-shadow: var(--glow); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stat {
  background: var(--charcoal); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem;
}
.about-num { display: block; font-family: var(--font-head); font-weight: 700; color: var(--green-soft); font-size: 1.05rem; }
.about-cap { font-size: .82rem; color: var(--text-dim); }

/* ============ CONTACT ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-lead { color: var(--text-dim); margin-top: 1.2rem; font-size: 1.05rem; }
.contact-info { margin-top: 2rem; }
.contact-email {
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--green-soft); text-shadow: 0 0 16px rgba(46,230,160,.3);
  display: inline-block; transition: transform .2s;
}
.contact-email:hover { transform: translateX(4px); }
.contact-note { color: var(--text-dim); font-size: .92rem; margin-top: 1rem; }
.contact-note strong { color: var(--text); }

.contact-form {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--text);
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim);
}
.field input::placeholder, .field textarea::placeholder { color: #7a9a8c; }
.field select { cursor: pointer; }
.field select option { background: var(--charcoal); }
.btn-submit { justify-content: center; margin-top: .4rem; }
.btn-submit.sent { background: #18b27a; color: #fff; }
.form-status { font-family: var(--font-mono); font-size: .85rem; color: var(--green-soft); min-height: 1.2em; }

/* ============ FOOTER ============ */
.footer {
  background: var(--charcoal);
  position: relative; z-index: 1;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: .6rem; max-width: 320px; }
.footer-brand .brand-name { display: inline-flex; align-items: center; }
.footer-logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(46,230,160,.6)); border-radius: 50%; }
.footer-tag { color: var(--text-dim); font-size: .92rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: var(--text-dim); transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--green-soft); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.3rem 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .82rem;
}

/* ============ PRIVACY MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--charcoal);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 2.4rem;
  position: relative;
  box-shadow: 0 0 40px rgba(46,230,160,.2), 0 24px 60px rgba(26,26,46,.18);
  transform: translateY(20px) scale(.98);
  transition: transform .3s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: 1px solid var(--line); color: var(--green-soft);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--green-dim); transform: rotate(90deg); }
.modal-title { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1.4rem; }
.modal-body h4 { font-family: var(--font-head); color: var(--green-soft); margin: 1.3rem 0 .4rem; }
.modal-body p { color: var(--text-dim); font-size: .95rem; }
.modal-body a { color: var(--green-soft); }

/* ============ AZRA AI CHAT WIDGET ============ */
.ai-widget {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: .55rem;
}
.ai-bubble {
  background: var(--charcoal);
  border: 1px solid var(--green);
  color: var(--text);
  font-size: .88rem;
  font-family: var(--font-body);
  padding: .65rem 1rem;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 0 18px rgba(46,230,160,.18);
  max-width: 200px;
  position: relative;
  animation: aiBubbleFloat 3.5s ease-in-out infinite;
  transition: opacity .3s, transform .3s;
}
.ai-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px; right: 22px;
  width: 14px; height: 14px;
  background: var(--charcoal);
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  transform: rotate(45deg);
}
.ai-bubble.hidden { opacity: 0; pointer-events: none; transform: translateX(8px); animation: none; }
@keyframes aiBubbleFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

.ai-launcher {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 20px;
  background: linear-gradient(160deg, #0a1f16, #050c09);
  border: 1px solid var(--green);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(46,230,160,.35);
  transition: transform .25s, box-shadow .25s;
}
.ai-launcher:hover { transform: scale(1.06); box-shadow: 0 0 34px rgba(46,230,160,.6); }
.ai-launcher-logo { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(46,230,160,.6)); border-radius: 50%; }
.ai-avatar { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(46,230,160,.6)); border-radius: 50%; }
.ai-pulse {
  position: absolute; inset: -1px; border-radius: 18px;
  border: 1px solid var(--green); opacity: .6;
  animation: aiPulse 2.2s ease-out infinite;
}
@keyframes aiPulse { 0%{transform:scale(1);opacity:.6;} 100%{transform:scale(1.35);opacity:0;} }

.ai-panel {
  position: absolute;
  bottom: 0; right: 0;
  width: min(370px, calc(100vw - 2.4rem));
  height: min(540px, calc(100vh - 3rem));
  background: var(--charcoal);
  border: 1px solid var(--green);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(46,230,160,.22), 0 24px 60px rgba(26,26,46,.2);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .28s, transform .28s, visibility .28s;
}
.ai-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ai-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46,230,160,.08), transparent);
}
.ai-header-id { display: flex; align-items: center; gap: .7rem; }
.ai-header-id strong { font-family: var(--font-head); display: block; font-size: 1rem; }
.ai-status { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); display: flex; align-items: center; gap: .35rem; }
.ai-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: var(--glow); display: inline-block; }
.ai-close { background: none; border: none; color: var(--text-dim); font-size: 1rem; cursor: pointer; transition: color .2s, transform .2s; }
.ai-close:hover { color: var(--green-soft); transform: rotate(90deg); }

.ai-messages {
  flex: 1; overflow-y: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: .8rem;
  background: var(--black);
}
.ai-msg {
  max-width: 85%;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ai-msg-bot { align-self: flex-start; background: var(--charcoal); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.ai-msg-user { align-self: flex-end; background: var(--green); color: #03140c; border-bottom-right-radius: 3px; font-weight: 500; }
.ai-msg-typing { align-self: flex-start; color: var(--green-soft); font-family: var(--font-mono); }
.ai-msg-typing span { animation: aiBlink 1.2s infinite; }
.ai-msg-typing span:nth-child(2){ animation-delay:.2s; } .ai-msg-typing span:nth-child(3){ animation-delay:.4s; }
@keyframes aiBlink { 0%,100%{opacity:.2;} 50%{opacity:1;} }

.ai-limit {
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim);
  text-align: center; padding: .3rem .6rem 0; min-height: 1em;
}
.ai-limit.maxed { color: #d6336c; }

.ai-input {
  display: flex; gap: .5rem; padding: .8rem;
  border-top: 1px solid var(--line); background: var(--charcoal);
}
.ai-input input {
  flex: 1; background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: 10px; padding: .7rem .9rem; color: var(--text);
  font-family: var(--font-body); font-size: .9rem;
}
.ai-input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.ai-send {
  width: 44px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--green); color: #03140c; font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--glow); transition: transform .2s;
}
.ai-send:hover { transform: scale(1.05); }
.ai-send:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

@media (max-width: 480px) {
  .ai-bubble { max-width: 165px; font-size: .8rem; }
  .ai-launcher { width: 68px; height: 68px; }
  .ai-launcher-logo { width: 48px; height: 48px; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-featured { flex-direction: column; }
  .project-featured .project-media { flex: 0 0 220px; }
}

@media (max-width: 760px) {
  .site-grid { background-attachment: scroll; animation-duration: 40s; opacity: 0.3; }

  .page-shell,
  body.page-enter .page-shell,
  body.page-exit .page-shell {
    filter: none !important;
    transform: none;
  }
  body.page-enter .page-shell { opacity: 0; transform: translateY(10px); }
  body.page-exit .page-shell { opacity: 0; transform: translateY(-6px); }

  .nav-links {
    position: fixed;
    top: 64px; right: 0;
    height: calc(100dvh - 64px);
    width: min(85vw, 320px);
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    background: var(--charcoal);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.15rem; padding: .35rem 0; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: list-item; margin-top: .5rem; }
  .nav-cta-mobile .btn { width: 100%; justify-content: center; }
  .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); }

  .section { padding: 4.5rem 1rem; max-width: 100%; }
  .section-head { margin-bottom: 2.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero { padding: 5.5rem 1rem 3rem; min-height: auto; }
  .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-sub { font-size: 1rem; }

  .field input,
  .field select,
  .field textarea,
  .ai-input input {
    font-size: 16px;
    min-height: 48px;
  }

  .ai-widget {
    bottom: max(.85rem, env(safe-area-inset-bottom));
    right: max(.85rem, env(safe-area-inset-right));
    z-index: 1000;
  }
  .ai-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--green);
    transform: translateY(100%) scale(1);
    transform-origin: center bottom;
    z-index: 1001;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .28s, visibility .28s;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ai-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }
  .ai-messages { -webkit-overflow-scrolling: touch; }
  .ai-launcher { width: 58px; height: 58px; }
  .ai-launcher:active { transform: scale(0.96); }
  .ai-close {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }
  .ai-send { min-width: 48px; min-height: 48px; }
  .ai-bubble { max-width: min(200px, calc(100vw - 5rem)); }

  .modal {
    max-height: 90dvh;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: .95rem; }
  .brand-logo { width: 52px; height: 52px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .package-price { flex-wrap: wrap; }
  .price-now { font-size: 1.85rem; }
}

/* reduced motion */
@media (hover: none) and (pointer: coarse) {
  .page-shell,
  body.page-enter .page-shell,
  body.page-exit .page-shell {
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .bg-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
  .page-shell { opacity: 1; transform: none; filter: none; transition: none; }
  body.page-enter .page-shell,
  body.page-exit .page-shell { opacity: 1; transform: none; filter: none; }
}
