:root {
  /* Pink-Black Theme Colors */
  --bs-primary: #e94b97;
  --bs-secondary: #ff66cc;
  --bs-dark: #0c0607;
  --bs-light: #f5f0f3;
  --bs-info: #ff44dd;
  --bs-success: #10b981;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;

  /* Custom Variables */
  --background: var(--bs-dark);
  --background-secondary: #141016;
  --foreground: #f5f0f3;
  --primary: var(--bs-primary);
  --primary-glow: #ff66cc;
  --primary-dark: #c7377f;
  --accent: var(--bs-info);
  --secondary: #ff99e6;
  --muted: #2a1f26;
  --muted-foreground: #b8a8b3;
  --border: #332a30;
  --shadow: #0c060c6b;

  /* reference colors from DragonScout https://ds.arc6014.com/*/
  --arc-100: #faeaf2;
  --arc-200: #e7a8cb;
  --arc-300: #e39fc4;
  --arc-400: #dc8cb5;
  --arc-450: #c5759d;
  --arc-500: #d75793;
  --arc-800: #be417c;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--bs-primary),
    var(--bs-info)
  );
  --gradient-hero: linear-gradient(
    135deg,
    var(--bs-dark),
    var(--background-secondary),
    rgba(233, 75, 151, 0.1)
  );
  --gradient-card: linear-gradient(
    145deg,
    var(--background-secondary),
    #1a151c
  );
  --gradient-border: linear-gradient(
    90deg,
    var(--bs-primary),
    var(--bs-info),
    var(--secondary)
  );

  /* Shadows */
  --shadow-pink: 0 0 20px rgba(233, 75, 151, 0.3);
  --shadow-pink-intense: 0 0 40px rgba(233, 75, 151, 0.5);
  --shadow-card: 0 8px 32px rgba(12, 6, 7, 0.6);
  --shadow-elegant: 0 20px 60px rgba(12, 6, 7, 0.8);
}




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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Custom Utilities */
.text-foreground {
  color: var(--muted-foreground) !important;
}
.text-primary-custom {
  color: var(--primary) !important;
}
.text-muted-custom {
  color: var(--muted-foreground) !important;
}
.bg-primary-custom {
  background: var(--primary) !important;
}
.bg-secondary-custom {
  background: var(--background-secondary) !important;
}
.bg-card-custom {
  background: var(--gradient-card) !important;
}
.border-primary-custom {
  border-color: var(--primary) !important;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-border);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

/* Custom Buttons */
.btn-glow {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: var(--shadow-pink);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: var(--shadow-pink-intense);
  transform: translateY(-2px);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: rgba(20, 16, 22, 0.8);
  border-color: var(--primary);
  transform: scale(1.05);
  color: var(--foreground);
}

/* Quote/Callout */
.callout {
  background: var(--gradient-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.callout-warning {
  border-left-color: var(--bs-warning);
}

.callout-info {
  border-left-color: var(--bs-info);
}

.callout-success {
  border-left-color: var(--bs-success);
}

/* Code blocks */
.code-block {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1rem 0;
}
/* Cards */
.card-custom {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card-custom:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-elegant);
  border-color: var(--primary);
}

.card-gradient-border {
  position: relative;
  background: var(--gradient-card);
  border-radius: 12px;
  overflow: hidden;
}

.card-gradient-border::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-border);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
}

/* Cards */
.info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-elegant);
}

.info-card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-card h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.info-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Navigation */
.navbar-custom {
  background: transparent;
  backdrop-filter: blur(20px);
}

