/* ===================================================
   MAHIN & TEAM — style.css
   Premium Portfolio — Dark/Light Theme
=================================================== */

/* ── Variables ── */
:root {
  --bg: #080b14;
  --bg2: #0d1120;
  --bg3: #111827;
  --surface: #141a2b;
  --surface2: #1a2236;
  --border: rgba(255,255,255,0.07);
  --text: #f0f4ff;
  --text2: #8b97b8;
  --text3: #5a6480;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent-glow: rgba(99,102,241,0.3);
  --green: #10b981;
  --orange: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

[data-theme="light"] {
  --bg: #f8f9fe;
  --bg2: #f0f2fa;
  --bg3: #e8ebf5;
  --surface: #ffffff;
  --surface2: #f4f5ff;
  --border: rgba(0,0,0,0.08);
  --text: #0d1120;
  --text2: #4a5272;
  --text3: #8b95b5;
  --accent-glow: rgba(99,102,241,0.15);
  --shadow: 0 8px 32px rgba(99,102,241,0.12);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ── Section Typography ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-title { margin-bottom: 0; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(248,249,254,0.9);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: var(--text); flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text2);
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text2);
  font-size: 15px; transition: all var(--transition);
}
.theme-toggle:hover { background: var(--accent); color: #fff; }
.btn-hire {
  font-size: 13px; font-weight: 600; padding: 9px 20px;
  border-radius: 10px; background: var(--accent);
  color: #fff; transition: all var(--transition);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-hire:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.orb1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: 5%; }
.orb2 { width: 400px; height: 400px; background: #ec4899; bottom: 0; left: -100px; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: #06b6d4; top: 30%; left: 40%; animation-delay: -5s; }
@keyframes orb-float {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(40px,30px) scale(1.1); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 780px; animation: hero-in 0.9s ease both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
  font-family: var(--font-head); font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.hero-title .line1, .hero-title .line2 { display: block; }
.hero-title .amp { color: var(--accent); font-size: 0.6em; display: inline; }
.hero-motto {
  font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text2);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 14px 28px;
  border-radius: 12px; transition: all var(--transition);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2); transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary i { transition: transform var(--transition); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 28px; border-radius: 12px; transition: all var(--transition);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 32px; gap: 32px;
  display: inline-flex;
}
.hstat { text-align: center; }
.hstat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); }
.hstat span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hstat small { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; font-weight: 500; }
.hstat-div { width: 1px; height: 40px; background: var(--border); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text3); animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes scroll-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; align-items: center;
}
.about-visual { position: relative; min-height: 420px; }
.about-card-bg {
  position: absolute; inset: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  transform: rotate(-3deg);
}
.about-shape {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 24px; opacity: 0.9;
  display: flex; align-items: center; justify-content: center;
}
.about-shape::before {
  content: '{ }';
  font-family: var(--font-head); font-size: 6rem; font-weight: 800;
  color: rgba(255,255,255,0.15); letter-spacing: -0.05em;
}
.about-img-wrap { position: relative; height: 420px; }
.about-badge-float {
  position: absolute; bottom: 24px; right: -20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-card);
}
.about-badge-float i { color: #f59e0b; }
.about-text p { color: var(--text2); margin-bottom: 16px; }
.about-text p strong { color: var(--accent); }
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 36px;
}
.stat-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
  transition: all var(--transition);
}
.stat-box:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--accent); display: block;
}
.stat-plus { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-box small { font-size: 12px; color: var(--text3); margin-top: 4px; display: block; }

/* ══════════════════════════════════
   TEAM
══════════════════════════════════ */
.team { background: var(--bg); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all var(--transition); position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  animation: card-in 0.5s ease both;
}
.team-card:nth-child(1) { animation-delay: 0s; }
.team-card:nth-child(2) { animation-delay: 0.08s; }
.team-card:nth-child(3) { animation-delay: 0.16s; }
.team-card:nth-child(4) { animation-delay: 0.24s; }
.team-card:nth-child(5) { animation-delay: 0.32s; }
.team-card:nth-child(6) { animation-delay: 0.40s; }
.team-card:nth-child(7) { animation-delay: 0.48s; }
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
.team-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent2)));
  opacity: 0; transition: opacity var(--transition); z-index: 0;
}
.team-card:hover::before { opacity: 0.06; }
.team-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent2)));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: #fff; position: relative; z-index: 1;
}
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 20px;
  border: 2px dashed transparent;
  background: linear-gradient(135deg, var(--c1,var(--accent)), var(--c2,var(--accent2))) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  opacity: 0; transition: opacity var(--transition);
}
.team-card:hover .avatar-ring { opacity: 1; }
.team-info { position: relative; z-index: 1; }
.team-info h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.team-info .role { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.team-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.team-skills span {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-glow); padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.03em;
}
.team-socials {
  display: flex; gap: 10px; margin-top: auto; position: relative; z-index: 1;
}
.team-socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text2);
  transition: all var(--transition);
}
.team-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.services { background: var(--bg2); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative;
  transition: all var(--transition); overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.featured-service {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface) 60%, rgba(99,102,241,0.08));
}
.service-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent); margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text2); margin-bottom: 18px; line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-size: 11px; color: var(--text3);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
.projects { background: var(--bg); }
.filter-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  font-size: 13px; font-weight: 600; padding: 9px 20px;
  border-radius: 10px; border: 1px solid var(--border);
  color: var(--text2); background: var(--surface);
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all var(--transition); cursor: pointer;
}
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.proj-img {
  height: 180px; background: var(--pg);
  position: relative; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.proj-icon { font-size: 3rem; color: rgba(255,255,255,0.85); z-index: 1; }
.proj-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-overlay span {
  font-size: 14px; font-weight: 700; color: #fff;
  border: 2px solid #fff; padding: 10px 20px; border-radius: 10px;
  transition: all var(--transition);
}
.proj-body { padding: 20px; }
.proj-body h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.proj-body p { font-size: 13px; color: var(--text2); margin-bottom: 14px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-stack span {
  font-size: 11px; color: var(--accent);
  background: var(--accent-glow); padding: 3px 9px;
  border-radius: 6px; font-weight: 600;
}
.proj-card.hidden { display: none; }

/* ══════════════════════════════════
   TESTIMONIALS
══════════════════════════════════ */
.testimonials { background: var(--bg2); overflow: hidden; }
.testi-marquee-wrap { display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.testi-marquee {
  display: flex; gap: 16px; width: max-content;
  animation: marquee-left 40s linear infinite;
}
.testi-marquee-reverse { animation: marquee-right 40s linear infinite !important; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
  min-width: 280px; max-width: 320px; flex-shrink: 0;
  transition: all var(--transition);
}
.testi-card:hover { border-color: var(--accent); transform: scale(1.02); }
.testi-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.testi-meta h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.testi-meta small { font-size: 12px; color: var(--text3); }
.testi-stars { color: #f59e0b; font-size: 12px; margin-bottom: 10px; }
.testi-text { font-size: 13px; color: var(--text2); line-height: 1.6; }
.testi-quote { font-size: 2rem; color: var(--accent); opacity: 0.4; line-height: 1; float: left; margin-right: 6px; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
.contact-left p { color: var(--text2); margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.cinfo-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
  transition: all var(--transition);
}
.cinfo-item:hover { border-color: var(--accent); transform: translateX(4px); }
.cinfo-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.cinfo-item small { display: block; font-size: 11px; color: var(--text3); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.08em; }
.cinfo-item span { font-size: 14px; font-weight: 500; color: var(--text); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text2); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  transition: border-color var(--transition);
  resize: none;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-form {
  flex: 1; min-width: 140px; padding: 13px 20px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
}
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.btn-email { background: var(--accent); color: #fff; }
.btn-email:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 4px 16px var(--accent-glow); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 14px; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text2); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; font-size: 13px; color: var(--text3);
}

/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; width: 100%; max-width: 700px;
  max-height: 90vh; overflow-y: auto;
  position: relative; transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg3); color: var(--text2); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 10;
}
.modal-close:hover { background: #ef4444; color: #fff; }
.modal-img {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,0.85);
  border-radius: 20px 20px 0 0; overflow: hidden;
}
.modal-body { padding: 28px; }
.modal-body h2 {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.modal-body .modal-desc { color: var(--text2); margin-bottom: 24px; line-height: 1.7; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px;
}
.modal-features { display: flex; flex-direction: column; gap: 8px; }
.modal-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text2); }
.modal-features li::before { content: '✦'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.modal-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-tech span {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,0.3);
  padding: 5px 12px; border-radius: 8px;
}
.modal-feedback {
  background: var(--bg3); border-radius: 14px; padding: 20px;
  border-left: 3px solid var(--accent);
}
.modal-feedback p { font-size: 14px; color: var(--text2); font-style: italic; margin-bottom: 12px; }
.modal-feedback .fb-author { display: flex; justify-content: space-between; align-items: center; }
.modal-feedback .fb-name { font-size: 14px; font-weight: 700; color: var(--text); }
.modal-feedback .fb-stars { color: #f59e0b; font-size: 13px; }

/* ══════════════════════════════════
   ANIMATIONS & UTILITIES
══════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; z-index: 999; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(3rem, 15vw, 6rem); }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hstat-div { width: 60px; height: 1px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .br-hide { display: none; }
}
@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-stats { padding: 16px 20px; }
  .form-actions { flex-direction: column; }
}
