/* ==========================================================================
   SmartCost - University Research Project Website
   Pure CSS3 — Strictly compliant with University Guidelines (No JavaScript)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(6, 182, 212, 0.3);

  --brand-cyan: #06b6d4;
  --brand-blue: #3b82f6;
  --brand-purple: #8b5cf6;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  line-height: 1.6;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-cyan { color: var(--brand-cyan); }

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: rgba(11, 15, 25, 0.5);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Glass Card
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 500;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

header.scrolled {
  height: 4.1rem;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7),
              0 0 20px rgba(6, 182, 212, 0.08);
}

.nav-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  transition: width 0.08s ease-out;
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.logo-img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-sub {
  display: block;
  font-size: 0.625rem;
  color: var(--text-sub);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-top: -3px;
  white-space: nowrap;
}

.nav-active-crumb {
  color: var(--brand-cyan);
  font-weight: 700;
  margin-left: 2px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.nav-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
  font-weight: 600;
}

/* CSS-only Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 280px;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.25rem;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.dropdown-item:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: -2px;
}

.dropdown-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.dropdown-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-item.active {
  background: rgba(6, 182, 212, 0.14);
  border-left: 2px solid var(--brand-cyan);
}

.dropdown-item.active .dropdown-title {
  color: var(--brand-cyan);
}

.dropdown-item.active .dropdown-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   CSS-only Mobile Navigation (Checkbox Hack)
   ========================================================================== */
.mobile-toggle-checkbox {
  display: none;
}

.mobile-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  z-index: 520;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem 3rem 1.5rem;
  flex-direction: column;
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 499;
}

header.scrolled .mobile-nav {
  top: 4.1rem;
  max-height: calc(100vh - 4.1rem);
}

.mobile-toggle-checkbox:checked ~ .mobile-nav {
  display: flex;
}

/* Animate hamburger to X */
.mobile-toggle-checkbox:checked ~ .mobile-toggle-label .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle-checkbox:checked ~ .mobile-toggle-label .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-checkbox:checked ~ .mobile-toggle-label .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-link:hover,
.mobile-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.15);
  border-left: 3px solid var(--brand-cyan);
  padding-left: 0.85rem;
  font-weight: 700;
}

.mobile-sublink {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  color: var(--brand-cyan);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mobile-sublink:hover,
.mobile-sublink:focus {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
}

.mobile-sublink.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.22);
  border-left: 2px solid var(--brand-cyan);
  padding-left: 1.2rem;
  font-weight: 700;
}

/* ==========================================================================
   Hero Section (#home)
   ========================================================================== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 4rem 0;
  position: relative;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-abstract-card {
  max-width: 820px;
  margin: 2rem auto 2.5rem auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.abstract-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.abstract-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.abstract-meta-sub {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.abstract-text {
  font-size: 0.9375rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.industry-pills-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.industry-pill {
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.industry-pill:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
  font-family: var(--font-sans);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.metric-item {
  padding: 2.25rem 1.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-item:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.metric-num {
  font-size: 2rem;
  line-height: 1.15;
  font-family: var(--font-sans);
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 55%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.metric-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Home Preview Cards */
.home-preview-card {
  max-width: 820px;
  margin: 1.5rem auto;
  text-align: left;
}

.preview-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.preview-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Novelty Preview Cards */
.novelty-preview-grid {
  max-width: 820px;
  margin: 0 auto;
}

.novelty-preview-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.novelty-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.novelty-preview-num {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 900;
  color: rgba(6, 182, 212, 0.3);
  line-height: 1;
}

.novelty-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0 0.5rem 0;
}

.novelty-preview-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Quick Links Strip */
.quick-links-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.quick-link-item {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.quick-link-item:hover {
  color: #fff;
  border-color: var(--border-highlight);
  background: rgba(6, 182, 212, 0.06);
}

/* ==========================================================================
   Domain Section
   ========================================================================== */
.domain-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.domain-subnav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.domain-subnav-btn:hover,
.domain-subnav-btn:focus {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
}

.domain-subnav-btn.active {
  color: #fff;
  border-color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.18);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  font-weight: 700;
}

