:root {
  --primary-color: #268fbe;
  --primary-hover: #1e7aa3;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Typography */
h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

h2 {
  color: #495057;
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 4px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

/* Cards */
.project-card,
.project {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
  display: block;
  /* For anchor tags acting as cards */
}

a.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
  /* Prevent text color change on hover for the whole card */
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  display: block;
}

.project-desc {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

/* Forms (Admin) */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #495057;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(38, 143, 190, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Buttons */
button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: var(--primary-hover);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

button.secondary {
  background-color: #6c757d;
}

button.secondary:hover {
  background-color: #5a6268;
}

button.delete {
  background-color: #dc3545;
}

button.delete:hover {
  background-color: #c82333;
}

/* Admin Specific */
.admin-controls {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.nav-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-weight: 500;
}

/* Loading State */
#projects,
#projectsList {
  min-height: 200px;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  padding-bottom: 20px;
}

footer a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
  background-color: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px 0;
}

.hero-role {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 0 0 16px 0;
  background-color: aliceblue;
  padding: 4px 12px;
  border-radius: 100px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.hero-bio {
  max-width: 600px;
  margin: 0 auto 24px auto;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.stack-tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Tabs in Admin */
.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.tab-btn:hover {
  background: none;
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab-content {
  display: none;
}

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

@media (max-width: 600px) {
  .hero-section {
    padding: 24px;
  }
}