/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: rgb(250, 250, 250);
  --bg-menu: #ffffff;
  --text-primary: #000000;
  --text-secondary: rgb(85, 85, 85);
  --text-tertiary: rgb(100, 100, 100);
  --text-muted: rgb(120, 120, 120);
  --text-heading: rgb(30, 30, 30);
  --border-color: rgb(163, 163, 163);
  --border-dark: rgb(53, 53, 53);
  --btn-primary-bg: rgb(53, 53, 53);
  --btn-primary-text: #ffffff;
  --btn-hover-bg: rgb(0, 0, 0);
  --btn-hover-border: rgb(255, 255, 255);
  --link-hover: grey;
  --link-underline: rgb(181, 181, 181);
  --icon-filter: none;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-card: #1e1e1e;
  --bg-card-alt: #252525;
  --bg-menu: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-tertiary: #909090;
  --text-muted: #808080;
  --text-heading: #d0d0d0;
  --border-color: #404040;
  --border-dark: #555555;
  --btn-primary-bg: #e0e0e0;
  --btn-primary-text: #121212;
  --btn-hover-bg: #ffffff;
  --btn-hover-border: #333333;
  --link-hover: #aaaaaa;
  --link-underline: #555555;
  --icon-filter: invert(0.85);
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: large;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 300ms ease, color 300ms ease;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--text-secondary);
}

h1, h2, h3 {
  color: var(--text-primary);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  text-decoration-color: var(--bg-primary);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--link-underline);
}

.logo {
  font-size: 2rem;
  color: var(--text-primary);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-menu);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.profile-pic {
  border-radius: 50%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 57% 30%;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

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

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: var(--border-dark) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-color-1:hover {
  background: var(--btn-hover-bg);
}

.btn-color-2 {
  background: none;
  color: var(--text-primary);
}

.btn-color-2:hover {
  border: var(--btn-hover-border) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 45% 40%;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--bg-card);
  border-radius: 2rem;
  border: var(--border-dark) 0.1rem solid;
  border-color: var(--border-color);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* AI VISION SECTION */

#ai-vision {
  position: relative;
}

.vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.vision-card {
  padding: 2rem;
  background: var(--bg-card-alt);
  border-radius: 1.5rem;
  border: var(--border-color) 0.1rem solid;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

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

.vision-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.vision-card p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* TIMELINE */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.65rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-primary);
}

.timeline-marker.current {
  background: var(--text-primary);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--text-primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* SPEAKING SECTION */

#speaking {
  position: relative;
}

.color-container {
  border-color: var(--border-color);
  background: var(--bg-card-alt);
}

.speaking-banner {
  display: block;
  width: 100%;
  height: 440px;
  margin-top: 2rem;
  border-radius: 2rem;
  object-fit: cover;
  object-position: 50% 15%;
}

.speaking-card {
  text-align: left;
  padding: 2rem;
}

.speaking-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.speaking-venue {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.speaking-desc {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* INSIGHTS SECTION */

#insights {
  position: relative;
}

.insights-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.insight-card {
  display: block;
  padding: 2rem;
  background: var(--bg-card-alt);
  border-radius: 1.5rem;
  border: var(--border-color) 0.1rem solid;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.insight-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: var(--border-color) 1px solid;
  border-radius: 1rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.insight-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* RESEARCH SECTION */

#research {
  position: relative;
}

.research-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.research-stats {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.publication-item {
  padding: 1.5rem 2rem;
  background: var(--bg-card-alt);
  border-radius: 1rem;
  border: var(--border-color) 0.1rem solid;
}

.publication-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.publication-authors {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.publication-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: var(--border-dark) 0.1rem solid;
  border-color: var(--border-color);
  background: var(--bg-card-alt);
  margin: 2rem auto;
  padding: 0.5rem;
}

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

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

.contact-icon {
  cursor: default;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* DARK MODE TOGGLE */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 300ms ease;
}

.theme-toggle:hover {
  transform: scale(1.2);
}

/* ICON INVERSION FOR DARK MODE */

.icon {
  filter: var(--icon-filter);
  transition: filter 300ms ease;
}

.profile-pic,
.about-pic {
  filter: none;
}

/* BRAND REWORK (2026-10) */

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.hero-sub {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  font-weight: 400 !important;
  line-height: 1.6;
}

#socials-container a {
  display: inline-flex;
  color: var(--text-primary);
}

#socials-container a:hover {
  text-decoration: none;
}

svg.icon {
  width: 2rem;
  height: 2rem;
  filter: none;
}

.vision-card .insight-tag {
  margin-bottom: 0.75rem;
}

.see-all {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
}

.about-p2 {
  margin-top: 1rem;
}

.text-container p {
  line-height: 1.7;
}

.contact-lede {
  text-align: center;
  margin-top: 1rem;
}

.contact-info-upper-container {
  gap: 1rem;
}

.contact-info-container svg {
  color: var(--text-primary);
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
