/* -------------------------------------------------
   ROOT VARIABLES & DARK MODE
-------------------------------------------------- */
:root {
  --bg-page: #f5f5f7;
  --bg-surface: #ffffff94;
  --bg-subtle: #f0f2f5;
  --text: #1a1f2a;
  --text-muted: #656b7a;
  --accent: #23737f;
  --accent-soft: #87b8c8ce;
  --overlay: rgba(41, 40, 40, 0.596);
  --muted: #f7f7f7;
  --card-border: #e0e0e0;
  --nav-bg: rgba(255,255,255,0.9);
  --nav-border: rgba(209,213,219,0.8);
  --nav-blur: blur(14px);
  --nav-link: #444;
  --nav-link-hover: #29646d;
  --border-subtle: #dde1ea;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 35px rgba(25, 72, 98, 0.354);
  --transition-fast: 180ms ease-out;
}



.dark-mode {
  --bg: #0f1114;
  --bg-surface: #0f1114;
  --bg-subtle: #0f1114;
  --text: #e6e6e6;
  --overlay: rgba(0,0,0,0.6);
  --muted: #1a1d21;
  --card-border: #252b32;
  --nav-bg: rgba(15,17,20,0.75);
  --nav-border: rgba(255,255,255,0.08);
  --nav-link: #e0e0e0;
  --nav-link-hover: #fff;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}

/* -------------------------------------------------
   DARK MODE TOGGLE
-------------------------------------------------- */
#darkModeToggle {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  font-weight: 600;
  font-size:.8rem;
}

/* --------- NAVBAR (Nav: B) --------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: var(--nav-blur, blur(14px));
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border, rgba(209,213,219,0.8));
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

/* .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
} */

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text);
}


.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  color: var(--nav-link, #555);
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color .3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition-fast, 0.2s ease);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--nav-link-hover, var(--text));
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

/* MOBILE NAV TOGGLE */

.nav-toggle {
  display: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--nav-border);
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--bg);
  color: var(--text);
}


/* ============================
   HAMBURGER BUTTON
============================ */
.nav-toggle {
  display: none; /* hidden on desktop */
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--nav-border);
  padding: 0.5rem 0.9rem;
  background: var(--nav-bg);
  color: var(--nav-link);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* mobile only */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none !important; /* hide desktop nav */
  }
}


/* -------------------------------------------------
   HERO
-------------------------------------------------- */
.project-hero {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 5px solid var(--accent);
}

.project-hero-overlay {
  width: 100%;
  max-width: 850px;
  background: rgba(255, 255, 255, 0.842);
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  -webkit-backdrop-filter: blur(12px); /* Safari */
    backdrop-filter: blur(2px);
}

.project-hero-title {
  color: #00000063;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.project-hero-location {
  color: #000000c2;
}

