/* Small custom touches on top of Bootstrap */
:root {
  --brand-accent: #6f42c1; /* purple-ish accent */
}

.brand-accent { color: var(--brand-accent); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
  background: radial-gradient(1200px circle at 20% 10%, rgba(111, 66, 193, 0.18), transparent 60%),
              radial-gradient(900px circle at 90% 30%, rgba(13, 110, 253, 0.14), transparent 55%),
              linear-gradient(180deg, #0b0f19 0%, #0b0f19 35%, #ffffff 35%, #ffffff 100%);
  padding: 4rem 0 2.5rem;
}

.hero .card {
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-hover {
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.16);
}

/* Fixed size for all section thumbnails */
.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  border-top: 1px solid rgba(0,0,0,0.08);
}


/* Pixel Platform hero */
.hero {
  position: relative;
  background: linear-gradient(
                rgba(11,15,25,0.65),
                rgba(11,15,25,0.65)
              ),
              url("../img/detector.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0 6rem;
  color: white;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.navbar-brand img {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}


/* Pixel Platform accordion styling */
.pp-accordion .accordion-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 0.75rem;
}

.pp-accordion .accordion-button {
  font-weight: 700;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Remove Bootstrap default caret icon so we can animate our own */
.pp-accordion .accordion-button::after {
  display: none;
}

/* Chevron animation */
.pp-chevron {
  display: inline-block;
  transition: transform 180ms ease;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* When expanded, rotate chevron up */
.pp-accordion .accordion-button:not(.collapsed) .pp-chevron {
  transform: rotate(180deg);
}

/* Slightly nicer expanded state */
.pp-accordion .accordion-button:not(.collapsed) {
  background: rgba(13, 110, 253, 0.06);
  color: inherit;
  box-shadow: none;
}

.img-clickable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.img-clickable:hover {
  transform: scale(1.02);
}

/* Horizontal topic slider */
.slider-shell {
  position: relative;
  overflow: hidden;
}

.work-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 2.75rem;
}

.work-slider::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 calc(25% - 0.75rem); /* 4 cards visible */
  min-width: calc(25% - 0.75rem);
}

.work-card .card {
  border-radius: 1rem;
}

.work-card .card-body {
  padding: 0.9rem 1rem;
}

.work-card .card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.work-card .card-text {
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Keep thumbnails compact */
.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.thumb img,
.card-img-top.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  color: white;
  font-size: 1.5rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(15, 23, 42, 0.55);
}

.slider-arrow-left {
  left: 0.35rem;
}

.slider-arrow-right {
  right: 0.35rem;
}

/* Subtle fade at the edges to suggest more content */
.slider-shell::before,
.slider-shell::after {
  content: "";
  position: absolute;
  top: 0;
  width: 64px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.slider-shell::before {
  left: 0;
  background: linear-gradient(to right, white 15%, rgba(255,255,255,0));
}

.slider-shell::after {
  right: 0;
  background: linear-gradient(to left, white 15%, rgba(255,255,255,0));
}

/* Responsive */
@media (max-width: 1400px) {
  .work-card {
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: calc(33.333% - 0.67rem);
  }
}

@media (max-width: 992px) {
  .work-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 576px) {
  .work-slider {
    padding: 0.25rem 2.25rem;
  }

  .work-card {
    flex: 0 0 85%;
    min-width: 85%;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* --- Pixel Platform infinite carousel --- */
.pp-carousel {
  position: relative;
}

.pp-carousel-viewport {
  overflow: hidden;
  padding: 0 3.2rem;
}

.pp-carousel-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.pp-carousel-card {
  flex: 0 0 calc((100% - 3rem) / 4); /* 4 visible, 3 gaps */
}

.pp-carousel-card .card {
  border-radius: 1rem;
}

.pp-carousel-card .card-body {
  padding: 0.9rem 1rem;
}

.pp-carousel-card .card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.pp-carousel-card .card-text {
  font-size: 0.92rem;
  line-height: 1.35;
}

.pp-carousel-card .card-img-top {
  display: block;
  width: 100%;
}

/* Keep thumbnails consistent */
.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.thumb img,
.card-img-top.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows */
.pp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: white;
  font-size: 1.45rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.pp-carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.48);
}

.pp-carousel-arrow-left {
  left: 0.35rem;
}

.pp-carousel-arrow-right {
  right: 0.35rem;
}

/* Edge fades */
.pp-carousel::before,
.pp-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 72px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.pp-carousel::before {
  left: 0;
  background: linear-gradient(to right, white 18%, rgba(255,255,255,0));
}

.pp-carousel::after {
  right: 0;
  background: linear-gradient(to left, white 18%, rgba(255,255,255,0));
}

/* Responsive */
@media (max-width: 1400px) {
  .pp-carousel-card {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}

@media (max-width: 992px) {
  .pp-carousel-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (max-width: 576px) {
  .pp-carousel-viewport {
    padding: 0 2.2rem;
  }

  .pp-carousel-card {
    flex: 0 0 85%;
    min-width: 85%;
  }

  .pp-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .pp-carousel::before,
  .pp-carousel::after {
    width: 36px;
  }
}


/* Workshop CTA button */
.btn-workshop {
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
  transition: all 0.2s ease;
}

.btn-workshop:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(220, 53, 69, 0.45);
  color: white;
}


/* Workshop CTA button */
.btn-workshop {
  position: relative;
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: workshopPulse 2.6s ease-in-out infinite;
}

.btn-workshop:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(220, 53, 69, 0.45);
  color: white;
  animation-play-state: paused;
}

@keyframes workshopPulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 10px 28px rgba(220, 53, 69, 0.5);
    transform: scale(1.025);
  }
}

