/*
Theme Name: VirelLabs Project
Theme URI: https://virellabs.com
Author: VirelLabs Studio
Author URI: https://virellabs.com
Description: AI-Native Technology Agency Portfolio Theme — bold, dark, high-performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virellabs-project
Tags: dark, portfolio, agency, full-width-template, custom-colors, custom-menu
*/

/* ─────────────────────────────────────────────
   VIRELLABS PROJECT THEME — MAIN STYLESHEET
   ───────────────────────────────────────────── */

:root {
  --black: #0a0a0a;
  --off-black: #111111;
  --dark: #181818;
  --mid: #2a2a2a;
  --border: #2f2f2f;
  --muted: #666666;
  --subtle: #444444;
  --white: #f5f2ed;
  --cream: #ece8e1;
  --accent: #d4f040;
  --accent2: #40d4c8;
  --accent3: #ff6b35;
  --red: #ff4040;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* WordPress admin bar fix */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar nav { top: 46px; }
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── NAV ─── */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* WordPress nav menu override */
#site-nav .nav-links,
#site-nav ul.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
#site-nav .nav-links li { margin: 0; padding: 0; }
#site-nav .nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
#site-nav .nav-links a:hover { color: var(--white); }
/* WordPress adds sub-menus — hide them cleanly */
#site-nav .nav-links .sub-menu { display: none; }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--black);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-cta:hover { background: #c8e030; transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 2px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,240,64,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,240,64,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212,240,64,0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: glow-drift 8s ease-in-out infinite alternate;
}
.hero-glow2 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(64,212,200,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: glow-drift 12s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  0% { transform: translate(0,0); }
  100% { transform: translate(40px, 40px); }
}
.hero-ticker {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: ticker 3s ease-in-out infinite;
}
@keyframes ticker {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212,240,64,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent-word { color: var(--accent); }
.hero-title .outline-word { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.hero-desc { max-width: 400px; font-size: 1rem; color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.btn-primary {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--black);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.25s;
}
.btn-primary:hover { background: #c8e030; transform: translateY(-2px); }
.btn-primary svg { transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.hero-stats {
  position: absolute;
  right: 3rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2rem;
  z-index: 1;
}
.hero-stat { text-align: right; border-right: 2px solid var(--accent); padding-right: 1rem; }
.hero-stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--white); }
.hero-stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.25rem; }

/* ─── MARQUEE ─── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--off-black);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 1.5rem;
  flex-shrink: 0;
}
.marquee-item::after { content: '✦'; color: var(--accent); font-size: 0.6rem; }

/* ─── SECTIONS ─── */
.virellabs-section { padding: 8rem 3rem; }
.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

/* ─── SERVICES ─── */
.services { background: var(--off-black); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; }
.services-desc { font-size: 1rem; color: var(--muted); line-height: 1.8; max-width: 400px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.service-card {
  background: var(--off-black); padding: 2.5rem;
  position: relative; overflow: hidden; transition: background 0.3s; cursor: default;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,240,64,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { background: var(--dark); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem; font-size: 1.2rem;
  transition: border-color 0.3s, background 0.3s;
}
.service-card:hover .service-icon { border-color: var(--accent); background: rgba(212,240,64,0.08); }
.service-num { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; color: var(--subtle); margin-bottom: 0.75rem; }
.service-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--subtle); border: 1px solid var(--border);
  padding: 0.25rem 0.6rem; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.service-card:hover .tag { color: var(--muted); border-color: var(--subtle); }

/* ─── PROJECTS ─── */
.work-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--dark); aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; cursor: pointer; transition: border-color 0.3s;
}
.project-card:hover { border-color: var(--accent); }
.project-card.large { aspect-ratio: 16/9; grid-column: span 2; }
.project-visual { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.project-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.project-card:hover .project-bg { transform: scale(1.04); }
.proj-1 { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.proj-2 { background: linear-gradient(135deg, #1a0533 0%, #2d0a57 50%, #6b21a8 100%); }
.proj-3 { background: linear-gradient(135deg, #052e0f 0%, #083020 50%, #145a32 100%); }
.proj-4 { background: linear-gradient(135deg, #1c0a00 0%, #3d1500 50%, #7c2d12 100%); }
.proj-5 { background: linear-gradient(135deg, #0a1628 0%, #162040 50%, #1e3a5f 100%); }
.project-visual-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4; font-family: var(--font-display);
  font-size: 8rem; font-weight: 800; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.1);
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}
.project-content { position: relative; z-index: 2; }
.project-cat { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.project-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem; }
.project-meta { font-size: 0.8rem; color: var(--muted); }
.project-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; background: rgba(255,255,255,0.05);
}
.project-card:hover .project-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }

/* ─── PROCESS ─── */
.process { background: var(--off-black); }
.process-header { margin-bottom: 5rem; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent); z-index: 0;
}
.process-step { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; background: var(--off-black);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--muted); transition: all 0.3s;
}
.process-step:hover .step-num { border-color: var(--accent); color: var(--accent); background: rgba(212,240,64,0.08); }
.step-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── METRICS ─── */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); margin-top: 4rem; }
.metric-card { background: var(--black); padding: 3rem 2.5rem; position: relative; overflow: hidden; }
.metric-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.metric-card:hover::before { transform: scaleX(1); }
.metric-num { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--white); margin-bottom: 0.5rem; }
.metric-num span { color: var(--accent); }
.metric-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.metric-sub { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }

/* ─── INDUSTRIES ─── */
.industries-list { margin-top: 4rem; border-top: 1px solid var(--border); }
.industry-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: padding 0.3s; position: relative; overflow: hidden;
}
.industry-row::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(212,240,64,0.03); transform: translateX(-100%); transition: transform 0.4s ease;
}
.industry-row:hover::before { transform: translateX(0); }
.industry-row:hover { padding-left: 1rem; }
.industry-name { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; transition: color 0.2s; }
.industry-row:hover .industry-name { color: var(--accent); }
.industry-right { display: flex; align-items: center; gap: 2rem; }
.industry-tag-list { display: flex; gap: 0.5rem; }
.industry-num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--subtle); width: 40px; text-align: right; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--off-black); }
.testimonials-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap;
}

