/* ---- RESET ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- BASE ---- */
body {
  background: #0d0d1a;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* ---- BLOBS ---- */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f9c6e8, #d8b4fe);
  top: -150px;
  left: -150px;
  animation: float-1 12s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #bae6fd, #c7d2fe);
  bottom: -100px;
  right: -100px;
  animation: float-2 15s ease-in-out infinite;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fde68a, #fbcfe8);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: float-3 10s ease-in-out infinite;
}

.blob-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #bbf7d0, #a5f3fc);
  top: 20%;
  right: 10%;
  animation: float-4 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(80px, 60px) scale(1.1); }
  66%       { transform: translate(-40px, 100px) scale(0.95); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-80px, -60px) scale(1.15); }
  66%       { transform: translate(40px, -100px) scale(0.9); }
}

@keyframes float-3 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.2) translateY(-40px); }
}

@keyframes float-4 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-60px, 80px) scale(1.1); }
}

/* ---- GRID OVERLAY ---- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.name-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 30%, #e879f9 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #94a3b8;
  letter-spacing: 1px;
  min-height: 2em;
}

.subtitle-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #e879f9;
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

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

.badge-tech {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.75rem;
  color: #cbd5e1;
  backdrop-filter: blur(4px);
}

/* ---- BUTTONS ---- */
.btn-custom {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 121, 249, 0.4);
}

.btn-primary.btn-custom {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  border: none;
}

.btn-outline-light.btn-custom:hover {
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.4);
}

.btn-success.btn-custom {
  background: linear-gradient(135deg, #059669, #06b6d4);
  border: none;
}

/* ---- TERMINAL ---- */
.terminal-window {
  width: 100%;
  max-width: 100%;
  background: #0a0a12;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.terminal-bar {
  background: #1a1a2e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.t-title {
  font-size: 0.75rem;
  color: #64748b;
  font-family: 'Courier New', monospace;
}

.terminal-body {
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  min-height: 320px;
  line-height: 1.8;
}

.t-line   { display: flex; gap: 8px; align-items: baseline; }
.t-prompt { color: #7c3aed; font-weight: bold; flex-shrink: 0; }
.t-cmd    { color: #e2e8f0; }
.t-pass   { color: #4ade80; }
.t-warn   { color: #fbbf24; }
.t-dim    { color: #475569; }
.t-summary-pass { color: #4ade80; font-weight: bold; }

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
  cursor: default;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTIONS SHARED ---- */
.section-label {
  font-family: monospace;
  font-size: 0.8rem;
  color: #a78bfa;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
}

/* ---- SECTION BACKDROP (blobs fix) ---- */
.section-terminal,
.section-services,
.section-how,
.section-contact {
  background: rgba(13, 13, 26, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ---- SERVICES ---- */
.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.35);
}

.service-icon {
  display: block;
  font-size: 1.1rem;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

.services-note {
  font-size: 0.78rem;
  color: #64748b;
  font-family: monospace;
  text-align: center;
}

/* ---- HOW I WORK ---- */
.how-card {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.how-num {
  font-family: monospace;
  font-size: 0.75rem;
  color: #a78bfa;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}

.how-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.how-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* ---- CONTACT ---- */
.section-contact {
  text-align: center;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.contact-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-contact {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: monospace;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}

.btn-contact:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: #a78bfa;
  color: #fff;
}

.contact-note {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.8;
}

/* ---- PARROT ---- */
#parrot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  width: 64px;
  height: auto;
}

/* ---- DESKTOP MARGINS ---- */
@media (min-width: 992px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
  .blob-1 { width: 300px; height: 300px; top: -80px; left: -80px; }
  .blob-2 { width: 260px; height: 260px; bottom: -60px; right: -60px; }
  .blob-3 { width: 220px; height: 220px; }
  .blob-4 { width: 180px; height: 180px; }

  .name-title { letter-spacing: -0.5px; }

  .btn-custom { padding: 10px 20px; font-size: 0.9rem; }

  .terminal-body {
    padding: 14px 16px;
    font-size: 0.72rem;
    min-height: 260px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .t-title { font-size: 0.7rem; }

  #parrot { width: 36px; bottom: 12px; right: 12px; }
}