/* -------------------------------------------------
   PROJECT INFO GRID + SHARE BUTTON
-------------------------------------------------- */
.project-info {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-title {
  font-size: 2.2rem;
  font-weight: 700;
}
.info-location {
  color: #666;
  font-size: 1.1rem;
}
.info-summary {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Share Button */
.share-row {
  margin-top: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover {
  background:#33555a
}

/* Highlights */
.info-highlights {
  list-style: none;
  padding: 0;
}
.info-highlights li {
  background: var(--muted);
  padding: .8rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin-bottom: .6rem;
}

/* ============================
   PROJECT CARD â€“ IMAGE ONLY
============================ */

.project-card.image-only {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.project-card.image-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

/* ============================
   PROJECT CARD â€“ BIG TITLE
============================ */

.project-card.image-only {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3; /* keeps cards from getting too tall */
}

.project-card.image-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* BIG title */
.project-overlay-title {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.95;
}

/* Hover polish */
.project-card.image-only:hover img {
  transform: scale(1.05);
}



/* -------------------------------------------------
   STICKY FILTER BAR
-------------------------------------------------- */
.project-filters {
  text-align: center;
  margin: 3rem 0 2.5rem;
  padding: 1rem;
  background: var(--bg);
}
.project-filters.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.filter-option {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 1rem;
  cursor: pointer;
}

.filter-option input {
  transform: scale(1.2);
}

/* -------------------------------------------------
   MASONRY GALLERY
-------------------------------------------------- */
.project-gallery {
  padding: 4rem 2rem;
}

.masonry-item img {
  transition: transform .25s ease, box-shadow .25s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


.gallery-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.masonry {
  max-width: 1500px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
  transition: opacity .3s ease, transform .3s ease;
}
.masonry-item.hidden {
  opacity: 0;
  transform: scale(.95);
}

/* Category Pills */
.category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  font-size: .75rem;
  border-radius: 50px;
}

.masonry-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .masonry { column-count: 2; }
}
@media (max-width: 700px) {
  .project-info-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .project-hero-title { font-size: 2.2rem; }
}

.category-pill {
  display: none !important;
}



/* Desktop dark mode toggle */
.dark-toggle-desktop {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  font-weight: 600;
  font-size: .8rem;
}

/* Mobile dark mode toggle inside nav */
.dark-toggle-mobile {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: .5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  width:20%;
}

/* Hide desktop toggle on mobile */
@media (max-width: 900px) {
  .dark-toggle-desktop {
    display: none;
  }
}

/* Hide mobile toggle on desktop */
@media (min-width: 901px) {
  .dark-toggle-mobile {
    display: none;
  }
}

/* Fade-in animation used across sections */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox overlay + arrows */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

/* Next / Previous nav */
.project-nav {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.project-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--muted);
  color: var(--text);
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}
.project-nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* More projects grid */
.more-projects {
  max-width: 1100px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
}
.more-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.more-projects-title {
  font-size: 1.7rem;
  font-weight: 700;
}
.more-projects-subtitle {
  font-size: .95rem;
  color: #777;
}
.more-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.project-card {
  border-radius: 5px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card-body {
  padding: 1rem 1.1rem 1.3rem;
}
.project-card-title {
  font-weight: 600;
  margin-bottom: .2rem;
}
.project-card-location {
  font-size: .9rem;
  color: #777;
}

/* Responsive for more projects/nav */
@media (max-width: 900px) {
  .more-projects-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 700px) {
  .project-nav {
    flex-direction: column;
  }
  .more-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* LIGHTBOX CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 999999;
  transition: opacity .2s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  color: var(--text-main);
  line-height: 1.6;
}

/* --------- Layout --------- */

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.container-2{
  width: 80%;
  margin: 0 auto;
}

.section {
  padding: 2rem 0;
}

.section.projects {
  position: relative;
    background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.section.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  margin-top: 2rem;
  background: linear-gradient(to bottom, #f9fafb, #eef1f7);
  z-index: -1;
}

.forge-panel {
  text-decoration: none;
  color: inherit;
}


/* --------- NAVBAR (Nav: B) --------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding-right:20px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);

}

.brand-subtitle-2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  display:none;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text-main);
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

/* mobile nav toggle */

.nav-toggle {
  display: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #ffffff;
  color: var(--text-main);
}

/* --------- HERO (Hero: A) --------- */

.hero {
  position: relative;
  min-height: 60vh;
  padding: 3.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 5px solid var(--accent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/project_ct-westport/westport_43.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.70;
  filter: grayscale(40%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fdfdfd 0%, #fdfdfd 48%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
}

/* Glass-ish but light mission card */

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 2.4rem 2.6rem;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: #101827;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.hero-meta span strong {
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Secondary column */

.hero-secondary {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero-highlight {
  width: 100%;
  background: radial-gradient(circle at top left, var(--accent-soft), #ffffff);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.9);
  padding: 1.8rem 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.hero-highlight-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #111827;
  margin-bottom: 1rem;
}

.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-highlight-grid strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
    background: var(--nav-bg);
  /* border-bottom: 1px solid var(--nav-border); */
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.about-points li {
  display: flex;
  gap: 0.7rem;
  color: var(--text-muted);
}

.about-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid var(--accent-gold);
  margin-top: 0.3rem;
}

.about-sidebar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =========================================================
   BIO SECTION
========================================================= */

.section-alt {
  background: var(--bg);
}

.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 32px;
}

.bio-copy p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

.bio-sidebar {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.138);
  text-align:center;
}

.bio-sidebar img{
  width:50%; border-radius:100px; border:5px solid rgba(0, 128, 128, 0.132);;
}

.bio-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-stats li {
  margin-bottom: 22px;
}

.bio-stats li:last-child {
  margin-bottom: 0;
}

.bio-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.bio-stats span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MASONRY GALLERY (Gallery C)
   ========================================================= */

.masonry-grid {
  column-count: 2;
  column-gap: 1.5rem;
  margin-top: 2rem;
}

.masonry-item {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.masonry-item img {
  transition: transform .4s ease;
  border-radius: var(--radius);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 1.2rem;
  opacity: 0;
  display: flex;
  align-items: flex-end;
  transition: opacity .3s ease;
}

.masonry-item:hover .masonry-hover {
  opacity: 1;
}


/* =========================================================
   READY SECTION
   ========================================================= */

#ready {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 0fr;
  gap: 2.5rem;
    background: rgba(244, 244, 244, 0.384);
  /* border-bottom: 1px solid var(--nav-border); */
  margin:auto;
  justify-content: center;
  text-align:center;
}

#ready .section-lead {
  margin:auto;
}
#ready .btn-blue {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top:20px;
}

#ready .btn-blue:hover {
  background: #103c58;
}


/* =========================================================
   CLEAN CONTACT SECTION (Form C)
   ========================================================= */

.clean-contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  background: #f7f7f7;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #d0d3da;
  font-size: 1rem;
}

.btn-blue {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-blue:hover {
  background: #103c58;
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER (Two Column)
   ========================================================= */

.site-footer {
  background: #f6f6f6;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-left h3 {
  margin: 0 0 0.5rem;
  
}

.footer-right {
  display: flex;
  flex-direction:row;
  gap: 0.4rem;
}

.footer-right a {
  color: #222;
  text-decoration: none;
}

.footer-right a:hover {
  color: #103c58;
}

/* =========================================================
   Fade-in Animations
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }
}


/* --------- Section Headers --------- */

.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);

}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: #111827;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 680px;
}

