/* Global page styling */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background-color: #f4f6f9;
  color: #333;
}

/* ---------------- NAVIGATION ---------------- */

.topnav {
  background-color: #2C3E50;
  display: flex;
  align-items: left;
  padding: 0 20px;
}

.topnav a {
  color: white;
  text-decoration: none;
  padding: 16px 20px;
  font-size: 20px;
  transition: 0.25s ease;
}

.topnav a:hover {
  background-color: rgba(255,255,255,0.15);
  border-radius: 6px;
}

.topnav a.active {
  background-color: #3498DB;
  border-radius: 6px;
}

.topnav .icon {
  display: none;
}

/* ---------------- CONTENT ---------------- */

.content {
  padding: 20px;
  max-width: 1100px;
  margin-left: 40px;
  text-align: left;
  font-size: 20px;
  line-height: 1.6;
}

/* ---------------- CARDS ---------------- */

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  display: block;
}

.container {
  padding: 20px;
}

/* ---------------- ACCORDION ---------------- */

.accordion {
  background-color: #f1f1f1;
  color: #333;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 18px;
  border-radius: 6px;
  margin-top: 10px;
  transition: background 0.25s ease;
}

.accordion:hover,
.accordion.active {
  background-color: #e2e6ea;
}

.panel {
  padding: 15px;
  background-color: white;
  border-radius: 0 0 6px 6px;
  display: none;
}

/* ---------------- DROPDOWN ---------------- */

.dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 12px 18px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.dropbtn:hover {
  background-color: #2980B9;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

.show {
  display: block;
}

/* ---------------- RESPONSIVE DESIGN ---------------- */

@media screen and (max-width: 800px) {

  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav a {
    width: 100%;
  }

  .content {
    padding: 25px;
  }

}

/* ---------- IFRAME PROJECT VIEWER ---------- */

/* Container for iframe projects */
.iframe-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Style the iframe itself */
.iframe-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Responsive adjustment */
@media screen and (max-width: 800px) {
  .iframe-container iframe {
    height: 400px;
  }
}

/* ---------- PROJECT SECTION ---------- */

.project {
  margin-top: 20px;
}

.project h3 {
  margin-bottom: 6px;
}

/* ---------- OPEN LINK BUTTON ---------- */

.open-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #4169E1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.open-link:hover {
  background-color: #2f4fd6;
  transform: translateY(-2px);
}




