/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100%;
  height: auto;
  transition: background 0.5s ease, color 0.5s ease;
  line-height: 1.6;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2%;
}

.button-lt, .button-rt {
  width: 8.75rem;
  padding: 0.625rem 0.625rem;
  padding-right: 0.625rem;
  font-size: 1rem;
  color: #fff;
  background-color: #007BFF;
  border: none;
  border-radius: 0.3125rem;
  text-decoration: none;
  cursor: pointer;
}

.button-lt:hover, .button-rt:hover {
  background-color: #0056b3;
}

.about-me-container,
.projects-container,
.skills-container,
.experiences-container,
.certifications-container,
.extracurriculars-container,
.contact-container,
.resume-container,
.experiences-container {
  padding: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.about-me-container h1,
.projects-container h1,
.skills-container h1,
.experiences-container h1,
.certifications-container h1,
.extracurriculars-container h1,
.contact-container h1,
.resume-container h1 {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.about-me-container h3,
.projects-container h3,
.skills-container h3,
.experiences-container h3,
.certifications-container h3,
.extracurriculars-container h3,
.contact-container h3,
.resume-container h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}



/* Dark Theme for Body */
body.dark,
body.dark .button-container {
  background: #1e1e2e;
  color: #f0f4f8;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark .about-me-container,
body.dark .experiences-container,
body.dark .projects-container,
body.dark .skills-container,
body.dark .headshot-container,
body.dark .extracurriculars-container,
body.dark .contact-container,
body.dark .resume-container,
body.dark .cta-container,
body.dark .certifications-container,
body.dark .timeline-icon,
body.dark .footer-content {
  background: #2e2e3e; /* Slightly lighter dark background */
  color: #f0f4f8;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark .timeline-content,
body.dark .project-card,
body.dark .timeline-content,
body.dark .extra-item {
  background: #3c3c51;
}

body.dark .card-content h3,
body.dark .project-card-front h2,
body.dark .project-card-back h2,
body.dark .project-card-back p,
body.dark .enter-button,
body.dark .cert-content p,
body.dark .card-content p {
  color: black;
}

body.dark .cert-card i {
  color: #333 !important;
  opacity: 1 !important;
}

body.dark-mode i {
  color: black !important;
}

body.dark .cert-text a,
body.dark .cta-container a{
  color: #0056b3
}

body.dark .extracurriculars-container h2,
body.dark .extracurriculars-container p {
  color: black;
}

body.dark .extra-item h2, 
body.dark .extra-item p {
  color: #fff;
}

body.dark .extracurriculars-container h3 {
  color: #fff;
}

body.dark .extracurriculars-container {
  background: #2e2e3e;
  color: #f0f4f8;
}

body.dark .extra-item {
  background: #3c3c51;
  color: #f0f4f8;
}

body.dark .extra-icon {
  color: #4caf50;
}

body.dark h1 {
  color: #fff;
}

body.dark h2 {
  color: #fff;
}

body.dark h3 {
  color: #fff;
}

body.dark p {
  color: #fff;
}

body.dark .navbar {
  background: #2b2b3b;
}

body.dark .navbar a {
  color: #f0f4f8;
}

body.dark .nav-links a.active {
  color: #ffdd57;
}

body.dark .nav-links a:hover {
  color: #ffdd57;
}

body.dark .small-footer {
  background: #2b2b3b;
  color: #f0f4f8;
}

body.dark a {
  color: #f0f4f8;
  transition: color 0.3s ease;
}

body.dark a:hover {
  color: #ffdd57;
}

body.dark .modal-content {
  background: #333;
  color: #f0f4f8;
  border: 1px solid #555;
}

body.dark .close-button {
  color: #f0f4f8;
}

body.dark .close-button:hover {
  color: #ff4c4c;
}

body.dark .modal-content::after {
  border-color: transparent transparent transparent #333;
}

body.dark .experiences-header h1 {
  color: #e5e7eb; /* zinc-200 */
}

body.dark .experiences-header .subtitle {
  color: #9ca3af; /* gray-400 */
}

body.dark .file-explorer {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.4);
}

body.dark .file-toolbar {
  background: #020617;
  border-bottom-color: rgba(148, 163, 184, 0.4);
  color: #9ca3af;
}

body.dark .file-toolbar .file-path {
  color: #e5e7eb;
}

body.dark .file-layout {
  background: transparent;
}

body.dark .file-sidebar {
  background: #020617;
  border-right: 0.0625rem solid rgba(148, 163, 184, 0.4);
}

body.dark .folder {
  color: #e5e7eb;
}

body.dark .folder .icon {
  color: #facc15; /* keep folder yellow */
}

body.dark .folder:hover {
  background: rgba(79, 70, 229, 0.35); /* indigo tint */
  color: #f9fafb;
}

body.dark .folder.active {
  background: rgba(129, 140, 248, 0.35);
  color: #f9fafb;
}

body.dark .tree::before,
body.dark .connector::before,
body.dark .connector::after {
  background: #4b5563; /* slate-600 */
}

body.dark .folder.parent {
  color: #e5e7eb;
}

body.dark .folder.child {
  color: #e5e7eb;
}

body.dark .folder.child:hover {
  background: rgba(79, 70, 229, 0.35);
}

body.dark .file-main {
  background: #020617;
}

body.dark .folder-panel h2 {
  color: #e5e7eb;
}

body.dark .exp-card {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.4);
}

body.dark .exp-card h3 {
  color: #e5e7eb;
}

body.dark .exp-card h4,
body.dark .exp-card h4 span {
  color: #cbd5f5;
}

body.dark .exp-card ul {
  color: #e5e7eb;
}

@media (max-width: 50rem) {
  body.dark .file-sidebar {
    background: #020617;
    border-bottom: 0.0625rem solid rgba(148, 163, 184, 0.4);
  }

  body.dark .folder {
    color: #e5e7eb;
  }

  body.dark .folder:hover {
    background: rgba(79, 70, 229, 0.35);
  }
}

body.dark .hero {
  background: linear-gradient(to bottom, #2a2a3c, #1e1e2e);
}

#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

#theme-toggle-ie {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}



/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0056b3;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.navbar ul {
  padding-left: 1.5rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links .active {
  color: #ffdd57;
}



/* Home Page */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background: linear-gradient(to bottom, #e6f1ff, #c8d9ff);
}

.chat-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 500px;
  width: 700px;
}

.headshot {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 80px;
  margin-bottom: 1rem;
  background-color: transparent;
}

.chat-bubble {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
}

.cursor {
  animation: blink 1s infinite;
}

.enter-button button {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.enter-button button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.enter-button .arrow {
  color: black;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  margin-top: 0.5%;
  margin-left: 55%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #d2efb0;
  color: black;
  padding: 20px;
  width: 300px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 50px auto;
  margin-top: 5px;
  margin-left: 210px;
  animation: fadeIn 1s ease-in-out;
}

.modal-content::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -12px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #d2efb0;
}

.close-button {
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: red;
  cursor: pointer;
}

.close-button:hover {
  color: darkred;
}

.modal p {
  margin-top: 10px;
  padding: 0;
  font-size: 1rem;
}

.modal.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}



/* About-Me Page */
.section {
  margin-bottom: 2rem;
  text-align: justify;
}

.section h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.section p {
  margin-bottom: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: black;
}

.section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.about-me-container li {
  margin-left: 2rem;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.headshot-container {
  text-align: center;
  margin: 2rem 0;
  margin-top: -50px;
}

.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.cta-container h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.cta-container p {
  margin-bottom: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  color: black;
}

.cta-container a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cta-container a:hover {
    color: #003366;
}



/* Projects Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

.project-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  height: 500px;
  perspective: 1000px;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 30px;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.project-card:hover .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  background-color: #fff;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.project-card-front {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project-card-front img {
  margin-top: -52px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.project-card-front img {
  margin-top: -52px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.project-card-front h2 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.project-card-back {
  background-color: #ede9e9e9;
  color: #333;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: justify;
  font-family: 'Poppins', sans-serif;
}

.project-card-back h2 {
  font-size: 1.4rem;
  color: #0056b3;
  margin-bottom: 1rem;
}

.project-card-back p {
  font-size: 1rem;
  color: #333;
}

.project-card-back .btn {
  margin-top: 1rem;
  background-color: #0056b3;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease-in-out;
}

.project-card-back .btn:hover {
  background-color: #003366;
}

@media (max-width: 1024px) {
  .projects-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
      grid-template-columns: repeat(1, 1fr);
  }

  .project-card {
      max-width: 90%;
  }
}

.project-card-front img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.button-lt, .button-rt {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.button-lt:hover, .button-rt:hover {
  background-color: #003366;
}



/* Skills Page */
.skill-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1.2em;
  height: auto;
  padding-top: 0rem;
  text-align: center;
  object-fit: contain;
  margin: 0 auto;
  line-height: 1;
}

.section-title {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.skill-card {
  background: #ffffff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}

.skill-card:hover {
  transform: perspective(1000px) rotateY(10deg) translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 2rem;
  text-align: center;
}

.skill-icon {
  font-size: 3rem;
  color: #0056b3;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: #777;
}



/* Experiences Page */
.experiences-header {
  text-align: center;
  margin-bottom: 2rem;
}

.experiences-header .subtitle {
  color: #4b5563;
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.exp-card h3,
.exp-card h4 {
  text-align: left;
}

.exp-card ul {
  text-align: justify;
}

.file-explorer {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(14px);
}

.file-toolbar {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f9fafb 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.7rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #9ca3af;
}

.mac-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
}

.mac-btn {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.mac-btn.close {
  background: #ff5f57;
}

.mac-btn.minimize {
  background: #ffbd2e;
}

.mac-btn.maximize {
  background: #28c840;
}

.mac-btn:hover {
  filter: brightness(1.08);
  cursor: pointer;
  transition: filter 0.15s ease;
}

.file-layout {
  display: flex;
  min-height: 16.25rem;
}

.experiences-container .file-sidebar {
  width: 24%;
  border-right: 1px solid rgba(148, 163, 184, 0.34);
  padding: 1rem 0.9rem 1.1rem;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 45%, #e5e7eb 100%);
}

.experiences-container .folder {
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #374151;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.experiences-container .folder i {
  font-size: 0.95rem;
}

.experiences-container .folder:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #111827;
  transform: translateX(1px);
  box-shadow: 0 3px 8px rgba(148, 163, 184, 0.55);
}

.experiences-container .folder.active {
  background: rgba(37, 99, 235, 0.18);
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25);
  position: relative;
}

.experiences-container .folder.active::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #2563eb, #22c55e);
}

.experiences-container .folder.parent {
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  color: #0f172a;
}

.experiences-container .tree {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.4rem;
}

.experiences-container .tree::before {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0.72rem;
  width: 2px;
  height: 4.9rem; /* adjust if you add/remove child rows */
  background: linear-gradient(to bottom, #9ca3af, transparent);
  transform-origin: top;
  animation: xpTreeGrow 0.6s ease-out forwards;
}

.experiences-container .folder.child {
  display: flex;
  align-items: left;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  cursor: pointer;
  opacity: 0.96;
  border-radius: 999px;
  position: relative;
  font-weight: 600;
  margin: 0.18rem 0;
}

.experiences-container .folder.child i {
  background: #e5edff;
  color: #2563eb;
  border-radius: 999px;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.experiences-container .folder.child::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #9ca3af;
  margin-left: -0.7rem;
  margin-right: 0.05rem;
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4);
  animation: xpNodePulse 2.2s ease-out infinite;
}

.experiences-container .folder.child.active::before {
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
  animation: none;
}

.experiences-container .folder.child.active i {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.experiences-container .connector {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.1rem;
  margin-right: 0.05rem;
  position: relative;
}

.experiences-container .connector::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.55rem;
  width: 2.2rem;
  height: 1px;
  background: #9ca3af;
}

.experiences-container .connector::after {
  content: "";
  position: absolute;
  left: -1rem;
  top: -0.52rem;
  width: 1px;
  height: 1.3rem;
  background: #9ca3af;
}

.experiences-container .folder.child:last-child .connector::after {
  height: 0.7rem;
}

.experiences-container .subfolders {
  overflow: hidden;
  transition: height 0.28s ease;
}

.experiences-container .subfolders.show {
  height: auto;
}

.experiences-container .subfolders:not(.show) {
  height: 0;
}

.file-main {
  flex: 1;
  padding: 1rem 1rem 1.2rem;
  background: #f9fafb;
  position: relative;
}

.folder-panel {
  display: none;
  opacity: 0;
  transform: translateY(4px);
}

.folder-panel.panel-enter {
  animation: fadeInPanel 0.28s ease-out forwards;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-title i {
  font-size: 1rem;
  color: #2563eb;
}

.section-title h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.exp-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
  margin-right: 0.5rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #2563eb, #22c55e);
  opacity: 0.8;
}

.exp-card h3 {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.2rem;
}

.exp-card h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: #4b5563;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.exp-card h4 span {
  font-weight: 500;
  color: #6b7280;
}

