/* =========================
   PAGE-SPECIFIC STYLES
   ========================= */

/* HOME */

.hero {
  padding-top: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-grid > div:first-child {
  max-width: 520px;
  margin-left: auto;
  padding-top: 8px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow:
    0 0 14px rgba(0,174,239,0.22),
    0 0 28px rgba(57,255,20,0.12);
}

.lead {
  color: #C9D1D9;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-main {
  position: relative;
  width: 520px;
  height: 340px;
  padding: 10px;
  background: rgba(18,22,28,0.85);
  border-radius: 18px;
  border: 1px solid rgba(0,174,239,0.18);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.8),
    0 0 14px rgba(0,174,239,0.08);
  overflow: hidden;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  border-radius: 12px;
  filter: brightness(0.88) contrast(1.1) saturate(1.05);
}

.transition {
  margin-top: 72px;
  margin-bottom: 48px;
}

.transition-text {
  color: #AAB4BE;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.transition-strong {
  color: #FFFFFF;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: rgba(18,22,28,0.9);
  border-radius: 14px;
  padding: 22px 18px;
  border: 1px solid rgba(0,174,239,0.25);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.7),
    0 0 12px rgba(0,174,239,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card img {
  width: auto !important;
  height: auto !important;
  max-width: 82px !important;
  max-height: 82px !important;
  object-fit: contain !important;
  margin: 0 auto 16px !important;
}

.service-card h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: 1.05rem;
  text-align: center;
}

.service-card p {
  margin: 0;
  color: #AAB4BE;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.start-project {
  margin-top: 72px;
}

/* ABOUT */

.section {
  padding-top: 56px;
}

.about-split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 44px;
  align-items: center;
}

.about-photo-card {
  max-width: 340px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(18,22,28,0.90);
  border: 1px solid rgba(0,174,239,0.24);
  border-radius: 16px;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.70),
    0 0 14px rgba(0,174,239,0.08);
}

.about-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.about-copy {
  max-width: 620px;
  margin-left: auto;
  text-align: right;
}

.section-label,
.page-kicker,
.academic-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #00DFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-copy h1,
.contact-copy h1,
.academic-hero h1 {
  margin: 14px 0 20px;
  color: #FFFFFF;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.08;
  text-shadow:
    0 0 14px rgba(0,238,255,0.25),
    0 0 28px rgba(57,255,20,0.10);
}

.about-copy .text {
  margin-top: 14px;
  color: #C9D1D9;
  line-height: 1.72;
}

.about-copy .ctas {
  margin-top: 22px;
}

/* CONTACT */

.page-hero {
  padding-top: 56px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.contact-copy p {
  color: #C9D1D9;
  line-height: 1.72;
}

.contact-card,
.contact-form {
  background: rgba(18,22,28,0.88);
  border: 1px solid rgba(0,174,239,0.22);
  border-radius: 16px;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.70),
    0 0 14px rgba(0,174,239,0.08);
}

.contact-card {
  margin-top: 24px;
  padding: 18px;
}

.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: #00DFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a {
  color: #FFFFFF;
  text-decoration: none;
  word-break: break-word;
}

.contact-form {
  padding: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: #D8E2EA;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,174,239,0.25);
  background: rgba(5,8,12,0.82);
  color: #FFFFFF;
  font-family: "Orbitron", sans-serif;
}

/* ACADEMIC */

.academic-hero {
  padding: 56px 0 42px;
  text-align: center;
}

.academic-impact {
  margin: 0 0 14px;
  color: #00EEFF;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.academic-copy {
  max-width: 840px;
  margin: 0 auto;
  color: #C9D1D9;
  line-height: 1.72;
}

.academic-page-section {
  margin-top: 76px;
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: #FFFFFF;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.section-heading p {
  margin: 0;
  color: #AAB4BE;
  line-height: 1.65;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.academic-card {
  position: relative;
  margin: 0;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(72,84,95,0.86), rgba(35,44,53,0.93)),
    radial-gradient(circle at top left, rgba(0,238,255,0.12), transparent 42%);
  border: 1px solid rgba(170,190,205,0.24);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.60),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 14px rgba(0,238,255,0.08);
}

.academic-card .lightbox-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  background: rgba(5,8,12,0.42);
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  cursor: zoom-in;
}

.academic-card img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px;
}

