:root {
  --bg: #080808;
  --bg-soft: #111111;
  --card: #161616;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --red: #e50914;
  --blue: #3049b8;
  --purple: #5b35d5;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 24px 70px rgba(0,0,0,0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.brand span {
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-waiver {
  background: var(--red);
  color: #fff !important;
  padding: 9px 13px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(229,9,20,0.3);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.24), transparent 32%),
    radial-gradient(circle at bottom left, rgba(48,73,184,0.22), transparent 34%),
    linear-gradient(135deg, #080808 0%, #121212 55%, #070707 100%);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 84px 0;
}

.page-hero {
  padding: 92px 0 74px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 78%);
  z-index: -2;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(229,9,20,0.16);
}

h1, h2, h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  max-width: 780px;
  margin-bottom: 22px;
}

h1 span {
  color: var(--red);
}

.hero p,
.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.16rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -35% -45% -35%;
  height: 220px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--purple));
  filter: blur(70px);
  opacity: 0.55;
}

.logo-panel {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  border: 8px solid rgba(255,255,255,0.12);
}

.logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quick-info {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-info div {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: center;
}

.quick-info strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
}

.quick-info span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section {
  padding: 92px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.inner-head {
  margin-top: 54px;
}

.section-head h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  max-width: 720px;
}

.section-head p {
  color: var(--muted);
  max-width: 470px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

.card i {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(229,9,20,0.12);
  color: var(--red);
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.card p,
.card li {
  color: var(--muted);
}

.split {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.image-placeholder,
.professor-photo,
.gallery-placeholder {
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.78)),
    radial-gradient(circle at 30% 20%, rgba(229,9,20,0.5), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(48,73,184,0.45), transparent 26%),
    #1a1a1a;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

.image-placeholder {
  min-height: 460px;
}

.image-placeholder p,
.professor-photo p,
.gallery-placeholder span {
  color: var(--muted);
  max-width: 300px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.muted-space {
  color: var(--muted);
  margin-top: 18px;
}

.section-button {
  margin-top: 26px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 18px;
}

.feature i {
  color: var(--red);
  margin-top: 5px;
}

.feature strong {
  display: block;
  margin-bottom: 3px;
}

.feature span {
  color: var(--muted);
}

.professor-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.professor-photo {
  min-height: 620px;
  position: sticky;
  top: 108px;
}

.professor-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 32px;
}

.bio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.bio-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.bio-card p:last-child {
  margin-bottom: 0;
}

.mini-heading {
  font-size: 2rem;
  margin-top: 24px;
  margin-bottom: 18px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.cert-grid li {
  list-style: none;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--muted);
  font-weight: 800;
}

.motto-box {
  margin-top: 22px;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(48,73,184,0.16));
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.schedule-day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.schedule-day strong {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.schedule-day p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

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

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.price-card h3 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.price-line:last-child {
  border-bottom: none;
}

.price-line strong {
  color: #fff;
}

.note-box {
  margin-top: 18px;
  background: rgba(229,9,20,0.10);
  border: 1px solid rgba(229,9,20,0.35);
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-placeholder {
  min-height: 290px;
  box-shadow: none;
}

.gallery-grid img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.cta {
  padding: 70px 0;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.88), rgba(70,36,160,0.88)),
    #111;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  max-width: 720px;
}

.cta p {
  color: rgba(255,255,255,0.78);
  max-width: 590px;
  margin-top: 14px;
}

.cta .btn-primary {
  background: #fff;
  color: #090909;
  box-shadow: none;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row i {
  color: var(--red);
  width: 24px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 1020px) {
  .nav {
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero-wrap,
  .split-wrap,
  .professor-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .professor-photo {
    position: static;
    min-height: 480px;
  }

  .cards,
  .program-cards,
  .schedule-grid,
  .price-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .hero {
    padding: 54px 0;
  }

  .page-hero {
    padding: 66px 0 54px;
  }

  .hero-card,
  .bio-card,
  .contact-card {
    padding: 18px;
  }

  .quick-info,
  .cards,
  .program-cards,
  .schedule-grid,
  .price-grid,
  .gallery-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 68px 0;
  }

  .btn {
    width: 100%;
  }

  .gallery-placeholder,
  .gallery-grid img {
    min-height: 230px;
    height: 230px;
  }
}

.about-photo {
  width: 100%;
  height: 430px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111;
}

.about-photo {
  width: 100%;
  height: 430px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

/* About page layout fix */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  margin-bottom: 18px;
}

.about-content .muted-space {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 26px;
}

.about-content .feature-list {
  margin-top: 0;
  max-width: 640px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.professor-home-photo {
  padding: 0;
  overflow: hidden;
  min-height: 460px;
}

.professor-home-photo img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
}

/* ===== Homepage hero background upgrade ===== */

.hero {
  min-height: calc(100vh - 82px);
  padding: 120px 0 110px;
  background:
    linear-gradient(
      rgba(0,0,0,0.48),
      rgba(0,0,0,0.58)
    ),
    linear-gradient(
      135deg,
      rgba(48,73,184,0.12),
      rgba(229,9,20,0.14)
    ),
    url("assets/grind_community.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.45;
  z-index: -1;
}

.hero-wrap {
  grid-template-columns: 0.95fr 0.85fr;
  gap: 76px;
  align-items: center;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(4.8rem, 8vw, 8.8rem);
}

.hero p {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-card {
  max-width: 520px;
  justify-self: center;
  background: rgba(18,18,18,0.56);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 34px;
  padding: 28px;
}

.logo-panel {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  border: 8px solid rgba(255,255,255,0.12);
}

.logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quick-info {
  margin-top: 18px;
}

.quick-info div {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 1020px) {
  .hero {
    padding: 80px 0;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    justify-self: start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.6rem);
  }

  .logo-panel {
    width: 250px;
    height: 250px;
  }
}