@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Charter:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Modern Color Palette - CSS Custom Properties */
:root {
  /* Primary Colors - Blue */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Accent Colors */
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-orange: #f59e0b;
  --accent-orange-light: #fbbf24;

  /* Neutral Colors - Slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic Colors */
  --text-primary: var(--slate-800);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  --text-light: var(--slate-400);
  
  --bg-primary: #ffffff;
  --bg-secondary: var(--slate-50);
  --bg-tertiary: var(--slate-100);
  
  --border-light: var(--slate-200);
  --border-medium: var(--slate-300);
  --border-dark: var(--slate-400);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  --gradient-secondary: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  --gradient-accent: linear-gradient(135deg, var(--accent-emerald), var(--accent-orange));
  --gradient-subtle: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 87, 34, 0.08));
  --gradient-warm: radial-gradient(ellipse at top left, rgba(188, 80, 80, 0.371), transparent 30%), radial-gradient(ellipse at bottom right, rgba(176, 126, 210, 0.3), transparent 30%);
}
/* Tiempos Text Font Family */
@font-face {
  font-family: "Tiempos Text";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/test-tiempos-text-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: italic;
  font-weight: 400;
  src: url("assets/fonts/test-tiempos-text-regular-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/test-tiempos-text-medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: italic;
  font-weight: 500;
  src: url("assets/fonts/test-tiempos-text-medium-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/test-tiempos-text-semibold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: italic;
  font-weight: 600;
  src: url("assets/fonts/test-tiempos-text-semibold-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/test-tiempos-text-bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Text";
  font-style: italic;
  font-weight: 700;
  src: url("assets/fonts/test-tiempos-text-bold-italic.woff2") format("woff2");
  font-display: swap;
}

/* Athletics Font Family */
@font-face {
  font-family: "Athletics";
  font-style: normal;
  font-weight: 300;
  src: url("assets/fonts/Athletics-Light-Trial.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Athletics";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/Athletics-Regular-Trial.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Athletics";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/Athletics-Medium-Trial.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Athletics";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/Athletics-Bold-Trial.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Athletics";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/Athletics-Bold-Trial.otf") format("opentype");
  font-display: swap;
}

/* Reset */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  background: var(--gradient-secondary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, a, code, pre, ol, ul, li {
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  font-size: 18px; /* 1.125rem - better readability */
  font-family: "Athletics", sans-serif;
}

a {
  text-underline-offset: 1px;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
a:hover {
  color: inherit;
}

b {
  font-weight: 600;
}

em {
  font-style: italic;
}

sub {
  font-weight: inherit;
  font-size: 0.65em;
  position: relative;
  top: 0.3em;
}

sup {
  font-weight: inherit;
  font-size: 0.65em;
  position: relative;
  top: -0.5em;
}

hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgb(0, 0, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
hr.hard {
  border-top: 1px solid rgba(0, 0, 0, 0.5);
}
hr.soft {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

img {
  width: 100%;
  margin: 0 auto;
  display: block;
}

video {
  width: 100%;
  margin: 0 auto;
  display: block;
}

svg {
  width: 100%;
}

.container {
  padding-right: calc(6vw - (100vw - 100%));
  padding-left: 6vw;
  flex: 1;
}

::-moz-selection {
  color: white;
  background: #353535;
}

::selection {
  color: white;
  background: #353535;
}

/* Blog specific styles */
.blog {
  background: var(--gradient-warm);
  padding: 0.5vh 0;
}

.blog-title {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-row: 25vh;
  column-gap: 3vw;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5vh 0;
  margin-top: 2vh;
}

.blog-intro .title {
  font-family: "Tiempos Text", serif;
  font-size: 2rem; /* 32px - smaller title */
  font-weight: 400;
  color: var(--text-primary);
  padding: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8vh;
}

.blog-intro .author {
  padding: 0;
  font-family: "Athletics", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1.125rem; /* 18px - better readability */
  margin-bottom: 0vh;
  line-height: 1.5;
}

.blog-intro .author.location {
  margin-bottom: 6.5vh;
}

.blog-intro .abstract {
  font-family: "Athletics", sans-serif;
  font-weight: 400;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem; /* 16px - smaller abstract text */
  margin-bottom: 2vh;
}

.blog-intro div {
  margin-top: 4vh;
}

.blog-intro .button {
  font-family: "Athletics", sans-serif;
  font-size: 0.75rem; /* 12px - small but readable */
  font-weight: 500;
  padding: 12px 9px !important;
  border: none;
  background: rgba(174, 174, 174, 0.8);
  color: var(--text-primary);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  line-height: 1.2 !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  height: auto !important;
  min-height: unset !important;
  margin: 0 !important;
}

.blog-intro .button:hover {
  background: rgba(220, 220, 220, 0.9);
  color: var(--text-primary);
}

.blog-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5vh 0;
}

.blog-cover img {
  width: 80%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  margin-top: 2.5vh;
  margin-bottom: 0.0vh;
}

.info {
  margin-top: 0;
}

.info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 0.1vh;
  width: 100%;
  justify-content: center;
}

.info .email {
  font-family: "Athletics", sans-serif;
  font-size: 0.875rem; /* 14px - better readability */
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0vh;
  width: 100%;
  font-weight: 400;
}


.button {
  font-family: "Athletics", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  transition: all 0.2s ease;
  border: none;
  flex: 1;
  min-height: 50px;
  max-width: 60px;
}

.button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-500);
}


/* Main content styles */
.blog.main {
  background: transparent;
  padding: 0.5vh 5vw;
  margin-bottom: 0.8vh;
}

.blog.main.first {
  margin-top: 2vh;
}

.blog.main h1 {
  font-family: "Tiempos Text", serif;
  font-size: 2rem; /* 32px - clear section breaks */
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1.2vh;
  line-height: 1.2;
  padding-bottom: 0.5vh;
  border-bottom: 2px solid #f0f0f0;
}

.blog.main h2 {
  font-family: "Tiempos Text", serif;
  font-size: 1.5rem; /* 24px - project/company names */
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.8vh;
  line-height: 1.3;
}

.blog.main h3 {
  font-family: "Tiempos Text", serif;
  font-size: 1.25rem; /* 20px - subsections */
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.6vh;
  line-height: 1.3;
}

.blog.main .text {
  font-size: 1.125rem; /* 18px - better readability */
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5vh;
  font-weight: 400;
}

.blog.main.gray {
  background-color: #f8f9fa91;
}

.blog.main.extra-large {
  max-width: 1400px;
  margin: 0 auto;
}

.blog.main.large {
  max-width: 1200px;
  margin: 0 auto;
}

/* Research intro text */
.research-intro {
  margin: 2rem 0;
  padding: 0 1rem;
}

.research-intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

/* Project cards */
.project-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2vw;
  padding: 1.5vh 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5vh;
}

.project-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img {
  width: 100%;
  height: 80;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-img video {
  width: 100%;
  height: 80;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Video aspect ratio classes */
.project-img.video-square {
  aspect-ratio: 1 / 1;
  width: 85%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.project-img.video-square video,
.project-img.video-square img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.project-img.video-16-9 {
  aspect-ratio: 16 / 9;
  height: auto;
}

.project-img.video-16-9 video,
.project-img.video-16-9 img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.project-img.video-4-3 {
  aspect-ratio: 4 / 3;
  height: auto;
}

.project-img.video-4-3 video,
.project-img.video-4-3 img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.project-img.video-3-2 {
  aspect-ratio: 3 / 2;
  height: auto;
}

.project-img.video-3-2 video,
.project-img.video-3-2 img {
  aspect-ratio: 3 / 2;
  height: auto;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.5vh;
}

/* Video thumbnail with play button */
.video-thumbnail {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  gap: 2px;
}

.play-button::after {
  content: "Play Demo";
  font-family: "Athletics", sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1;
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-button i {
  font-size: 1.1rem;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 80vw;
  height: 60vh;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.video-modal-close:hover {
  color: #ccc;
}

/* Responsive video modal */
@media screen and (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    height: 50vh;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .play-button::after {
    font-size: 0.4rem;
  }
}

.project-title,
h3.project-title,
.blog.main .project-title {
  font-family: "Tiempos Text", serif;
  font-size: 1.25rem !important; /* 20px - slightly smaller project names */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5vh;
}

.project-authors {
  color: var(--text-secondary);
  font-size: 0.875rem; /* 14px - smaller paper authors */
  line-height: 1.4;
  font-weight: 400;
}

.project-authors strong {
  font-weight: 600 !important;
  color: var(--text-primary);
}

.project-venue {
  font-family: "Athletics", sans-serif;
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 1rem; /* 16px - more prominent venues */
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 1vh;
}

.project-link {
  font-family: "Athletics", sans-serif;
  font-size: 0.9rem;
  color: var(--primary-500);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.project-link:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* News section */
.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.news-timeline {
  position: relative;
  padding-left: 2vw;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ddd;
  border-radius: 2px;
}

.news-item {
  display: flex;
  gap: 2vw;
  padding: 0.8vh 0;
  margin-bottom: 0.5vh;
  position: relative;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-toggle {
  margin-top: 1vh;
  text-align: left;
  position: relative;
  padding-left: 0;
}

.news-toggle a {
  font-family: "Athletics", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.news-toggle a:hover {
  color: var(--text-muted);
}

.news-date {
  font-family: "Athletics", sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 120px;
  font-size: 0.875rem; /* 14px - better readability */
}

.news-content {
  font-family: "Athletics", sans-serif;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
  font-size: 1rem; /* 16px - better readability */
  font-weight: 400;
}

/* Experience section */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.experience-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2vw;
  padding: 1.5vh 0;
  border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.7rem;
  text-align: center;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
}

.experience-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.experience-company {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.experience-duration {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5vh;
  font-weight: 300;
}

.experience-description {
  list-style: none;
  padding-left: 0;
}

.experience-description li {
  color: var(--text-muted);
  margin-bottom: 0.3vh;
  position: relative;
}

/* Work Experience Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5vh 2vw;
  margin-top: 1vh;
}

.work-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.8vh 1.8vw;
  display: flex;
  flex-direction: row;
  gap: 1.2vw;
  transition: all 0.3s ease;
  align-items: flex-start;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.work-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.7vh;
}

.work-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 4px;
}

.work-content {
  display: flex;
  flex-direction: column;
  gap: 0.4vh;
  flex: 1;
  min-width: 0;
}

.work-company {
  font-family: "Tiempos Text", serif;
  font-size: 1.25rem; /* 20px - company names */
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.work-title {
  font-size: 1rem; /* 16px - job titles */
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.work-description {
  font-size: 0.875rem; /* 14px - descriptions */
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  font-weight: 400;
}

.work-details {
  font-size: 0.75rem; /* 12px - small details */
  color: #888;
  margin: 0;
  margin-top: auto;
  font-weight: 400;
}

/* Responsive work grid */
@media screen and (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1vh;
  }
  
  .work-card {
    padding: 1.2vh 1.2vw;
    gap: 1vh;
  }
  
  .work-logo img {
    width: 40px;
    height: 40px;
  }
}

/* Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5vh 2vw;
  margin-top: 1vh;
}

.education-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.8vh 1.8vw;
  display: flex;
  flex-direction: row;
  gap: 1.2vw;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(245, 158, 11, 0.05));
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

/* UCLA Card - Blue Left-Mid-Right Gradient */
.education-card:nth-child(1)::before {
  background: linear-gradient(90deg, rgba(198, 226, 246, 0.1), rgba(57, 159, 255, 0.4), rgba(198, 226, 246, 0.1));
}

/* UMD Card - Red Left-Mid-Right Gradient */
.education-card:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(251, 177, 177, 0.1), rgba(255, 34, 34, 0.4), rgba(251, 177, 177, 0.1));
}

.education-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.8);
}

.education-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.7vh;
}

.education-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 4px;
}

.education-content {
  display: flex;
  flex-direction: column;
  gap: 0.4vh;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.education-school {
  font-family: "Tiempos Text", serif;
  font-size: 1.25rem; /* 20px - school names */
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.education-degree {
  font-family: "Athletics", sans-serif;
  font-size: 1rem; /* 16px - degree names */
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.education-details {
  font-size: 0.75rem; /* 12px - small details */
  color: #888;
  margin: 0;
  margin-top: auto;
  font-weight: 400;
}

/* Responsive education grid */
@media screen and (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1vh;
  }
  
  .education-card {
    padding: 1.2vh 1.2vw;
    gap: 1vh;
  }
  
  .education-logo img {
    width: 40px;
    height: 40px;
  }
}

/* Section Title Styling */
.container.blog.main .section-title h2 {
  font-family: "Athletics", sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important; /* 24px - smaller section titles */
  color: #353535 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin: 0 !important;
  padding: 2vh 0 !important;
  line-height: 1.1 !important;
}

/* Research Section Title with Dash Line */
#research-section .section-title h2 {
  border-bottom: 1px solid #ddd !important;
  padding: 2vh 0 1vh 0 !important;
}

/* About Me Section Title with Dash Line */
#about-section .section-title h2 {
  border-bottom: 1px solid #ddd !important;
  padding: 2vh 0 1vh 0 !important;
}

/* Services Section Title with Dash Line */
#services-section .section-title h2 {
  border-bottom: 1px solid #ddd !important;
  padding: 2vh 0 1vh 0 !important;
}

/* Contact Section Title with Dash Line */
#contact-section .section-title h2 {
  border-bottom: 1px solid #ddd !important;
  padding: 2vh 0 1vh 0 !important;
}

/* Contact Section Content Spacing */
.contact-content {
  margin-top: 2vh;
}

/* Floating Navigation Menu */
.floating-nav {
  position: fixed;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-trigger {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-trigger:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.nav-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.nav-icon span {
  width: 16px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.floating-nav:hover .nav-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.floating-nav:hover .nav-icon span:nth-child(2) {
  opacity: 0;
}

.floating-nav:hover .nav-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 15px 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-20px);
  transition: all 0.3s ease;
}

.floating-nav:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.nav-link {
  display: block;
  padding: 8px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Athletics", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-500);
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.nav-link:hover::before {
  width: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-nav {
    left: 4vw;
    top: auto;
    bottom: 4vh;
    transform: none;
  }
  
  .nav-menu {
    left: 0;
    top: auto;
    bottom: 50px;
    transform: translateY(20px);
    min-width: 140px;
  }
  
  .floating-nav:hover .nav-menu {
    transform: translateY(0);
  }
}

/* About Me Section Styling */
.about-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2vw;
  margin-top: 2vh;
}

.about-intro {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5vh;
  margin-left: 0; /* Align with section headers */
}

.about-intro p {
  font-family: "Athletics", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.05em;
}

.about-content {
  margin-bottom: 0vh;
  margin-left: 1.5rem; /* Match the indentation of other content */
}

/* Ensure gallery follows same layout as text content */
.about-content .bayker-gallery {
  margin-left: 0; /* Reset any margin, inherit from parent */
  width: 100%; /* Take full width of parent container */
  box-sizing: border-box; /* Include padding in width calculation */
}

.about-content p {
  font-family: "Athletics", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5vh;
}

.about-content ul {
  margin: 1.5vh 0;
  padding-left: 0;
  list-style: none;
}

.about-content li {
  margin-bottom: 1.5vh;
  font-family: "Athletics", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.about-content a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-content a:hover {
  color: #004499;
}

.about-content em {
  font-style: italic;
  color: var(--text-muted);
}

.about-content b {
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive About Me */
@media screen and (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 1vh;
  }
  
  .about-intro {
    padding-top: 0vh;
  }
  
  .about-content {
    margin-bottom: 0vh;
  }
}

/* Revert specific elements to original fonts */
.project-title {
  font-family: "Charter", serif !important;
}

.work-company {
  font-family: "Charter", serif !important;
}

.education-school {
  font-family: "Charter", serif !important;
}

.project-authors {
  font-family: "Poppins", sans-serif !important;
}

.work-title {
  font-family: "Poppins", sans-serif !important;
}

.education-degree {
  font-family: "Poppins", sans-serif !important;
}
  padding-left: 15px;
  font-weight: 300;
  line-height: 1.4;
  font-size: 0.9rem;
}

.experience-description li::before {
  content: "•";
  color: var(--text-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Education section */
.education-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2vw;
  padding: 1.5vh 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1vh;
}

.education-item:last-child {
  border-bottom: none;
}

.education-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-content {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
}

.education-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.education-school {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.education-duration {
  color: #888;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Services section */
.services-content {
  margin-top: 0.5vh;
}

.services-content h3 {
  font-family: "Athletics", sans-serif !important;
  color: var(--text-primary);
  margin-bottom: 0.5vh;
  margin-top: 0.5vh;
  font-size: 1.1rem;
  font-weight: 600;
}

.services-list {
  list-style: none;
  padding-left: 0;
}

.services-list li {
  font-family: "Athletics", sans-serif;
  color: var(--text-muted);
  margin-bottom: 0.5vh;
  padding-left: 20px;
  position: relative;
  font-weight: 400;
  line-height: 1.4;
  font-size: 0.9rem;
}

.services-list li::before {
  content: "→";
  color: #ffc107;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5vh 0; /* Reduced height */
  border-top: 1px solid #f0f0f0;
  color: #888;
  font-size: 0.75rem; /* Smaller text */
  font-weight: 400;
  background-color: #f8f9fa;
  margin-top: 2vh;
}

/* Responsive Design */
@media screen and (max-width: 769px) {
  .container {
    padding-right: calc(6vw - (100vw - 100%));
    padding-left: 6vw;
  }
  
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 15px;
  }
  
  h1 {
    font-size: 24px;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
  }
  
  h1.title {
    font-weight: 500;
    font-size: 26px;
  }
  
  h2 {
    line-height: 1.2;
    padding: 1.5vh 0;
    font-weight: 700;
    font-size: 18px;
  }
  
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 1.5vh 0;
    font-size: 17px;
  }
  
  .blog-title {
    grid-template-columns: 1fr;
    grid-row: auto;
    text-align: center;
  }
  
  .blog-cover {
    order: -1;
    padding: 1vh 0;
  }
  
  .blog-cover img {
    width: 60%;
    max-width: 200px;
    margin-bottom: 0.6vh;
  }
  
  .blog-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1vh 0;
  }
  
  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1vh;
  }
  
  .project-image {
    order: -1;
  }
  
  .project-img {
    height: 150px;
    max-width: 200px;
  }
  
  .project-img video {
    height: 150px;
    max-width: 200px;
  }
  
  /* Responsive video aspect ratios */
  .project-img.video-square,
  .project-img.video-16-9,
  .project-img.video-4-3,
  .project-img.video-3-2 {
    height: 150px;
    max-width: 200px;
  }
  
  .project-img.video-square video,
  .project-img.video-16-9 video,
  .project-img.video-4-3 video,
  .project-img.video-3-2 video {
    height: 150px;
    max-width: 200px;
  }
  
  .experience-item,
  .education-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .experience-logo,
  .education-logo {
    justify-self: center;
  }
  
  .news-item {
    flex-direction: column;
    gap: 0.5vh;
  }
  
  .news-date {
    min-width: auto;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 769px) {
  .container {
    padding-right: calc(8.5vw - (100vw - 100%));
    padding-left: 8.5vw;
  }
  
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 16px;
  }
  
  h1 {
    font-size: 24px;
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 700;
  }
  
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 26px;
  }
  
  h2 {
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 700;
    font-size: 18px;
  }
  
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 17px;
  }
  
  .blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    column-gap: 3vw;
  }
  
  .blog-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .blog-cover {
    padding: 3vh 0;
  }
  
  .blog.main {
    padding: 1vh 10vw;
  }
  
  .blog.main.first {
    margin-top: 2vh;
  }
}

