* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f7f9fb;
  color: #1a202c;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #2b6cb0;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2b6cb0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-greeting {
  color: #2b6cb0;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-name {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  padding: 11px 26px;
  background: #2b6cb0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #235a94;
}

.btn-outline {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid #2b6cb0;
  color: #2b6cb0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: #2b6cb0;
  color: #fff;
}

/* ---------- Section Titles ---------- */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #1a202c;
}

/* ---------- Skills ---------- */
.skills {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.skill-card {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #2b6cb0;
}

.skill-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #2b6cb0;
}

.skill-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ---------- Projects ---------- */
.projects {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.loading-text,
.empty-state {
  text-align: center;
  color: #888;
  grid-column: 1 / -1;
  padding: 30px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.project-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #e2e8f0;
}

.project-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-badge {
  font-size: 10px;
  background: #feebc8;
  color: #b7791f;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.project-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-tag {
  font-size: 11px;
  background: #ebf4ff;
  color: #2b6cb0;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 600;
}

.project-card-links {
  display: flex;
  gap: 10px;
}

.project-card-links a {
  font-size: 13px;
  font-weight: 600;
  color: #2b6cb0;
  border: 1px solid #2b6cb0;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.project-card-links a:hover {
  background: #2b6cb0;
  color: #fff;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.contact-sub {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

.contact-form {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.form-status {
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 16px;
}

.form-status.success {
  color: #2f855a;
}

.form-status.error {
  color: #c53030;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 30px 24px;
  border-top: 1px solid #e2e8f0;
  color: #888;
  font-size: 13px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: #2b6cb0;
  font-weight: 600;
}

/* ---------- Auth Pages (Admin Login) ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 380px;
}

.subtitle {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3d9e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2b6cb0;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  width: auto;
}

.switch-auth {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #555;
}

.error-msg {
  color: #c53030;
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 16px;
}

/* ---------- Admin Dashboard ---------- */
.dashboard {
  max-width: 800px;
  margin: 24px auto;
  padding: 0 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #d3d9e0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
}

.tab-btn.active {
  background: #2b6cb0;
  color: #fff;
  border-color: #2b6cb0;
}

.unread-badge {
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

.tab-content {
  display: none;
}

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

.task-form-card {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.task-form-card h2 {
  font-size: 17px;
  margin-bottom: 16px;
  color: #2b6cb0;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions .btn-primary {
  width: auto;
  padding: 10px 24px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: #fff;
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid #2b6cb0;
}

.task-card.unread {
  border-left-color: #e53e3e;
}

.task-main {
  flex: 1;
}

.task-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.task-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.task-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #888;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #ebf4ff;
  color: #2b6cb0;
}

.badge.High {
  background: #fed7d7;
  color: #c53030;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: none;
  background: #f1f4f8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: #e2e8f0;
}

.icon-btn.delete:hover {
  background: #fed7d7;
}

.empty-state {
  text-align: center;
  color: #888;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-name {
    font-size: 32px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