/* Aggregate score block */
.testi-aggregate {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex-shrink: 0;
}
.testi-score {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--white); line-height: 1; letter-spacing: -0.04em;
}
.testi-score span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.testi-stars-row { display: flex; gap: 2px; }
.testi-stars-row .star { color: var(--accent); font-size: 0.9rem; }
.testi-review-count { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.testi-platforms { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.testi-platform {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 2px; color: var(--subtle);
}

/* Featured big quote */
.testi-featured {
  position: relative; background: var(--dark);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 3rem 3.5rem; margin-bottom: 2rem;
  overflow: hidden;
}
.testi-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.testi-featured-quote {
  font-family: var(--font-display); font-size: 8rem; font-weight: 800;
  color: var(--accent); line-height: 0.6; position: absolute; top: 2rem; left: 2.5rem;
  opacity: 0.15; pointer-events: none;
}
.testi-featured-stars { display: flex; gap: 3px; margin-bottom: 1.5rem; }
.testi-featured-stars .star { color: var(--accent); font-size: 1rem; }
.testi-featured-text {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500; color: var(--white); line-height: 1.55; letter-spacing: -0.02em;
  font-style: italic; margin-bottom: 2.5rem; position: relative; z-index: 1; border: none; padding: 0;
}
.testi-featured-author { display: flex; align-items: center; gap: 1.25rem; }
/* Wrapper sits outside overflow:hidden so the badge is visible */
.testi-avatar-wrap {
  position: relative; flex-shrink: 0; width: 64px; height: 64px;
}
.testi-featured-avatar {
  width: 64px; height: 64px; min-width: 64px; min-height: 64px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent); flex-shrink: 0; position: relative;
  background: var(--mid);
}
.testi-featured-avatar img {
  width: 64px; height: 64px;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.testi-verified-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 900; color: var(--black);
  border: 2px solid var(--off-black);
  z-index: 2;
}
.testi-featured-name { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 0.2rem; }
.testi-featured-role { font-size: 0.82rem; color: var(--muted); }
.testi-at { color: var(--accent); }
.testi-initials { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--accent); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Cards grid */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  border: 1px solid var(--border); background: var(--dark);
  padding: 1.75rem; border-radius: 6px; position: relative;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-card:hover { border-color: rgba(212,240,64,0.4); transform: translateY(-4px); }

/* Card top: avatar + name + stars */
.testi-card-top { display: flex; align-items: center; gap: 1rem; }
.testi-card-avatar {
  width: 52px; height: 52px; min-width: 52px; min-height: 52px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border); flex-shrink: 0; background: var(--mid);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s;
}
.testimonial-card:hover .testi-card-avatar { border-color: var(--accent); }
.testi-card-avatar img {
  width: 52px; height: 52px;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.testi-initials-sm { font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; color: var(--accent); }
.testi-card-meta { flex: 1; min-width: 0; }
.testi-card-stars { display: flex; gap: 2px; margin-top: 0.25rem; }
.testi-card-stars .star { color: var(--accent); font-size: 0.7rem; }
.testi-verified {
  width: 22px; height: 22px; background: rgba(212,240,64,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--accent); font-weight: 900; flex-shrink: 0;
  border: 1px solid rgba(212,240,64,0.3);
}
.testimonial-quote { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; opacity: 0.3; margin: 0; }
.testimonial-text { font-size: 0.875rem; color: var(--muted); line-height: 1.75; font-style: italic; flex: 1; }
.author-name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--white); }
.author-role { font-size: 0.72rem; color: var(--subtle); }

