/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f1a;
  color: #fff;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 55px; /* compact */
  backdrop-filter: blur(10px);
  background: rgba(20,20,40,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  overflow-x: auto; /* allow horizontal scroll if needed */
}

header h1 {
  font-size: 1rem;
  color: cyan;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  /* overflow-x: auto; scroll if too many links */
  white-space: nowrap;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(0,255,255,0.2);
  box-shadow: 0 0 8px cyan;
}

/* Main content */
main {
  padding-top: 70px; /* offset for header */
}

.project {
  display: none;
  text-align: center;
}

.project.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

iframe {
  width: 100%;
  height: calc(100vh - 120px); /* full viewport minus header */
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 15px cyan;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
