:root {
  --color-bg: #0D1B2A;      /* deep navy */
  --color-accent: #00C2FF;  /* ice blue */
  --color-text: #E0F0F5;    /* frosted white */
  --color-muted: #D9E2EC;   /* silver */
  --color-dark: #08111A;    /* darker background */
}

body {
  text-align: center;
}

.blueprint, .forge, .specter {
   color: var(--color-text);
}

/* Hero */
.hero {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, var(--color-dark), var(--color-bg));
}

.hero .logo {
  display:block;              /* no baseline gap */
  margin:0 auto;
  width:clamp(140px, 18vw, 260px);
  aspect-ratio:1/1;
  image-rendering:-webkit-optimize-contrast;
}

.emoji {
  height: clamp(1rem, 1.2em, 1.4em);
  width: auto;
  vertical-align: -0.2em;
  margin-left: 0.3em;
  display: inline-block;
}

.emoji:hover {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 3rem;
  margin-top: 1rem;
}

.hero .tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.cta {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta:hover {
  background: #3AF2FF;
  box-shadow: 0 0 12px var(--color-accent);
}

/* Sections */
.section {
  padding: 3rem 2rem;
}
#services.section {
  padding-top: 2rem;
}
#about.section {
  margin-top: -1rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.learn {
  color: var(--color-accent);
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.learn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition:
    transform 0.45s ease 0.05s,
    opacity 0.45s ease 0.05s;
}

/* Services */
.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-grid a {
 text-decoration: none;
}

.card {
  background: var(--color-dark);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--color-accent);
}

.card:hover .learn::after {
  transform: scaleX(1);
  opacity: 1;
}

.blueprint:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #07F;
}

.forge:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #6cf;
}

.specter:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #90F;
}

.card h3 {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.85;
  line-height: 1.5;
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 1rem auto;
}

form input, form textarea, form button {
  margin: 0.5rem 0;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
}

form input, form textarea {
  background: var(--color-dark);
  color: var(--color-text);
}

form button {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #3AF2FF;
}

/* Footer */
.footer {
  padding: 1.5rem;
  background: var(--color-dark);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Taglines & Subheaders */
.tagline, .section p {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  font-size: 1rem;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif; /* Swap if you prefer Inter */
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 3rem;
  letter-spacing: 1px;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* overlay base */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;           /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25 ease;
}

/* overlay content box */
.overlay-content {
  background: rgba(27, 38, 59, 0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  transition: transform 0.25s ease;
}

.overlay-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.overlay-content h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #38bdf8; /* slightly brighter blue if you want */
}

.overlay-content p {
  line-height: 1.5;
}

/* show overlay when active */
.overlay.active {
  display: flex;
  opacity: 1;
}

.overlay-tagline {
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
  color: #cbd5e1;
}

.overlay-list {
  list-style-type: disc; /* keep normal bullets */
  list-style-position: inside; /* move bullets inline */
  padding-left: 0; /* remove the huge indent */
  margin: 0 0 1rem;
}

.overlay-list li {
  margin-bottom: 0.4rem;
  margin-left: 0.2rem;
}

.overlay-list li::before {
  content: none;
  position: absolute;
  left: 0;
}

.warning {
  color: #f87171; /* soft red */
  margin-top: 1rem;
  font-weight: 500;
}

.close-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #415a77;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
}