* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1e293b;
  color: white;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4em;
  font-weight: bold;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #60a5fa;
}

#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: yellow;
  padding: 6px;
  transition: transform 0.2s ease;
}

#darkModeToggle:hover {
  transform: scale(1.1);
}

.about-content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.about {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.about h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #3b82f6;
}

.about p {
  font-size: 1.05em;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: left;
}

.skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
}

.skills li {
  background-color: #1e293b;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-wrapper {
  position: relative;
  max-width: 100%;
  margin-top: 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-container img {
  height: auto;
  width: 80vw;
  max-width: 320px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-btn {
  background-color: #1e293b;
  color: white;
  border: none;
  font-size: 1.2em;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.gallery-btn:hover {
  background-color: #3b82f6;
}

.gallery-btn.left {
  position: absolute;
  left: 10px;
}

.gallery-btn.right {
  position: absolute;
  right: 10px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #1e293b;
  color: #94a3b8;
  font-size: 0.9em;
  margin-top: auto;
}

body.dark-mode {
  background-color: #f8fafc;
  color: #1e293b;
}

body.dark-mode .navbar {
  background-color: #e2e8f0;
}

body.dark-mode .nav-links li a {
  color: #1e293b;
}

body.dark-mode .nav-links li a:hover,
body.dark-mode .nav-links li a.active {
  color: #2563eb;
}

body.dark-mode .about h1 {
  color: #1d4ed8;
}

body.dark-mode .about p {
  color: #334155;
}

body.dark-mode .skills li {
  background-color: #cbd5e1;
  color: #1e293b;
}

body.dark-mode .gallery-btn {
  background-color: #cbd5e1;
  color: #1e293b;
}

body.dark-mode .gallery-btn:hover {
  background-color: #2563eb;
  color: white;
}

body.dark-mode footer {
  background-color: #e2e8f0;
  color: #475569;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .about h1 {
    font-size: 1.8em;
  }

  .skills {
    flex-direction: column;
    align-items: center;
  }

  .gallery-container img {
    width: 90vw;
  }

  .gallery-btn {
    font-size: 1em;
    padding: 8px 10px;
  }
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.left {
  left: 30px;
}

.lightbox-nav.right {
  right: 30px;
}
