/* ===== Theme Variables ===== */
:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --card-bg: #ffffff;
  --accent-color: #007acc;
  --accent-hover: #005f99;
  --border-color: #ccc;
  --shadow-color: rgba(0,0,0,0.05);
}

body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f5f5f5;
  --card-bg: #2c2c2c;
  --accent-color: #4dabf7;
  --accent-hover: #339af0;
  --border-color: #555;
  --shadow-color: rgba(0,0,0,0.3);
}

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

/* ===== Base Layout ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  color: var(--text-color);
}

header p {
  margin: 5px 0;
  color: var(--text-color);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px 5px 0 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

/* ===== Sections ===== */
section {
  background: var(--card-bg);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

section h2 {
  color: var(--accent-color);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  color: var(--text-color);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Projects Grid ===== */
#repo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.repo-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.repo-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.repo-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.repo-meta {
  font-size: 0.8rem;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
}

/* ===== Contact Form ===== */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
  margin-bottom: 5px;
  color: var(--text-color);
}

input, textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
}
