/* Kicker label (shared with dashboard .brand-kicker) */
.gc-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero */
.gc-hero {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 48px) 72px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.gc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

.gc-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gc-lead {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.gc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tech panel (hero stats) */
.gc-tech-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.96), rgba(13, 18, 26, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gc-tech-panel::before,
.gc-tech-panel::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-accent);
  opacity: 0.6;
  pointer-events: none;
}

.gc-tech-panel::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.gc-tech-panel::after {
  right: 10px;
  bottom: 10px;
  border-left: none;
  border-top: none;
}

.gc-stat {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

.gc-stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.gc-stat-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* Buttons */
.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.gc-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.gc-btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
}

.gc-btn-primary:hover {
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.35);
}

.gc-btn-ghost {
  background: transparent;
  color: var(--text);
}

.gc-btn-ghost:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-accent);
}

/* Project cards */
.gc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #151c27 100%);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.gc-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-soft);
}

.gc-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gc-card-status--online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
}

.gc-card-status--offline {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.45);
}

.gc-card-status--unknown {
  background: var(--text-dim);
}

.gc-card h3 {
  margin: 0 0 10px;
  padding-right: 20px;
  font-size: 1.12rem;
}

.gc-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.gc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.gc-card-link::after {
  content: "→";
  transition: transform var(--duration) var(--ease);
}

.gc-card:hover .gc-card-link::after {
  transform: translateX(3px);
}

/* About */
.gc-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.gc-about-grid > p {
  color: var(--text-muted);
}

.gc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
}

.gc-list li + li {
  margin-top: 10px;
}

.gc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Contact */
.gc-contact-card {
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background: var(--accent-soft);
}

.gc-contact-card p {
  color: var(--text-muted);
}

.gc-contact-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

/* Page content */
.gc-content {
  margin-top: 20px;
  color: var(--text-muted);
}

.gc-content h2,
.gc-content h3 {
  color: var(--text);
  margin-top: 1.6em;
}

.gc-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 404 */
.gc-empty {
  text-align: center;
  padding-block: 96px;
}

.gc-empty-code {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.04em;
}

.gc-empty h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.gc-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Scroll reveal */
.gc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.gc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .gc-tech-panel {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-btn:hover,
  .gc-card:hover {
    transform: none;
  }

  .gc-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Website showcase carousel (unified hero + card) */
.gc-showcase-unified {
  padding-bottom: 48px;
}

.gc-showcase-controls--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px) 12px;
}

.gc-showcase-unified .gc-hero {
  padding: 12px clamp(20px, 4vw, 48px) 40px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.gc-showcase-card-section {
  padding: 0 clamp(20px, 4vw, 48px) 8px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.gc-showcase-unified .gc-showcase-viewport {
  margin-top: 0;
}

.gc-showcase-viewport:focus-visible {
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent);
}

.gc-showcase-track {
  display: grid;
  grid-template: 1fr / 1fr;
}

.gc-showcase-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  pointer-events: none;
}

.gc-showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.gc-showcase-card {
  min-height: 220px;
}

.gc-showcase-card-title {
  margin: 0 0 10px;
  padding-right: 20px;
  font-size: 1.12rem;
}

.gc-showcase-card-body {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.gc-showcase-card-body p {
  margin: 0 0 12px;
}

.gc-showcase-bullets {
  margin: 0 0 18px;
}

.gc-showcase-controls:not(.gc-showcase-controls--top) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.gc-showcase-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-showcase-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.gc-showcase-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.15);
}

.gc-showcase-dot:hover {
  background: var(--text-muted);
}

.gc-showcase-progress {
  flex: 1;
  max-width: 220px;
  height: 3px;
  border-radius: 999px;
  background: rgba(39, 50, 68, 0.85);
  overflow: hidden;
}

.gc-showcase-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #3ecf8e);
  border-radius: inherit;
  will-change: width;
}

.gc-showcase-progress-bar.is-animating {
  /* width driven by JS transition — keeps countdown in sync with slide change */
}

@media (max-width: 640px) {
  .gc-showcase-controls,
  .gc-showcase-controls--top {
    flex-direction: column;
    align-items: flex-start;
  }

  .gc-showcase-progress {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-showcase-slide {
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .gc-showcase-progress-bar.is-animating {
    animation: none;
    width: 100%;
  }
}

/* Project title page template */
.gc-project-page {
  padding-bottom: 64px;
}

.gc-project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 48px) 32px;
}

.gc-project-hero-inner h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.gc-project-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
}

.gc-project-hero-media {
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
}

.gc-project-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-project-body-inner,
.gc-project-gallery-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.gc-project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 24, 33, 0.55);
  text-align: center;
}

.gc-project-placeholder--block {
  min-height: 160px;
}

.gc-project-placeholder-label {
  color: var(--text);
  font-weight: 600;
}

.gc-project-placeholder-hint {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.gc-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.gc-project-gallery-slot {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  text-align: center;
  padding: 16px;
}

.gc-project-gallery-note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .gc-project-hero,
  .gc-project-gallery {
    grid-template-columns: 1fr;
  }
}
