/* Base Styles - unchanged */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #2c3e50;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  z-index: 1000;
  transition: transform 0.3s ease; /* for sliding menu */
}

nav img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav h2 {
  font-size: 1.4rem;
  margin-bottom: 25px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin: 12px 0;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  transition: background 0.3s ease;
}

nav a:hover, nav a.active {
  background: #007BFF;
  color: white;
}

nav .resume-btn {
  background: #007BFF;
  margin-top: 25px;
  color: white;
}

.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1500;
  font-size: 1.8rem;
  color: #007BFF;
  background: #fff;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

main {
  margin-left: 220px;
  padding-top: 60px;
}

header {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 20px;
  border-left: 5px solid #007BFF;
  padding-left: 15px;
}

.skills-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-25px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

footer {
  background: #2c3e50;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  padding: 30px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-height: 90vh; /* prevent overflow on mobile */
  overflow-y: auto;
}

#modal-content span {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.scroll-section {
  height: 400px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-left: 3px solid #007BFF;
  padding-left: 15px;
  margin-top: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.role-slide {
  scroll-snap-align: start;
  min-height: 80px;
  padding: 16px;
  display: flex;
  flex-direction: column;  
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  border: 1px solid #ccc;            
  border-radius: 8px;                
  background-color: #f9f9f9;          
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
  margin-bottom: 20px;                
}

.role-slide ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style-type: disc;
}

/* ================== MOBILE UPDATES ================== */
@media (max-width: 768px) {

  nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    transform: translateX(-100%);
    position: relative;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  nav.open {
    transform: translateX(0);
    height: 100vh;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    overflow-y: auto;
    background: #2c3e50;
  }

  nav img, nav h2 {
    display: none;
  }

  nav a {
    margin: 15px 0;
    font-size: 1.1rem;
    padding: 12px 20px;
    width: auto;
    text-align: center;
  }

  nav .resume-btn {
    margin-top: 30px;
  }

 
  .hamburger {
    display: block;
    z-index: 1501;
  }


  main {
    margin-left: 0;
    padding-top: 70px;
    padding-left: 15px;
    padding-right: 15px;
  }


  .skills-grid, .projects-grid {
    grid-template-columns: 1fr !important;
  }


  section {
    padding: 40px 15px;
  }

 
  #modal-content {
    max-width: 95%;
    padding: 20px;
  }


  footer {
    font-size: 0.85rem;
    padding: 20px 15px;
  }
}

/* Optional: add cursor for hamburger hover */
.hamburger:hover {
  background: #007BFF;
  color: white;
}
