/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #01060f;
  --bg-dark: #000407;
  --bg-card: #020c18;
  --bg-card-hover: #031525;
  --border: #0a2040;
  --accent: #00c8ff;
  --accent2: #00ff9f;
  --accent-glow: 0 0 12px rgba(0, 200, 255, 0.5);
  --accent-glow2: 0 0 12px rgba(0, 255, 159, 0.4);
  --accent-dim: rgba(0, 200, 255, 0.12);
  --text: #c0eeff;
  --text-muted: #2a5a7a;
  --text-dim: #6a9ab0;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'Share Tech Mono', 'JetBrains Mono', monospace;
  --radius: 8px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.accent2 { color: var(--accent2); }
.dim { color: var(--text-muted); }

/* ===== MATRIX CANVAS ===== */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

/* Deep ocean overlay gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 50, 100, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(0, 30, 60, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 50%, rgba(0, 80, 120, 0.2) 0%, transparent 60%);
}

/* Scan lines for CRT/underwater feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(1, 6, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: color var(--transition), text-shadow var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.btn-nav {
  color: var(--accent) !important;
  border: 1px solid rgba(0, 200, 255, 0.4) !important;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: background var(--transition) !important;
}

.btn-nav:hover { background: var(--accent-dim) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 2rem;
  z-index: 1;
  overflow: hidden;
}

/* Bioluminescent particle effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 300px at 20% 60%, rgba(0, 200, 255, 0.06) 0%, transparent 70%),
    radial-gradient(circle 200px at 80% 30%, rgba(0, 255, 159, 0.04) 0%, transparent 70%),
    radial-gradient(circle 150px at 60% 80%, rgba(0, 100, 200, 0.06) 0%, transparent 70%);
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  text-shadow: var(--accent-glow);
}

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

.hero-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent2);
  text-shadow: var(--accent-glow2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
}

/* Glitch flicker on the name */
.hero-title .glitch {
  position: relative;
  display: inline-block;
}

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

.hero-title .glitch::before {
  color: var(--accent);
  text-shadow: -2px 0 var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  animation: glitch1 4s infinite linear;
  opacity: 0;
}

.hero-title .glitch::after {
  color: var(--accent2);
  text-shadow: 2px 0 var(--accent2);
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  animation: glitch2 4s infinite linear;
  opacity: 0;
}

@keyframes glitch1 {
  0%, 95%, 100% { opacity: 0; transform: none; }
  96% { opacity: 0.8; transform: translateX(-3px); }
  97% { opacity: 0.8; transform: translateX(3px); }
  98% { opacity: 0; }
}

@keyframes glitch2 {
  0%, 93%, 100% { opacity: 0; transform: none; }
  94% { opacity: 0.7; transform: translateX(3px); }
  95% { opacity: 0.7; transform: translateX(-3px); }
  96% { opacity: 0; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: var(--mono);
  background: transparent;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  transition: box-shadow var(--transition), opacity var(--transition);
  display: inline-block;
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.35), inset 0 0 15px rgba(255,255,255,0.1);
}

.btn-primary:hover {
  box-shadow: 0 0 45px rgba(0, 200, 255, 0.6), inset 0 0 20px rgba(255,255,255,0.15);
  opacity: 0.95;
}

.btn-large { padding: 0.9rem 2.25rem; font-size: 0.95rem; }

.btn-ghost {
  font-family: var(--mono);
  background: transparent;
  color: var(--text-dim);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  letter-spacing: 0.08em;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);
}

/* ===== SECTIONS ===== */
.section {
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: rgba(0, 4, 10, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  text-shadow: var(--accent-glow);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-stats { display: flex; flex-direction: column; gap: 1rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.05);
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CERTIFICATIONS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cert-earned {
  border-color: rgba(0, 255, 159, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 159, 0.03));
}

.cert-earned:hover {
  border-color: rgba(0, 255, 159, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.08);
}

.cert-pending:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.05);
}

.cert-placeholder { opacity: 0.25; }

.cert-badge {
  font-family: var(--mono);
  font-size: 1.75rem;
  color: var(--accent2);
  text-shadow: var(--accent-glow2);
  min-width: 2rem;
  text-align: center;
}

.pending-icon {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cert-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.cert-status {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.status-earned {
  color: var(--accent2);
  text-shadow: var(--accent-glow2);
}

.status-pending {
  color: var(--accent);
}

@media (max-width: 900px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .certs-grid { grid-template-columns: 1fr; }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.04);
}

.service-icon { font-size: 1.75rem; margin-bottom: 1rem; }

.service-card h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:not(.project-placeholder):hover {
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.06);
  transform: translateY(-2px);
}

.project-placeholder { opacity: 0.3; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.status-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.status-active {
  color: var(--accent2);
  background: rgba(0, 255, 159, 0.08);
  text-shadow: var(--accent-glow2);
}

.project-card h3 { font-size: 0.95rem; font-weight: 600; }

.project-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; flex: 1; }

.project-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  transition: text-shadow var(--transition);
  margin-top: auto;
}

.project-link:hover { text-shadow: var(--accent-glow); }
.project-link.muted { color: var(--text-muted); cursor: default; }

/* ===== CREATIVE ===== */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.creative-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.creative-card:hover {
  border-color: rgba(0, 255, 159, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.04);
}

.creative-icon { font-size: 1.5rem; }

.creative-card h3 {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent2);
  letter-spacing: 0.05em;
}

.creative-card p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.65; flex: 1; }

/* ===== CONTACT ===== */
.contact-container { text-align: center; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-shadow: var(--accent-glow);
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font);
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.form-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  min-height: 1.2em;
}

.form-status.success { color: var(--accent2); text-shadow: var(--accent-glow2); }
.form-status.error { color: #ff4466; }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; text-align: center; }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-title { font-size: 3.5rem; }
  .creative-grid { grid-template-columns: 1fr; }
}
