:root {
  --primary-bg: #030712;
  --secondary-bg: #111827;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --terminal-bg: #000000;
  --font-family: "Outfit", sans-serif;
  --font-mono: "Fira Code", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-bg);
  background-image: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 80%);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Blobs */
.blob {
  position: fixed;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.blob-1 { top: -25vw; right: -10vw; }
.blob-2 { bottom: -25vw; left: -10vw; animation: pulse 10s infinite alternate; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.6; }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(3, 7, 18, 0.8);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

/* Group logo + menu together on the left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 50px; /* Slightly smaller to prevent height issues */
  width: auto; /* Allow natural rectangular aspect ratio */
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1.2) drop-shadow(0 0 8px var(--accent-glow));
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.5) drop-shadow(0 0 12px var(--accent-glow));
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  white-space: nowrap; /* Prevent logo text wrap */
}

.logo span { color: var(--accent-color); }

/* Navigation Structure */
.nav-menu { 
  display: flex; 
  gap: 2rem; 
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  white-space: nowrap; /* Prevent link text wrap */
}

.nav-menu a:hover { 
  color: var(--accent-color); 
  text-shadow: 0 0 10px var(--accent-glow);
  border-bottom-color: var(--accent-color);
}

.nav-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Never shrink or wrap the login button */
}

/* Mobile Responsiveness for Nav */
@media (max-width: 900px) {
  .nav-menu { display: none; } /* Hide text links on smaller screens */
  .logo-container .logo { display: none; } /* Hide 'AI_Workshop.ISU' text if space is tight */
  .nav-logo { height: 40px; } /* Smaller logo on mobile */
  nav { justify-content: space-between; gap: 1rem; }
  .nav-left { gap: 1rem; }
}

/* Header & Hero */
header {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.5) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.4), var(--primary-bg));
}

.hero-content {
  max-width: 1000px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(to right, #fff, var(--accent-color), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.cta-button {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-button:not(.secondary) {
  background: var(--accent-color);
  color: #000;
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--glass-border);
}

.cta-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  text-decoration: none;
}

a.cta-button {
  text-decoration: none;
}

/* Sections */
main { padding: 0 5%; }

.section { padding: 8rem 0; }

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

