/* ============================================================
   COMPONENTS
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   ABOUT
   ────────────────────────────────────────────────────────── */
.about-section {
  flex-direction: row;
  align-items: center;
  gap: 80px;
}

.about-image {
  flex: 0 0 auto;
}

.about-img-wrapper {
  width: 360px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow-cyan);
}

.about-img-wrapper img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-wrapper:hover img {
  transform: scale(1.04);
}

.about-content {
  flex: 1;
}

.about-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(123, 97, 255, 0.1);
  border: 1px solid rgba(123, 97, 255, 0.28);
  border-radius: var(--radius-pill);
  color: var(--accent-purple);
  font-size: 0.83rem;
  font-family: var(--font-mono);
  margin: 14px 0 22px;
}

.about-bio {
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.85;
  margin-bottom: 36px;
}

.about-bio strong {
  color: var(--text-primary);
}

.about-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 100px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 242, 222, 0.3);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────
   EXPERIENCE TIMELINE
   ────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-cyan) 20%,
    var(--accent-purple) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 47%;
  margin-bottom: 56px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 48px;
}

.timeline-item:nth-child(even) {
  left: 53%;
  padding-left: 48px;
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  top: 26px;
  animation: dot-pulse 2.8s ease-in-out infinite;
}

.timeline-item:nth-child(odd)  .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }

.timeline-card {
  padding: 24px 26px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-company {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.company-name {
  font-weight: 600;
  color: var(--accent-cyan);
  font-size: 0.88rem;
}

.company-loc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.timeline-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-badge.cyan   { background: rgba(0, 242, 222, 0.1);   color: var(--accent-cyan);   border: 1px solid rgba(0, 242, 222, 0.22); }
.timeline-badge.purple { background: rgba(123, 97, 255, 0.1);  color: var(--accent-purple); border: 1px solid rgba(123, 97, 255, 0.22); }

.timeline-bullets {
  list-style: none;
  margin-bottom: 18px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 9px;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.timeline-bullets li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ──────────────────────────────────────────────────────────
   RESEARCH & PUBLICATIONS
   ────────────────────────────────────────────────────────── */
.research-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.research-card {
  width: calc(33.333% - 16px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conf-badge {
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.conf-badge.cyan  { background: rgba(0, 242, 222, 0.1);  color: var(--accent-cyan);  border: 1px solid rgba(0, 242, 222, 0.22); }
.conf-badge.amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.22); }

.research-link {
  font-size: 1.45rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.research-link:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.research-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
}

.research-advisor {
  font-size: 0.78rem;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

.research-bullets {
  list-style: none;
  flex: 1;
}

.research-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 9px;
}

.research-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-cyan);
  font-size: 0.72rem;
}

.research-bullets li strong { color: var(--text-primary); }

/* ──────────────────────────────────────────────────────────
   PROJECTS
   ────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 222, 0.07);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.project-card {
  overflow: hidden;
  transition: var(--transition);
}

.project-card.hidden {
  display: none;
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
  opacity: 0.35;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 242, 222, 0.08);
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(10, 10, 15, 0.75);
  color: var(--accent-cyan);
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-cyan);
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.overlay-link:hover {
  background: var(--accent-cyan);
  color: #0a0a0f;
}

.project-content {
  padding: 20px 22px 22px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.04rem;
  font-weight: 600;
}

.project-github {
  font-size: 1.35rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.project-github:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-desc strong { color: var(--text-primary); }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-cta {
  text-align: center;
}

/* ──────────────────────────────────────────────────────────
   SKILLS
   ────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-group {
  padding: 30px;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-icon {
  font-size: 1.7rem;
}

.skill-icon.cyan   { color: var(--accent-cyan); }
.skill-icon.purple { color: var(--accent-purple); }
.skill-icon.blue   { color: var(--accent-blue); }
.skill-icon.green  { color: var(--accent-green); }

.skill-category {
  font-size: 1rem;
  font-weight: 600;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.79rem;
  font-weight: 500;
  transition: transform var(--transition), filter var(--transition);
  cursor: default;
}

.skill-pill.cyan   { background: rgba(0, 242, 222, 0.07);   border: 1px solid rgba(0, 242, 222, 0.22);   color: var(--accent-cyan); }
.skill-pill.purple { background: rgba(123, 97, 255, 0.07);  border: 1px solid rgba(123, 97, 255, 0.22);  color: var(--accent-purple); }
.skill-pill.blue   { background: rgba(59, 130, 246, 0.07);  border: 1px solid rgba(59, 130, 246, 0.22);  color: var(--accent-blue); }
.skill-pill.green  { background: rgba(16, 185, 129, 0.07);  border: 1px solid rgba(16, 185, 129, 0.22);  color: var(--accent-green); }

.skill-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.25);
}

/* ──────────────────────────────────────────────────────────
   LEADERSHIP
   ────────────────────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leadership-card {
  padding: 36px 28px;
  text-align: center;
}

.leadership-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 242, 222, 0.07);
  border: 1px solid rgba(0, 242, 222, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.9rem;
  color: var(--accent-cyan);
  transition: var(--transition);
}

.leadership-card:hover .leadership-icon {
  background: rgba(0, 242, 222, 0.14);
  box-shadow: var(--glow-cyan);
  transform: scale(1.08);
}

.leadership-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.leadership-org {
  font-size: 0.79rem;
  color: var(--accent-purple);
  font-family: var(--font-mono);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.leadership-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────
   CONTACT SECTION
   ────────────────────────────────────────────────────────── */
.contact-section {
  min-height: 70vh;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-content {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.75;
}

.contact-email {
  font-size: 0.95rem;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.35rem;
  transition: var(--transition);
}

.contact-social a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE COMPONENTS
   ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .research-card  { width: 100%; }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-section  { gap: 48px; }
}

@media (max-width: 900px) {
  /* About: stack vertically, centered */
  .about-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .about-img-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    max-width: unset;
  }
  .about-img-wrapper img {
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-bio  { text-align: center; }
  .about-stats { justify-content: center; }

  /* Timeline: single-column left-aligned */
  .timeline::before { left: 18px; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 56px;
    padding-right: 0;
  }

  .timeline-item .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
    right: auto;
  }

  /* Skills: single column */
  .skills-grid { grid-template-columns: 1fr; }

  /* Leadership: single column */
  .leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats   { gap: 14px; }
  .stat-card     { padding: 16px 20px; min-width: 85px; }
  .research-card { width: 100%; }
  .filter-tabs   { gap: 8px; }
}

/* ──────────────────────────────────────────────────────────
   CONTACT MODAL
   ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #0f0f1a;
  border: 1px solid rgba(0, 242, 222, 0.18);
  border-radius: 22px;
  padding: 44px 40px 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 60px rgba(0, 242, 222, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar inside modal */
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(0, 242, 222, 0.2); border-radius: 4px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group textarea {
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 242, 222, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 242, 222, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 146, 164, 0.55);
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}

.form-success.show {
  display: block;
}

.success-icon {
  font-size: 3.2rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: block;
}

.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-msg {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 540px) {
  .modal { padding: 36px 24px 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-title { font-size: 1.5rem; }
}