/* NEW badge */
.workshop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: fadeBadge 7s ease forwards;
}

@keyframes fadeBadge {
  0%, 55% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.text-justify {
  text-align: justify;
}

/* About section typography */
.about-text {
  text-align: justify;
  line-height: 1.75;
  font-size: 1.05rem;
  color: #4b5563; /* softer than Bootstrap muted */
}

/* Improve word spacing for justification */
.about-text {
  text-justify: inter-word;
}

/* Optional: nicer paragraph spacing */
.about-text p {
  margin-bottom: 1rem;
}

.about-text strong {
  color: #111827;
  font-weight: 600;
}

.about-box {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
}

/* Right column cards refinement */
.col-lg-4 .border {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.col-lg-4 .border:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Email links */
.col-lg-4 a[href^="mailto"] {
  font-size: 0.9rem;
}


/* Under construction styling */
.page-placeholder {
  max-width: 700px;
  margin: 0 auto;
}

.page-placeholder .badge {
  letter-spacing: 0.03em;
}

/* Image overlay container */
.img-overlay-box {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Ensure consistent ratio (optional but recommended) */
.img-overlay-box img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Text overlay */
.img-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 0.6rem 0.8rem;

  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: white;

  font-weight: 600;
  font-size: 0.95rem;
}

.img-overlay-box:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}


footer img:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: 0.2s;
}

.footer-link:hover {
  text-decoration: underline;
  color: #000;
}

/* Footer links hover */
.footer-link {
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #000 !important;
  text-decoration: underline;
}

/* Name hover effect */
.name-highlight {
  transition: all 0.2s ease;
  cursor: default;
}

.name-highlight:hover {
  color: #000;
  transform: scale(1.05);
}

.navbar img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar img:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.gsi-logo {
  background-color: white;
  padding: 4px;
  border-radius: 6px;
  display: inline-block;
}

.navbar-brand {
  min-width: 0;
  max-width: calc(100% - 70px);
}

.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: inline-block;
  white-space: normal;
  line-height: 1.2;
  font-size: 0.95rem;
}

.gsi-logo {
  height: 40px;
  width: auto;
}

@media (max-width: 991.98px) {
  .navbar-brand {
    max-width: calc(100% - 60px);
  }

  .brand-logo {
    height: 34px;
  }

  .brand-text {
    font-size: 0.85rem;
  }
}

.gsi-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
}

/* Mobile adjustment */
@media (max-width: 991.98px) {
  .gsi-logo {
    height: 30px;
  }
}

.gsi-link {
  display: block;
  text-align: center;
}

.gsi-link .bg-white {
  display: inline-block;
}

@media (max-width: 991.98px) {
  .gsi-link .bg-white {
    padding: 2px 6px;
  }
}

.gallery-item {
  height: 220px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.img-corner-label {
  position: absolute;
  bottom: 12px;
  right: 12px;

  background: rgba(0, 0, 0, 0.6);
  color: white;

  padding: 4px 10px;
  border-radius: 8px;

  font-size: 0.8rem;
  font-weight: 500;
}