:root {
  --bg-color: #1a1a1d;
  --card-bg: #2d2d34;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent-color: #66c0f4;
  --accent-hover: #4ca3d9;
  --nav-bg: #252529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

header {
  background-color: var(--nav-bg);
  text-align: center;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid #333;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 1px;
}

header p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #202024;
  padding: 15px 0;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-hover);
  border-bottom: 2px solid rgba(102, 192, 244, 0.3);
}

.nav-link.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: nowrap;
}

.profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(102, 192, 244, 0.25);
  flex-shrink: 0;
}

.about-flex div {
  max-width: 600px;
}

@media (max-width: 850px) {
  .about-flex {
    flex-wrap: wrap;
    text-align: center;
  }
  .about-flex div {
    max-width: 100%;
  }
}

.nav-resume-style {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--accent-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-resume-style:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}


.filter-btn {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--accent-color);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  margin-top: 10px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-top: 0;
}

article {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent-color);
  border-radius: 0 10px 10px 0;
}

.skills-badge {
  display: inline-block;
  background: #3a3a42;
  padding: 8px 15px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #555;
}

footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid #333;
  color: var(--text-muted);
}

.carousel-container {
  position: relative;
  max-width: 700px;
  height: 450px;
  margin: 20px auto 30px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--card-bg);
  background-color: #111;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-slide img:hover {
  transform: scale(1.02);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s;
  z-index: 10;
  border-radius: 5px;
}

.carousel-btn:hover {
  background: var(--accent-color);
  color: #000;
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding-top: 60px;
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}

.modal-content-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-image-wrapper {
  flex: 2;
  min-width: 300px;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid var(--accent-color);
}

.modal-description {
  flex: 1;
  font-size: 1.1em;
  color: var(--text-main);
  background-color: #202024;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #3a3a42;
}

.modal-description h3 {
  margin-top: 0;
  color: var(--accent-color);
  border-bottom: 1px solid #4a4a50;
  padding-bottom: 10px;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 38px;
  font-weight: bold;
}

.close-btn:hover {
  color: var(--accent-color);
}

.pdf-frame {
  width: 100%;
  height: 90vh;
  border: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  border-radius: 10px;
}

.experience-title {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 2% auto;
    padding: 20px;
  }
  .modal-content-inner {
    flex-direction: column;
  }
  .modal-image {
    max-height: 50vh;
  }
  .close-btn {
    font-size: 30px;
    top: 5px;
    right: 15px;
  }
}