.sub-section {
  padding-top: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-header {
  margin-bottom: 1.75rem;
}

.sub-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.sub-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.sub-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Comparison Table */
.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
}

.comparison-table th {
  background: rgba(15, 23, 42, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.col-manual { color: #f87171; }
.col-enterprise { color: #fbbf24; }
.col-smartcost { color: var(--brand-cyan); }

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.criteria-cell {
  color: #fff !important;
  font-weight: 600;
}

.comparison-table td.highlight {
  color: #fff;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.06);
}

/* Subsection Label */
.subsection-label {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.placeholder-notice {
  font-size: 0.8125rem;
  color: var(--brand-amber);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
}

/* Paper Cards */
.paper-card {
  display: flex;
  flex-direction: column;
}

.paper-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0;
}

.paper-meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.paper-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.paper-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: #fbbf24;
}

.paper-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* Tag Badges */
.tag-badge {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.tag-purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.tag-amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-cyan   { background: rgba(6, 182, 212, 0.15); color: var(--brand-cyan); }
.tag-rose   { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

/* Gap Cards */
.gap-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  align-items: center;
}

.gap-num {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-sub);
}

.gap-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* Academic Subcards */
.academic-subcard {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.subcard-red { border-left: 3px solid #f87171; }
.subcard-cyan { border-left: 3px solid var(--brand-cyan); }

.academic-subcard-label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.label-red { color: #f87171; }
.label-cyan { color: var(--brand-cyan); }

.subcard-text {
  font-size: 0.8125rem;
  color: #e2e8f0;
}

/* Problem Card */
.problem-card {
  border-color: rgba(6, 182, 212, 0.25);
}

.problem-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.problem-note {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Research Objectives */
.main-objective-card {
  border-color: rgba(6, 182, 212, 0.4);
  margin-bottom: 2rem;
}

.objective-label {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.objective-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.objective-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.objective-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0;
}

.objective-item-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Methodology Timeline
   ========================================================================== */
.methodology-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.method-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid rgba(6, 182, 212, 0.2);
  position: relative;
  transition: background 0.2s;
}

.method-step:hover {
  background: rgba(6, 182, 212, 0.04);
}

.method-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-cyan);
  border: 2px solid var(--bg-primary);
}

.method-step-num {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: rgba(6, 182, 212, 0.4);
  min-width: 2.5rem;
}

.method-step-content {
  flex: 1;
}

.method-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.method-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.method-status {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.status-inprogress-label {
  background: rgba(245, 158, 11, 0.1);
  color: var(--brand-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-proposed-label {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-completed-label {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Research Novelties (within Domain section)
   ========================================================================== */
.novelty-card {
  margin-bottom: 2rem;
}

.novelty-content {
  width: 100%;
}

.novelty-num {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.novelty-meta-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.novelty-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.novelty-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 0.75rem;
}

.novelty-status {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.novelty-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* CSS-only expandable details */
.novelty-details {
  margin-top: 0.75rem;
}

.novelty-details summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-cyan);
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  transition: color 0.2s;
}

.novelty-details summary::-webkit-details-marker {
  display: none;
}

.novelty-details summary::before {
  content: '▸ ';
}

.novelty-details[open] summary::before {
  content: '▾ ';
}

.novelty-details summary:hover {
  color: #67e8f9;
}

.novelty-details-content {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.novelty-details-content h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.novelty-details-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.placeholder-block {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.placeholder-block strong {
  color: #fbbf24;
}

.placeholder-block ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.placeholder-block li {
  padding: 0.2rem 0;
}

.placeholder-block em {
  color: var(--text-sub);
}

.research-note {
  font-size: 0.75rem;
  color: var(--brand-amber);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ==========================================================================
   Technologies
   ========================================================================== */
.tech-grid {
  gap: 1.25rem;
}

.tech-card {
  padding: 1.5rem;
}

.tech-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tech-cat-blue   { color: #38bdf8; }
.tech-cat-green  { color: #34d399; }
.tech-cat-amber  { color: #fbbf24; }
.tech-cat-purple { color: #c084fc; }
.tech-cat-rose   { color: #fb7185; }
.tech-cat-cyan   { color: var(--brand-cyan); }

.tech-list {
  list-style: none;
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 2;
}

.tech-list li::before {
  content: '• ';
  color: var(--text-sub);
}

/* ==========================================================================
   Milestones — CSS-only Radio Tab Interface
   ========================================================================== */
.milestone-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.ms-radio {
  display: none;
}

.ms-tab-label {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s ease;
  order: -1;
}

.ms-tab-label:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.3);
}

.ms-radio:checked + .ms-tab-label {
  background: var(--brand-cyan);
  color: #fff;
  border-color: var(--brand-cyan);
}

.ms-panel {
  display: none;
  width: 100%;
  order: 10;
  margin-top: 1.5rem;
}

/* Show panels based on checked radio */
#ms-proposal:checked ~ .ms-panel-proposal,
#ms-pp1:checked ~ .ms-panel-pp1,
#ms-pp2:checked ~ .ms-panel-pp2,
#ms-final:checked ~ .ms-panel-final,
#ms-viva:checked ~ .ms-panel-viva {
  display: block;
}

/* Assessment Dropdown Selector */
.ms-dropdown-container {
  width: 100%;
  margin-bottom: 1.25rem;
}

.ms-dropdown-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.ms-dropdown-box {
  position: relative;
  max-width: 440px;
}

.ms-dropdown-details {
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}

.ms-dropdown-details[open] {
  border-color: var(--brand-cyan);
}

.ms-dropdown-summary {
  list-style: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.ms-dropdown-summary::-webkit-details-marker {
  display: none;
}

.ms-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.35rem;
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ms-dropdown-item {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: block;
}

.ms-dropdown-item:hover {
  background: rgba(6, 182, 212, 0.15);
  color: #fff;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.milestone-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.milestone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.milestone-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
}

.milestone-marks {
  text-align: right;
}

.marks-label {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-sub);
  text-transform: uppercase;
  display: block;
}

.marks-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  display: block;
}

.marks-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.milestone-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.milestone-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.milestone-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.deliverable-item {
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: #e2e8f0;
}

/* Marks Summary */
.marks-summary {
  margin-top: 2rem;
  text-align: center;
}

.marks-summary-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.marks-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.marks-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  min-width: 220px;
}

.marks-item span:first-child {
  color: var(--text-muted);
}

.marks-item span:last-child {
  color: var(--brand-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Documents — CSS-only Radio Filter
   ========================================================================== */
.doc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.doc-radio {
  display: none;
}

.doc-tab-label {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  order: -1;
}

.doc-tab-label:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.3);
}

.doc-radio:checked + .doc-tab-label {
  background: var(--brand-cyan);
  color: #fff;
  border-color: var(--brand-cyan);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  order: 10;
  margin-top: 2rem;
}

/* Show/hide doc cards based on radio */
#doc-taf:checked ~ .doc-grid .doc-card:not([data-cat="taf"]),
#doc-charter:checked ~ .doc-grid .doc-card:not([data-cat="charter"]),
#doc-proposal:checked ~ .doc-grid .doc-card:not([data-cat="proposal"]),
#doc-research:checked ~ .doc-grid .doc-card:not([data-cat="research"]),
#doc-final:checked ~ .doc-grid .doc-card:not([data-cat="final"]),
#doc-checklist:checked ~ .doc-grid .doc-card:not([data-cat="checklist"]) {
  display: none;
}

/* Document & Presentation Cards */
.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.doc-card-top {
  flex: 1;
}

.doc-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.doc-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-card-bottom {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.doc-pending-notice {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: block;
  text-align: center;
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.doc-meta-detail {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-sub);
}

.doc-status-badge {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.status-pending {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-inprogress {
  background: rgba(245, 158, 11, 0.1);
  color: var(--brand-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.team-full-card {
  max-width: 980px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-highlight);
}

.team-full-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.team-full-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.team-full-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-full-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.team-section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.team-section-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.team-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.25rem;
}

.supervisor-grid {
  max-width: 780px;
  margin: 0 auto 4rem auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0b0f19;
  margin-bottom: 1.25rem;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.04);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.team-id {
  display: inline-block;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.team-id-supervisor {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.team-id-cosupervisor {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
}

.team-role {
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-top: 0.5rem;
  font-weight: 500;
}

.team-role-highlight {
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-top: 0.5rem;
  font-weight: 600;
}

.team-bio {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.team-contact {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.team-email {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.team-email:hover {
  color: #67e8f9;
}

/* ==========================================================================
   Contact Us Section
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
}

.contact-dept-label {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.contact-university {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.25rem;
}

.contact-faculty {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 2.2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-link {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
  overflow-wrap: break-word;
}

.contact-link:hover {
  color: #67e8f9;
}

.contact-note {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-mailto-note {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-color);
  background: #020617;
  padding: 4rem 0 2rem 0;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.footer-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
}

.footer-heading {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-sub);
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Grid Layout Helpers */


/* ==========================================================================
   Section: The SmartCost Platform (#solution)
   ========================================================================== */
.solution-tagline-wrap {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.solution-scrolly-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

/* Centralized Modular Engine Showcase */
.modular-engine-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.engine-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.engine-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engine-title-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.engine-pill-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.02em;
}

.engine-hub-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.5rem;
}

.industry-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.industry-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.industry-item.right:hover {
  transform: translateX(-4px);
}

.industry-item.blue {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.06));
  border-color: rgba(59, 130, 246, 0.28);
}
.industry-item.orange {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(239, 68, 68, 0.06));
  border-color: rgba(249, 115, 22, 0.28);
}
.industry-item.amber {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(234, 179, 8, 0.06));
  border-color: rgba(245, 158, 11, 0.28);
}
.industry-item.pink {
  background: linear-gradient(270deg, rgba(236, 72, 153, 0.12), rgba(244, 63, 94, 0.06));
  border-color: rgba(236, 72, 153, 0.28);
}
.industry-item.purple {
  background: linear-gradient(270deg, rgba(168, 85, 247, 0.12), rgba(139, 92, 246, 0.06));
  border-color: rgba(168, 85, 247, 0.28);
}
.industry-item.emerald {
  background: linear-gradient(270deg, rgba(16, 185, 129, 0.12), rgba(20, 184, 166, 0.06));
  border-color: rgba(16, 185, 129, 0.28);
}

.industry-icon-box {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.industry-item:hover .industry-icon-box {
  transform: scale(1.08);
}

.industry-text {
  flex: 1;
  min-width: 0;
}

.industry-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.industry-item:hover .industry-title {
  color: #38bdf8;
}

.industry-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.industry-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.industry-item:hover .industry-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
}

/* Central Core Node */
.engine-core-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem;
}

.core-pulse-aura {
  position: absolute;
  inset: -1.75rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  animation: corePulse 4s ease-in-out infinite;
}

.core-orbit-ring-1 {
  position: absolute;
  inset: -0.85rem;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.35);
  pointer-events: none;
  animation: spinSlow 30s linear infinite;
}

.core-orbit-ring-2 {
  position: absolute;
  inset: -1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.18);
  pointer-events: none;
}

@keyframes corePulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.core-circle {
  position: relative;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0f172a, #020617);
  border: 2px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.3), inset 0 0 30px rgba(6, 182, 212, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}

.core-logo-box {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.core-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.core-sub-badge {
  font-size: 0.65rem;
  color: #22d3ee;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Feature Modules 8-Grid */
.feature-modules-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.feature-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-module-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-module-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-icon-wrap {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: transform 0.3s ease;
}

.feature-module-card:hover .feature-icon-wrap {
  transform: scale(1.1);
}

.feature-module-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.feature-module-card:hover .feature-module-title {
  color: #38bdf8;
}

.feature-module-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ==========================================================================
   Master Responsive Design System
   Auto-adjusts cleanly across All Desktops, Laptops, Tablets & Mobile Phones
   ========================================================================== */

/* 1. Laptops & Small Desktops (1025px – 1200px) */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.25rem;
  }
  .nav-links {
    gap: 0.15rem;
  }
  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.775rem;
  }
  .logo-sub {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 2. Tablets, iPads & Hybrid Devices (769px – 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle-label {
    display: flex;
  }
  .logo-sub {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-title {
    font-size: clamp(2.2rem, 5vw, 2.75rem);
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .milestone-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .engine-hub-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .engine-core-node {
    order: -1;
    margin-bottom: 0.5rem;
  }
  .industry-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
  .feature-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* 3. Tablets Portrait, Phablets & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .nav-active-crumb {
    display: none !important;
  }
  .logo-sub {
    max-width: none;
  }
  .section-padding {
    padding: 3.75rem 0;
  }
  .section-title {
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .supervisor-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-bottom: 2.5rem;
  }
  .industry-col {
    grid-template-columns: 1fr;
  }
  .table-scroll-hint {
    display: flex;
  }
  .quick-links-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .marks-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
  .marks-item {
    min-width: 0;
    width: 100%;
  }
  .novelty-heading {
    font-size: 1.25rem;
  }
  .form-control {
    font-size: 16px; /* Prevents iOS Safari automatic viewport zoom */
  }
}

/* 4. Standard Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .glass-card {
    padding: 1.25rem;
  }
  .modular-engine-card {
    padding: 1.25rem;
  }
  .feature-modules-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .team-photo-wrap {
    max-width: 260px;
    margin: 0 auto 1.25rem auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
  .paper-actions {
    flex-direction: column;
  }
  .paper-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .doc-actions {
    flex-direction: column;
  }
  .doc-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .solution-scrolly-text {
    font-size: 1.15rem;
    line-height: 1.5;
  }
  .core-circle {
    width: 10.5rem;
    height: 10.5rem;
  }
  .core-logo-box {
    width: 3.5rem;
    height: 3.5rem;
  }
  .core-brand-name {
    font-size: 1.05rem;
  }
  .engine-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .milestone-card {
    padding: 1.25rem;
  }
  .milestone-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .milestone-title {
    font-size: 1.3rem;
    margin-top: 0.35rem;
  }
  .milestone-marks {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
  }
  .milestone-tabs {
    gap: 0.35rem;
  }
  .ms-tab-label {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
  }
  .marks-breakdown {
    grid-template-columns: 1fr;
  }
  .doc-filter-tabs {
    gap: 0.35rem;
  }
  .doc-tab-label {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
  }
  .quick-links-strip {
    grid-template-columns: 1fr;
  }
  .quick-link-item {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .metric-item {
    padding: 1.5rem 1rem;
  }
  .metric-num {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

/* 5. Compact Mobile Phones (max-width: 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .logo-text {
    font-size: 1.125rem;
  }
  .logo-img {
    width: 2.1rem;
    height: 2.1rem;
  }
  .ms-tab-label,
  .doc-tab-label {
    flex: 1 1 100%;
  }
  .core-circle {
    width: 9.5rem;
    height: 9.5rem;
  }
  .core-logo-box {
    width: 3.2rem;
    height: 3.2rem;
  }
  .core-brand-name {
    font-size: 0.95rem;
  }
  .glass-card {
    padding: 1rem;
  }
}

