/* ═══════════════════════════════════════════════════════
   LogicLab New — Dark Glassmorphic Mobile-First Design
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --primary:   #6366f1;
  --secondary: #8b5cf6;
  --accent:    #06b6d4;
  --pink:      #f472b6;
  --blue:      #60a5fa;
  --purple:    #a78bfa;

  --bg-deep:   #050510;
  --bg-dark:   #0b1122;
  --bg-card:   rgba(255,255,255,0.05);
  --border:    rgba(255,255,255,0.08);

  --text:      #e5eefb;
  --text-muted:#8ba8d8;
  --text-dim:  #556a8a;

  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(0,0,0,0.35);
  --glow:      0 0 40px rgba(99,102,241,0.25);

  --font: 'Poppins', sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

/* ── Custom Cursor (desktop only) ──────────────────── */
/* cursor:none is only applied when JS successfully initialised the custom cursor */
@media (pointer: fine) {
  body.custom-cursor-enabled { cursor: none; }
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--purple);
    transform: translate(-50%, -50%);
    transition: width .15s, height .15s, background .15s;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(167,139,250,0.55);
    transform: translate(-50%, -50%);
    transition: transform .08s linear, width .2s, height .2s, border-color .2s;
  }
  .cursor-ring.hovering {
    width: 52px; height: 52px;
    border-color: rgba(96,165,250,0.7);
    background: rgba(99,102,241,0.06);
  }
  /* Cursor label — shown only while mouse is moving */
  .cursor-label {
    position: fixed; top: 0; left: 0; z-index: 9997; pointer-events: none;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--purple);
    background: rgba(5,5,16,0.72);
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 20px;
    padding: 2px 10px 2px 8px;
    white-space: nowrap;
    transform: translate(18px, -50%);
    opacity: 0;
    transition: opacity .25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .cursor-label.visible { opacity: 1; }
  body.custom-cursor-enabled a:hover,
  body.custom-cursor-enabled button:hover,
  body.custom-cursor-enabled [role="button"]:hover { cursor: none; }
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Canvas Background ─────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.55;
}

/* ── Page Wrapper ──────────────────────────────────── */
.page-wrap { position: relative; z-index: 1; }

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,16,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 60px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700; white-space: nowrap;
}
.header-brand img { height: 36px; width: auto; border-radius: 6px; }
.header-brand .brand-name { color: var(--purple); }
.header-brand .brand-tag  { color: var(--text-muted); font-size: .8em; font-weight: 400; }

/* ── Nav ────────────────────────────────────────────── */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.nav-toggle-label span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

.site-nav {
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  min-height: 44px; display: flex; align-items: center;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-cta {
  background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
  color: #fff !important; padding: 8px 20px !important;
  border-radius: 999px !important; font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(99,102,241,0.35) !important;
}

@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(5,5,16,0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 4px;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 500px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
}

/* ── Hero / Center Logo ─────────────────────────────── */
.hero-center {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 100px) clamp(16px, 5vw, 60px);
  position: relative;
}
.hero-logo-wrap {
  position: relative; display: inline-block;
  margin-bottom: clamp(24px, 4vh, 40px);
  animation: floatY 3.5s ease-in-out infinite;
}
.hero-logo-wrap img {
  width: clamp(80px, 15vw, 140px); height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 0 30px rgba(99,102,241,0.5));
}
.hero-logo-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.3);
  animation: ringPulse 2.5s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes ringPulse {
  0%,100% { opacity: .3; transform: scale(1); }
  50%     { opacity: .7; transform: scale(1.06); }
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.18;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: .95rem; font-weight: 600;
  transition: var(--transition);
  min-height: 48px; border: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(99,102,241,0.6); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--purple); }

/* ── Section Layout ─────────────────────────────────── */
.section {
  padding: clamp(48px, 8vw, 100px) clamp(16px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto;
}
.section-full { padding: clamp(48px, 8vw, 100px) 0; }
.section-full .section-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 6vw, 80px); }
.section-header { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--text);
  line-height: 1.22;
}
.section-sub {
  margin-top: 12px; font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: var(--text-muted); max-width: 640px; margin-inline: auto;
}

