/* ===========================
   Base Layout
=========================== */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  min-height: 100dvh; /* dynamic vh on modern browsers */
  overflow-x: hidden;
  background-color: #f5f5f5;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 25px;
  box-sizing: border-box;
}

.content {
  width: 100%;
  background-color: #fafafa;
}

/* ===========================
   Header
=========================== */
.hero {
  background: linear-gradient(135deg, #f8f8f8, #f2f2f2);
  border-bottom: 1px solid #ddd;
  padding: 50px 25px;
}

.profile {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 10%;
  object-fit: cover;
  border: 3px solid #ddd;
}

.intro h1 {
  margin: 0 0 10px;
  font-size: 2em;
  color: #222;
}

.intro p {
  font-size: 1.05em;
  color: #444;
  margin: 0;
}

/* ===========================
   Social Links Row
=========================== */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 12px 0 18px;
  background: linear-gradient(135deg, #f8f8f8, #f2f2f2);
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.social-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #0077cc;
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(40%);
  transition: filter 0.2s ease;
}

.social-links a:hover .social-icon {
  filter: none;
}

/* ===========================
   Sticky Navbar
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.navbar li a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar li a:hover,
.navbar li a.active {
  color: #0077cc;
}


/* ===========================
   Portfolio Sections
=========================== */
section.portfolio {
  margin-top: 40px;
  min-width: 100%;
}

summary h2 {
  display: inline;
  cursor: pointer;
  user-select: none;
  color: #222;
}

summary {
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
}

/* ===========================
   Accordion Styles
=========================== */
.course-list,
.content-grid {
  display: block;
  min-width: 100%;
}

.course-list details summary,
.content-grid > details summary {
  font-weight: 500;
  font-size: 1.1em;
  padding: 12px 15px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.course-list details[open] summary,
.content-grid > details[open] summary {
  background: #e8e8e8;
  border-color: #ccc;
}

.course-list details summary:hover,
.content-grid > details summary:hover {
  background: #eee;
}

/* ===========================
   Card Style
=========================== */
.card {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 12px 0 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3,
.card h4 {
  margin-top: 0;
  color: #222;
}

.card p {
  margin: 8px 0;
}

.button {
  display: inline-block;
  margin-top: 8px;
  background: #0077cc;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background 0.2s ease;
}

.button:hover {
  background: #005fa3;
}

/* ===========================
   Embedded Game / Video
=========================== */
.game-frame-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  background: #000;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  margin: 15px 0;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.play-btn:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
   Footer
=========================== */
footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.9em;
  color: #666;
  padding: 30px;
  background: linear-gradient(135deg, #f8f8f8, #f2f2f2);
  border-top: 1px solid #ddd;
  box-sizing: border-box;
}

footer a {
  color: #0077cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 700px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .resume-frame {
    height: 500px;
  }
}

section.portfolio {
  border-top: 1px solid #ddd;
  padding-top: 40px;
  margin-top: 40px;
}

/* ===========================
   Resume Embed
=========================== */
.resume-frame {
  width: 100%;
  height: 700px;
  border: none;
}
