/* ============================================
   Dark glass concept — inspired by designcode.io
   Dark theme, soft glow, glassmorphism, brand teal/navy. Prototype only.
   ============================================ */

.starry {
  background: #06060d;
  color: #e4e6f1;
}

.starry a { color: inherit; }

/* ---- Nav ---- */
.starry header {
  background: rgba(6,6,13,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.starry .nav-links a { color: #c7c9db; font-weight: 500; }
.starry .nav-links a:hover,
.starry .nav-links a.active { color: #fff; }
.starry .nav-cta {
  background: linear-gradient(135deg, #0ea5a3, #2563eb);
  color: #fff !important;
}
.starry .nav-toggle { color: #e4e6f1; }

.logo .nav-tagline {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a9acc9;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
@media (min-width: 960px) {
  .logo .nav-tagline { display: inline-block; }
}

@media (max-width: 860px) {
  .starry .nav-links {
    background: #0b0b14;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .starry .nav-links a { color: #c7c9db; }
  .starry .nav-links a:hover,
  .starry .nav-links a.active { color: #fff; }
}

/* ---- Glow hero ---- */
.starry-hero {
  position: relative;
  padding: 150px 0 120px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle moving mesh/grid backdrop — replaces static glow blobs */
.mesh-grid {
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(94,234,212,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,234,212,0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 40%, transparent 80%);
  animation: meshDrift 24s linear infinite;
}
@keyframes meshDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 56px 84px, 56px 84px; }
}

.cursor-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.22), rgba(37,99,235,0.1) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.starry-hero:hover .cursor-glow { opacity: 1; }

.starry-hero .eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: #9fb0c3;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #2dd4bf, #38bdf8 65%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.starry-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 880px;
  margin: 0 auto 22px;
}

.hero-slogan {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #5eead4;
  margin: 0 auto 14px;
}

.starry-hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #a9acc9;
  max-width: 620px;
  margin: 0 auto 40px;
}

.starry-cta-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.glow-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 980px;
  font-weight: 600;
  background: linear-gradient(135deg, #0ea5a3, #2563eb);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 30px rgba(14,165,163,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.glow-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 10px 36px rgba(14,165,163,0.55); }

.glass-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 980px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

/* ---- Sections on dark ---- */
.starry-section {
  position: relative;
  padding: 110px 0;
  text-align: center;
  background: #06060d;
}
.starry-section.alt { background: #0d0d18; }

.section-divider {
  height: 1px;
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.5), rgba(37,99,235,0.5), transparent);
  position: relative;
  z-index: 1;
}
.starry-section .eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2dd4bf;
  margin-bottom: 10px;
}
.starry-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 18px;
}
.starry-section .sub {
  color: #a9acc9;
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ---- Glass cards ---- */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}
.glass-grid.cols-2 { grid-template-columns: 1fr 1fr; max-width: 1000px; }
.glass-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.glass-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.15s, border-color 0.15s;
}
.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.25);
}
.glass-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(14,165,163,0.16);
  color: #5eead4;
  margin-bottom: 14px;
}
.glass-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.glass-card p { color: #a9acc9; font-size: 0.95rem; }
.glass-card { cursor: pointer; }
.glass-card:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 3px;
}

/* ---- Click-to-expand modal ---- */
.scc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,4,10,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.scc-overlay.open { opacity: 1; pointer-events: auto; }

.scc-modal {
  background: #0d0d18;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px;
  position: relative;
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  text-align: left;
}
.scc-overlay.open .scc-modal { transform: scale(1) translateY(0); opacity: 1; }

.scc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scc-modal-close:hover { background: rgba(255,255,255,0.14); }

.scc-modal .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(14,165,163,0.16);
  color: #5eead4;
  margin-bottom: 16px;
}
.scc-modal h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.scc-modal p {
  color: #a9acc9;
  line-height: 1.65;
  font-size: 1rem;
}

/* ---- Stat row ---- */
.starry-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.starry-stat-num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
}
.starry-stat-label { color: #a9acc9; font-size: 0.85rem; margin-top: 6px; }

/* ---- Process ---- */
.starry-process {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.starry-process-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.starry-process-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.starry-process-num { font-size: 1.6rem; font-weight: 800; color: #2dd4bf; }
.starry-process-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.starry-process-item p { color: #a9acc9; }

/* ---- CTA glass card ---- */
.starry-cta-card {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
}
.starry-cta-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}
.starry-cta-card p { color: #a9acc9; margin-bottom: 32px; position: relative; }

/* ---- Text-section color accents (About page) ---- */
.accent-heading {
  position: relative;
  padding-left: 18px;
  color: #fff;
}
.accent-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2dd4bf, #2563eb);
}
.keyword {
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.starry .skill-pill {
  background: rgba(14,165,163,0.1);
  border: 1px solid rgba(45,212,191,0.3);
  color: #5eead4;
}
.starry .skill-pill:nth-child(3n+2) {
  background: rgba(37,99,235,0.1);
  border-color: rgba(56,189,248,0.3);
  color: #7dd3fc;
}

/* ---- Contact info + form ---- */
.starry .contact-info-item h3 { color: #fff; }
.starry .contact-info-item p { color: #a9acc9; }
.starry .contact-info-item p a { color: #5eead4; }
.starry .contact-info-item .card-icon {
  background: rgba(14,165,163,0.14);
  color: #5eead4;
}

.starry label { color: #e4e6f1; }
.starry input,
.starry textarea,
.starry select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: #e4e6f1;
}
.starry input::placeholder,
.starry textarea::placeholder { color: #6b7086; }
.starry input:focus,
.starry textarea:focus,
.starry select:focus {
  border-color: #2dd4bf;
  outline: none;
}
.starry select option { background: #0d0d18; color: #e4e6f1; }
.starry .form-status.success {
  background: rgba(14,165,163,0.14);
  color: #5eead4;
}
.starry .form-status.error {
  display: block;
  background: rgba(239,68,68,0.14);
  color: #fca5a5;
}

/* ---- Footer ---- */
.starry footer {
  background: #06060d;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #a9acc9;
}
.starry footer h4 { color: #fff; }
.starry footer a:hover { color: #2dd4bf; }

@media (max-width: 860px) {
  .glass-grid { grid-template-columns: 1fr; }
  .glass-grid.cols-2 { grid-template-columns: 1fr; }
  .glass-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .starry-stat-row { grid-template-columns: repeat(2, 1fr); }
  .starry-process-item { grid-template-columns: 1fr; gap: 6px; }
  .starry-hero { padding: 110px 0 80px; }
  .starry-section { padding: 70px 0; }
}

@media (max-width: 520px) {
  .glass-grid.cols-4 { grid-template-columns: 1fr; }
}
