/* ============================================================
   Kazo Media — Custom Theme
   Framework : Bootstrap 5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400&family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --bg-primary:    #0F111A;
  --bg-surface:    #1A1D26;
  --cyan:          #00E5FF;
  --purple:        #8A2BE2;
  --accent:        #FFA500;
  --text-base:     #FFFFFF;
  --text-muted:    #B0B3B8;
  --border-subtle: rgba(0, 229, 255, 0.20);
  --glow-sm:       0 0 12px rgba(0, 229, 255, 0.30);
  --glow-md:       0 0 22px rgba(0, 229, 255, 0.55);
  --gradient-neon: linear-gradient(135deg, #00E5FF 0%, #8A2BE2 100%);
  --clip-corner:   polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --transition:    0.3s ease;
}

/* ─── Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-base);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
}

/* ─── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-base);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-base);
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar-kazo {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding var(--transition), box-shadow var(--transition);
  z-index: 1030;
}

.navbar-kazo.scrolled {
  box-shadow: 0 2px 24px rgba(0, 229, 255, 0.12);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-kazo .navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-kazo .nav-link {
  color: var(--text-muted) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  padding: 0.5rem 1rem !important;
}

.navbar-kazo .nav-link:hover,
.navbar-kazo .nav-link.active {
  color: var(--cyan) !important;
}

.navbar-kazo .navbar-toggler {
  border-color: var(--border-subtle);
}

.navbar-kazo .navbar-toggler-icon {
  filter: invert(1);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-neon {
  background: var(--gradient-neon);
  border: none;
  border-radius: 4px;
  color: var(--bg-primary) !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.4rem;
  box-shadow: var(--glow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-neon:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
  color: var(--bg-primary) !important;
}

.btn-neon:focus-visible {
  outline: none;
  box-shadow: var(--glow-md), 0 0 0 3px rgba(0, 229, 255, 0.30);
}

.btn-outline-neon {
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  color: var(--cyan) !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.3rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-neon:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
  color: var(--cyan) !important;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 40% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 90%, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: clamp(1.9rem, 5vw, 3.5rem);
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 600px;
}

/* ─── Terminal Widget ───────────────────────────────────────── */
.terminal-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  min-width: 260px;
  max-width: 320px;
  box-shadow: var(--glow-sm);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0.8rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.dot-red    { background: #FF5F57; }
.terminal-dot.dot-yellow { background: #FEBC2E; }
.terminal-dot.dot-green  { background: #28C840; }

.terminal-body {
  padding: 1rem 1.1rem 1.2rem;
}

.terminal-body p {
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.t-prompt {
  color: var(--cyan);
  margin-right: 0.5rem;
  font-weight: 700;
}

.t-output {
  color: var(--text-base);
  padding-left: 1.2rem;
  display: block;
}

.t-spacer {
  height: 0.6rem;
  display: block;
}

/* Cursor blink */
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,  100% { opacity: 1; }
  50%        { opacity: 0; }
}

/* ─── Sections ──────────────────────────────────────────────── */
.section-dark {
  background-color: var(--bg-primary);
  padding: 5rem 0;
}

.section-surface {
  background-color: var(--bg-surface);
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--cyan);
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gradient-neon);
  border: none;
  border-radius: 2px;
  margin: 0 0 2.5rem;
  opacity: 1;
}

.section-intro {
  max-width: 700px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card-cyber {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  clip-path: var(--clip-corner);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card-cyber:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}

.card-cyber .card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  color: var(--text-base);
  margin-bottom: 0.5rem;
}

.card-cyber .card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.card-links {
  margin-top: auto;
}

.card-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
}

.card-links a:hover {
  color: var(--cyan);
}

/* Service cards */
.card-service {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card-service:hover {
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 18px rgba(138, 43, 226, 0.20);
  transform: translateY(-4px);
}

.card-service .service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-service h3 {
  font-size: 1rem;
  color: var(--text-base);
  margin-bottom: 0.75rem;
}

.card-service p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ─── Tech Badges ───────────────────────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.tech-badge:hover {
  background: rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.22);
}

.badge-wasm {
  border-color: rgba(128, 128, 255, 0.40);
  color: #9090ff;
  background: rgba(128, 128, 255, 0.07);
}

.badge-ai {
  border-color: rgba(255, 165, 0, 0.40);
  color: var(--accent);
  background: rgba(255, 165, 0, 0.07);
}

.badge-dotnet {
  border-color: rgba(138, 43, 226, 0.40);
  color: #b060ff;
  background: rgba(138, 43, 226, 0.07);
}

/* ─── Label (status / section tag) ─────────────────────────── */
.label-tech {
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Expertise Grid (media page) ──────────────────────────── */
.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.expertise-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.expertise-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-sm);
}

.expertise-item .expertise-icon {
  font-size: 1.3rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.expertise-item .expertise-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-base);
  line-height: 1.2;
}

.expertise-item .expertise-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ─── Contact (media page) ──────────────────────────────────── */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.5rem;
}

.contact-email-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transition: opacity var(--transition);
}

.contact-email-link:hover {
  opacity: 0.80;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.contact-info-row .ci-icon {
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer-kazo {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-kazo a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-kazo a:hover {
  color: var(--cyan);
}

.footer-icon-link {
  font-size: 1.2rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-icon-link:hover {
  transform: translateY(-2px);
}

/* ─── Banner Card (media page) ─────────────────────────────── */
.banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glow-sm);
  max-height: 33vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  display: block;
  width: 100%;
  max-height: 33vh;
  height: auto;
  object-fit: contain;
}

/* ─── Back link (media page) ────────────────────────────────── */
.back-to-lab {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

.back-to-lab:hover {
  color: var(--cyan);
}

/* ─── Utilities ─────────────────────────────────────────────── */
.text-cyan        { color: var(--cyan) !important; }
.text-muted-kazo  { color: var(--text-muted) !important; }
.bg-surface-kazo  { background-color: var(--bg-surface) !important; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .section-dark,
  .section-surface {
    padding: 3.5rem 0;
  }

  .hero-section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .terminal-block {
    display: none;
  }
}