.navbar-custom.scrolled {
  background: rgba(12, 6, 7, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.navbar-brand-custom {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2s ease-in-out infinite;
}

.nav-link-custom {
  color: var(--muted-foreground) !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--primary) !important;
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-border);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="circuit" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M20 20h60v60H20z" fill="none" stroke="%23E94B97" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%23FF44DD" opacity="0.5"/><circle cx="80" cy="80" r="2" fill="%23FF66CC" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>')
    center/cover;
  opacity: 0.1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

/* Hero Text */
.particle-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  background: linear-gradient(135deg, #b847ff, #ff47b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #b847ff;
  border-radius: 50%;
  animation: particle-float 3s ease-in-out infinite;
  box-shadow: 0 0 10px #b847ff;
}

@keyframes glow-pulse {
  0% {
    filter: drop-shadow(0 0 20px #b847ff);
  }
  100% {
    filter: drop-shadow(0 0 40px #ff47b8);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* Badges */
.badge-custom {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  z-index: 100;
}

.badge-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
}

.badge-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-active {
  background: linear-gradient(135deg, #10b981, #059669);
}
.badge-completed {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.badge-development {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.badge-research {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.badge-chip {
  background: var(--gradient-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

/* Animations */
@keyframes pulseGlow {
  /*
  0%,
  100% {
    box-shadow: 0 0 20px rgba(233, 75, 151, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(233, 75, 151, 0.8),
      0 0 80px rgba(233, 75, 151, 0.4);
  }
  */
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Animation Classes */
.animate-pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-bounce {
  animation: bounce 2s infinite;
}
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Styles */
.section-padding {
  padding: 6rem 0;
}
.section-bg {
  background: linear-gradient(
    to bottom right,
    var(--background),
    var(--background-secondary),
    var(--background)
  );
}
.section-bg-alt {
  background: linear-gradient(
    to bottom right,
    var(--background-secondary),
    var(--background),
    var(--background-secondary)
  );
}
.section-alt {
  background: linear-gradient(
    180deg,
    var(--background),
    var(--background-secondary)
  );
}

/* Icon Styles */
.icon {
  font-size: 1.5rem;
}
.icon-sm {
  font-size: 1rem;
}
.icon-lg {
  font-size: 2rem;
}
.icon-xl {
  font-size: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem;
  }
  .display-2 {
    font-size: 2.5rem;
  }
  .hero-section {
    min-height: 80vh;
  }
  .section-padding {
    padding: 4rem 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  pointer-events: all;
}

#backgroundContainer {
  position: relative;
  z-index: 10;
  overflow: hidden;
}

#robots {
  height: auto;
}

#robots .imgcon {
  height: 100%;
  width: 100%;
  position: absolute;
}

#robots .rg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  object-position: top;
}

textarea {
  resize: none;
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background-secondary);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}
#home {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--gradient-hero);
  object-fit: cover;
}

#home .hero-contain {
  position: relative;
  z-index: 10;
  padding: 2rem;
  background: var(--shadow);
  border-radius: 24px;
}

/* CTA Section */
.CTA {
  position: relative;
  z-index: 10;
  padding: 2rem;
  gap: 1rem;
  background: var(--gradient-card);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #000;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 60px 40px 40px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-content {
  transform: translateY(0);
}

.slide-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
}

.slide-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-title,
.slide.active .slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
}

.navigation:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

.indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  width: 0%;
  z-index: 10;
  transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-container {
    width: 95%;
    height: 400px;
    border-radius: 15px;
  }

  .slide-content {
    padding: 40px 20px 20px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .navigation {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .nav-prev {
    left: 15px;
  }

  .nav-next {
    right: 15px;
  }
}

.slide.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gal-cover {
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.gal-cover img {
  object-fit: cover;
}
.gal-contain {
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.gal-contain img {
  object-fit: contain;
}
.project-showcase {
  margin-top: 80px;
}

/* Info cards for documentation */
.info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-elegant);
}
.info-card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* TOC styling */
.toc {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.toc-link {
  color: var(--muted-foreground);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  margin-left: -1rem;
  transition: all 0.3s ease;
}
.toc-link:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}
.toc-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(233, 75, 151, 0.1);
}

/* Feature box */
.feature-box {
  background: var(--background-secondary);
  padding: 1.5rem;
  border-radius: 12px;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Lists */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Dividers */
.divider {
  height: 1px;
  background: var(--gradient-border);
  margin: 3rem 0;
  opacity: 0.3;
}

/* Visual Story Panels (no cards) */
.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.story.reverse {
  grid-template-columns: 1fr 1.1fr;
}
.story-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-elegant);
}
.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-text h3 {
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.story-text p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.story-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.chip {
  background: var(--gradient-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: var(--foreground);
}

/* Gallery Mosaic */
.mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.mosaic figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--gradient-panel);
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mosaic figure:hover img {
  transform: scale(1.06);
}
.mosaic .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(12, 6, 7, 0.72));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mosaic figure:hover .overlay {
  opacity: 1;
}
.mosaic .caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--muted-foreground);
  font-weight: 600;
}
.span-6 {
  grid-column: span 6;
}
.span-3 {
  grid-column: span 3;
}
.span-9 {
  grid-column: span 9;
}
@media (max-width: 992px) {
  .span-9,
  .span-6 {
    grid-column: span 12;
  }
}
@media (max-width: 576px) {
  .span-3 {
    grid-column: span 6;
  }
}

