body {
  margin: 0;
  font-family: Arial;
  background: #f5f5f5;
  transition: 0.3s;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: white;
  padding: 15px 30px;
}

nav a {
  margin: 0 10px;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

nav button {
  margin-left: 10px;
  cursor: pointer;
}

/* SECTIONS */
section {
  padding: 40px;
  max-width: 900px;
  margin: auto;
}

/* BIO */
/* MAIN CONTAINER */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
}

/* LEFT IMAGE CARD */
.image-card img:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.image-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00e5ff;
}

/* RIGHT SIDE */
.about-content h2 {
  margin-bottom: 15px;
}

/* TEXT BOX */
.about-box {
  background: #f5f5f5;   /* light grey instead of black */
  color: black;
}

/* LINKS */
.about-box a {
  color: #00e5ff;
  text-decoration: none;
}

.about-box a:hover {
  text-decoration: underline;
}

/* CARDS */
.card {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

/* BUTTON */
.btn {
  background: black;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

/* TAB SYSTEM */
.tab {
  display: none;
  animation: fade 0.4s;
}

.tab.active {
  display: block;
}

/* ANIMATION */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* DARK MODE */
.dark {
  background: #121212;
  color: white;
}

.dark .card {
  background: #1e1e1e;
}

.contact {
  display: flex;
  justify-content: center;   /* center alignment */
  gap: 30px;                 /* space between LinkedIn & Email */
  margin-top: 30px;
}

.contact a {
  display: flex;
  align-items: center;
  gap: 12px;                 /* space between icon and text */
  padding: 12px 20px;        /* better button size */
  border-radius: 10px;
  background: white;
  text-decoration: none;
  color: black;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Hover effect */
.contact a:hover {
  transform: translateY(-3px);
}

/* Icon size fix */
.contact svg {
  width: 22px;
  height: 22px;
}

/* Dark mode */
.dark .contact a {
  background: #1e1e1e;
  color: white;
}

#achievements p {
  margin: 12px 0;
  font-size: 16px;
}

#themeToggle {
  margin-left: 15px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: white;
  color: black;
  font-weight: bold;
}


#achievements .card {
  margin: 15px 0;
  font-size: 16px;
}
.dark #themeToggle {
  background: black;
  color: white;
}


iframe {
  border: none;
  margin-top: 20px;
  border-radius: 10px;
}


.cv-container {
  position: relative;
}

/* PDF */
.cv-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* Fullscreen button */
#fullscreenBtn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 8px 12px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(0,0,0,0.7);
  color: white;
}

.bio img {
  width: 160px;
  border-radius: 50%;
}

.bio p {
  max-width: 600px;
}

/* Hover effect */
#fullscreenBtn:hover {
  background: black;
}

.about-footer {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

/* layout */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
}

/* image */
.image-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* text box */
.about-box {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  color: #ddd;
  max-width: 600px;
}

/* ✅ footer at bottom */
.about-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

.about-footer p {
  margin: 5px 0;
}

/* ABOUT PAGE COLOR THEME */
#about .about-box a {
  color: #00ff88;   /* green links */
}

#about .about-box a:hover {
  color: #00cc6a;
}

/* optional: heading color */
#about h2 {
  color: #00ff88;
}

#about .image-card img {
  border-radius: 50%;   /* circle */
}

#about .about-box {
  border-radius: 20px;   /* more rounded */
}

#about .image-card img {
  border: 4px solid #00ff88;
  box-shadow: 0 0 15px rgba(0,255,136,0.5);
}


/* Achievement box */
.achievement {
  background: white;
  margin: 15px auto;
  padding: 15px;
  border-radius: 12px;
  max-width: 600px;
  cursor: pointer;
  transition: 0.3s;
}

/* Title */
.ach-title {
  font-weight: bold;
  font-size: 18px;
}

/* Hidden content */
.ach-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* When active */
.achievement.active .ach-content {
  max-height: 100px;
  margin-top: 10px;
}


/* DARK MODE FIX FOR ACHIEVEMENTS */
.dark .achievement {
  background: #1e1e1e;   /* dark card */
  color: white;
  border: 1px solid #333;
}

.dark .ach-title {
  color: #00ff88;   /* highlight title */
}

.dark .ach-content {
  color: #ccc;   /* readable text */
}