/* Terminal */
.terminal-container {
  width: 100%;
  margin: 0 auto;
  background: var(--terminal-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}

.terminal-header {
  background: #1f2937;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.terminal-title {
  margin-left: 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.terminal-body {
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #10b981;
}

.terminal-accent { color: var(--accent-color); font-weight: bold; }

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  background: rgba(17, 24, 39, 0.9);
}

.module-num {
  font-size: 4rem;
  font-weight: 900;
  position: absolute;
  top: -1rem;
  right: 0rem;
  opacity: 0.05;
  color: var(--accent-color);
}

/* Agent Cards */
.agent-card { text-align: center; }

.agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #000;
  overflow: hidden; /* Ensure images stay within circular boundary */
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.agent-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-avatar img {
  transform: scale(1.15);
}

/* Background overrides for contrast if needed */
.openai, .perplexity, .claude, .gemini, .jules, .allen, .opencode, .copilot, .tavily, .exa {
  background: white !important; /* Most logos look best on a clean white circle */
}

.architect { background: linear-gradient(135deg, var(--accent-color), #818cf8) !important; color: #fff; }
.gemini { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.claude { background: linear-gradient(135deg, #d97706, #f59e0b); }
.openai { background: linear-gradient(135deg, #10a37f, #1a73e8); }
.jules { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.perplexity { background: linear-gradient(135deg, #20c997, #0891b2); }
.allen { background: linear-gradient(135deg, #ef4444, #f97316); }
.mistral { background: white !important; }
.antigravity { background: #000 !important; }
.opencode { background: linear-gradient(135deg, #34d399, #059669); }
.copilot { background: linear-gradient(135deg, #24292e, #444d56); color: #fff; }
.mystery { background: #1f2937; color: var(--text-muted); border: 2px dashed var(--glass-border); }
.tavily { background: linear-gradient(135deg, #0055ff, #00aaff); }
.exa { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.antigravity { background: #000 !important; }

.agent-avatar.antigravity img { width: 85%; height: 85%; }
.agent-avatar.exa img { width: 90%; height: 90%; }

.agent-avatar.canvas { background: linear-gradient(135deg, #ec4899, #f43f5e) !important; color: #fff; font-size: 1.5rem; }
.agent-avatar.scholar { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #fff; font-size: 1.5rem; }
.agent-avatar.forge { background: linear-gradient(135deg, #10b981, #059669) !important; color: #fff; font-size: 1.5rem; }

/* Featured Card */
.card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(56, 189, 248, 0.1));
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.card.featured .agent-avatar {
  margin: 0;
  width: 120px;
  height: 120px;
  font-size: 3rem;
}

@media (max-width: 768px) {
  .card.featured {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .card.featured .agent-avatar {
    margin: 0 auto;
  }
    
  .card.featured .cta-button {
      width: 100%;
      display: block;
      text-align: center;
  }
  
  .card.featured div[style*="flex"] {
      justify-content: center;
  }
}

/* Mini Cards for Tooling Ecosystem */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card.mini {
  padding: 1.5rem;
  text-align: center;
}

.card.mini .agent-avatar {
  width: 50px;
  height: 50px;
  margin-bottom: 0.75rem;
}

.card.mini h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: -3rem;
  margin-bottom: 4rem;
  font-weight: 300;
}

/* Curriculum 2x2 Grid */
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.day-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.topic {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sch-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sch {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  gap: 0.5rem;
}

.sch .label {
  font-weight: 700;
  color: var(--accent-color);
  min-width: 25px;
}

.view-lesson-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
}

.view-lesson-btn:hover {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.modal-link:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* Instructor Section */
.instructor-section {
  padding: 8rem 0;
  background: linear-gradient(to bottom, var(--primary-bg), var(--secondary-bg));
}

.instructor-card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
}

.instructor-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%; /* Better face focus */
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 30px var(--accent-glow);
  flex-shrink: 0;
}

.instructor-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.instructor-role {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: block;
}

.instructor-bio {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .instructor-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }
  .instructor-image {
    width: 200px;
    height: 200px;
  }
}

/* Upgraded Resource Cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-icon {
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s;
}

.resource-card:hover .resource-icon {
  background: var(--accent-color);
  color: #000;
  transform: rotate(-5deg);
}

.resource-info { z-index: 1; }

.resource-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.resource-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
  color: var(--text-muted);
}

/* Lecture Reference Cards */
.ref-card {
  align-items: flex-start;
}

.ref-card .resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ref-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-color);
  width: fit-content;
  margin-bottom: 0.1rem;
}

.ref-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

/* Tool Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tool-modal {
  background: #111;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-overlay.active .tool-modal {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.close-modal:hover { color: #fff; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
}

.modal-header .agent-avatar {
  margin: 0;
  width: 70px;
  height: 70px;
  font-size: 2rem;
}

.modal-title-group h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-role {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  background: linear-gradient(90deg, var(--accent-color), #818cf8, var(--accent-color));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 6s linear infinite;
}

@keyframes gradientShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.modal-link {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-color);
  color: #000;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.modal-link:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

/* Animations & Footer */
.animate { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  .logo-container .logo { display: none; } /* Hide text logo on mobile if image exists */
  .nav-links { display: none; } /* This already hides links, but now we ensure flex doesn't break */
}

/* Ensure Nav alignment */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center; /* Vertical center alignment */
}

.card.join-card {
    padding: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left !important;
}

.join-card-content {
    padding: 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-image {
    flex: 1;
    background: url('assets/astronaut_ai.png') no-repeat center center;
    background-size: cover;
    min-height: 400px;
    border-left: 1px solid var(--accent-color);
}

@media (max-width: 768px) {
    .card.join-card {
        flex-direction: column;
    }
    .join-image {
        order: -1;
        min-height: 250px;
    }
    .join-card-content {
        padding: 2rem;
        text-align: center;
    }
}

.mission-profile h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.2rem;
}

/* Newspaper Paywall Styles */
.paywall-blur {
    /* Show more content at top, gradually fade to blur */
    mask-image: linear-gradient(to bottom, black 200px, rgba(0,0,0,0.5) 400px, transparent 600px);
    -webkit-mask-image: linear-gradient(to bottom, black 200px, rgba(0,0,0,0.5) 400px, transparent 600px);
    pointer-events: none;
    user-select: none;
    padding-bottom: 0 !important;
    overflow: hidden;
    max-height: 70vh; /* Show top portion of content */
}

.paywall-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Center the card vertically */
    justify-content: center;
    background: linear-gradient(to top, var(--bg-dark) 50%, rgba(10, 10, 12, 0.95) 70%, transparent 100%);
    z-index: 9999;
    pointer-events: auto; /* Allow clicking the button */
}

.paywall-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow), 0 25px 50px rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 320px;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    animation: floatUp 0.6s ease-out;
    box-sizing: border-box;
}

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

.paywall-card h2 { margin-top: 0; color: #fff; font-size: 1.3rem; }
.paywall-card p { color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.85rem; }

.paywall-card .cta-button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.paywall-card .cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Hide the old CSS locks */
.locked-content { filter: none !important; opacity: 1 !important; cursor: pointer !important; }
.locked-content::after { display: none !important; }

/* Auth Buttons */
.cta-button.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* ==============================
   MSS26 Live Schedule Table
   ============================== */
.schedule-table-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.schedule-table-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.schedule-table thead {
  background: rgba(56, 189, 248, 0.08);
  border-bottom: 2px solid var(--accent-color);
}

.schedule-table th {
  padding: 1.2rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  text-align: center;
}

.schedule-table td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.time-col {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
  text-align: center;
  min-width: 110px;
  background: rgba(0, 0, 0, 0.2);
}

.sched-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-height: 80px;
}

.sched-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.02);
}

.sched-cell strong {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.3;
}

.sched-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Type Pills */
.sched-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.sched-type.lecture {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.sched-type.lab {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sched-type.special {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.sched-type.free-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.sched-type.office-tag {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-color);
}

.sched-type.bwai {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.25), rgba(15, 157, 88, 0.25));
  color: #34d399;
  border: 1px solid rgba(15, 157, 88, 0.3);
  letter-spacing: 0.8px;
}

.block-bwai td {
  background: rgba(15, 157, 88, 0.03);
}

/* Block row tints */
.block-lecture td { background: rgba(139, 92, 246, 0.02); }
.block-lab td { background: rgba(16, 185, 129, 0.02); }
.block-office td { background: rgba(56, 189, 248, 0.03); }

.break-cell {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.15) !important;
  font-weight: 500;
}

.sched-cell.free {
  opacity: 0.5;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.sched-cell.office {
  text-align: center;
  align-items: center;
  min-height: auto;
}

/* Mobile */
@media (max-width: 900px) {
  .schedule-table-container {
    border-radius: 12px;
  }
  .schedule-table {
    font-size: 0.85rem;
  }
}

/* ==============================
   COUNTDOWN TIMER
   ============================== */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent-color), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  margin-top: -0.75rem;
}

.countdown-live {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #10b981;
  animation: livePulse 1.5s infinite;
  padding: 0.5rem 2rem;
  border: 2px solid #10b981;
  border-radius: 12px;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 5px rgba(16, 185, 129, 0.1); }
}

@media (max-width: 600px) {
  .countdown-num { font-size: 2rem; }
  .countdown-unit { min-width: 50px; }
  .countdown-sep { font-size: 1.5rem; }
}

/* ==============================
   PARTICLE CANVAS
   ============================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ==============================
   STAGGERED CARD ANIMATIONS
   ============================== */
.card, .resource-card, .day-card, .setup-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.card-visible,
.resource-card.card-visible,
.day-card.card-visible,
.setup-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Featured card always visible since it's already styled with animate */
.card.featured {
  opacity: 1;
  transform: none;
}
.card.featured.card-visible {
  transform: none;
}

/* ==============================
   ENHANCED TERMINAL
   ============================== */
.terminal-accent-line {
  color: var(--accent-color) !important;
  font-weight: bold;
}

.terminal-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-line {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

/* ==============================
   BACK TO TOP BUTTON
   ============================== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #000;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

/* ==============================
   NAVBAR SCROLL EFFECT
   ============================== */
nav.nav-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(3, 7, 18, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

nav {
  transition: all 0.3s ease;
}

/* ==============================
   ANIMATED GRADIENT BORDER ON SCHEDULE
   ============================== */
.schedule-table-container {
  position: relative;
}

.schedule-table-container::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 21px;
  background: linear-gradient(45deg, var(--accent-color), #818cf8, #10b981, var(--accent-color));
  background-size: 300% 300%;
  animation: gradientBorder 8s ease infinite;
  z-index: -1;
  opacity: 0.4;
}

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

/* ==============================
   GLOW HOVER FOR TOOL CARDS
   ============================== */
.card.mini:hover {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15), 0 10px 30px rgba(0,0,0,0.3);
}

.card.mini {
  cursor: pointer;
}

/* ==============================
   HERO BADGE ANIMATE
   ============================== */
.badge {
  animation: badgeEntrance 1.5s ease forwards;
}

@keyframes badgeEntrance {
  0% { transform: scale(0.8) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Schedule Links */
.sched-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sched-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Antigravity Avatar */
.antigravity {
  background: linear-gradient(135deg, #4285f4, #8b5cf6) !important;
  color: #fff;
}

/* Live Schedule Highlight */
.sched-cell.live-now {
  border: 2px solid #f97316;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.08);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
  position: relative;
}

.sched-cell.live-now::after {
  content: 'LIVE';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #f97316;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}