/* Impact (no boxes) */
.impact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.impact .num {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  background: var(--gradient-border);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact .label {
  color: var(--muted-foreground);
}
@media (max-width: 768px) {
  .impact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Timeline */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-border);
  opacity: 0.6;
}
.milestone {
  position: relative;
  padding-left: 42px;
  margin-bottom: 26px;
}
.milestone::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 75, 151, 0.18);
}
.milestone h4 {
  margin: 0 0 6px;
}
.milestone p {
  margin: 0;
  color: var(--muted-foreground);
}

/* Extra spacing for picturefulshowcase page only */
.showcase-main .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.showcase-main .hero {
  padding-top: 6rem;
}

.showcase-main .story {
  margin-bottom: 4rem;
}

.showcase-main .impact > div {
  margin-bottom: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.showcase-main .milestone {
  margin-bottom: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.showcase-main .mosaic {
  margin-bottom: 3rem;
}

.showcase-main .text-center.mb-5 {
  margin-bottom: 4rem !important;
}
/* End showcase-main spacing */

.h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

.sponsorForm input,
.sponsorForm textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--foreground) !important;
  background: var(--background);
  box-shadow: var(--shadow-elegant);
  transition: border-color 0.3s ease;
}

.relative {
  position: relative;
}

.bookmark {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  position: absolute;
  top: 20px;
  left: -10px;
  border-radius: 3px;
  box-shadow: var(--shadow-pink);
}

.bookmark::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  border-width: 0 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--primary-dark) transparent transparent;
}

.relative {
  position: relative !important;
}

.bookmark-award {
  position: absolute;
  top: 0;
  right: 8%;
  width: 3em;
  height: 3.5em;
  --banner-color: #0f4bcb;
  background-color: var(--banner-color);
  --triangle-size: 25px;
  z-index: 0;
}

.bookmark-award::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;

  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(50%);

  border-left: var(--triangle-size) solid var(--banner-color);
}

.bookmark-award::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;

  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(50%);

  border-right: var(--triangle-size) solid var(--banner-color);
}

/* Dynamic Grid Gallery */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-auto-rows: 120px; /* Defines a square base unit for rows */
  grid-auto-flow: dense; /* This is the key to filling empty spaces */
  gap: 1rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background-secondary);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Add spanning classes for varied sizes */
.grid-item--wide {
  grid-column: span 2;
}

.grid-item--tall {
  grid-row: span 2;
}

.grid-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--primary);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed to 'cover' to fill the varied shapes */
  display: block;
  transition: transform 0.4s ease;
}

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

.grid-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 6, 7, 0.925), rgba(12, 6, 7, 0.137));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--muted-foreground);
}

.grid-item:hover .overlay {
  opacity: 1;
}

.grid-item .overlay-title {
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.grid-item .overlay-description {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.grid-item:hover .overlay-title,
.grid-item:hover .overlay-description {
  transform: translateY(0);
}



/* Custom Styles for Different Grids */

#grid-sponsors img{
  object-fit: contain;
}

.p-0 {
  padding: 0 !important;
}




/* Utility Classes for Project Images */
#projects img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position : absolute
}



#projects .blur img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
  border-color: var(--primary);
}

#projects .blur {
  filter: blur(8px);
  transition: filter 0.3s ease;
  object-fit: fill;
  object-position: center;
}

#projects .foreground {
  height: 100%;
  z-index: 10;
  position: absolute;
  border-radius: 100%;
  max-width: 100%;
  max-height: 100%;
}
