/* ── CYBRAVIX THEME AND UX ENHANCEMENTS ── */

/* ── LIGHT MODE OVERRIDES ── */
body.light-mode {
  --black: #ffffff;
  --navy: #f8fafc;
  --navy-mid: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-blue: rgba(37, 99, 235, 0.15);
  --blue-glow: #2563eb;
}

/* Light mode specific element backgrounds & gradients */
body.light-mode #hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 50%, rgba(30, 64, 175, 0.02) 0%, transparent 60%),
              var(--black);
}

body.light-mode #hero::after {
  background-image: linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
}

body.light-mode nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--glass-border);
}

body.light-mode #services,
body.light-mode #portfolio,
body.light-mode #why,
body.light-mode #testimonials,
body.light-mode #about,
body.light-mode #careers,
body.light-mode #contact,
body.light-mode footer {
  background: var(--black);
}

body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .testimonial-card,
body.light-mode .mv-card,
body.light-mode .team-card,
body.light-mode .contact-card,
body.light-mode .career-card,
body.light-mode .form-card {
  background: var(--navy);
  border-color: var(--glass-border);
}

body.light-mode .service-card:hover,
body.light-mode .project-card:hover,
body.light-mode .testimonial-card:hover,
body.light-mode .team-card:hover,
body.light-mode .contact-card:hover {
  background: rgba(37, 99, 235, 0.04);
}

body.light-mode .terminal-card {
  background: rgba(241, 245, 249, 0.95);
  border-color: var(--glass-border-blue);
  color: #0f172a;
}

body.light-mode .t-bracket {
  color: #64748b;
}

body.light-mode .t-comment {
  color: #94a3b8;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
  border-color: var(--blue-glow);
  background: #ffffff;
}

body.light-mode .why-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

body.light-mode .floating-chip {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

body.light-mode .stats-panel {
  background: rgba(248, 250, 252, 0.9);
}

body.light-mode .stat-big {
  border-bottom-color: var(--glass-border);
}

body.light-mode .logo-text {
  color: #020409;
}

/* ── THEME SWITCH BUTTON ── */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--glass-border-blue);
  color: var(--text-primary);
  background: var(--glass);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
body.light-mode .theme-toggle-btn .sun-icon { display: block; }
body.light-mode .theme-toggle-btn .moon-icon { display: none; }

/* ── SCROLL ANIMATIONS ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── PORTFOLIO FILTER TABS ── */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.55rem 1.3rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue-bright);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
