/* ═══════════════════════════════════════════════════════════════
   PCYCOZ — Premium Cyber Theme Stylesheet
   Customize: swap CSS variables below for quick rebrand
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void: #050508;
  --void-900: #0a0a0f;
  --void-800: #0f0f18;
  --neon-cyan: #00f0ff;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --glow-cyan: rgba(0, 240, 255, 0.4);
  --glow-purple: rgba(168, 85, 247, 0.3);
}

/* ─── Global overlays ─── */
.scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 8, 0.85) 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ─── Section / hero background layers ─── */
.hero-bg-layer,
.section-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.hero-bg-layer.is-loaded,
.section-bg-layer.is-loaded {
  opacity: 0.45;
}

.hero-bg-layer.is-loaded.hero-bg-overlay {
  opacity: 0.55;
}

.hero-bg-layer.is-loaded.hero-bg-overlay::after,
.section-bg-layer.section-bg-overlay::after,
.section-bg-layer.section-bg-overlay-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.75) 0%,
    rgba(5, 5, 8, 0.35) 45%,
    rgba(5, 5, 8, 0.92) 100%
  );
}

.section-bg-layer.section-bg-overlay-light::after {
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.88) 0%,
    rgba(5, 5, 8, 0.55) 50%,
    rgba(5, 5, 8, 0.88) 100%
  );
}

#about .section-bg-layer.is-loaded {
  opacity: 0.28;
}

#tech-arsenal .section-bg-layer.is-loaded {
  opacity: 0.22;
}

/* ─── Cyber image blocks (inline imgs) ─── */
.cyber-img {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.12);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), rgba(168, 85, 247, 0.04));
}

.cyber-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.6s ease;
}

.cyber-img.is-loaded img {
  opacity: 1;
}

.cyber-img:hover.is-loaded img {
  transform: scale(1.03);
}

.cyber-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.5s;
}

.cyber-img.is-loaded .cyber-img-fallback {
  opacity: 0;
  pointer-events: none;
}

.cyber-img-label {
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgb(100 116 139);
  letter-spacing: 0.05em;
}

/* Terminal with optional bg image */
.terminal-window.has-terminal-bg {
  background-size: cover;
  background-position: center;
}

.terminal-window.has-terminal-bg .terminal-body {
  background: rgba(5, 5, 8, 0.82);
}

/* Case study shared operations image */
.case-image--shared {
  background-size: cover;
  background-position: center;
}

.case-image--shared.is-loaded {
  opacity: 1 !important;
}

.case-image--shared:not(.is-loaded) {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
}

/* Featured service visual strip */
.featured-service-visual {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.2);
  min-height: 220px;
}

.featured-service-visual .cyber-img {
  border: none;
  border-radius: 0;
  min-height: 220px;
}

.featured-service-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.95));
}

.featured-service-caption span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--neon-purple);
}

.featured-service-caption h3 {
  margin-top: 0.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.125rem;
  color: white;
}


/* ─── Navigation ─── */
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#navbar.scrolled nav {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(148 163 184);
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--glow-cyan);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: rgb(203 213 225);
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
}

/* ─── Buttons ─── */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  overflow: hidden;
  transition: all 0.4s ease;
  animation: pulseGlow 3s ease-in-out infinite;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-glow:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px var(--glow-cyan), 0 0 60px rgba(168, 85, 247, 0.15);
  transform: translateY(-1px);
}

.btn-glow:hover::before {
  opacity: 0.1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--void);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(226 232 240);
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 30px var(--glow-purple);
}

/* ─── Glitch text ─── */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch-1 0.4s linear;
  color: var(--neon-cyan);
  opacity: 0.8;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text:hover::after {
  animation: glitch-2 0.4s linear;
  color: var(--neon-purple);
  opacity: 0.8;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(3px, -2px); }
  40% { transform: translate(-3px, 2px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(-2px, -1px); }
}

/* ─── Scroll indicator ─── */
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ─── Terminal ─── */
.terminal-window {
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.terminal-body {
  padding: 1rem;
}

/* ─── Section headers ─── */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
}

.section-title {
  margin-top: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.section-desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgb(148 163 184);
  line-height: 1.7;
}

/* ─── Service cards ─── */
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(15, 15, 24, 0.8), rgba(10, 10, 15, 0.9));
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.08);
}

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
  transition: all 0.4s;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card:hover .service-icon {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 25px var(--glow-cyan);
}

.service-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: rgb(148 163 184);
  line-height: 1.65;
}

.service-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s;
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Image placeholders ─── */
.image-placeholder {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
  overflow: hidden;
}

.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 240, 255, 0.05) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}

/* ─── Stats ─── */
.stat-card {
  position: relative;
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 24, 0.5);
  transition: all 0.4s;
}

.stat-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.06);
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  display: inline;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-cyan);
  vertical-align: super;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgb(148 163 184);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-badge {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(100 116 139);
  letter-spacing: 0.15em;
}

/* ─── Case study carousel ─── */
.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-card {
  flex: 0 0 calc(100% - 2rem);
  max-width: 380px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 24, 0.6);
  overflow: hidden;
  transition: all 0.5s;
}

@media (min-width: 768px) {
  .case-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .case-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.case-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-purple);
}

.case-image {
  height: 160px;
}

.case-content {
  padding: 1.5rem;
}

.case-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon-purple);
}

.case-content h3 {
  margin-top: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.case-content p {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgb(148 163 184);
  line-height: 1.6;
}

.carousel-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
  font-size: 1.25rem;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 25px var(--glow-cyan);
}

/* ─── Tech marquee ─── */
.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(71 85 105);
  white-space: nowrap;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.tech-logo:hover {
  color: var(--neon-cyan);
}

/* ─── Testimonials ─── */
.testimonial-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: rgb(203 213 225);
  line-height: 1.8;
}

.testimonial-quote::before {
  content: '"';
  color: var(--neon-cyan);
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--void);
}

.author-name {
  font-weight: 600;
  color: white;
  text-align: left;
}

.author-role {
  font-size: 0.8125rem;
  color: rgb(100 116 139);
  text-align: left;
}

#testimonial-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

#testimonial-dots .dot.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
  width: 24px;
  border-radius: 4px;
}

/* ─── Contact form ─── */
.contact-form {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 24, 0.6);
  backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgb(148 163 184);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 8, 0.8);
  color: white;
  font-size: 0.875rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgb(71 85 105);
}

/* ─── Footer social ─── */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgb(148 163 184);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--glow-cyan);
}

/* ─── Reveal animation initial state ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