.exp-card ul {
  margin-left: 1.2rem;
  font-size: 0.84rem;
  color: #374151;
  padding-left: 0.2rem;
}

.exp-card li + li {
  margin-top: 0.2rem;
}

.folder-panel.panel-enter .exp-card {
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.32s ease-out forwards;
}

.folder-panel.panel-enter .exp-card:nth-of-type(1) { 
  animation-delay: 0.02s; 
}

.folder-panel.panel-enter .exp-card:nth-of-type(2) {
  animation-delay: 0.06s;
}

.folder-panel.panel-enter .exp-card:nth-of-type(3) {
  animation-delay: 0.10s;
}

.folder-panel.panel-enter .exp-card:nth-of-type(4) {
  animation-delay: 0.14s;
}

.folder-panel.panel-enter .exp-card:nth-of-type(5) {
  animation-delay: 0.18s;
}

.folder-panel.panel-enter .exp-card:nth-of-type(6) {
  animation-delay: 0.22s;
}

.folder-panel.panel-enter .exp-card:nth-of-type(7) {
  animation-delay: 0.26s;
}

@keyframes xpTreeGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

@keyframes xpNodePulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4); }
  60%  { transform: scale(1.15);box-shadow: 0 0 0 7px rgba(148, 163, 184, 0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(148, 163, 184, 0); }
}

