/* ── Reset & Base ───────────────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2a2a2a;
  overflow-x: hidden;
}

/* Hide Quarto's default title & navbar */
.quarto-title, #quarto-header, .navbar { display: none !important; }

/* ── Quarto container override ──────────── */
#quarto-content,
main.content,
#quarto-document-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Custom Navbar ──────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #2a2a2a;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #2a2a2a;
  font-weight: 500;
}

.nav-links a:hover { color: #6b7ab5; }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 50, 80, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  margin: 0 0 0.6rem 0;
  color: white;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 2rem 0;
  color: rgba(255,255,255,0.9);
}

.hero-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: rgba(100, 100, 140, 0.7);
  color: white;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}

.hero-btn:hover {
  background: rgba(100, 100, 140, 0.95);
  color: white;
}

/* ── Skills Strip ───────────────────────── */
.skills-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 6rem;
  padding: 3rem 10%;
  background: white;
  border-bottom: 0.5px solid #eee;
}

.skill-item {
  text-align: center;
  padding: 0 1rem;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1.3rem;
  color: #4a5275;
}

.skill-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
  color: #2a2a2a;
}

.skill-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
}

/* ── About Section ──────────────────────── */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 25%;
  background: #f8f8f8;
  gap: 1.5rem;
}

.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-text h2 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 0.8rem;
  text-align: center;
}

.about-text p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1rem;
}

/* ── Contact Page ───────────────────────── */
.contact-page {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.contact-heading {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.contact-subtext {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 1.8rem;
  color: #4a5275;
  margin-bottom: 0.6rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #2a2a2a;
  margin-bottom: 0.4rem;
}

.contact-item a {
  font-size: 0.88rem;
  color: #4a5275;
  text-decoration: none;
}

.contact-item a:hover { text-decoration: underline; }

.contact-divider {
  border-top: 1px solid #e0e0e0;
  margin-bottom: 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2a2a2a;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 2px;
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #4a5275; }

.submit-btn {
  align-self: flex-start;
  padding: 0.75rem 2.5rem;
  background: #4a5275;
  color: white;
  border: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: #363c58; }

.resume-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.resume-button {
  display: inline-block;
  margin: 1rem 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.resume-button:hover {
  background-color: #f2f2f2;
}

.resume-button.secondary {project:
  type: website

website:
  title: "Jyontika"
  navbar:
    right:
      - text: "Home"
        href: index.qmd
      - text: "Projects"
        href: projects.qmd
      - text: "Resume"
        href: resume.pdf

format:
  html:
    toc: false
    css: styles.css
    page-layout: full
    include-in-header:
      text: |
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
  font-weight: 500;
}

/* ── Projects page container fix ───────── */
.projects-page {
  padding: 4rem 10%;
  width: 100%;
  background: white;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 15rem;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 100%;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  justify-content: left;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

/* ── Project card color accent bar ───────── */
.card-img {
  height: 35px !important;
  min-height: 35px !important;
  padding: 0 !important;
  display: block !important;
  border-radius: 12px 12px 0 0 !important;
}

.card-img-label {
  display: none !important;
}

/* ── Kill Quarto page title ─────────────── */
.quarto-title-block,
.quarto-title,
h1.title,
.title {
  display: none !important;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.card-tags span {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5275;
  border: 1px solid #cfd5e6;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: transparent;
  line-height: 1.2;
}

/* ── Projects header custom ─────────────── */
.projects-title {
  font-size: 1.6rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  margin-bottom: 0.75rem !important;
}

/* ── Card styling refresh ───────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}



.card-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: white;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4a5275;
  text-transform: uppercase;
}

.card-title {
  font-size: 0.97rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #2a2a2a !important;
}

.card-desc {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.card-links a {
  font-size: 0.82rem;
  color: #4a5275;
  text-decoration: none;
  font-weight: 600;
}

.card-links a:hover { text-decoration: underline; }

/* ── Filter buttons rounded ─────────────── */
.filter-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #ccc;
  background: white;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: #2a2a2a;
  border-radius: 999px;
}

.filter-btn:hover,
.filter-btn.active {
  background: #4a5275;
  color: white;
  border-color: #4a5275;
}

@media (max-width: 768px) {

  /* ── Navbar — mobile ───────────────────── */

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.25rem !important;
    gap: 0.5rem;
  }

  .nav-brand {
    flex: 1;
    font-size: 0.95rem !important;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
  }

  .nav-links a {
    margin-left: 0 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.06em !important;
  }


  /* ── Hero — keep banner size, only shrink name ── */

  .hero-name {
    font-size: 2.15rem !important;
    letter-spacing: 0.14em !important;
    line-height: 1.25 !important;
    padding: 0 1rem !important;
  }

  .hero-tagline {
    font-size: 1rem !important;
    padding: 0 1rem !important;
  }


  /* ── Skills — single column on mobile ───── */

  .skills-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 3rem 8% !important;
    gap: 2.5rem !important;
    text-align: center !important;
  }

  .skill-item {
    width: 100% !important;
    text-align: center !important;
  }


  /* ── About Me — wider text on mobile ────── */

  .about-section {
    padding: 4rem 5% !important;
  }

  .about-text {
    width: 100% !important;
    max-width: none !important;
  }

  .about-text h2 {
    font-size: 1.3rem !important;
  }

  .about-text p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
  }


  /* ── Contact page — stack widgets vertically ── */

  .contact-page {
    width: 100% !important;
    max-width: none !important;
    margin: 3rem auto !important;
    padding: 0 1.25rem !important;
  }

  .contact-heading {
    font-size: 1.7rem !important;
    text-align: center !important;
  }

  .contact-subtext {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
  }

  .contact-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
  }

  .contact-item {
    width: 100% !important;
    text-align: center !important;
  }


  /* ── Projects — single column on mobile ─── */

  .projects-page {
    padding: 2rem 6% !important;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .project-card {
    width: 100% !important;
  }


  /* ── Project filter buttons — 2x2 on mobile ── */

  .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    justify-content: initial !important;
  }

  .filter-bar > * {
    width: 100% !important;
  }

  .filter-btn {
    width: 100% !important;
    text-align: center !important;
    flex: none !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.72rem !important;
  }

}