/* ===============================
   GLOBAL STYLES
================================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  background: #d6d6d6;
  color: #1e1e2f;
}

/* ===============================
   SIDEBAR
================================= */
.sidebar {
  width: 240px;
  background: #3b7687;
  color: #fff;
  height: 100vh;
  position: fixed;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .logo {
  width: 100px;
  margin-bottom: 30px;
  border-radius: 50%;
}

.sidebar nav a {
  display: block;
  color: #fff;
  margin: 15px 0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.sidebar nav a:hover {
  color: #6c5ce7;
}

.social-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  margin: 5px 0;
  font-size: 14px;
}

.social-links a:hover {
  color: #6c5ce7;
}

#dark-mode-toggle {
  margin-top: auto;
  padding: 10px;
  border: none;
  background: #6c5ce7;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

#dark-mode-toggle:hover {
  background: #4e3dcf;
}

/* ===============================
   MAIN CONTENT
================================= */
.main-content {
  margin-left: 240px;
  padding: 40px;
  width: calc(100% - 240px);
  box-sizing: border-box;
}

section {
  padding: 7px 5px;
}

h1, h2, h3 {
  color: #1e1e2f;
}

/* ===============================
   TECH STACK
================================= */
.toggle-btn {
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.tech-stack {
  list-style: none;
  padding-left: 0;
}

.tech-stack li {
  margin-bottom: 8px;
}

.tech-stack strong {
  color: #6c5ce7;
}

/* ===============================
   PROJECT GRID & CARDS
================================= */
.project-filters {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background: #eee;
  border: none;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #333;
  color: #fff;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  padding: 10px 5px 0 5px;
}

.project-card p {
  font-size: 14px;
  color: #555;
  padding: 0 5px 12px 5px;
}

/* Tags */
.tags {
  padding: 10px;
}

.tags span {
  display: inline-block;
  margin: 4px 6px;
  padding: 4px 10px;
  background: #f1f1f1;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
}

/* ===============================
   MODAL
================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  text-align: center;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 15px;
}

.modal-links {
  margin-top: 15px;
}

.modal-links a {
  display: inline-block;
  margin: 6px 10px;
  padding: 8px 14px;
  background: #6c5ce7;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.modal-links a:hover {
  background: #4e3dcf;
}

/* ===============================
   DARK MODE
================================= */
body.dark-mode {
  background: #121212;
  color: #ddd;
}

body.dark-mode .sidebar {
  background: #121212;
}

body.dark-mode .project-card {
  background: #1e1e2f;
  color: #ddd;
}

body.dark-mode .tech-stack strong {
  color: #ff7675;
}

body.dark-mode .modal-content {
  background: #1e1e2f;
  color: #ddd;
}