@media (max-width: 50rem) {
  .experiences-container .file-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    gap: 0.4rem;
    background: #f3f4f6;
  }

  .experiences-container .folder {
    flex: 1;
    justify-content: center;
    margin-bottom: 0;
  }

  .experiences-container .tree {
    padding-left: 0;
    margin-top: 0.4rem;
  }

  .experiences-container .tree::before,
  .experiences-container .connector::before,
  .experiences-container .connector::after,
  .experiences-container .folder.child::before {
    display: none;
  }
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Certifications Page */
.cert-section-subtext {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin-bottom: 2rem;
}

.cert-section-heading {
  font-size: 1.6rem;
  color: #00adb5;
  margin: 30px 0 10px;
}

.cert-text {
  text-align: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin: 0 auto;
}

.cert-card {
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
  width: 100%;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.cert-card .cert-content {
  position: relative;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.cert-card .cert-icon {
  font-size: 5rem;
  color: #00adb5;
  margin-bottom: 1rem;
}

.cert-card h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.cert-card .issuer {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.cert-card p {
  font-size: 0.9rem;
  color: #777;
}

.cert-text a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.cert-text a:hover {
  color: #003366;
}



/* Extra-Curriculars Page */
.extracurriculars-container p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.extracurricular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.extra-item {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.extra-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.extra-icon {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 1rem;
}

.extra-item h2 {
  font-size: 1.5rem;
  color: #0056b3;
  margin-bottom: 0.5rem;
}

.extra-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  text-align: justify;
}



/* Contact Page */
.contact-form-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.contact-container p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: black;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-right: 30px;
}

label {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: black;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid silver;
  border-radius: 10px;
  background: white;
  color: black;
  font-size: 1rem;
  outline: none;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: #cccccc;
}

input:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 5px #ffdd57;
}

.submit-btn {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #28293d;
  background: #ffdd57;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 215, 135, 0.5);
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.notification {
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeInOut 3s ease-in-out;
}

.notification.success {
  background-color: #4caf50;
}

.notification.failure {
  background-color: #f44336;
}

@keyframes fadeInOut {
  0% {
      opacity: 0;
      transform: translateY(10px);
  }
  10%, 90% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateY(10px);
  }
}

@media (max-width: 768px) {
  .contact-container {
      padding: 1.5rem;
  }

  .contact-container h1 {
      font-size: 2rem;
  }

  input, textarea {
      font-size: 0.9rem;
  }

  .submit-btn {
      font-size: 1rem;
  }
}



/* Resume Page */
.resume-container p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.resume-viewer iframe {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.resume-drone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-drone .demo {
  position: relative;
  width: 300px;
  height: 64px;
  padding-left: 70px;
  padding-right: 15px;
  border-radius: 10px;
  background: #007BFF;
  transition: background-color 1s;
  cursor: pointer;
}

.resume-drone .demo:before,
.resume-drone .demo:after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 100%;
  width: 14%;
  height: 6px;
  background: #007BFF;
  transform: scaleX(0);
  transform-origin: 0 100%;
}

.resume-drone .demo:after {
  left: 19%;
  width: 66%;
}

.resume-drone .demo.s--processing {
  background-color: #53e2c2;
  transition-delay: 4.6s;
}

.resume-drone .demo.s--processing:before,
.resume-drone .demo.s--processing:after {
  transform: scaleX(1);
  background-color: #36d09d;
}

.resume-drone .demo.s--processing:before {
  transition: transform 0.6s 1.4s, background-color 1s 4.6s;
}

.resume-drone .demo.s--processing:after {
  transition: transform 2.4169014085s 2.4s, background-color 1s 4.6s;
}

.resume-drone .demo.s--reverting {
  background-color: #007BFF;
  transition: background-color 0.5s 0.96s;
}

.resume-drone .demo.s--reverting:before,
.resume-drone .demo.s--reverting:after {
  opacity: 0;
}

.resume-drone .demo svg {
  overflow: visible;
  fill: none;
  stroke-linejoin: round;
}

.resume-drone .demo-transitionend-listener {
  transition: opacity 6.6s;
}

.resume-drone .demo.s--processing .demo-transitionend-listener {
  opacity: 0;
}

.resume-drone .demo__revert-line {
  position: absolute;
  left: 5%;
  bottom: 100%;
  width: 80%;
  height: 6px;
  background: #53e2c2;
  transform-origin: 0 50%;
  opacity: 0;
}

.resume-drone .demo.s--reverting .demo__revert-line {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 0.864s;
}

.resume-drone .demo__drone-cont {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.resume-drone .demo__drone-cont--takeoff {
  z-index: 2;
  opacity: 0;
}

.resume-drone .demo.s--processing .demo__drone-cont--takeoff {
  opacity: 1;
  transform: translateY(-70px);
  transition: transform 0.8s, opacity 0.2s;
  transition-delay: 1.2s;
}

.resume-drone .demo.s--processing .demo__drone-cont--shift-x {
  transition: transform 2.6s 2.4s;
  transform: translateX(213px);
}

.resume-drone .demo.s--processing .demo__drone-cont--landing {
  transform: translateY(24px);
  transition: transform 0.3s 5s;
}

.resume-drone .demo__drone {
  position: absolute;
  left: 16px;
  top: -12px;
  width: 68px;
  height: 56px;
  stroke: #000;
  stroke-width: 2px;
  fill: none;
}

@keyframes tiltAnim {
  8%, 24% { transform: rotate(0); }
  35%, 70% { transform: rotate(8deg); }
  85% { transform: rotate(-4deg); }
  95%, 100% { transform: rotate(0); }
}

.resume-drone .demo.s--processing .demo__drone {
  transform-origin: 50% 100%;
  animation: tiltAnim 3.8s 1.2s;
}

.resume-drone .demo.s--processing .demo__drone-leaving {
  transform: translate(150px, -150px) rotate(20deg) scale(0.3);
  opacity: 0;
  transition: transform 1.1s 5.5s, opacity 0.55s 6.05s;
}

.resume-drone .demo__drone-arm {
  --rotation: 0deg;
  transform-origin: 68px 56px;
  transform: rotate(var(--rotation));
}

.resume-drone .demo__drone-arm--2 {
  transform: scaleX(-1) rotate(var(--rotation));
}

.resume-drone .demo.s--processing .demo__drone-arm {
  --rotation: 25deg;
  transition: transform 0.3s 5.2s;
}

.resume-drone .demo__drone-green {
  fill: #61d4f1;
}

.resume-drone .demo.s--processing .demo__drone-green {
  fill: #53e2c2;
  transition: fill 1s 4.6s;
}

.resume-drone .demo__drone-yellow {
  fill: #ecb400;
}

.resume-drone .demo__drone-package {
  stroke-width: 4px;
}

@keyframes revertAnim {
  40%, 45% { transform: translate(-426px, 0); }
  75% { transform: translate(-426px, -100px); }
  100% { transform: translate(-426px, 100px); }
}

.resume-drone .demo.s--reverting .demo__drone-package {
  opacity: 0;
  transition: opacity 0s 2s;
  animation: revertAnim 2s;
}

.resume-drone .demo__circle {
  position: absolute;
  left: 30px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: #3dc1da;
}

.resume-drone .demo.s--processing .demo__circle {
  background-color: #53e2c2;
  transition: background-color 1s;
  transition-delay: 4.6s;
}

.resume-drone .demo.s--reverting .demo__circle {
  background-color: #3dc1da;
  transition: background-color 0.5s 0.96s;
}

.resume-drone .demo__circle-inner {
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.resume-drone .demo__circle-package {
  width: 14px;
  height: 18px;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linecap: round;
}

.resume-drone .demo.s--processing .demo__circle-package {
  transform: translateY(-70px);
  transition: transform 0.8s 1.2s;
}

.resume-drone .demo.s--reverting .demo__circle-package {
  transform: translateY(0);
  transition: transform 0.16s 1.6s;
}

.resume-drone .demo__circle-grabbers {
  --grabY: 0px;
  --grabRotate: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.resume-drone .demo__circle-grabbers:before,
.resume-drone .demo__circle-grabbers:after {
  content: "";
  position: absolute;
  right: 5px;
  top: -12px;
  width: 14px;
  height: 8px;
  border: 2px solid #000;
  border-left: none;
  border-bottom: none;
  transform: translateY(var(--grabY)) rotate(var(--grabRotate));
  transition: transform 0.8s;
}

.resume-drone .demo__circle-grabbers:before {
  right: auto;
  left: 5px;
  transform: translateY(var(--grabY)) scaleX(-1) rotate(var(--grabRotate));
}

@keyframes grabAnim {
  40%, 59.999% {
    --grabY: 15px;
    --grabRotate: 55deg;
  }
  60%, 100% {
    --grabY: -55px;
    --grabRotate: 55deg;
  }
}

.resume-drone .demo.s--processing .demo__circle-grabbers {
  animation: grabAnim 2s forwards;
}

.resume-drone .demo__circle-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  stroke: #fff;
  stroke-width: 2px;
}

.resume-drone .demo__circle-progress-line {
  stroke-dasharray: 125.6813812256, 125.6813812256;
  stroke-dashoffset: 125.6813812256;
}

.resume-drone .demo.s--processing .demo__circle-progress-line {
  stroke-dashoffset: 0;
  transition: all 0.5s 4.9s;
}

.resume-drone .demo.s--reverting .demo__circle-progress-line {
  stroke-dashoffset: 125.6813812256;
  transition: all 0.5s 0.96s;
}

.resume-drone .demo__circle-progress-checkmark {
  stroke-dasharray: 21.2132034302, 21.2132034302;
  stroke-dashoffset: 21.2132034302;
}

.resume-drone .demo.s--processing .demo__circle-progress-checkmark {
  stroke-dashoffset: 0;
  transition: all 0.5s 4.9s;
}

.resume-drone .demo.s--reverting .demo__circle-progress-checkmark {
  stroke-dashoffset: 21.2132034302;
  transition: all 0.5s 0.96s;
}

.resume-drone .demo__text-fields {
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 20px;
  letter-spacing: 1.3px;
}

.resume-drone .demo__text {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  pointer-events: none;
}

@keyframes textAnimation {
  20%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.resume-drone .demo__text--step-0 {
  opacity: 1;
  transform: translateY(0);
}

.resume-drone .demo.s--processing .demo__text {
  transition: all 0.4s;
}

.resume-drone .demo.s--processing .demo__text--step-0 {
  opacity: 0;
  transform: translateY(-20px);
}

.resume-drone .demo.s--processing .demo__text--step-1 {
  animation: textAnimation 2s 0s;
}

.resume-drone .demo.s--processing .demo__text--step-2 {
  animation: textAnimation 2s 1.6s;
}

.resume-drone .demo.s--processing .demo__text--step-3 {
  animation: textAnimation 2s 3.2s;
}

.resume-drone .demo.s--processing .demo__text--step-4 {
  transition-delay: 4.8s;
  transform: translateY(0);
  opacity: 1;
}

.resume-drone .demo.s--reverting .demo__text--step-0 {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s 1s;
}

.resume-drone .demo.s--reverting .demo__text--step-4 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s 0.8s;
}

.resume-drone .demo__text-dots {
  letter-spacing: -0.5px;
  font-size: 26px;
}

@keyframes dotAnimation {
  10%, 90% { opacity: 0; }
  40%, 60% { opacity: 1; }
}

.resume-drone .demo__text-dots span {
  opacity: 0;
  animation: dotAnimation 1.2s 0.4s infinite;
}

.resume-drone .demo__text-dots:before,
.resume-drone .demo__text-dots:after {
  content: ".";
  opacity: 0;
}

.resume-drone .demo__text-dots:before {
  animation: dotAnimation 1.2s infinite;
}

.resume-drone .demo__text-dots:after {
  animation: dotAnimation 1.2s 0.8s infinite;
}



/* End Page */
.chatt-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 500px;
  width: 700px;
}

.chatt-bubble {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
}

.headshott {
  width: 180px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 40px;
  margin-bottom: 1rem;
  background-color: transparent;
}



/* Footer */
.small-footer {
  background: #0056b3;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #ffdd57;
}



/* Large Devices (Desktops) */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
  }

  .nav-links {
      display: none;
  }

  .nav-links.show {
      display: block;
  }

  .projects-grid {
      grid-template-columns: 1fr;
  }

  .project-card {
      width: 100%;
  }

  body {
      font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .projects-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}
