html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-offset: 90px;
  --current-role-accent: #3bd6a6;
  --current-role-accent-soft: rgba(59, 214, 166, 0.18);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #161513;
  color: #c5c5c5;
}

a {
  text-decoration: none;
}

body.smooth-scroll {
  height: 100vh;
  overflow: hidden;
}

#scroll-container {
  min-height: 100vh;
  padding-top: var(--header-offset);
}

body.smooth-scroll #scroll-container {
  height: 100vh;
  overflow: hidden;
}

section {
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

/* Header and Navigation */
header {
  background-color: #222;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 20px;
  position: relative;
  align-items: center;
}
.logo img {
  width: 80px;
}
.navbar {
  display: flex;
  flex-wrap: wrap;
}
.navbar div {
  padding: 18px 16px;
}
.navbar a {
  color: #fff;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  width: 44px;
  height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(255, 134, 96, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.menu-toggle i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.menu-toggle .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.nav-toggle:checked + .menu-toggle .icon-open,
header.nav-open .menu-toggle .icon-open {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.nav-toggle:checked + .menu-toggle .icon-close,
header.nav-open .menu-toggle .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #ff8660;
  transition: width 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #ff8660;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switcher button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s;
}

.language-switcher button:hover {
  color: #ff8660; /* Accent color on hover */
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Avatar */
.avatar img {
  width: 100%;
  max-width: 251px;
  border-radius: 50%;
}

/* About Section */
.about {
  text-align: center;
}
.about-text {
  width: 100%;
  max-width: 652px;
  margin: 30px auto;
}
.about-text h1 {
  font-size: 55px;
  line-height: 1;
  color: #fff;
}
.about-text h1 > span {
  background: var(
    --Primary-Gradient,
    linear-gradient(116deg, #ff8660 50%, #9a33ff 95.51%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p {
  font-size: 18px;
  margin-top: 30px;
}
.gradient-text {
  background: var(
    --Primary-Gradient,
    linear-gradient(116deg, #ff8660 50%, #9a33ff 95.51%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-btn {
  margin-top: 30px;
}
.btn-primary,
.btn-secondary {
  width: 195px;
  height: 64px;
  border-radius: 50px;
  font-size: 22px;
  margin-right: 20px;
  padding: 10px;
  transition: background 0.3s, color 0.3s;
}
.btn-primary {
  border: 2px solid #fff;
  color: #161513;
  background: #fff;
}
.btn-secondary {
  background: none;
  border: 2px solid #fff;
  color: #fff;
}
.btn-primary:hover {
  background: transparent;
  color: var(--Primary-Color, #fff);
  cursor: pointer;
}
.btn-secondary:hover {
  background: #fff;
  color: #161513;
  cursor: pointer;
}
.btn-primary,
.btn-secondary {
  transition: background 0.3s, color 0.3s, transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.orange-gradient {
  background: linear-gradient(180deg, #ff8660 0%, #d5491d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Experience Section */
.experience-with {
  text-align: center;
}
.experience-with h2 {
  font-size: 20px;
}
.experience-with-lang {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 50px auto;
  justify-content: space-between;
}
.experience-with-lang img {
  width: 42px;
  cursor: pointer;
}

/* Headings */
.primary-heading {
  text-align: center;
  font-size: 35px;
}

.sub-heading {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #fff;
  text-align: left;
}

/* Now Section */
.now-card {
  margin-top: 30px;
  padding: 24px;
  border-radius: 16px;
  background: #1f1f1f;
  border: 1px solid #2d2d2d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  line-height: 1.6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.now-card p + p {
  margin-top: 12px;
}

.now-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.now-meta {
  font-size: 0.9rem;
  color: #9c9c9c;
}

/* Skills Section */
.skills-rows {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.skills-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-row:last-child {
  border-bottom: none;
}

.skills-label {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.skill-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2a2a2a, #1c1c1c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.skill-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ff8b6b 0%, #ffb199 45%, #a24bff 100%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.skill-chip span {
  position: relative;
  z-index: 2;
}

.skill-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.skill-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 134, 96, 0.35),
    0 0 28px rgba(154, 51, 255, 0.25);
}

.skill-chip:hover::before {
  opacity: 0.85;
}

.skill-chip:hover::after {
  opacity: 0.25;
}

.skill-chip:hover span {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 134, 96, 0.6);
}

/* Projects Section */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px 0;
}

.project-item {
  position: relative;
  background: #2a2a2a;
  margin: 20px;
  border-radius: 18px;
  overflow: hidden; /* ensures the overlay and image follow the rounded corners */
  flex: 1 1 calc(50% - 40px);
  max-width: calc(50% - 40px);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.project-item img {
  width: 100%;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0px 25px;
  padding-top: 25px;
  padding-bottom: 20px;
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.project-title {
  font-size: 20px;
  font-weight: bold;
}

.link-icon {
  font-size: 20px;
}

/* Experience Details */
.heading-experience {
  background: var(
    --Blue-Gradient,
    linear-gradient(180deg, #5badff 0%, #1373d1 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.experience-item {
  padding: 30px 0;
  margin-bottom: 20px;
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.experience-left {
  display: flex;
  align-items: center;
}
.company-logo {
  width: 40px;
  height: auto;
  margin-right: 10px;
  border-radius: 50px;
}
.experience-info {
  display: flex;
  flex-direction: column;
}
.date {
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.experience-item-current .date {
  background: linear-gradient(
    135deg,
    rgba(91, 173, 255, 0.18) 0%,
    var(--current-role-accent-soft) 100%
  );
  border-color: rgba(59, 214, 166, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.present-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ebfff7;
  font-weight: 700;
}

.present-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--current-role-accent);
  box-shadow: 0 0 0 4px rgba(59, 214, 166, 0.16),
    0 0 12px rgba(59, 214, 166, 0.45);
}

.experience-title {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin-left: 10px;
}


.academic-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* space between items */
  margin-top: 20px;
}

.academic-item {
  background: #2a2a2a;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.academic-item .role {
  font-weight: bold;
  font-size: 18px;
  color: #ff8660; /* accent color */
}

.academic-item .event {
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
}

.academic-item .location {
  font-size: 14px;
  color: #c5c5c5;
}


/* CONTACT SECTION */
#contact {
  margin-top: 60px;
}

.primary-heading {
  font-size: 35px;
  margin-bottom: 20px;
  color: #fff; /* Adjust as needed */
}

.contact-description {
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #c5c5c5;
}

.contact-email {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.email-icon {
  font-size: 1.2rem;
  color: #fff; /* or your preferred color */
  margin-right: 10px;
}

.email-link {
  font-size: 1rem;
  color: #c5c5c5;
  text-decoration: none;
  transition: color 0.3s;
}

.email-link:hover {
  color: #fff;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
}

.social-links a {
  color: #fff; /* icon color */
  font-size: 1.5rem;
  margin-right: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #fff; /* icon hover color */
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff8660;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 930px) {
  header {
    background: transparent;
    box-shadow: none;
  }

  header.nav-open {
    background: #222;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }

  nav {
    flex-direction: row;
    justify-content: flex-end;
    padding: 10px 16px;
  }

  /* Adjust language switcher */
  .language-switcher {
    display: none;
  }

  .language-switcher button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #222;
    padding: 12px 0 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    z-index: 10;
    transition: max-height 0.3s ease, opacity 0.3s ease,
      transform 0.3s ease;
  }

  header.nav-open .navbar,
  .nav-toggle:checked ~ .navbar,
  .menu-toggle[aria-expanded="true"] + .navbar,
  .navbar.is-open {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar div {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }

  .container {
    padding: 40px 10px;
  }

  .about-text h1 {
    font-size: 40px;
  }

  .about-text p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 160px;
    height: 50px;
    font-size: 18px;
  }

  .projects {
    flex-direction: column;
    align-items: center;
  }

  .project-item {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0;
  }

  .experience-title {
    font-size: 18px;
  }

  /* For experience items and date text */
  .experience-title-container .date,
  .date {
    font-size: 14px;
  }

  .primary-heading {
    font-size: 28px;
  }

  .sub-heading {
    font-size: 22px;
  }
  .academic-list li {
    font-size: 16px;
  }

  .date {
    font-size: 0.85em;
    padding: 5px 10px;
  }

  .skills-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-label {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-item,
  .academic-item,
  .now-card,
  .btn-primary,
  .btn-secondary,
  .skill-chip {
    transition: none;
  }
}