#ready {
  gap: 0;
}

/* --------- About --------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.8rem;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}

.about-points li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-points li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid var(--accent);
  margin-top: 0.4rem;
}

.about-sidebar {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.7rem 1.9rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------- Projects (Projects: B) --------- */

.projects-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}



.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease-out, filter 220ms ease-out;
  filter: saturate(0.85) contrast(1.02);
}

.project-tag {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(17, 24, 39, 0.86);
  color: #fefce8;
}

.project-body {
  padding: 0.95rem 1.2rem 1.15rem;
}

.project-title {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: #111827;
}

.project-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* hover effect: subtle zoom + deeper shadow */

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(0, 0, 0, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 213, 219, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.04);
}

/* --------- Contact (Form: C) --------- */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.7rem;
  align-items: flex-start;
}

.contact-aside {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-aside strong {
  color: var(--text-main);
}

.contact-form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2.2rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #f9fafb;
  outline: none;
  transition:
    border-color 160ms ease-out,
    box-shadow 160ms ease-out,
    background 160ms ease-out;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9ca3af;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(211, 156, 31, 0.35);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn span {
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f2c977);
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* Status text + toast */

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: #111827;
  color: #f9fafb;
  border: 1px solid rgba(211, 156, 31, 0.85);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 80;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------- Footer --------- */

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  padding: 1.1rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* --------- Fade-in animations --------- */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}





