/* ==========================================================================
   IAST GUYANA - DESIGN SYSTEM & STYLESHEET
   Institute of Applied Science and Technology
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens & Color Palette --- */
:root {
  /* Brand Colors */
  --emerald-900: #062b16;
  --emerald-800: #0a4324;
  --emerald-700: #0e5c32;
  --emerald-600: #15803d;
  --emerald-500: #16a34a;
  --emerald-400: #22c55e;
  --emerald-300: #4ade80;
  --emerald-100: #dcfce7;
  --emerald-50:  #f0fdf4;

  /* Scientific Accents */
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --cyan-600: #0284c7;
  --cyan-400: #38bdf8;
  --cyan-100: #e0f2fe;

  /* Theme Colors (Light Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 30px -10px rgba(0,0,0,0.1);
  --shadow-emerald: 0 10px 25px -5px rgba(22, 163, 74, 0.3);

  /* Radius & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-subtle: #1e293b;

  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--emerald-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--emerald-500);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: #ffffff;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(22, 163, 74, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--emerald-500);
  color: var(--emerald-600);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.4);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-emerald {
  background-color: var(--emerald-100);
  color: var(--emerald-800);
}

[data-theme="dark"] .badge-emerald {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--emerald-300);
}

.badge-gold {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-500);
}

.badge-cyan {
  background-color: var(--cyan-100);
  color: var(--cyan-600);
}

[data-theme="dark"] .badge-cyan {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--cyan-400);
}

/* --- Section Formatting --- */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-header .subtitle {
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--emerald-700);
  letter-spacing: -0.02em;
}

[data-theme="dark"] .logo-title {
  color: var(--emerald-400);
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-600);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: var(--emerald-400);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--emerald-500);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, #0c2b1c 0%, #06170e 100%);
  color: #ffffff;
}

/* Clean Ambient Science Background Layer */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Floating Ambient Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: #16a34a;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: #0284c7;
  bottom: -150px;
  right: -50px;
  animation-delay: -6s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: #d97706;
  top: 40%;
  left: 45%;
  opacity: 0.25;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #4ade80, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--emerald-300);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Hero Visual Graphic */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 2;
}

.logo-hero-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-hero-display img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(22, 163, 74, 0.25));
  animation: float 6s ease-in-out infinite;
}

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

.hero-feature-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.feature-pill i {
  font-size: 1.4rem;
  color: var(--emerald-600);
}

.feature-pill-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.feature-pill-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Metrics / Stats Banner --- */
.stats-banner {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800));
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--emerald-300);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.director-quote-card {
  background: var(--bg-card);
  border-left: 4px solid var(--emerald-500);
  padding: 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.director-quote-card p {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.director-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.director-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--emerald-700);
}

[data-theme="dark"] .director-name {
  color: var(--emerald-400);
}

.director-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .about-feature-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--emerald-400);
}

/* --- Core Departments Section --- */
.dept-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.dept-tab-btn {
  padding: 0.85rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dept-tab-btn:hover, .dept-tab-btn.active {
  background: var(--emerald-600);
  color: #ffffff;
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-emerald);
}

.dept-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dept-tab-content.active {
  display: block;
}

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

.dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.dept-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dept-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.dept-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dept-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dept-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .dept-item-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--emerald-400);
}

.dept-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

.dept-card-visual {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}

.badge-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* --- Projects Showcase Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-500);
}

.project-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-900));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-banner i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
}

.project-banner-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-impact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-500);
}

/* --- Analytical Testing Portal & Calculator --- */
.portal-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.portal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input-wrap i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.param-filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--emerald-600);
  color: #ffffff;
  border-color: var(--emerald-600);
}

.params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Custom Scrollbar */
.params-grid::-webkit-scrollbar {
  width: 6px;
}
.params-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.param-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.param-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

.param-card.selected {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

[data-theme="dark"] .param-card.selected {
  background: rgba(34, 197, 94, 0.12);
}

.param-name {
  font-weight: 600;
  font-size: 0.95rem;

}

.param-category {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.param-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.param-card.selected .param-checkbox {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
}

/* Calculator Summary Box */
.calc-summary-bar {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.calc-info {
  display: flex;
  gap: 2.5rem;
}

.calc-item {
  display: flex;
  flex-direction: column;
}

.calc-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-600);
}

[data-theme="dark"] .calc-val {
  color: var(--emerald-400);
}

.calc-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Leadership Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-500);
}

.team-avatar-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-600), var(--cyan-600));
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.2);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--emerald-600);
  font-weight: 600;
  margin-bottom: 1rem;
}

[data-theme="dark"] .team-role {
  color: var(--emerald-400);
}

.team-dept {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Contact & Sample Submission Hub --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--emerald-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

[data-theme="dark"] .contact-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--emerald-400);
}

.contact-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-item-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--emerald-900);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 48px;
  height: auto;
}

.footer-logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
}

.footer-brand-p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--emerald-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--emerald-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Modal & Notifications --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .dept-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
  }

  .projects-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .params-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 76px;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .projects-grid, .team-grid, .params-grid, .about-features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .calc-summary-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- Return to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  transform: translateY(-4px);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.5);
}