/* ─── TECH STACK ─── */
.tech { background: var(--black); }
.tech-categories { margin-top: 4rem; display: flex; flex-direction: column; gap: 0; }
.tech-cat { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--border); align-items: center; }
.tech-cat-name { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.tech-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-item {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 2px;
  color: var(--muted); letter-spacing: 0.02em; transition: all 0.2s; cursor: default;
}
.tech-item:hover { border-color: var(--accent); color: var(--accent); background: rgba(212,240,64,0.05); }

/* ─── CTA ─── */
.cta-section {
  padding: 10rem 3rem; background: var(--off-black);
  text-align: center; position: relative; overflow: hidden;
}
.cta-bg-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22vw; font-weight: 800;
  color: rgba(255,255,255,0.02); letter-spacing: -0.05em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.cta-content { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 2rem; }
.cta-title .accent-line { color: var(--accent); }
.cta-desc { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0 auto 3rem; line-height: 1.7; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cta-email { font-size: 0.85rem; color: var(--subtle); margin-top: 2rem; letter-spacing: 0.05em; }
.cta-email a { color: var(--accent); border-bottom: 1px solid rgba(212,240,64,0.3); transition: border-color 0.2s; }
.cta-email a:hover { border-color: var(--accent); }

/* ─── FOOTER ─── */
.site-footer { background: var(--black); border-top: 1px solid var(--border); padding: 5rem 3rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-tagline { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--muted); transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-col-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.75rem; color: var(--subtle); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.75rem; color: var(--subtle); transition: color 0.2s; }
.footer-legal a:hover { color: var(--muted); }
.footer-office-city { display: block; color: var(--white); font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.footer-office-addr { font-size: 0.85rem; color: var(--muted); line-height: 1.6; display: block; margin-bottom: 1rem; }

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  margin-left: -6px;
  margin-top: -6px;
  transition: width 0.3s, height 0.3s, margin 0.3s;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(212,240,64,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  margin-left: -20px;
  margin-top: -20px;
  transition: width 0.3s, height 0.3s, margin 0.3s;
  will-change: transform;
}
.cursor.hovered {
  width: 6px; height: 6px;
  margin-left: -3px; margin-top: -3px;
}
.cursor-ring.hovered {
  width: 60px; height: 60px;
  margin-left: -30px; margin-top: -30px;
}

/* ─── BLOG / SINGLE POST ─── */
.virellabs-content-wrap { max-width: 800px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.virellabs-content-wrap h1, .virellabs-content-wrap h2, .virellabs-content-wrap h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; }
.virellabs-content-wrap p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.virellabs-content-wrap a { color: var(--accent); border-bottom: 1px solid rgba(212,240,64,0.3); }

/* ═══════════════════════════════════════
   RESPONSIVE — FULL BREAKPOINT COVERAGE
   ═══════════════════════════════════════ */

/* ─── LAPTOP / WIDE TABLET (≤1200px) ─── */
@media(max-width: 1200px) {
  .hero-stats { gap: 3rem; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; }
}

/* ─── TABLET LANDSCAPE (≤1024px) ─── */
@media(max-width: 1024px) {
  .hero-stats { display: none; }
  .hero { padding: 0 2.5rem 5rem; }
  .virellabs-section { padding: 6rem 2.5rem; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Projects */
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large { grid-column: span 2; }

  /* Process */
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }

  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-header { flex-direction: column; gap: 1.5rem; }
  .testi-aggregate { align-items: flex-start; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-featured { padding: 2.5rem 2rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ─── TABLET PORTRAIT (≤768px) ─── */
@media(max-width: 768px) {
  /* Nav */
  nav#site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--off-black); padding: 2rem;
    border-bottom: 1px solid var(--border); z-index: 999;
    gap: 1.5rem;
  }
  .nav-links.open a { font-size: 1rem; }
  .nav-toggle { display: block; }

  /* Hero */
  .hero { padding: 0 1.5rem 4rem; min-height: 90vh; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-desc { font-size: 0.9rem; max-width: 100%; }
  .hero-title { font-size: clamp(2.8rem, 11vw, 6rem); }

  /* Sections */
  .virellabs-section { padding: 5rem 1.5rem; }
  .section-title { font-size: clamp(1.8rem, 6vw, 3rem); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.75rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; aspect-ratio: 4/3; }
  .project-title { font-size: 1.2rem; }

  /* Process */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-num { font-size: 3rem; }
  .metric-card { padding: 2rem 1.5rem; }

  /* Industries */
  .industry-name { font-size: 1.3rem; }
  .industry-tag-list { display: none; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testi-featured { padding: 2rem 1.75rem; }
  .testi-featured-text { font-size: 1.1rem; }
  .testi-featured-quote { font-size: 5rem; }

  /* Tech stack */
  .tech-cat { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .tech-cat-name { font-size: 0.65rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .site-footer { padding: 4rem 1.5rem 2rem; }

  /* CTA */
  .cta-section { padding: 6rem 1.5rem; }
  .cta-title { font-size: clamp(2.5rem, 9vw, 5rem); }

  /* Cursor — hide on touch */
  .cursor, .cursor-ring { display: none; }

  /* Mockup showcase */
  .mockup-tabs { flex-wrap: wrap; }
  .laptop-frame { max-width: 100%; }
}

/* ─── MOBILE LARGE (≤600px) ─── */
@media(max-width: 600px) {
  /* Hero */
  .hero { padding: 0 1.25rem 3rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 0.75rem; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; padding: 1rem 1.5rem; }

  /* Services */
  .service-card { padding: 1.5rem; }
  .service-tags { flex-wrap: wrap; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Metrics */
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-num { font-size: 2.5rem; }
  .metric-card { padding: 1.5rem; }

  /* Testimonials */
  .testimonials-header { gap: 1rem; }
  .testi-featured { padding: 1.5rem; }
  .testi-featured-text { font-size: 1rem; margin-bottom: 1.5rem; }
  .testi-featured-avatar { width: 52px; height: 52px; }
  .testi-aggregate { align-items: flex-start; }
  .testimonials-grid { gap: 1rem; }
  .testimonial-card { padding: 1.25rem; }

  /* Industries */
  .industry-row { padding: 1.25rem 0; }
  .industry-name { font-size: 1.1rem; }

  /* Tech */
  .tech-items { gap: 0.4rem; }
  .tech-item { font-size: 0.72rem; padding: 0.3rem 0.65rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-legal { flex-direction: column; gap: 0.5rem; }
}

/* ─── MOBILE SMALL (≤480px) ─── */
@media(max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .footer-top { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-num { font-size: 3rem; }

  /* Project card always full width */
  .project-card.large,
  .project-card { grid-column: span 1; aspect-ratio: 3/2; }
  .project-title { font-size: 1.1rem; }

  /* Mockup */
  .phone-frame { width: 200px; height: 380px; }
}

/* ─── INTERACTIVE MOCKUPS SHOWCASE ─── */
.mockup-showcase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.mockup-tabs {
  display: inline-flex;
  background: var(--off-black);
  border: 1px solid var(--border);
  padding: 0.25rem;
  border-radius: 30px;
}
.mockup-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mockup-tab:hover {
  color: var(--white);
}
.mockup-tab.active {
  background: var(--accent);
  color: var(--black);
}

.devices-display {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 480px;
}
.mockup-device-wrapper {
  display: none;
  width: 100%;
  max-width: 720px;
  text-align: center;
}
.mockup-device-wrapper.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LAPTOP MOCKUP STYLE */
.laptop-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.laptop-screen {
  background: #000;
  border: 12px solid #1a1a1a;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  position: relative;
}
.screen-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  position: relative;
}
.screen-scroll-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 3s ease-in-out;
  transform: translateY(0);
}
.screen-scroll-container:hover img {
  transform: translateY(calc(-100% + 340px)); /* dynamically scroll down on hover */
}
.laptop-hinge {
  background: #2a2a2a;
  height: 10px;
  margin: 0 4%;
  border-radius: 0 0 4px 4px;
}
.laptop-base {
  background: linear-gradient(to bottom, #444, #222);
  height: 12px;
  border-radius: 0 0 10px 10px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 4px;
  background: #111;
  border-radius: 0 0 4px 4px;
}

/* PHONE MOCKUP STYLE */
.phone-wrapper {
  max-width: 280px;
}
.phone-frame {
  background: #111;
  border: 10px solid #222;
  border-radius: 36px;
  height: 480px;
  width: 240px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.phone-speaker {
  background: #333;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-screen {
  flex: 1;
  background: #000;
  margin-top: 24px;
  margin-bottom: 28px;
  margin-left: 8px;
  margin-right: 8px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.phone-screen .screen-scroll-container:hover img {
  transform: translateY(calc(-100% + 400px)); /* scroll mobile viewport */
}
.phone-home-btn {
  width: 16px;
  height: 16px;
  border: 1px solid #333;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.mockup-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

/* SCREENSHOTS GALLERY GRID */
.screenshots-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.screenshot-grid-item {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all 0.3s ease;
}
.screenshot-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.screenshot-grid-item:hover img {
  transform: scale(1.08);
}
.screenshot-grid-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(212,240,64,0.3);
}
.screenshot-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.screenshot-grid-item:hover .screenshot-grid-overlay {
  opacity: 1;
}
.screenshot-grid-overlay .view-icon {
  font-size: 1.25rem;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 20010;
}
.lightbox-close:hover {
  color: var(--accent);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: zoomIn 0.3s ease-out;
}
@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-caption {
  margin: 15px auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  max-width: 80%;
}

