/* ===============================
   GOOGLE FONTS
================================ */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;600;700&display=swap");

/* ===============================
   CSS VARIABLES
================================ */
:root {
  /* Colors */
  --color-primary: #4a4a4a;
  --color-primary-alt: #5f5f5f;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f2f4;
  --color-text: #555555;
  --color-text-light: #999999;
  --color-border: #e5e7eb;

  /* Gradient */
  --overlay-gradient: linear-gradient(
    54deg,
    rgba(45, 45, 45, 0.95) 34%,
    rgba(45, 45, 45, 0.95)
  );

  /* Typography */
  --font-body: "Roboto", sans-serif;
  --font-mono: "Roboto Mono", monospace;

  /* Font sizes */
  --fs-h1: clamp(2rem, 5vw, 2.75rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.25rem);
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Layout */
  --container-width: 1140px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ===============================
   RESET & BASE
================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ===============================
   TYPOGRAPHY
================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

p {
  max-width: 70ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.7;
}

/* ===============================
   MEDIA ELEMENTS
================================ */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ===============================
   LAYOUT UTILITIES
================================ */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: clamp(3rem, 6vw, 4rem);
}

.section__title {
  margin-bottom: 1.5rem;
  letter-spacing: 0.25em;
  font-weight: var(--fw-medium);
}

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

/* ===============================
   BUTTONS (GLOBAL)
================================ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: var(--transition);
}

.button:hover {
  background-color: var(--color-primary-alt);
}
/* ===============================
   HEADER & NAVIGATION
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #4a4a4a;
}

/* Menu (Desktop) */
.nav__menu {
  display: flex;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.nav__link:hover {
  opacity: 0.6;
}

/* Underline indicator */
.nav__link::after {
  content: "";
  position: absolute;
  right: -0.4rem;
  bottom: 0;
  width: 7px;
  height: 2px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: var(--transition);
}

.nav__link:hover::after,
.active-link::after {
  opacity: 1;
}

.active-link {
  opacity: 0.6;
}

/* Toggle buttons */
.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--color-primary);
  display: none;
}

/* ===============================
   MOBILE NAVIGATION
================================ */

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 0;

    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg);
    padding: 2.5rem 2rem;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;

    transition: transform 0.3s ease;
    transform: translateX(100%);
    right: 0;
  }

  .nav__menu.show-menu {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
  }

  .nav__link {
    font-size: var(--fs-base);
  }
  body.nav-open {
    overflow: hidden;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
}
/* ===============================
   HOME / HERO SECTION
================================ */

.home {
  position: relative;
  background: url("../img/Charcoal Abstract Liquid Illustration Desktop Wallpaper.png")
    center / cover no-repeat;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
  color: #ffffff;
}

/* Overlay */
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
  z-index: 1;
}

/* Layout */
.home__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Profile Image */
.home__img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Content */
.home__content {
  font-family: var(--font-mono);
}

