:root {
  --bg-black: #08080a;
  --bg-card: rgba(18, 14, 15, 0.85);
  --border-card: rgba(220, 38, 38, 0.2);
  --border-card-hover: rgba(239, 68, 68, 0.4);
  
  --red-primary: #dc2626;
  --red-bright: #ef4444;
  --red-deep: #991b1b;
  --red-dark: #7f1d1d;
  --red-light: #fca5a5;
  --red-glow: rgba(220, 38, 38, 0.35);

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 32px 16px;
}

/* Fixed Batik Background Layer */
.batik-background {
  position: fixed;
  inset: 0;
  background-image: url('../img/batik-pattern.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: repeat;
  background-size: 540px auto;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  filter: invert(1) sepia(100%) saturate(700%) hue-rotate(315deg) brightness(0.7) contrast(1.3);
  mix-blend-mode: screen;
}

.batik-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 25%,
    rgba(220, 38, 38, 0.22) 0%,
    rgba(153, 27, 27, 0.12) 45%,
    rgba(8, 8, 10, 0.78) 75%,
    #08080a 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Ambient Red Glowing Effects */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-red-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #b91c1c, transparent 65%);
  top: -100px;
  left: -80px;
}

.glow-red-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #dc2626, transparent 65%);
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}

.glow-dark-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #7f1d1d, transparent 65%);
  top: 45%;
  left: 20%;
  animation-delay: -9s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Subtle Technical Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 2;
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: 30px;
  padding: 48px 44px;
  text-align: center;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 35px -5px rgba(220, 38, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Logo Presentation */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.logo-container {
  background: #ffffff;
  padding: 12px 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px -5px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(220, 38, 38, 0.3);
  border: 2px solid rgba(220, 38, 38, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(239, 68, 68, 0.5);
}

.school-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Badge Container */
.badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red-bright);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.year-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(30, 20, 22, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.year-pill i {
  color: var(--red-bright);
}

/* Typography */
.sub-headline {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.main-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.description strong {
  color: #ffffff;
  border-bottom: 2px solid var(--red-primary);
  padding-bottom: 1px;
}

/* Progress Tracker */
.progress-container {
  background: rgba(12, 10, 11, 0.65);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 18px;
  padding: 18px 22px;
  max-width: 560px;
  margin: 0 auto 38px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-status {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-status i {
  color: var(--red-bright);
}

.progress-percent {
  color: var(--red-bright);
  font-family: var(--font-display);
  font-weight: 700;
}

.progress-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #991b1b, #ef4444);
  border-radius: 100px;
  position: relative;
  transition: width 1.2s ease-in-out;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Feature Sneak Peek Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 38px;
  text-align: left;
}

.feature-item {
  background: rgba(14, 11, 12, 0.6);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.feature-item:hover {
  background: rgba(26, 14, 16, 0.75);
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--red-bright);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Footer Info */
.card-footer {
  border-top: 1px solid rgba(220, 38, 38, 0.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright {
  font-size: 0.84rem;
  color: var(--text-dim);
}

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

.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag i {
  color: var(--red-bright);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .glass-card {
    padding: 36px 20px;
    border-radius: 24px;
  }

  .school-logo {
    height: 52px;
  }

  .main-title {
    font-size: 2rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.7rem;
  }

  .school-logo {
    height: 44px;
  }

  .logo-container {
    padding: 10px 18px;
  }

  .status-pill, .year-pill {
    font-size: 0.72rem;
    padding: 6px 14px;
  }
}