/* ── Glass Card ─────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.glass-card::before {
  content: ''; position: absolute;
  inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(99,102,241,0.12) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--glow), var(--shadow); border-color: rgba(167,139,250,0.3); }
.glass-card:hover::before { opacity: 1; }

/* ── Cards Grid ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.home-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  min-height: 180px;
  cursor: pointer; text-decoration: none;
  color: var(--text);
}
.home-card-icon {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(167,139,250,0.5));
}
.home-card-title { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; }
.home-card-sub   { font-size: .85rem; color: var(--text-muted); }

/* ── Services Grid ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.service-card .svc-icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.service-card p  { font-size: .9rem; color: var(--text-muted); }

/* ── Blog Grid ──────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.blog-card { display: flex; flex-direction: column; }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.blog-card-body { flex: 1; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-cat  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.blog-card-title:hover { color: var(--purple); }
.blog-card-date { font-size: .8rem; color: var(--text-muted); margin-top: auto; }

/* ── Testimonials ───────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.testi-card blockquote { font-size: .95rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.65; }
.testi-card cite       { font-size: .85rem; font-weight: 700; color: var(--text); font-style: normal; }

/* ── Team Grid ──────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.team-card { text-align: center; }
.team-card img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px;
  border: 2px solid var(--border);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}
.team-card h4 { font-size: 1rem; font-weight: 700; }
.team-card p  { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
.team-card a  { display: inline-block; margin-top: 8px; color: var(--blue); font-size: .8rem; }

/* ── Contact Form ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-group { display: grid; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: rgba(5,5,16,0.95);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 6vw, 80px) 0;
  margin-top: clamp(48px, 8vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(28px, 5vw, 56px);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; border-radius: 8px; }
.footer-brand p   { font-size: .88rem; color: var(--text-muted); line-height: 1.65; max-width: 240px; }
.footer-col h5    { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col li    { margin-bottom: 10px; }
.footer-col a     { font-size: .88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-icon:hover { color: var(--text); border-color: var(--purple); background: rgba(139,92,246,0.12); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-muted);
}

/* ── Page Content ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 6vw, 80px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
.page-hero .breadcrumb { margin-top: 10px; font-size: .88rem; color: var(--text-muted); }
.page-content {
  max-width: 860px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 6vw, 80px);
}
.page-content h1,h2,h3,h4 { color: var(--text); margin: 24px 0 12px; }
.page-content p  { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.page-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.page-content a  { color: var(--blue); text-decoration: underline; }

/* ── View / Embed Page ──────────────────────────────── */
.embed-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; background: rgba(5,5,16,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(12px, 3vw, 24px);
  font-size: .9rem;
}
.embed-topbar .back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.07); color: var(--text);
  font-weight: 600; font-size: .85rem;
  transition: background var(--transition);
  min-height: 36px;
}
.embed-topbar .back-btn:hover { background: rgba(255,255,255,0.12); }
.embed-frame { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; border: none; width: 100%; height: calc(100vh - 52px); }

/* ── Alert / Flash ──────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; font-weight: 600; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: rgba(244,63,94,0.12);  border: 1px solid rgba(244,63,94,0.3);  color: #fda4af; }

/* ── Badge ──────────────────────────────────────────── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-new  { background: rgba(6,182,212,0.15); color: #67e8f9; }
.badge-pop  { background: rgba(99,102,241,0.2); color: #a5b4fc; }

/* ── Newsletter ─────────────────────────────────────── */
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.newsletter-form input { flex: 1; min-width: 200px; }
.newsletter-form button { padding: 13px 22px; white-space: nowrap; }

/* ── Skeleton / Loading ─────────────────────────────── */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Utilities ──────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mt-auto  { margin-top: auto; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.divider  { height: 1px; background: var(--border); margin: clamp(32px, 5vw, 60px) 0; }
