:root {
  --bg: #ffffff;
  --text: #000000;
  --card-bg: #ffffff;
  --border: #ccc;
  --accent: #000;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin-left: auto;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.logo {
  font-weight: 700;
  color: black;
}

body.dark .logo {
  color: white;
}

/* Hero */
header {
  padding: 120px 20px;
  text-align: center;
  background: var(--text);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  gap: 6px;
}

header h1 {
  font-size: 3rem;
  font-family: 'Cormorant Garamond', serif;
}

header p {
  font-size: 1.3rem;
  margin: 15px 0 30px;
  font-family: 'Cormorant Garamond', serif;
}

.btn {
  background: var(--bg);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* Sections */
section {
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--text);
  display: inline-block;
  margin-bottom: 30px;
  font-family: 'Cormorant Garamond', serif;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-items: center;
  /* center the cards */
  margin-bottom: 120px;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  background: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.github-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: white;

  text-decoration: none;
  font-size: 18px;

  transition: transform 0.2s ease, background 0.2s ease;
}

.github-btn:hover {
  transform: scale(1.08);
  background: #000;
}

body.dark .github-btn {
  background: rgba(255, 255, 255, 0.85);
  color: black;
}

/* Video / Embedded Demo */
.project-video,
.project-card iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  /* for videos */
}

/* Project Info */
.project-info h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

.project-tech {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
  font-weight: 500;
}

.project-info p {
  font-size: 1rem;
  color: #818181;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.download-buttons .btn {
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.download-buttons .btn:hover {
  background: #444;
}

/* Footer */
footer {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 20px;
}

/* Theme Toggle */
#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-left: 15px;
}

#theme-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

#theme-toggle .icon {
  font-size: 1.5rem;
}

#theme-toggle:hover .icon {
  color: var(--bg);
}

body.dark {
  --bg: #000000;
  --text: #ffffff;
  --card-bg: #111111;
  --border: #444;
  --accent: #ffffff;
}

.demo-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.demo-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.project-section-title {
  width: 100%;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 4rem 0 1.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  outline: 2px solid var(--text);
}

.timeline-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #818181;
  margin: 0;
}

.timeline-date {
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
}

/* Honors */
.honors-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.honors-list li {
  font-size: 1rem;
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.honors-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #aaa;
}