.dark .achievement:hover {
  background: #2a2a2a;
}

/* PROJECT BOX */
.project {
  background: white;
  margin: 15px auto;
  padding: 15px;
  border-radius: 12px;
  max-width: 650px;
  cursor: pointer;
  transition: 0.3s;
}

/* TITLE */
.proj-title {
  font-weight: bold;
  font-size: 18px;
}

/* HIDDEN CONTENT */
.proj-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ACTIVE STATE */
.project.active .proj-content {
  max-height: 120px;
  margin-top: 10px;
}

.dark .project {
  background: #1e1e1e;
  color: white;
  border: 1px solid #333;
}

.dark .proj-title {
  color: #00ff88;
}

.dark .proj-content {
  color: #ccc;
}

.dark .project:hover {
  background: #2a2a2a;
}


/* MAIN PROJECT */
.project {
  background: white;
  margin: 15px auto;
  padding: 15px;
  border-radius: 12px;
  max-width: 650px;
  cursor: pointer;
}

/* TITLE */
.proj-title {
  font-weight: bold;
  font-size: 18px;
}

/* COLLAPSE MAIN */
.proj-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.project.active .proj-content {
  max-height: 1000px;  /* big enough */
  margin-top: 10px;
}

/* SUB PROJECT */
.sub-project {
  margin-top: 10px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}

/* SUB TITLE */
.sub-title {
  font-weight: 600;
}

/* SUB CONTENT */
.sub-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sub-project.active .sub-content {
  max-height: 200px;
  margin-top: 8px;
}
.dark .project {
  background: #1e1e1e;
  color: white;
}

.dark .sub-project {
  background: #2a2a2a;
}

.dark .sub-content {
  color: #ccc;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* About section */
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-box {
    max-width: 90%;
  }

  .image-card img {
    width: 150px;
    height: 150px;
  }

  /* Projects & Achievements */
  .project,
  .achievement {
    max-width: 90%;
    font-size: 14px;
  }

  /* Headings */
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  /* Navbar (if horizontal) */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav button {
    padding: 8px 12px;
    font-size: 14px;
  }

}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

/* light mode */
.highlight {
  color: #0077cc;
  font-weight: bold;
}

/* dark mode */
.dark .highlight {
  color: #00ff88;
}

.dark .highlight {
  color: #00ff88;
  text-shadow: 0 0 5px rgba(0,255,136,0.5);
}


/* LIGHT MODE (optional improvement) */
.card {
  background: white;
  color: black;
  padding: 12px;
  margin: 10px auto;
  border-radius: 10px;
  max-width: 600px;
}

/* 🌙 DARK MODE FIX */
.dark .card {
  background: #1e1e1e;
  color: #00ff88;   /* 🔥 green text */
  border: 1px solid #333;
}
.dark .card:hover {
  background: #2a2a2a;
}


/* ===== MOBILE ALIGNMENT FIX ===== */
@media (max-width: 768px) {

  /* GENERAL PAGE */
  body {
    padding: 10px;
  }

  section {
    width: 100%;
    margin: 0 auto;
  }

  /* HEADINGS */
  h1 {
    text-align: center;
    font-size: 22px;
  }

  /* ABOUT SECTION */
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-box {
    width: 100%;
    max-width: 95%;
  }

  .image-card img {
    width: 140px;
    height: 140px;
  }

  /* PROJECTS + ACHIEVEMENTS + TEACHING */
  .project,
  .achievement,
  .card {
    width: 100%;
    max-width: 95%;
    margin: 10px auto;
    text-align: left;
  }

  /* SUB PROJECT */
  .sub-project {
    width: 100%;
  }

  /* NAVBAR */
  /*nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav button {
    font-size: 13px;
    padding: 6px 10px;
  }*/

  /* CONTACT ICONS */
  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  /* CV iframe */
  iframe {
    width: 100%;
    height: 70vh;
  }

}
/* FLOATING SIDE MENU */
.side-menu {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

/* BUTTON STYLE */
.side-menu button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #0077cc;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER */
.side-menu button:hover {
  transform: scale(1.1);
}

/* DARK MODE */
.dark .side-menu button {
  background: #00ff88;
  color: black;
}

/* Make toggle stand out slightly */
#themeToggle {
  border: 2px solid white;
}

.dark #themeToggle {
  border: 2px solid black;
}