/* ------------------ CONTACT SECTION (CLEAN) ------------------ */

.contact {
  background: #ffffff;
  color: #222;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
}

.contact-info h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.05rem;
  color: #333;
}

.contact-info p {
  margin: 0 0 .5rem;
  color: #555;
}

.form-row {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  padding: .7rem .9rem;
  font-size: .95rem;
  border-radius: 6px;
  color: #333;
}

.btn-primary {
  background: #0047ab;
  color: #fff;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: .5rem;
}

.btn-primary:hover {
  background: #003a8c;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =============== MASONRY GALLERY =============== */

.masonry-grid {
  column-count: 2;
  column-gap: 1.5rem;
}

.masonry-item {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 10px;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform .4s ease-out;
}

.masonry-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  opacity: 0;
  padding: 1.2rem;
  display: flex;
  align-items: flex-end;
  font-size: 0.95rem;
  transition: opacity .3s ease-out;
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-item:hover .masonry-hover {
  opacity: 1;
}

/* =============== CLEAN CONTACT SECTION =============== */

.clean-contact {
  background: #fff;
  color: #222;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info .section-title {
  color: #111;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-blue {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-blue:hover {
  background: rgb(22, 100, 151);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* =============== FOOTER =============== */

.site-footer {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-left h3 {
  margin: 0 0 .5rem;
}

.footer-right {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: end;
}

.footer-right a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.footer-right a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-direction:column;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-links-footer {
  display: flex;
  flex-direction:column;
  gap: 1rem;
  margin-top: 0rem;
  justify-content: center;
}

/* SOCIAL */
.social-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  transition: color .2s ease;
    text-transform: uppercase;
}

.social-item:hover {
  color: var(--accent);
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* View More functionality */


.view-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-blue.view-less {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.masonry-item.hidden-gallery {
  display: none;
}

/* ============================
   PROJECTS GRID CONSTRAINT
============================ */

.projects-grid {
  max-width: 1100px; /* ðŸ‘ˆ key change */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding: 2rem 0;
}

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-overlay-title {
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* ============================
   PROJECTS LANDING â€“ FINAL
============================ */

/* Grid constraint */
.projects-grid {
  max-width: 1250px; /* was 1100px */
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; /* slightly more spacing */
}


/* Image-only cards */
.project-card.image-only {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
}

/* Image */
.project-card.image-only {
  position: relative;
  aspect-ratio: 5 / 4; /* was 4 / 3 */
  overflow: hidden;
  border-radius: 5px;
}
/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* BIG title */
.project-overlay-title {
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  max-width: 100%;
  padding: 0 0.75rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
  letter-spacing: -5px;
}

.project-overlay-title {
  max-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.project-overlay {
  padding: 1.25rem; /* was 1.5rem */
}


/* Hover */
.project-card.image-only:hover img {
  transform: scale(1.06);
}

/* Responsive */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================
   TRUE INLINE PNG LOGO
============================ */

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  height:8em;           /* ties image to font size */
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  border-radius:4px;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start; /* ðŸ‘ˆ important */
  text-align: left;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ðŸ‘ˆ force left */
}

/* --------- Responsive --------- */

@media (max-width: 960px) {
  .hero {
    padding-top: 2.8rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-secondary {
    order: -1;
  }

  .hero-card {
    padding: 2rem 2.1rem;
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-subtitle{
    display:none;
  }

  .brand-subtitle-2{
    display:block;
  }

  .brand-title img{
    display:none;
  }

  .site-header{
    padding:20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-left{
  text-align:center;
}

.footer-left p{
  margin-top:-5px;
}
.footer-right{
  display:block;
  text-align:center;
}

.social-links-footer{
  text-align:center;
  flex-direction:row;
  margin-top:15px;
}

.section-title {
  font-size:1.6rem;
}

.forge-style h3{
  font-size:3.8rem;
  opacity: 75%;
}

.forge-style {
  padding: 50px 0;
}


@media (max-width: 720px) {

  .contact-info .testimonials{
    display:none;
  }
  
  .contact-points {
      display:none;
  }

  .hero-secondary {
    display:none;
  }
  .nav-inner {
    padding-inline: 1rem;
  }

  .footer-grid{
  grid-template-columns: 1fr;}

  .footer-right{
    display:block;
    text-align:center;
  }

  .social-links-footer{
    text-align:center;
    flex-direction:row;
    margin-top:15px;
  }

  .section-title {
    font-size:1.2rem;
  }
  
  .forge-style h3{
    font-size:3.8rem;
    opacity: 75%;
  }  

  .forge-style {
    padding: 70px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }


  .section {
    padding: 1rem 0;
  }

  .hero-inner {
    width: min(100% - 2.4rem, 640px);
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top:0px;
  }

  .contact-form-card {
    padding-inline: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------ WORK GALLERY (CLEAN) ------------------ */

.projects {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: #222;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s ease;
}

.work-overlay h3 {
  margin: 0;
  font-size: 1.2rem;
}

.work-overlay p {
  margin: 0.3rem 0 0;
  font-size: .9rem;
  opacity: .9;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

/* RESPONSIVE GRID */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .project-overlay {
    opacity: 1;
  }
}
/* ===================== TESTIMONIAL SLIDER ===================== */

.testimonials {
  margin-top: 1.5rem;
  position: relative;
  min-height: 350px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle, #ccc);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.testimonial-dot.active {
  background: var(--accent, #d39c1f);
}
/* Center testimonial dots */
.testimonial-nav {
  justify-content: center;
}

.testimonial-slide .section-lead{
  font-size:.8rem;
}

.testimonial-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonial-wrapper {
  transition: height 300ms ease;
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
  transform: translateY(8px);
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* =========================================================
   TESTIMONIALS â€“ FULL-WIDTH TEXT OVERRIDE
========================================================= */

.contact-testimonials .section-lead {
  max-width: 100%;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  padding: 1.5rem 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 9999;
  border-bottom:2px solid #103c58;
  text-align:center;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a{
  text-decoration: none;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color:black;
}

.mobile-nav a:hover{
  color:#103c58;
}

/* =====================
   POPUP STYLES
===================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-modal {
  position: relative;
  background: #ffffff;
  color: #1a1f2a;
  max-width: 700px;
  width: 90%;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 220ms ease-out;
}

.popup-modal h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.popup-modal p {
  line-height: 1.6;
  text-align:justify;
  margin-bottom:20px;
}

#popupTitle{
  font-size:1.3rem;
  letter-spacing: -1px;
  text-align:center;
}
/* Close Button */
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  transition: color 150ms ease;
}

.popup-close:hover {
  color: #000;
}

/* Animation */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Limit modal height */
.popup-modal {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

/* Scrollable content area */
.popup-content {
  overflow-y: auto;
  padding-right: 0.5rem; /* prevents scrollbar overlap */
}

/* Optional: smoother scrolling */
.popup-content {
  scroll-behavior: smooth;
}

body.popup-open {
  overflow: hidden;
}

/* =========================
   POPUP MODAL (FORCED FIX)
========================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-modal {
  background: #fff;
  width: min(900px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

body.popup-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed !important;
}

/* =========================
   POPUP MODAL — FINAL FIX
========================= */

#popupOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
}

#popupOverlay.active {
  display: flex !important;
}

#popupOverlay .popup-modal {
  background: #ffffff;
  width: min(900px, 90vw);
  max-height: 85vh;
  overflow-y: auto;

  border-radius: 14px;
  padding: 32px;
  position: relative;
}

#popupOverlay .popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

body.popup-open {
  overflow: hidden;
}


