/* General Styles */
body {
  margin: 0;
  background: #000;
  color: #fff;
  transition: background 0.4s, color 0.4s;
}

a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
}

/* Parallax Background */
.parallax {
  background-image: url('your-cool-background.jpg');
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.7);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 1em 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}
.logo {
  font-weight: 700;
  font-size: 1.5em;
  color: #ffd700;
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  display: flex;

  gap: 2em;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  color: #fff;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: #ffd700;
  color: #000;
}
#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.2s;
  color: #ffd700;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: linear-gradient(135deg, #000 0%, #ffd700 100%);
  color: #fff;
  text-align: center;
  position: relative;
}
.hero-content {
  z-index: 2;
  padding: 2em;
}
.profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffd700;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  margin-bottom: 1em;
}
.typewriter {
  overflow: hidden;
  border-right: .15em solid #ffd700;
  white-space: nowrap;
  animation: typing 2s steps(22, end), blink-caret .75s step-end infinite;

  font-size: 2.2em;
  font-weight: 700;
  color: #ffd700;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #ffd700; }
}
.highlight {
  color: #ffd700;
}
.social-links {
  margin-top: 1em;
  font-size: 1.1em;
  color: #ffd700;
}

/* Section Styles */
.section {
  padding: 3em 2em;
  max-width: 900px;
  margin: 0 auto;
  background: #111;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 2em;
  transition: background 0.3s, color 0.3s;
  color: #fff;
  border: 2px solid #ffd700;
}
.section h2 {
  color: #ffd700;
  font-size: 2em;
  margin-bottom: 0.5em;
}

/* Project Cards */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}
.project-card {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 320px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2em;
  margin: 1em 0;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  position: relative;
  color: #fff;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #ffd700 0%, #000 100%);
  color: #ffd700;
}
.project-link {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1.2em;
  background: #ffd700;
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.project-link:hover {
  background: #000;
  color: #ffd700;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 2em auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: #111;
}
.mySlides {
  display: none;
  text-align: center;
  position: relative;
}
.mySlides img {
  width: 100%;
  border-radius: 16px;
  max-height: 320px;
  object-fit: cover;
  border: 4px solid #ffd700;
  background: #000;
}
.caption {
  color: #ffd700;
  font-weight: 600;
  font-size: 1.2em;
  margin-top: 0.5em;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 0.5em 1em;
  margin-top: -22px;
  color: #ffd700;
  font-weight: bold;
  font-size: 2em;
  transition: background 0.2s, color 0.2s;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  user-select: none;
  z-index: 2;
}
.prev:hover, .next:hover {
  background: #ffd700;
  color: #000;
}
.prev { left: 10px; }
.next { right: 10px; }
.dots {
  text-align: center;
  margin-top: 1em;
}
.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 4px;
  background-color: #ffd700;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
  border: 2px solid #000;
}
.dot.active, .dot:hover {
  background-color: #000;
  border-color: #ffd700;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form */
.contact-section {
  background: linear-gradient(135deg, #000 0%, #ffd700 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 2px solid #ffd700;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 4px 16px rgba(255,215,0,0.18);
  outline: none;
}
.contact-form button {
  padding: 0.8em 1.5em;
  border-radius: 8px;
  border: none;
  background: #ffd700;
  color: #000;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-form button:hover {
  background: #000;
  color: #ffd700;
}

/* Footer */
footer {
  text-align: center;
  padding: 2em 0;
  background: #000;
  color: #ffd700;
  font-size: 1em;
  letter-spacing: 1px;
  margin-top: 2em;
  border-radius: 0 0 16px 16px;
}

/* Dark Mode */
body.dark-mode {
  background: #fff;
  color: #000;
}
body.dark-mode .navbar {
  background: #fff;
}
body.dark-mode .logo {
  color: #ffd700;
}
body.dark-mode .section,
body.dark-mode .slideshow-container {
  background: #fff;
  color: #000;
}
body.dark-mode .project-card {
  background: #fff;
  color: #000;
}
body.dark-mode .project-card:hover {
  background: linear-gradient(135deg, #ffd700 0%, #fff 100%);
  color: #000;
}
body.dark-mode .project-link {
  background: #ffd700;
  color: #000;
}
body.dark-mode .project-link:hover {
  background: #fff;
  color: #ffd700;
}
body.dark-mode .contact-section {
  background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
  color: #000;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #fff;
  color: #000;
}
body.dark-mode footer {
  background: #fff;
  color: #000;
}

/* Responsive Design */
@media (max-width: 900px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
  .section {
    padding: 2em 1em;
  }
  .slideshow-container {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1em;
    padding: 1em;
  }
  .nav-links {
    flex-direction: column;
    gap: 1em;
  }
  .hero {
    min-height: 40vh;
    padding: 2em 1em;
  }
  .profile-img {
    width: 100px;
    height: 100px;
  }
  .typewriter {
    font-size: 1.3em;
  }
}