footer a {
  color: #c9a86a !important;
  font-weight: bold;
  text-decoration: underline;
  text-shadow: 0 0 8px #3a2a1a;
  transition: color 0.2s;
}
footer a:visited {
  color: #e6d3b3 !important;
}
footer a:hover {
  color: #e6d3b3 !important;
  background: #6e4b1b;
  border-radius: 4px;
}
/* Modal Image Viewer */
.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(44,31,20,0.95);
  backdrop-filter: blur(2px);
}
.modal-content {
  display: block;
  margin: 5vh auto 0 auto;
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px #c9a86a;
  border: 3px solid #c9a86a;
}
.close-modal {
  position: absolute;
  top: 2vh;
  right: 4vw;
  color: #c9a86a;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 8px #3a2a1a;
}
#modal-caption {
  text-align: center;
  color: #e6d3b3;
  font-size: 1.2rem;
  margin-top: 1rem;
}

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: #2c1f14 url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  color: #e6d3b3;
  min-height: 100vh;
  position: relative;
}
header {
  background: linear-gradient(90deg, #6e4b1b 0%, #3a2a1a 100%);
  box-shadow: 0 2px 8px #1a1208;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #c9a86a;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #3a2a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gear {
  display: inline-block;
  background: url('https://cdn.jsdelivr.net/gh/steampunk-icons/gear.svg') no-repeat center center;
  background-size: contain;
  animation: spin 6s linear infinite;
}
.gear-lg { width: 32px; height: 32px; animation-duration: 8s; }
.gear-sm { width: 18px; height: 18px; animation-direction: reverse; }
.gear-hero { width: 48px; height: 48px; animation-duration: 10s; }
.gear-hero-sm { width: 28px; height: 28px; animation-direction: reverse; }
.gear-card { width: 22px; height: 22px; animation-duration: 7s; }
.gear-footer { width: 28px; height: 28px; animation-duration: 9s; }
.gear-footer-sm { width: 16px; height: 16px; animation-direction: reverse; }
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  color: #e6d3b3;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-links a:visited {
  color: #bfa45a;
  text-shadow: 0 0 6px #3a2a1a;
}
.nav-links a:hover {
  color: #c9a86a;
  text-shadow: 0 0 8px #c9a86a;
}
.dropdown-content {
/* Show dropdown when .open class is present (for JS logic) */
.dropdown.open .dropdown-content {
  display: block;
}
  display: none;
  position: absolute;
  background: #3a2a1a;
  min-width: 120px;
  box-shadow: 0 4px 8px #1a1208;
  z-index: 1;
  top: 2rem;
  left: 0;
  border-radius: 0 0 8px 8px;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}
.dropdown-content li {
  padding: 0.5rem 1rem;
}
.fancy-bg {
  background: linear-gradient(120deg, #3a2a1a 60%, #6e4b1b 100%);
  box-shadow: 0 8px 32px #1a1208;
  border-bottom: 2px solid #c9a86a;
  position: relative;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 2rem 2rem;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
}
.hero-img {
  width: 240px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px #1a1208;
  border: 4px solid #c9a86a;
  margin-bottom: 1rem;
}
.hero-gears {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.hero-text h1 {
  font-size: 3rem;
  color: #c9a86a;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px #c9a86a;
}
.hero-text h2 {
  font-size: 1.7rem;
  color: #e6d3b3;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #6e4b1b;
}
.hero-text p {
  font-size: 1.2rem;
  color: #e6d3b3;
  margin-bottom: 1.5rem;
}
.hero-cta {
  margin-top: 1rem;
}
.cta-btn {
  background: #c9a86a;
  color: #3a2a1a;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px #1a1208;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: #e6d3b3;
  color: #6e4b1b;
  box-shadow: 0 4px 16px #c9a86a;
}
.projects-preview {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 3rem 0;
}
.fancy-cards {
  background: rgba(44,31,20,0.85);
  border-radius: 18px;
  box-shadow: 0 8px 32px #1a1208;
  padding: 2rem 0;
}
.project-card {
  background: linear-gradient(120deg, #3a2a1a 80%, #6e4b1b 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px #1a1208;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 340px;
  text-align: left;
  border: 2px solid #c9a86a;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #c9a86a;
  border-color: #e6d3b3;
}
.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.project-card img {
  width: 70px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #c9a86a;
  box-shadow: 0 2px 8px #1a1208;
}
.badge {
  background: #c9a86a;
  color: #3a2a1a;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  font-weight: bold;
  box-shadow: 0 2px 6px #1a1208;
}
.project-card h3 {
  color: #c9a86a;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.project-desc {
  color: #e6d3b3;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.project-card ul {
  margin: 0.5rem 0 0.5rem 1.2rem;
  padding: 0;
  color: #e6d3b3;
  font-size: 0.98rem;
}
.github-link, .details-link {
  display: inline-block;
  margin-top: 0.7rem;
  margin-right: 0.7rem;
  padding: 0.5rem 1.5rem;
  background: #c9a86a;
  color: #3a2a1a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px #1a1208;
  transition: background 0.2s, color 0.2s;
}
.github-link:hover, .details-link:hover {
  background: #e6d3b3;
  color: #6e4b1b;
}
footer {
  background: #3a2a1a;
  color: #c9a86a;
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  border-top: 2px solid #c9a86a;
  font-size: 1rem;
  position: relative;
}
.footer-gears {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-heart {
  color: #e6d3b3;
  font-size: 1.2rem;
  vertical-align: middle;
}
.project-detail {
  max-width: 700px;
  margin: 3rem auto;
  background: #3a2a1a;
  border-radius: 12px;
  box-shadow: 0 2px 8px #1a1208;
  padding: 2rem;
  border: 2px solid #c9a86a;
  text-align: center;
}
.project-detail h1 {
  color: #c9a86a;
  margin-bottom: 1rem;
}
.project-img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid #c9a86a;
}
.project-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}
.project-gallery img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #c9a86a;
}
@media (max-width: 900px) {
  .projects-preview {
    flex-direction: column;
    align-items: center;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-left {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}
