/* ==========================================================
   Rahie Datta's Portfolio
   Node.js, Express - Modular JavaScript
   Font: Calibri
   ========================================================== */

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

:root {
  --red: #c00000;
  --red-dark: #9c0000;

  --text: #111;
  --muted: #555;

  --border: #e5e5e5;

  --bg: #ffffff;
  --light: #fafafa;
  --card: #fcfcfc;

  --radius: 12px;

  --shadow:
    0 2px 10px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family:
    Calibri,
    "Segoe UI",
    Candara,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.6;

  color: var(--text);
  background: var(--bg);

  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   Global
   ========================================================== */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  font-size: 13px;

  text-transform: uppercase;
  letter-spacing: 0.7px;

  color: var(--muted);

  font-weight: 700;

  padding-bottom: 4px;

  border-bottom: 2px solid transparent;

  transition: 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);

  border-bottom-color: var(--red);

  text-decoration: none;
}

.nav-toggle {
  display: none;

  background: none;

  border: 1px solid var(--border);

  padding: 6px 10px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 16px;
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  padding: 56px 0 28px;

  text-align: center;

  border-bottom: 1px solid var(--border);
}

.name {
  font-size: 44px;

  font-weight: 700;

  line-height: 1.1;

  letter-spacing: -0.6px;

  margin-bottom: 10px;
}

.tagline {
  font-size: 17px;

  color: var(--muted);

  margin-bottom: 14px;
}

.contact-line,
.links-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;

  color: var(--muted);

  font-size: 15px;
}

.contact-line a,
.links-line a {
  color: var(--text);

  text-decoration: underline;
  text-underline-offset: 3px;
}

.sep {
  color: #bbbbbb;
}

/* ==========================================================
   Copy Email Badge
   ========================================================== */

.live-badge {
  border: 1px solid var(--border);

  border-radius: 999px;

  padding: 3px 10px;

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.15s ease;
}

.live-badge:hover {
  background: var(--text);

  border-color: var(--text);

  color: white;
}

/* ==========================================================
   Sections
   ========================================================== */

.section {
  padding: 42px 0 12px;
}

.section-title {
  font-size: 15px;

  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

  color: var(--red);

  border-bottom: 2px solid var(--red);

  padding-bottom: 8px;

  margin-bottom: 20px;
}

.body-text {
  line-height: 1.7;

  color: #222;
}

/* ==========================================================
   Education
   ========================================================== */

.edu-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.edu-school {
  font-weight: 700;
  font-size: 16px;
}

.edu-degree {
  margin-top: 2px;
  font-size: 15px;
}

.edu-coursework {
  margin-top: 8px;

  font-size: 14.5px;

  color: #222;
}

.edu-meta {
  text-align: right;

  white-space: nowrap;

  color: var(--muted);

  font-size: 14px;
}

/* ==========================================================
   Skills
   ========================================================== */

.skills-list {
  list-style: disc;

  padding-left: 20px;

  line-height: 1.7;
}

.skills-list li {
  margin-bottom: 8px;
}

/* ==========================================================
   Jobs & Projects
   ========================================================== */

.job {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 18px;

  margin-bottom: 20px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.job:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow);
}

.job-header {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 8px;
}

.job-company {
  font-weight: 700;
  font-size: 16px;
}

.job-role {
  color: #222;

  font-size: 14.5px;

  margin-top: 2px;
}

.job-meta {
  text-align: right;

  white-space: nowrap;

  color: var(--muted);

  font-size: 13.5px;
}

.job ul {
  list-style: disc;

  padding-left: 20px;

  line-height: 1.6;

  color: #222;
}

.job ul li {
  margin-bottom: 6px;
}

/* ==========================================================
   Tech Stack Tags
   ========================================================== */

.tech-stack {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 14px;
}

.tech-stack span {
  background: var(--light);

  border: 1px solid var(--border);

  border-radius: 999px;

  padding: 4px 10px;

  font-size: 12px;

  font-weight: 600;
}

/* ==========================================================
   Project Links
   ========================================================== */

.project-links {
  margin-top: 14px;

  display: flex;

  gap: 8px;

  flex-wrap: wrap;
}

.project-links a {
  border: 1px solid var(--border);

  border-radius: 999px;

  padding: 6px 12px;

  font-size: 13px;

  font-weight: 700;

  transition: 0.15s ease;
}

.project-links a:hover {
  background: var(--red);

  color: white;

  border-color: var(--red);

  text-decoration: none;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  margin-top: 50px;

  padding: 32px 0 56px;

  border-top: 1px solid var(--border);

  text-align: center;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.8;
}

.footer-links {
  display: flex;

  justify-content: center;

  gap: 8px;

  flex-wrap: wrap;

  margin-top: 6px;
}

.logo {
  display: inline;
  width: 10%;
}

.profile {
  display: block;
  width: 15%;
  min-width: 120px;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 720px) {

  .nav {
    display: none;

    position: absolute;

    top: 58px;
    left: 0;
    right: 0;

    background: white;

    flex-direction: column;

    gap: 12px;

    padding: 18px 24px;

    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .container {
    padding: 0 18px;
  }

  .name {
    font-size: 34px;
  }

  .tagline {
    font-size: 15px;
  }

  .edu-header,
  .job-header {
    flex-direction: column;
    gap: 4px;
  }

  .edu-meta,
  .job-meta {
    text-align: left;
  }

  .job {
    padding: 14px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links a {
    text-align: center;
  }
}