/* ============================================================
   Ryan Roupe - Site styles
   Desktop-first; matches the original mockup.
   ============================================================ */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e8eef7;
  background-color: #061226;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(30, 80, 160, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(20, 60, 130, 0.35) 0%, transparent 60%),
    url("../images/circuit-bg.svg"),
    linear-gradient(180deg, #06122a 0%, #050b1a 100%);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: auto, auto, 600px 600px, cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #7ab7ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Page shell ---------- */
.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 48px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
}

.social-icons a.linkedin {
  background: #0a66c2;
}

.social-icons a.twitter {
  background: #1d9bf0;
}

.social-icons a.github {
  background: #24292f;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 24px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #7ab7ff;
}

/* ---------- Hero (landing page) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 0 36px;
  min-height: 480px;
}

.hero-text {
  padding-right: 16px;
}

.hero h1 {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  margin: 0 0 24px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 26px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  max-width: 560px;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo img,
.hero-photo .photo-placeholder {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 8px;
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #142544;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  text-align: center;
  padding: 24px;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 8px 0 48px;
}

.service-card {
  background: #ffffff;
  color: #1a2237;
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-card-header svg {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  color: #1a2237;
}

.service-card-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.service-card p {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
  color: #2a3349;
}

/* ---------- Generic content section (inner pages) ---------- */
.content-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 44px;
  margin: 0 0 28px;
}

.content-section h2 {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 40px;
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 400;
}

.content-section h3 {
  font-size: 22px;
  margin: 20px 0 8px;
  color: #ffffff;
}

.content-section p,
.content-section li {
  font-size: 17px;
  line-height: 1.6;
  color: #d6dff0;
}

.content-section ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}

.page-title {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 72px;
  color: #ffffff;
  margin: 16px 0 8px;
  font-weight: 400;
  line-height: 1;
}

.page-subtitle {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 22px;
  color: #d6dff0;
  margin: 0 0 32px;
}

/* ---------- Page hero (inner pages with headshot) ---------- */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 36px;
  padding: 12px 0 28px;
}

/* Photo on the left, text on the right */
.page-hero.reverse {
  grid-template-columns: 280px 1fr;
}

.page-hero.reverse .page-hero-text {
  order: 2;
  text-align: right;
}

.page-hero.reverse .page-hero-text .page-subtitle {
  margin-left: auto;
}

.page-hero.reverse .page-hero-photo {
  order: 1;
}

.page-hero .page-title,
.page-hero .page-subtitle {
  margin-left: 0;
}

.page-hero .page-subtitle {
  margin-bottom: 0;
  max-width: 540px;
}

.page-hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-hero-photo img,
.page-hero-photo .photo-placeholder {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.page-hero-photo .photo-placeholder {
  aspect-ratio: 3 / 4;
  font-size: 14px;
}

/* ---------- Projects grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 0 48px;
}

.project-card {
  background: #ffffff;
  color: #1a2237;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-thumb {
  height: 160px;
  background:
    linear-gradient(135deg, #1d3a6e 0%, #0c1a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 28px;
  letter-spacing: 0.05em;
}

.project-body {
  padding: 18px 22px 24px;
}

.project-body h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #1a2237;
}

.project-body p {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #2a3349;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.project-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf0fa;
  color: #1a2237;
}

/* ---------- Coming soon block ---------- */
.coming-soon {
  text-align: center;
  padding: 80px 24px 100px;
}

.coming-soon h2 {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 76px;
  margin: 0 0 12px;
  color: #ffffff;
  line-height: 1;
}

.coming-soon p {
  font-size: 20px;
  color: #d6dff0;
  margin: 0 auto;
  max-width: 560px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 18px 48px 22px;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-style: italic;
}

.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