.home__name {
  font-size: var(--fs-h1);
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.home__role {
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 2rem;
}

/* Info List */
.home__info {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.home__info div {
  display: grid;
  grid-template-columns: 90px 1fr;
}

.home__info dt {
  font-weight: var(--fw-bold);
  opacity: 0.5;
}

.home__info dd {
  margin: 0;
}

/* Social Links */
.home__socials {
  display: flex;
  gap: 1rem;
}

.home__socials a {
  font-size: 1.6rem;
  color: #ffffff;
  opacity: 0.45;
  transition: var(--transition);
}

.home__socials a:hover {
  opacity: 1;
}

/* ===============================
   RESPONSIVE BEHAVIOR
================================ */

@media (max-width: 992px) {
  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home__img {
    margin-inline: auto;
  }

  .home__info div {
    grid-template-columns: 1fr;
  }

  .home__info dt {
    margin-bottom: 0.15rem;
  }

  .home__socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home {
    padding-top: 4.5rem;
  }

  .home__role {
    letter-spacing: 0.12em;
  }
}

/* ===============================
   ABOUT / HI SECTION
================================ */

.about__text {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 65ch;
}

/* Align content nicely */
.section.container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Button spacing consistency */
.section .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ===============================
   RESPONSIVE TWEAKS
================================ */

@media (max-width: 768px) {
  .about__text {
    font-size: var(--fs-base);
    line-height: 1.6;
    max-width: 100%;
  }

  .section .button {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .about__text {
    text-align: left;
  }
}
/* ===============================
   TECH SKILLS SECTION
================================ */
.skills-scale {
  max-width: 640px;
  display: grid;
  gap: 1.25rem;
}

.skill span {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.bar {
  background: var(--color-bg-alt);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  width: 0;
  transition: width 1s ease;
}

/* ===============================
   SOFT SKILLS SECTION
================================ */

.soft-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Individual card */
.soft-skill {
  border: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  transition: var(--transition);
}

.soft-skill:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* Title */
.soft-skill h3 {
  font-size: var(--fs-sm);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Description */
.soft-skill p {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* ===============================
   RESPONSIVE REFINEMENTS
================================ */

@media (max-width: 480px) {
  .soft-skill {
    padding: 1.5rem 1.25rem;
  }

  .soft-skill h3 {
    letter-spacing: 0.1em;
  }
}
/* ===============================
   CREDENTIALS SECTION  
================================ */
.credentials {
  display: grid;
  gap: 3rem;
}

.cred-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.cred-icons img {
  width: 50px;
  opacity: 0.85;
}

/* ===============================
   EDUCATION SECTION
================================ */
.education-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.edu-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.edu-tile:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.edu-tile img {
  width: 110px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
}

.edu-tile h3 {
  font-size: var(--fs-base);
}

.edu-tile span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

/* ===============================
   PORTFOLIO / WORK SECTION
================================ */
.project-logo {
  width: auto; /* stop filling the column */
  max-width: 60%; /* control visual size */
  max-height: 140px; /* cap vertical size */
  object-fit: contain;
  background-color: #ffffff;
  padding: 1rem;
  margin: auto;
}

.project__filters {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--color-primary);
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -0.4rem;
  width: 7px;
  height: 2px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  opacity: 1;
}

/* ===============================
   PROJECT LIST WRAPPER
================================ */

.projects__wrapper {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

/* ===============================
   PROJECT CARD
================================ */

.project {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 2.5rem;
  align-items: stretch;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    max-height 0.35s ease,
    margin 0.35s ease;
  max-height: 1000px;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.project__content {
  border: 1px solid var(--color-border);
  padding: 2rem 2.25rem;
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.project h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
}

.project p {
  font-size: var(--fs-base);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project .stack {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: auto;
}

/* ===============================
   PROJECT DETAILS (ALWAYS VISIBLE)
================================ */

.project__details {
  margin-top: 1rem;
}

.project__details p {
  margin-bottom: 1rem;
}

.project__details a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  border-bottom: 2px solid transparent;
}

.project__details a:hover {
  border-color: var(--color-primary);
}

.project.expanded .project__details {
  max-height: 400px;
  opacity: 1;
  margin-top: 1rem;
}

/* ===============================
   FILTER SLIDE ANIMATION
================================ */

.project.hide {
  opacity: 0;
  transform: translateX(-40px);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

/* ===============================
   RESPONSIVE – WORK SECTION
================================ */

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

  .project img {
    max-height: 260px;
  }
}

@media (max-width: 480px) {
  .project__filters {
    justify-content: center;
    gap: 1.5rem;
  }

  .project__content {
    padding: 1.5rem;
  }
}

.tech-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tech-group {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
}

.tech-group h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.tech-group p {
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.experience {
  max-width: 720px;
}

.experience-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.25rem;
}

.experience-item span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

.experience-item ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.experience-item li {
  position: relative;
  padding-left: 1rem;
}

.experience-item li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.current-role {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
}

.current-badge {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.75;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service {
  border: 1px dashed var(--color-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.service:hover {
  border-color: var(--color-primary);
}

.service h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.blog-list {
  display: grid;
  gap: 2.5rem;
  max-width: 820px;
}

/* Card */
.blog-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}

/* Preview section */
.blog-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
}

.blog-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta */
.blog-meta {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.blog-meta h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.blog-meta p {
  font-size: var(--fs-base);
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Read more button */
.blog-toggle {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  padding: 0;
}

.blog-toggle::after {
  content: " +";
}

/* Expanded content */
.blog-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.75rem;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  font-style: italic;
}
.blog-content strong {
  font-style: normal;
  font-family: var(--font-mono);
}
.blog-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Expanded state */
.blog-card.expanded .blog-content {
  max-height: 600px;
  opacity: 1;
  padding-bottom: 1.75rem;
}

.blog-card.expanded .blog-toggle::after {
  content: " −";
}

.blog-teaser {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-teaser img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.blog-teaser .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.blog-teaser:hover .overlay {
  background: rgba(0, 0, 0, 0.7);
}
.cred-item,
.cred-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
}

.cred-item a:hover {
  opacity: 0.85;
}

.cred-item p {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text);
  max-width: 140px;
}