@media screen and (min-width: 992px) {
  .container {
    padding-right: calc(12vw - (100vw - 100%));
    padding-left: 12vw;
  }
  
  a, p, td, th, tr, code, pre, ol, ul, li, div {
    font-size: 16px;
  }
  
  h1 {
    font-size: 24px;
    line-height: 1.2;
    padding: 1vh 0;
    font-weight: 700;
  }
  
  h1.title {
    padding: 0 0 1vh;
    font-weight: 500;
    font-size: 30px;
  }
  
  h2 {
    line-height: 1.2;
    padding: 2vh 0;
    font-weight: 700;
    font-size: 18px;
  }
  
  h3 {
    font-weight: 700;
    line-height: 1.2;
    padding: 2vh 0;
    font-size: 17px;
  }
  
  .blog-title {
    grid-template-columns: 1fr 1fr;
    grid-row: 75vh;
    column-gap: 4vw;
  }
  
  .blog-intro {
    padding: 5vh 0;
  }
  
  .blog-intro p {
    padding: 1.5vh 0;
  }
  
  .blog-cover {
    padding: 5vh 0;
  }
  
  .blog.main {
    padding: 1.5vh 14vw;
  }
  
  .blog.main.first {
    margin-top: 2vh;
  }
}

@media screen and (min-width: 1200px) {
  .blog.main {
    padding: 2vh 18vw;
  }
  
  .blog.main.first {
    margin-top: 2vh;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile Typography Adjustments */
@media screen and (max-width: 768px) {
  /* Mobile Typography Adjustments */
  body {
    font-size: 16px; /* Slightly smaller base for mobile */
  }
  
  .blog-intro .title {
    font-size: 2rem; /* 32px - smaller for mobile */
  }
  
  .container.blog.main .section-title h2 {
    font-size: 1.25rem !important; /* 20px - smaller section titles for mobile */
  }
  
  .project-title {
    font-size: 1.125rem; /* 18px - smaller project titles for mobile */
  }
  
  .work-company, .education-school {
    font-size: 1.125rem; /* 18px - smaller company/school names */
  }
}

/* List Styling for Better Consistency */
ul, ol {
  margin: 0;
  padding-left: 0; /* No indentation for main lists */
  list-style: none; /* Remove default bullets */
}

li {
  margin-bottom: 0.5rem; /* Consistent spacing between list items */
  line-height: 1.6; /* Match paragraph line height */
}

/* Nested lists - proper indentation */
ul ul, ol ol, ul ol, ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem; /* Indent nested lists */
  list-style: disc; /* Add bullets for nested lists */
}

/* Specific styling for about section lists */
.about-content ul {
  margin: 0.5rem 0;
  padding-left: 0; /* No indentation for main lists */
  list-style: none; /* Remove default bullets */
}

.about-content ul ul {
  padding-left: 1.5rem; /* Indent nested lists */
  list-style: disc; /* Add bullets for nested lists */
}

.about-content li {
  margin-bottom: 0.3rem;
  font-size: 1rem; /* Match paragraph font size */
  line-height: 1.6;
  color: var(--text-primary);
}



/* Inline Bayker Gallery - Flows naturally with text content */
.inline-gallery {
  margin-top: 1.5vh;
  margin-bottom: 1vh;
  /* Full width like text content */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  justify-content: space-between; /* Distribute 5 photos evenly across full width */
}


.inline-gallery-img {
  width: calc((100% - 4 * 12px) / 5); /* 5 photos with 4 gaps, full width */
  height: calc((100% - 4 * 12px) / 5); /* Square aspect ratio */
  max-width: 100px; /* Cap the maximum size */
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.inline-gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive for inline gallery */
@media screen and (max-width: 768px) {
  .inline-gallery {
    gap: 8px;
  }
  
  .inline-gallery-img {
    max-width: 80px;
    max-height: 80px;
  }
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  cursor: default;
}

.image-gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.image-modal-close:hover {
  opacity: 0.7;
}

.modal-image {
  max-width: 80%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.gallery-nav-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.gallery-nav-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.gallery-nav-btn {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 28px;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.image-gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.gallery-counter {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Focus styles for accessibility */
.button:focus,
.project-link:focus {
  outline: 2px solid #353535;
  outline-offset: 2px;
}