.academic-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: #D2DAE2;
  font-size: 0.76rem;
  line-height: 1.45;
}

.academic-card figcaption strong {
  color: #FFFFFF;
}

.academic-card figcaption em {
  color: #00DFFF;
  font-style: normal;
  font-size: 0.68rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid > div:first-child {
    margin-left: 0;
  }

  .hero-art {
    align-items: center;
  }

  .hero-main {
    width: 100%;
    max-width: 520px;
    height: 300px;
  }

  .services-grid,
  .academic-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 36px;
  }

  .hero-main {
    height: 285px;
  }

  .about-photo-card {
    max-width: 260px;
  }
}
/* =========================
   PAYMENT SECTION
========================= */

.cg-payment-section {
  margin-top: 90px;
  padding: 72px 0;
  border-top: 1px solid rgba(0,234,255,0.14);

  background:
    linear-gradient(
      180deg,
      rgba(8,10,14,0.72),
      rgba(12,15,20,0.92)
    );
}

.cg-payment-header {
  text-align: center;
  margin-bottom: 42px;
}

.cg-payment-header h2 {
  margin: 12px 0 16px;
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3rem);

  text-shadow:
    0 0 14px rgba(0,234,255,0.20),
    0 0 24px rgba(57,255,20,0.08);
}

.cg-payment-header p {
  max-width: 720px;
  margin: auto;
  color: #B8C2CC;
  line-height: 1.7;
}

.cg-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  align-items: stretch;
}

.cg-payment-card {
  padding: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(42,48,56,0.88),
      rgba(18,22,28,0.95)
    );

  border: 1px solid rgba(0,234,255,0.16);
  border-radius: 18px;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.72),
    0 0 14px rgba(0,234,255,0.08);

  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.cg-payment-card:hover {
  transform: translateY(-5px);

  border-color: rgba(0,234,255,0.34);

  box-shadow:
    0 18px 36px rgba(0,0,0,0.82),
    0 0 18px rgba(0,234,255,0.22),
    0 0 32px rgba(57,255,20,0.08);
}

.cg-payment-qr {
  margin-bottom: 24px;
}

.cg-payment-qr img {
  width: 100%;
  max-width: 240px;
  margin: auto;

  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
}

.paypal-glow img {
  box-shadow:
    0 0 18px rgba(0,140,255,0.34);
}

.venmo-glow img {
  box-shadow:
    0 0 18px rgba(0,234,255,0.30);
}

.cg-payment-card h3 {
  margin: 0 0 12px;

  color: #FFFFFF;
  font-size: 1.45rem;
}

.cg-payment-card p {
  margin: 0 0 24px;

  color: #B7C1CB;
  line-height: 1.65;
}

.cg-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cg-pay-btn:hover {
  transform: scale(1.04);
}

.paypal-btn {
  background:
    linear-gradient(
      90deg,
      #0070ba,
      #00a2ff
    );

  color: #FFFFFF;

  box-shadow:
    0 0 14px rgba(0,162,255,0.30);
}

.paypal-btn:hover {
  box-shadow:
    0 0 20px rgba(0,162,255,0.55);
}

.venmo-btn {
  background:
    linear-gradient(
      90deg,
      #00d2ff,
      #00ffe0
    );

  color: #000000;

  box-shadow:
    0 0 14px rgba(0,255,224,0.24);
}

.venmo-btn:hover {
  box-shadow:
    0 0 20px rgba(0,255,224,0.50);
}

@media (max-width: 900px) {

  .cg-payment-grid {
    grid-template-columns: 1fr;
  }

}



/* =========================
   CLEAN IMAGE PROTECTION
   LIGHTBOX SAFE VERSION
========================= */

/* --------------------------------
   SAFE PROTECTED CONTAINERS
-------------------------------- */

.portfolio-item,
.academic-card,
.featured-card,
.case-study {
  position: relative;
  overflow: hidden;
}

/* --------------------------------
   WATERMARK OVERLAYS
-------------------------------- */

.portfolio-item::after,
.academic-card::after,
.featured-card::after,
.case-study::after {

  content:
    "CRITICAL GRAFFIX   PREVIEW ONLY   CRITICAL GRAFFIX";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;

  color: rgba(255,255,255,0.10);

  transform: rotate(-28deg);

  pointer-events: none;

  z-index: 100;

  white-space: nowrap;

  text-shadow:
    0 0 8px rgba(0,234,255,0.14),
    0 0 18px rgba(57,255,20,0.08);
}

