/* =========================
   GLOBAL VARIABLES & RESET
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --color-bg: #0f0f0f;
    --color-bg-secondary: #141414;
    --color-bg-tertiary: #2b2b31;
    --text-primary: #e2e2e2;
    --text-secondary: #a1a1aa;
    --text-highlighted: #e63838;
    --gradient-start: #d61717;
    --gradient-end: #e711a7;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--text-primary);
    margin: 0;
}

/* =========================
   GLOBAL UTILITIES
   ========================= */
.gradientText {
    /* !darkreaderignore */
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.highlightedText {
    color: var(--text-highlighted);
    font-weight: bold;
    font-size: 25px;
    text-transform: capitalize;
}

/* =========================
   LAYOUT
   ========================= */
.leftAndRight {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100%;
    padding: 0 50px;
}

/* ----- Left Sidebar ----- */
.leftBar {
    flex: 1;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 0;
    max-height: 100vh;
}

.leftBarInfo {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.leftBar p { margin: 0; padding: 0; }

.pfp {
    width: 300px;
    border-radius: 50%;
    border: solid 5px var(--text-highlighted);
    transition: transform 0.2s ease-out; /* smooth animation */
}

.pfp:hover {
  transform: translateY(-5px); /* moves element upward */
}

.heading { font-size: 65px; font-weight: bold; }
.subHeading { font-size: 30px; }
.occupation { width: 300px; color: var(--text-secondary); }

/* ----- Navigation Links ----- */
.navLinks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.navLinks a {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.6s ease;
}

.navLinks a.active,
.navLinks a:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.navLinks:hover a.active:not(:hover) {
    color: var(--text-secondary);
    transform: translateX(0);
}

/* ----- Social Links ----- */
.social {
    display: flex;
    gap: 20px;
    fill: var(--text-highlighted);
}

.social a svg { transition: transform 0.2s ease-in-out; }
.social a:hover svg { transform: scale(1.2); }

/* ----- Right Content ----- */
.rightBar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 50%;
    padding-bottom: 100px;
}

.rightBar p { margin: 0; padding: 0; }

/* =========================
   SECTIONS
   ========================= */

/* --- Skills Section --- */
.skills { display: flex; flex-direction: column; gap: 40px; }
.skillsTitle {
    padding-top: 50px;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.skill {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: background 0.5s ease, transform 0.3s ease, border-color 0.3s ease;
}
.skill:hover {
    background: var(--color-bg-secondary);
    border: solid 2px var(--color-bg-tertiary);
    transform: translateY(-5px);
}
.softwareList { display: flex; color: var(--text-secondary); }

/* --- Projects Section --- */
.projectsContainer { display: flex; flex-direction: column; gap: 60px; }
.projectsTitle {
    padding-top: 50px;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.projects {
    display: flex;
    gap: 20px;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: background 0.5s ease, transform 0.3s ease, border-color 0.3s ease;
}
.projects:hover {
    background: var(--color-bg-secondary);
    border: solid 2px var(--color-bg-tertiary);
    transform: translateY(-5px);
}

.projects a svg { transition: transform 0.2s ease-in-out; }
.projects a:hover svg { transform: scale(1.2); }

.projectThumbnail { width: 300px; border-radius: 10px; display: block; }
.projectTitle { font-size: 18px; font-weight: bold; }
.projectInfo { color: var(--text-secondary); }
.projectDetails { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.projectLinks { display: flex; gap: 15px; fill: var(--text-highlighted); }

/* --- Experience Section --- */
.experienceContainer { display: flex; flex-direction: column; gap: 60px; }
.experienceTitle {
    padding-top: 50px;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.employment,
.education {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 5px solid var(--text-highlighted);
    padding-left: 50px;
}

.employmentTitle,
.educationTitle {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 50px;
}
.employmentTime { text-align: right; color: var(--text-secondary); }
.educationPlace { color: var(--text-secondary); }

/* --- Resume Section --- */
.resumeContainer { display: flex; justify-content: center; align-items: center; }
.resumeLink {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-highlighted);
    transition: transform 0.3s ease;
}
.resumeLink:hover { transform: translateY(-5px); }
.resumeLink svg { fill: var(--text-highlighted); }
.resumeLink p { font-size: 30px; font-weight: bold; margin: 0; }

/* --- Recent Posts --- */
.postsTitle {
    padding-top: 50px;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}
.posts {display: flex; flex-direction: column; gap: 60px; }

.postsContainer {display: flex; flex-direction: column; gap: 40px;}

/* --- Contact Section --- */
.contactMeContainer { display: flex; flex-direction: column; gap: 50px; padding-bottom: 350px; }
.contactTitle {
    padding-top: 50px;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.section-subtitle { text-align: center; padding: 30px; color: var(--text-secondary); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--color-bg-tertiary);
    background-color: var(--color-bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    resize: none;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--color-bg-tertiary);
    outline: none;
}
.contact-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--text-highlighted);
    color: var(--color-bg);
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}
.contact-form button:hover { transform: translateY(-2px); }

/* =========================
   MEDIA QUERIES
   ========================= */

/* Laptops 1280px → 769px */
@media (max-width: 1280px) and (min-width: 769px) {
    .leftAndRight {
        justify-content: center;
        max-width: 1100px;
        padding: 0 20px;
        gap: 2rem;
    }
    .leftBar, .rightBar { flex: 1; max-width: 50%; }
    .pfp { width: 200px; }
    .heading { font-size: 50px; }
    .subHeading { font-size: 22px; }
    .occupation { display: none; }
    .skillsTitle,
    .projectsTitle,
    .experienceTitle,
    .contactTitle { font-size: 35px; padding-top: 20px; }
    .leftBar { padding-top: 50px; }
    .projects img { width: 250px; }
    .projectsContainer,
    .skills { gap: 15px; }
}

.blog {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog hr {
    width: 100%;
    border: 1px solid;
    border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) 1;
    border-radius: 2px;
}

.blog img {
    border-radius: 15px;
    max-width: 100%;
}

.blog a {
    color: var(--text-highlighted);
}

.cardPreview {
    text-decoration: none;
    color: inherit;
}

.postsList {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 30px;
}

/* TABLE LIST CODE BLOCK */

.table-container {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-primary);
}

thead {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

thead th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

tbody tr {
    background-color: var(--color-bg-tertiary);
    transition: background 0.2s ease, transform 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

tbody tr:hover {
    background: rgba(230, 56, 56, 0.15);
    transform: translateY(-2px);
}

td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #1f1f1f;
    color: var(--text-secondary);
}

td:first-child {
    color: var(--text-highlighted);
    font-weight: 500;
}

tfoot td {
    padding: 0.9rem 1rem;
    background: var(--color-bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

ul,
ol {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 🔹 Unordered list bullet */
ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  opacity: 0.9;
}

/* 🔸 Ordered list numbering */
ol {
  counter-reset: item;
}

ol > li {
  counter-increment: item;
}

ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--text-highlighted);
  font-weight: 600;
  width: 1.2rem;
  text-align: right;
}

/* 🌿 Nested lists */
li ul,
li ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
}

/* Nested unordered list bullets (smaller + dimmer) */
ul ul > li::before {
  width: 0.35rem;
  height: 0.35rem;
  background: var(--text-highlighted);
  opacity: 0.7;
}

/* Nested ordered list numbers (smaller + lighter) */
ol ol > li::before {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* 💻 Code blocks */
pre {
  background: var(--color-bg-tertiary);
  color: var(--text-primary);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-family: 'Fira Code', 'Consolas', monospace;
  overflow-x: auto;
  box-shadow: 0 0 20px rgba(230, 17, 167, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
  color: var(--text-highlighted);
  background: var(--color-bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
}

/* Inline code */
p code,
li code {
  background: var(--color-bg-secondary);
  color: var(--text-highlighted);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .leftAndRight {
    flex-direction: column;
    padding: 0 1rem;
    gap: 2.5rem;
    align-items: center;
  }

  /* ----- Left Section (Profile + Nav) ----- */
  .leftBar {
    position: relative;
    top: 0;
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--text-secondary);
    gap: 1.5rem;
  }

  .pfp {
    width: 180px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .heading {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .subHeading {
    font-size: 1.1rem;
    color: var(--text-secondary);
  }

  .occupation {
    width: 100%;
    max-width: 300px;
    font-size: 0.95rem;
    color: var(--text-secondary);
  }

  .navLinks {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
  }

  .navLinks a {
    font-size: 0.95rem;
    transform: none;
    transition: color 0.3s ease;
  }

  .navLinks a.active,
  .navLinks a:hover {
    color: var(--text-highlighted);
    transform: none;
  }

  .social a:visited {
    color: var(--text-highlighted);
  }

  .social {
    justify-content: center;
    gap: 1.5rem;
  }

  .rightBar {
    margin: 0;
    max-width: 100%;
    padding: 0;
    gap: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projects {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .projectLinks {
    align-items: center;
    justify-content: center;
  }

  .heading { font-size: 40px; }
    .skillsTitle,
    .projectsTitle,
    .experienceTitle,
    .postsTitle,
    .contactTitle {
    font-size: 40px;
    }
}
