/* ===============================
   DESIGN TOKENS
================================ */
:root {
  --bg-light: #f6f7f9;
  --bg-dark: #1a1a1a;
  --card-bg: #ffffff;

  --primary: #0077b5;
  --primary-dark: #005f8d;

  --text-main: #222;
  --text-muted: #666;

  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.12);
}

/* ===============================
   GLOBAL RESET
================================ */
* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===============================
   SIDEBAR (DESKTOP)
================================ */
nav.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: linear-gradient(180deg, #121212, #1a1a1a);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  gap: 1rem;
  z-index: 100;
  transition: width 0.3s ease;
}

nav.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav.sidebar a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--primary);
}

#toggleSidebar {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

nav.sidebar.collapsed {
  width: 70px;
}

nav.sidebar.collapsed a span {
  display: none;
}

/* ===============================
   MAIN LAYOUT
================================ */
main {
  margin-left: 200px;
  width: calc(100% - 200px);
  transition: margin-left 0.3s ease, width 0.3s ease;
  padding-bottom: 2rem;
}

.sidebar.collapsed ~ main {
  margin-left: 70px;
  width: calc(100% - 70px);
}

/* ===============================
   HERO / INTRO
================================ */
header.intro-container {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  background: var(--bg-dark);
  color: white;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile-pic {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.intro-text {
  max-width: 620px;
}

.link-btns a {
  margin-right: 14px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.resume-btn {
  background: var(--primary);
  color: white;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 1rem;
}

.resume-btn:hover {
  background: var(--primary-dark);
}

/* ===============================
   SECTIONS
================================ */
section {
  max-width: 1000px;
  margin: auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.5rem;
}

section + section {
  margin-top: 3rem;
}

section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin-top: 6px;
  border-radius: 2px;
}

/* ===============================
   EDUCATION / EXPERIENCE
================================ */
.edu-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.edu-item {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1 1 420px;
}

.edu-institute {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.edu-logo {
  width: 28px;
}

.edu-year {
  color: #999;
  font-size: 0.9rem;
}

/* ===============================
   PROJECTS
================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.project-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  padding: 0.75rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.75rem 1rem 0;
}

.project-card p {
  margin: 0.5rem 1rem;
  font-size: 0.9rem;
}

.github-link {
  margin: 0.4rem 1rem 1rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* ===============================
   DETAILS (FIXED)
================================ */
details {
  background: #fafafa;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

details summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
  padding-left: 1.5rem;
}

details summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* ===============================
   SKILLS SECTION (WHITE MODE)
================================ */

#skills {
  background: #ffffff;
  color: #222;
}

/* Section heading */
#skills h2 {
  color: #222;
}

/* ===============================
   SKILL CARDS
================================ */

#skills .skill-card {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

/* IMPORTANT: remove divider lines between cards */
#skills .skill-card + .skill-card {
  border-top: none;
}

/* ===============================
   SKILL CHIPS CONTAINER
================================ */

#skills .skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

/* ===============================
   SKILL CHIPS (DEFAULT)
================================ */

#skills .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  background: #eeeeee;
  border: 1px solid #dddddd;
  color: #333;
  white-space: nowrap;
}

/* ===============================
   PRIMARY SKILLS
================================ */

/* #skills .chip.primary {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.45);
  color: #004c73;
} */


/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #888;
  margin-left: 200px;
}

.sidebar.collapsed ~ footer {
  margin-left: 70px;
}

/* ===============================
   BACK TO TOP
================================ */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #060606;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 200;
}

/* ===============================
   MOBILE (BOTTOM NAV)
================================ */
@media (max-width: 768px) {
  nav.sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 56px;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
  }

  nav.sidebar a span {
    display: none;
  }

  #toggleSidebar {
    display: none;
  }

  main {
    margin-left: 0;
    width: 100%;
    padding-bottom: 80px;
  }

  footer {
    margin-left: 0;
    width: 100%;
  }

  header.intro-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.reach-out {
  max-width: 1000px;
  margin: 2rem auto;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
}

/* Learn more button */
.edu-toggle {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: #0077b5;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.edu-toggle:hover {
  text-decoration: underline;
}

/* Hidden content */
.edu-more {
  margin-top: 0.75rem;
  display: none;
  font-size: 0.9rem;
  color: #555;
  overflow: hidden;
  transition: all 0.2s ease;
}

.edu-more ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.edu-more li {
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: #eaeaea;
}

.hero-summary {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 1rem;
  color: #ffffff;
}

.hero-sub {
  font-size: 0.95rem;
  margin-top: 0.75rem;
  color: #b5b5b5;
  line-height: 1.5;
}

.availability {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  margin-top: 1.5rem;
}

/* ===============================
   FULL STACK FLOW
================================ */

#what-i-do {
  background: #111;
  color: #f2f2f2;
}

#what-i-do h2 {
  color: #ffffff;
}

#what-i-do h2::after {
  background: var(--primary);
}

.flow-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: #b5b5b5;
  font-size: 0.95rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}
.flow-card:last-child {
  grid-column: 2 / 3;
}

@media (max-width: 900px) {
  .flow-card:last-child {
    grid-column: auto;
  }
}


.flow-card {
  background: linear-gradient(180deg, #1a1a1a, #141414);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.flow-layer {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-card h3 {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.flow-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #cfcfcf;
  line-height: 1.5;
}

.flow-footer {
  margin-top: 2rem;
  font-size: 0.95rem;
  text-align: center;
  color: #b5b5b5;
  font-style: italic;
}
.flow-card {
  opacity: 0;
  transform: translateY(12px);
  animation: flowIn 0.6s ease forwards;
}

.flow-card:nth-child(1) { animation-delay: 0.05s; }
.flow-card:nth-child(2) { animation-delay: 0.15s; }
.flow-card:nth-child(3) { animation-delay: 0.25s; }
.flow-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes flowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.flow-card:last-child {
  position: relative;
}

.flow-card:last-child::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 13px;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.15);
}

