@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #001f3f;
  /* Deep Navy */
  --secondary-color: #D4AF37;
  /* Metallic Gold */
  --accent-color: #007bff;
  /* Bright Blue */
  --text-dark: #333;
  --text-light: #f4f4f4;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --font-family: 'Poppins', sans-serif;
  --radius: 12px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 1px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

header nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

header nav a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.7)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  /* Pill shape */
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Main Layout */
main {
  flex: 1;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

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

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-top: 5px solid var(--secondary-color);
}

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

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

/* Admin Form */
.form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

input,
select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
}

label {
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}

/* Member Card Specifics - Compact v2 */
.member-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  /* Further Reduced */
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #eee;
}

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

.premium-card {
  border: 2px solid var(--secondary-color);
  background: linear-gradient(to bottom, #fffff0, #fff);
}

.premium-badge-ui {
  position: absolute;
  top: 10px;
  right: -35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 3px 40px;
  transform: rotate(45deg);
  font-size: 0.6rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.member-photo {
  width: 60px;
  /* Small 60px */
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 2px solid #eee;
}

.premium-card .member-photo {
  border-color: var(--secondary-color);
}

.role {
  color: #666;
  font-size: 0.75rem;
  /* Smaller */
  margin-bottom: 0.1rem;
}

.company {
  font-weight: bold;
  font-size: 0.9rem;
  /* Smaller */
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.card h3 {
  font-size: 1rem;
  /* Smaller Name */
  margin-bottom: 0.1rem;
}

.meta-info {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.category-tag,
.city-tag {
  background: #eee;
  padding: 2px 8px;
  border-radius: 4px;
  color: #555;
}

.specs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 1rem;
}

.spec-chip {
  font-size: 0.75rem;
  background: #eef2f7;
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 10px;
}

.member-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.card-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.member-id {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.download-btn {
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
}

#badge-canvas {
  display: none;
}