/* =====================
   GLOBAL STYLES
===================== */
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #eee;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

a {
  color: #62dafb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* =====================
   NAVIGATION
===================== */
header {
  position: sticky;
  top: 0;
  background-color: #1f1f1f;
  z-index: 999;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #bb86fc;
}

.header-links {
  display: flex;
  gap: 1rem;
}

.header-links a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-links a:hover {
  color: #bb86fc;
}

/* =====================
   MAIN CONTENT WRAPPER
===================== */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
}

/* =====================
   ABOUT SECTION
===================== */
#about .about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.profile-photo img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 30%;
  clip-path: circle(50%);
  transform: rotate(2deg);
}

/* =====================
   EXPERIENCE SECTION
===================== */
.experience-item {
  background-color: #1f1f1f;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.experience-item h3 {
  margin-bottom: 0.25rem;
}

.experience-item p {
  margin-bottom: 0.5rem;
}

/* =====================
   EDUCATION SECTION
===================== */
.education-item {
  background-color: #1f1f1f;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* =====================
   PROJECTS SECTION
===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background-color: #1f1f1f;
  padding: 1rem;
  border-radius: 5px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h4 {
  margin-bottom: 0.5rem;
}

.project-card .project-image {
  background-color: #333;
  height: 140px;
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
}

.project-card .btn {
  background-color: #333;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 3px;
  color: #eee;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.project-card .btn:hover {
  background-color: #444;
}

/* =====================
   PROJECT IMAGES (generic)
===================== */
.project-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

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

.modal-content {
  background-color: #1f1f1f;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 5px;
  max-width: 600px;
  width: 100%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  cursor: pointer;
}

.close-modal:hover {
  color: #fff;
}

/* =====================
   SKILLS SECTION
===================== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-badge {
  background-color: #333;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* =====================
   FOOTER
===================== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #1f1f1f;
  color: #888;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 600px) {
  .container {
    margin: 1rem auto;
    padding: 0 1rem;
  }
  #about .about-header {
    margin-bottom: 1rem;
  }
}
