/* 
  ================================================
  Clean Portal Theme for Mountain Safety Project
  ================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #090e17;
  --bg-secondary: #0f1629;
  --bg-card: rgba(15, 22, 41, 0.6);
  --bg-card-hover: rgba(15, 22, 41, 1);
  
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-glow: rgba(13, 148, 136, 0.2);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(13, 148, 136, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --radius-lg: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky navbar */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(9, 14, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  gap: 20px;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent);
}

/* ── HERO SECTION ── */
.hero {
  padding: 80px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 30px auto;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── GRIDS & CARDS ── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ── IMAGES ── */
.placeholder-img {
  width: 100%;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.screenshot-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  background: var(--bg-secondary);
}

.screenshot-container .placeholder-img {
  margin-bottom: 0;
  border: none;
  min-height: 400px;
}

/* ── TEAM & SUPERVISION ── */
.team-member {
  text-align: center;
}
.team-name {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.team-role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}
.avatar-img {
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  object-fit: cover; 
  margin: 0 auto 15px auto; 
  border: 2px solid var(--border); 
  transition: border-color 0.3s; 
  display: block;
}
.card:hover .avatar-img { 
  border-color: var(--accent); 
}

.supervisors {
  margin-top: 50px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border);
}

/* ── TABLES ── */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.budget-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.budget-table th, .budget-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}
.budget-table th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.budget-table tr:last-child td {
  border-bottom: none;
}
.budget-table .total-row {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(13, 148, 136, 0.1);
}

/* Text alignment helpers */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
