:root {
  --yellow: #FBC02D;
  --orange: #F57C00;
  --dark-bg: #121212;
  --light-bg: #ffffff;
  --text-light: #ffffff;
  --text-dark: #222222;
  --max-width: 900px;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 45px;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

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

nav button {
  background: var(--yellow);
  border: none;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
}

/* Main */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
}

h1, h2, h3 {
  color: var(--orange);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

label {
  font-weight: bold;
}

input, textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button[type="submit"] {
  background: var(--orange);
  color: var(--text-light);
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #e66a00;
}

/* Footer */
footer {
  background: var(--orange);
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  position: sticky;
  bottom: 0;
}

/* Dark mode */
body.dark {
  background: var(--dark-bg);
  color: var(--text-light);
}

body.dark nav a {
  color: var(--yellow);
}

body.dark footer {
  background: #222;
}

.projects {
  padding: 3rem 1rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--card-bg, #ffffff);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.project-card h3 {
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #0066cc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #004a99;
}

/* Dark mode support */
body.dark .project-card {
  background: #1e1e1e;
  color: #eee;
}
