/* ═══════════════════════════════════════════
   CYBERKYRIAN — HOME PAGE STYLES
   Load after css/style.css
════════════════════════════════════════════ */

/* Noise texture 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: 0;
  opacity: 0.4;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 5vw 0;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { padding-top: 2rem; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 6px 12px;
  border: 1px solid rgba(77,184,212,0.2);
  border-radius: 2px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 .name { color: var(--text); display: block; }
h1 .title { color: var(--accent); display: block; font-size: 0.7em; font-weight: 400; }

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-desc strong { color: var(--text); font-weight: 400; }

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

/* ── TERMINAL ── */
.hero-right { position: relative; }

.terminal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  overflow: hidden;
  animation: fadeUp 0.8s ease 0.3s both;
}

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

.terminal-bar {
  background: var(--bg3);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-key { color: #7dd4e8; }
.t-val { color: #a8c4e0; }
.t-comment { color: var(--muted); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  padding: 16px 0;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  margin-top: 3rem;
  border: 1.5px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2rem;
  position: relative;
  transition: background 0.25s;
}

.service-card:hover { background: var(--bg3); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.3s;
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(77,184,212,0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 20px;
}

.service-card h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── TOOL ── */
.tool-highlight {
  margin-top: 3rem;
  border: 1px solid rgba(77,184,212,0.2);
  border-radius: 4px;
  background: var(--accent-dim);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.tool-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(77,184,212,0.3);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.tool-highlight h3 {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tool-highlight p { font-size: 14px; color: var(--muted); max-width: 520px; }

/* ── STACK ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 2.5rem;
}

.stack-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 2px;
  background: var(--bg2);
  transition: all 0.2s;
  word-break: break-word;
}

.stack-pill:hover { border-color: var(--border2); color: var(--text); }

.stack-pill.highlight {
  border-color: rgba(77,184,212,0.2);
  color: var(--accent);
  background: var(--accent-dim);
}

.cert-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(77,184,212,0.25);
  background: rgba(77,184,212,0.06);
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

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

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
}

.about-text p strong { color: var(--text); font-weight: 400; }

.cert-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

.cert-item::before { content: '▸'; color: var(--accent); font-size: 10px; }
.cert-item strong { color: var(--text); }

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 7rem 5vw;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-section p { color: var(--muted); margin-bottom: 2.5rem; font-size: 16px; font-weight: 300; }

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.social-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

.social-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.social-link:hover { border-color: var(--border2); color: var(--text); }

/* ── CONTACT MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: modalIn 0.25s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 2px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 1.75rem 1.5rem; }

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

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select { appearance: none; cursor: pointer; }

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

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-note a { color: var(--accent); text-decoration: none; }

#form-status {
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border-radius: 2px;
  margin-top: 1rem;
  display: none;
}

#form-status.success {
  display: block;
  background: rgba(77,184,212,0.1);
  border: 1px solid rgba(77,184,212,0.3);
  color: var(--accent);
}

#form-status.error {
  display: block;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.25);
  color: #ff8080;
}

/* ── RESPONSIVE (home) ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }
  /* hero-left first, hero-right second on mobile */
  .hero-left { order: 1; }
  .hero-right { order: 2; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tool-highlight { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
