:root {
  --bg-dark: #0f2a44;
  /* --bg-dark: #0f172a; */
  --bg-light: #f8fafc;
  --accent: #22c55e;
  --text: #fff;
  /* --text: #e5e7eb; */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* body {
    background-color: #fafafa;
} */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.5rem 0;
  background: var(--bg-dark);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo a {
  font-size: 2rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
}

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

.nav-links li {
  margin-left: 2rem;
  font-size: 1.6rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.nav-links a:hover {
  color: #555;
  text-decoration: underline;
}

/* Hamburger Styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

/* Animation for the bars */
.bar {
  width: 25px;
  height: 3px;
  /* background-color: white; */
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease-in-out; /* Smooth movement */
}

/* Transform Top Bar */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

/* Hide Middle Bar */
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

/* Transform Bottom Bar */
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Profile Section Container */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 7rem 10%;
  min-height: 80vh;
  background: var(--bg-dark);
  color: var(--text);
}

/* Circular Image */
.profile-image img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  /* border: 4px solid var(--accent); */
}

/* Text Content */
.profile-text {
  text-align: center;
}

.intro {
  font-size: 1.2rem;
  color: var(--text);
}

.name {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.role {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Button Styling */
.btn-cv {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cv:hover {
  background: transparent;
  color: var(--accent);
}

/* Social Links */
.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links img {
  background: var(--bg-dark);
  transition: 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.icon {
  cursor: pointer;
  width: 2.5rem;
  background: var(--bg-light);
  border-radius: 50%;
}

.about-section {
  padding: 4rem 10%;
  text-align: center;
}

.section-text-p1 {
  color: #555;
}

.title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Container for the two boxes */
.about-containers {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Individual Box Styling */
.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--bg-light);
  border-radius: 2rem;
  border: 1px solid #e3e3e3;
  text-align: center;
  transition: 0.3s ease;
  background-color: var(--bg-dark);
  color: var(--text);
}

.details-container:hover {
  border-color: #000;
}

.details-container h3 {
  margin-bottom: 0.5rem;
}

.details-container p {
  line-height: 1.4;
}

/* Explanation Text */
.text-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #444;
  font-size: 1.1rem;
}

#skills {
  /* max-width: 1050px; */
  /* margin: 0 auto 60px auto; */
  padding: 60px 150px;
  font-family: Arial, sans-serif;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text);
}

#skills h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Skill container */
.skill-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  justify-items: center;
}

/* Skill pill */
.skill-box span {
  width: 100%;
  max-width: 140px; /* controls 5–6 per row */
  padding: 12px;
  border-radius: 1rem;
  background: #555;
  /* background: #1f2933; */
  font-weight: 500;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-box span:hover {
  border-color: #000;
}

/* Experience section */
.experience-section {
  padding: 4rem 10% 6rem 10%;
  background: var(--bg-light);
}

.section-text-p1 {
  text-align: center;
}

.experience-section .title {
  text-align: center;
}

.experience-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.exp-card {
  background: var(--bg-dark);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
  border-left: 5px solid var(--accent); /* Dark accent for the role */
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: #999;
}

.exp-role {
  font-size: 1.8rem;
  color: var(--text);
}

.exp-company {
  font-size: 1.2rem;
  color: #999;
  margin: 0rem 0;
}

.exp-location {
  font-size: 0.95rem;
  color: #888;
  font-style: italic;
}

.exp-date {
  /* background: #333; */
  /* color: white; */
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Bullet Points */
.exp-points {
  list-style: none;
  margin-top: 1rem;
}

.exp-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.8px;
  color: var(--text);
}

.exp-points li::before {
  content: "▹"; /* Elegant arrow bullet */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.project-section {
  padding: 4rem 10%;
  background: var(--bg-dark);
  color: var(--text);
}

.category-title {
  margin: 3rem 0 1.5rem;
  font-size: 1.8rem;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

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

.project-card {
  border-radius: 20px;
  border: 1px solid black;
  padding: 1.5rem;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background: var(--bg-light); */
  background: #f0f0f0;
}

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

.project-info h3 {
  margin-bottom: 0.8rem;
  color: black;
}

.project-info p {
  font-size: 0.9rem;
  color: #222;
  margin-bottom: 1rem;
  height: 50px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tags span {
  background: var(--bg-dark);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.project-btns {
  display: flex;
  gap: 10px;
}

.btn-project {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  text-decoration: none;
  color: black;
  background: var(--accent);
  font-weight: 500;
  transition: 0.3s;
}

.btn-project.secondary {
  background: transparent;
  color: black;
}

.btn-project:hover {
  background: var(--bg-dark);
  color: var(--accent);
}

.extra-projects {
  display: none; /* Initial state */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.extra-projects.show {
  display: grid; /* Matches your projects-grid display */
  opacity: 1;
  margin-top: 2rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 4rem;
}

.btn-show {
  padding: 10px 25px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-show:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.rotated {
  transform: rotate(180deg);
}

/* Contact Section */
.contact-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 75vh;
  padding: 4rem 10%;
  background-color: var(--bg-light);
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid black;
  background: var(--bg-dark);
  margin: 2rem auto;
  padding: 0.5rem;
  gap: 1rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: 1.2rem;
}

.contact-info-container a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.contact-info-container a:hover {
  color: #555;
  text-decoration: underline;
}

.contact-icon {
  cursor: default;
  height: 2.5rem;
  background: var(--bg-dark);
  /* width: 2.5rem;
  height: 2.5rem; */
}

.mail-icon {
  width: 3rem;
  height: 3rem;
}

/* Footer Section */
footer {
  /* height: 26vh; */
  /* margin: 0 1rem; */
  padding: 2rem 1rem;
  background-color: var(--bg-dark);
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer p {
  text-align: center;
  color: #555;
}

.footer-links {
  display: flex;
  list-style: none;
}

.footer-links li {
  margin-left: 2rem;
  font-size: 1.6rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.footer-links a:hover {
  color: #555;
  text-decoration: underline;
}

.badge-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Badge should not take layout space */
.badge-wrapper .LI-profile-badge {
  position: absolute;              /* 👈 key fix */
  top: 100%;                        /* show below text */
  left: 0;
  margin-top: 0px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.badge-wrapper:hover .LI-profile-badge {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hover-text {
  font-weight: 600;
  color: #0a66c2;
}


/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 60px; /* Adjust based on navbar height */
    background: var(--bg-dark);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0;
    display: none; /* Hidden by default */
  }

  .nav-links.active {
    display: flex; /* Show when hamburger is clicked */
  }

  .nav-links li {
    margin-left: 0;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

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

  .social-links {
    justify-content: center;
  }

  .profile-image img {
    width: 200px;
    height: 200px;
  }

  .about-containers {
    flex-direction: column;
  }

  .about-section {
    padding: 4rem 5%;
  }

  .experience-section {
    padding: 4rem 5%;
  }

  .exp-header {
    flex-direction: column;
  }

  .exp-date {
    align-self: flex-start;
  }

  .project-section {
    padding: 4rem 5%;
  }

  .contact-info-upper-container {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
