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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f5;
}

/* Layout helpers */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
}

nav a:hover {
  color: #000;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 0.75rem;
}

.hero-links {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  margin-right: 0.5rem;
}

.btn.primary {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

/* Sections */
.section {
  padding: 2rem 0;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Cards for projects */
.cards {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: #fafafa;
}

.card h3 {
  margin-bottom: 0.25rem;
}

.card .meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.card ul {
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

.card li {
  margin-bottom: 0.25rem;
}

.card .links a {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* Experience timeline items */
.timeline-item {
  margin-bottom: 1rem;
}

.timeline-item h3 {
  margin-bottom: 0.2rem;
}

.timeline-item .meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.timeline-item ul {
  padding-left: 1.1rem;
}

/* Contact */
.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.3rem;
}

/* Footer */
.footer {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* Make it look good on small screens */
@media (max-width: 600px) {
  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }
}

.card-img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.experience-img {
  width: 240px;        /* I'll adjust this later */
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Slideshow */
#slideshow {
  position: relative;
  width: 70%;          /* match the HTML width */
  height: 350px;       /* adjust this height if you want */
  overflow: hidden;
  margin: 0 auto 2rem; /* horizontally center the slideshow */
}

#slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  opacity: 0;
  filter: blur(0px);
  transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
}

/* Active slide effect */
#slideshow .active {
  opacity: 1;
  filter: blur(0px); /* set >0 if you want visible blur */
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Button that looks like a normal nav link */
.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: #555;
  padding: 0;
  margin-left: 1rem;
}

.dropbtn:hover {
  color: #000;
}

/* Arrow next to "Projects" */
.arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 150%;          /* slightly below the top bar */
  right: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Links inside dropdown */
.dropdown-content a {
  display: block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* When dropdown has "open" class -> show menu */
.dropdown.open .dropdown-content {
  display: block;
}