/* --------------------------------
   SUBTLE SCANLINES
-------------------------------- */

.portfolio-item::before,
.academic-card::before,
.featured-card::before,
.case-study::before {

  content: "";

  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 2px,
      transparent 4px
    );

  opacity: 0.24;

  pointer-events: none;

  z-index: 90;
}

/* --------------------------------
   SAFE IMAGE FILTERING
-------------------------------- */

.portfolio-item img,
.academic-card img,
.featured-card img,
.case-study img {

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  filter:
    contrast(1.02)
    saturate(0.90)
    brightness(0.97);

}

/* --------------------------------
   HOVER EFFECTS
-------------------------------- */

.portfolio-item:hover img,
.academic-card:hover img,
.featured-card:hover img,
.case-study:hover img {

  filter:
    contrast(1.03)
    saturate(0.86)
    brightness(0.96)
    blur(0.15px);

}

/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 768px) {

  .portfolio-item::after,
  .academic-card::after,
  .featured-card::after,
  .case-study::after {

    font-size: 0.58rem;
    letter-spacing: 0.10em;

  }

}



/* =========================
   LIGHTBOX WATERMARK
   SAFE VERSION
========================= */

.lightbox-image {
  position: relative;
}

/* WATERMARK VISUAL OVERLAY */

.lightbox.is-open::after {

  content:
    "CRITICAL GRAFFIX   PREVIEW ONLY   CRITICAL GRAFFIX";

  position: fixed;

  top: 50%;
  left: 50%;

  transform:
    translate(-50%, -50%)
    rotate(-28deg);

  width: 120vw;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: rgba(255,255,255,0.10);

  text-shadow:
    0 0 10px rgba(0,234,255,0.16),
    0 0 20px rgba(57,255,20,0.08);

  pointer-events: none;

  z-index: 10050;

  white-space: nowrap;
}

/* SAFE LIGHTBOX IMAGE FILTERING */

.lightbox-image {

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  filter:
    contrast(1.02)
    saturate(0.88)
    brightness(0.96);

}



/* =========================
   ABOUT PAGE LAYOUT FIX
========================= */

/* MAIN ABOUT CONTAINER */

.about-section {

  position: relative;

}

/* FIXED PORTRAIT PANEL */

.about-photo-card {

  position: fixed;

  top: 140px;
  left: 40px;

  width: 300px;

  z-index: 20;

  border-radius: 24px;

  overflow: hidden;

  background: rgba(8,12,18,0.82);

  border: 1px solid rgba(0,255,255,0.14);

  box-shadow:
    0 0 24px rgba(0,255,255,0.10),
    0 0 80px rgba(0,0,0,0.45);

  backdrop-filter: blur(10px);

}

/* IMAGE */

.about-photo-card img {

  display: block;

  width: 100%;
  height: auto;

}

/* TEXT COLUMN */

.about-copy {

  width: min(760px, 90vw);

  margin-left: 420px;

  padding-right: 60px;

}

/* KEEP TYPOGRAPHY NORMAL */

.about-copy .text {

  max-width: 760px;

}

.about-copy p {

  max-width: 760px;

  line-height: 1.7;

}

/* MOBILE */

@media (max-width: 980px) {

  .about-photo-card {

    position: relative;

    top: auto;
    left: auto;

    width: 100%;
    max-width: 420px;

    margin:
      2rem auto 2rem auto;

  }

  .about-copy {

    width: 100%;

    margin-left: 0;

    padding-right: 0;

  }

}

.cg-terms-link {

  text-align: center;

  margin-top: 60px;

  margin-bottom: 30px;

  width: 100%;

}

.cg-terms-link a {

  display: inline-block;

  color: #ffe600;

  font-family: 'Orbitron', sans-serif;

  font-size: 1rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-decoration: none;

  text-transform: uppercase;

  border-bottom: 2px solid rgba(255,230,0,0.45);

  padding-bottom: 5px;

  transition: all 0.25s ease;

}

.cg-terms-link a:hover {

  color: #ffffff;

  border-bottom-color: rgba(255,255,255,0.85);

  text-shadow:
    0 0 8px rgba(255,230,0,0.45);

}
