/* ============================================================
   RIGEL Digital Solutions — style.css
   Dark + Neon/Tech theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0f;
  --surface:   #111118;
  --surface2:  #16161f;
  --border:    #1e1e2e;
  --cyan:      #00d4ff;
  --purple:    #7c3aed;
  --pink:      #ec4899;
  --gradient:  linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient2: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --text:      #ffffff;
  --muted:     #a0a0b0;
  --dim:       #5a5a7a;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0, 212, 255, 0.08);
  --shadow-lg: 0 8px 48px rgba(124, 58, 237, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; color: var(--muted); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-2 {
  background: var(--gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glitch Effect ─────────────────────────────────────────── */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--cyan);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-1 4s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--purple);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-2 3.5s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
  0%   { clip-path: polygon(0 0%, 100% 0%, 100% 5%, 0 5%); transform: translate(-2px); }
  20%  { clip-path: polygon(0 30%, 100% 30%, 100% 45%, 0 45%); }
  40%  { clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); transform: translate(2px); }
  60%  { clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%); }
  80%  { clip-path: polygon(0 80%, 100% 80%, 100% 95%, 0 95%); transform: translate(-2px); }
  100% { clip-path: polygon(0 50%, 100% 50%, 100% 65%, 0 65%); transform: translate(0); }
}
@keyframes glitch-2 {
  0%   { clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%); transform: translate(2px); }
  25%  { clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%); }
  50%  { clip-path: polygon(0 45%, 100% 45%, 100% 60%, 0 60%); transform: translate(-2px); }
  75%  { clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%); }
  100% { clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%); transform: translate(0); }
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
}

.nav-logo img { height: 40px; width: auto; }
.nav-logo > span { display: none; }
.footer-brand .nav-logo img { height: 32px; width: auto; }
.footer-brand .nav-logo > span { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta { flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0, 212, 255, 0.3); }
  50%       { border-color: rgba(0, 212, 255, 0.8); }
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dim);
  font-weight: 500;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}
@keyframes scroll-line {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

/* ── Service Cards ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.service-card:hover::before { opacity: 0.04; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.9rem; margin-bottom: 20px; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ── Why Us ────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.why-card h3 { margin-bottom: 12px; }

/* ── Blog Cards ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.12);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface2);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--surface2), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 24px; }

.blog-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.blog-card:hover h3 { color: var(--cyan); }
.blog-card p { font-size: 0.875rem; margin-bottom: 16px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--dim);
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px; right: -100px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  bottom: -150px; left: -50px;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 24px;
  font-size: 0.9rem;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--muted);
}
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 0.85rem; }

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ── Inner Page Hero ───────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--dim); transition: var(--transition); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--muted); }

/* ── Service Detail ────────────────────────────────────────── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-big-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 28px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.benefit-item:hover {
  border-color: rgba(0,212,255,0.3);
}

.benefit-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.benefit-item h4 { margin-bottom: 4px; font-size: 0.95rem; }
.benefit-item p  { font-size: 0.85rem; }

/* ── Process Steps ─────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h4 { margin-bottom: 8px; }
.process-step p  { font-size: 0.85rem; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(0,212,255,0.3); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  transition: var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--surface2); }

.faq-chevron {
  font-size: 0.7rem;
  color: var(--cyan);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── Related Services ──────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item a,
.contact-info-item p { color: var(--muted); font-size: 0.9rem; }
.contact-info-item a:hover { color: var(--cyan); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--surface); }

/* ── Blog Page ─────────────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,212,255,0.05);
}

/* ── Blog Post ─────────────────────────────────────────────── */
.post-header { padding: 160px 0 48px; }
.post-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 100px;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.post-body h2, .post-body h3 { color: var(--text); margin: 40px 0 16px; }
.post-body p { margin-bottom: 20px; }
.post-body ul, .post-body ol { margin: 20px 0 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-body li { color: var(--muted); }
.post-body strong { color: var(--text); }
.post-body a { color: var(--cyan); }
.post-body a:hover { text-decoration: underline; }

.post-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 { margin-bottom: 16px; }

.share-links { display: flex; gap: 10px; }
.share-link {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  color: var(--muted);
}
.share-link:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Admin Panel ───────────────────────────────────────────── */
.admin-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-box h2 { margin-bottom: 8px; }
.login-box p  { margin-bottom: 32px; }

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.posts-table th, .posts-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
}
.posts-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.posts-table td { border-top: 1px solid var(--border); }
.posts-table tr:hover td { background: var(--surface2); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
}

.post-editor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

.glow-cyan   { box-shadow: 0 0 30px rgba(0,212,255,0.2); }
.glow-purple { box-shadow: 0 0 30px rgba(124,58,237,0.2); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(124,58,237,0.1);
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.2);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .blog-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .process-grid    { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .related-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open + .nav-cta { display: block; padding: 16px; background: var(--surface); }

  .services-grid   { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .process-grid    { grid-template-columns: 1fr; }
  .related-grid    { grid-template-columns: 1fr; }

  .service-detail-grid { grid-template-columns: 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .post-content-wrapper { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }

  .cta-banner { padding: 40px 24px; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr; }
}

/* ── AOS override for dark backgrounds ─────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Loading state ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
