/* Custom CSS Variables & Chemistry Pattern */
:root {
  --primary-color: #0d9488;
  --secondary-color: #7c3aed;
  --accent-pink: #db2777;
  --dark-text: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-section img {
  height: 45px;
}

.logo-section h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  background-color: #f1f5f9;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-bar {
  width: 6px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  padding: 1.8rem;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card.purple { border-top-color: var(--secondary-color); }
.card.pink { border-top-color: var(--accent-pink); }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background-color: #ccfbf1;
  color: var(--primary-color);
}

.card.purple .card-icon { background-color: #f3e8ff; color: var(--secondary-color); }
.card.pink .card-icon { background-color: #fce7f3; color: var(--accent-pink); }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
}

/* Member Cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.member-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-img-box {
  width: 100%;
  height: 260px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.member-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 1.2rem;
}

.member-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.member-info .designation {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-info .email {
  font-size: 0.85rem;
  color: var(--primary-color);
  word-break: break-all;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #0f766e;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #6d28d9;
}

/* Table Styling */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background-color: #f1f5f9;
  font-weight: 700;
}

/* Footer Styling */
footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.4rem;
}

footer .designer {
  color: #cbd5e1;
  font-weight: 600;
}
