/* === Base Reset === */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  background: black;
  scroll-behavior: smooth;
}

/* =========================
   GLOBAL NAVBAR
========================= */
.global-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 2rem;
  padding: 0.6rem 2rem;

  background: transparent;
}

.global-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: all 0.25s ease;
}

.global-nav a:hover {
  color: rgba(255, 210, 140, 0.9);
  transform: translateY(-1px);
  text-shadow: 0 0 6px rgba(255, 210, 140, 0.3);
}

/* === Canvas Background === */
#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* === Hero Section === */
#main-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
}

.highlight-red {
  color: red;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

/* === Section Styling === */
section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

h2 {
  color: red;
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.about-left, .about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left {
  transform: translateY(-55px);
}

.headshot {
  width: 200px;
  height: 200px;
  border-radius: 60%;
  border: 3px solid red;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 6px red;
}

.headshot:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px red;
}

.bio-text {
  color: red;
  font-size: 1.18rem;
  line-height: 1.42;
  text-align: center;
  max-width: 520px;
  padding: 0 1rem;
  margin: 0 auto;
}

.contact-links {
  color: red;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1.2rem;
}

/* === Skills Grid === */
.skills-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 100%;
}

.skills-grid .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.skills-grid img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 6px red;
  border-radius: 4px;
}

.skills-grid img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px red;
}

.skills-grid .mid-offset {
  margin-top: -60px;
}

/* === Services Section === */
#services {
  padding: 110px 24px 120px;
}

#services h2 {
  max-width: 1000px;
  margin: 0 auto 3rem;
  color: red;
  font-size: 2rem;
  line-height: 1.2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  background: #111;
  border: 1px solid red;
  border-radius: 8px;
  min-height: 390px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 0 10px red;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 18px red;
}

.service-card h3 {
  color: white;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-price {
  color: red;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.service-card p {
  color: white;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: none;
}

.service-timeline {
  color: #ff4d4d;
  font-weight: 600;
  margin-top: auto;
  padding-top: 1.2rem;
}

.services-closing {
  color: red;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.lantern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid red;
  border-radius: 6px;
  color: white;
  background: red;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 10px red;
  transition: all 0.3s ease;
}

.lantern-btn:hover {
  background: white;
  color: black;
  box-shadow: 0 0 15px white;
  transform: translateY(-3px);
}

/* === RED TEXT & LINKS === */
.red-text {
  color: #e53935;
}

.red-link {
  color: #e53935;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.red-link:hover {
  color: #ff6f00;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    max-width: 760px;
  }
}

@media (max-width: 900px){
  .about-grid{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-left {
    transform: none;
  }

  .skills-grid{
    flex-direction: column;
    align-items: center;
  }

  .skills-grid .mid-offset{
    margin-top: 0;
  }

  .global-nav {
    gap: 1rem;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
  }

  .global-nav a {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 80px 16px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }

  h2,
  #services h2 {
    font-size: 1.6rem;
  }

  .bio-text {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .service-card {
    min-height: auto;
  }
}