/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3.5rem;

  /* Color hue */
  --hue-color: 250;

  --first-color: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 69%, 55%);
  --title-color: hsl(230, 9%, 12%);
  --text-color: hsl(230, 9%, 45%);
  --text-color-light: hsl(230, 9%, 65%);
  --body-color: hsl(230, 60%, 98%);
  --container-color: #fff;

  --shadow: 0 8px 24px rgba(21,21,21,0.06);

  --body-font: 'Poppins', sans-serif;

  --big-font-size: 2.25rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.05rem;
  --normal-font-size: .938rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  --mb-1: 1rem;
  --mb-2: 2rem;

  --z-fixed: 100;
}

/* Dark theme variables */
[data-theme="dark"] {
  --title-color: #e8e8ee;
  --text-color: #c9c9d4;
  --text-color-light: #a8a8b6;
  --body-color: #0f1226;
  --container-color: #0b0d18;
  --shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--body-font);
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--header-height);
  transition: background .3s ease, color .3s ease;
}

/* Make anchor scrolling account for fixed header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
/* ==================== CLEAN MODERN HEADER ==================== */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.65);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .header {
  background: rgba(15, 18, 38, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
}

/* Scroll shadow */
.header.scroll-header {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* ==================== NAV ==================== */

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--title-color);
  text-decoration: none;
}

/* Desktop menu */
.nav__list {
  display: none;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav__list {
    display: flex;
  }
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: .3s;
}

/* Hover underline animation */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2.5px;
  background: var(--first-color);
  transition: width 0.28s ease;
  border-radius: 4px;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

/* Theme + mobile button */
.nav__btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__btns i {
  font-size: 1.3rem;
  cursor: pointer;
}

/* ==================== MOBILE MENU ==================== */

.nav__toggle {
  display: block;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav__menu {
    display: none !important;
  }
}


/* Slide-down menu */
.nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--container-color);
  height: 100vh;
  transform: translateY(-110%);
  transition: transform .35s ease;
  z-index: 999;
}

[data-theme="dark"] .nav__menu {
  background: #0d1022;
}

.nav__menu.show-menu {
  transform: translateY(0);
}

.nav__menu-content {
  padding: 2rem;
  padding-top: 4rem;
}

.nav__close {
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav__menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.nav__menu-link {
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--title-color);
  font-weight: 500;
  transition: .25s;
}

.nav__menu-link:hover {
  color: var(--first-color);
}

.nav__link--green {
  color: #1DB954 !important;  /* green */
}

.nav__link--green::after {
  background: #1DB954 !important;  /* green */
}

/* Desktop nav presentation */
@media(min-width: 768px) {
  .nav__menu {
    position: static;
    transform:none;
    background:transparent;
    padding:0;
  }
  .nav__list {
    flex-direction:row;
    gap:1.5rem;
  }
  .nav__close {
    display:none;
  }
  .nav__toggle {
    display:none;
  }
}

/* Buttons */
.button {
  display:inline-block;
  background: var(--first-color);
  color: white;
  padding: .6rem 1.1rem;
  border-radius: .6rem;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: .9rem;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  background: var(--first-color-alt);
}
.button--ghost {
  background: transparent;
  color: var(--first-color);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
[data-theme="dark"] .button--ghost {
  border-color: rgba(255,255,255,0.15);
}

/* Sections */
.section {
  padding: 3.5rem 0;
  text-align:center;
}
.section__title {
  font-size:var(--h1-font-size);
  color:var(--title-color);
  margin-bottom:.5rem;
}
.section__subtitle {
  display:block;
  color:var(--text-color-light);
  margin-bottom: var(--mb-2);
}

/* Generic card */
.card {
  background: var(--container-color);
  border-radius:.75rem;
  box-shadow: var(--shadow);
}

/* HOME */
.home__container {
  display:grid;
  grid-template-columns: 1fr;
  gap:2.5rem;
  align-items:center;
  justify-items:center;
}
.home__data {
  text-align:center;
  max-width: 480px;
}
.home__eyebrow {
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--text-color-light);
}
.home__title {
  font-size:var(--big-font-size);
  color:var(--title-color);
  margin:.5rem 0 .25rem;
}
.home__subtitle {
  color:var(--first-color);
  margin-bottom: .75rem;
}
.home__description {
  margin-bottom:1.25rem;
  text-align: justify;
  color:var(--text-color);
}
.home__actions {
  display:flex;
  justify-content:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.home__img {
  display:flex;
  justify-content:center;
}


/* Avatar Circle */
/*.avatar {
  width: 220px;
  height: 220px;
  border-radius: 70%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, var(--first-color), var(--first-color-alt));
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  position: relative;
} */
/* Avatar border effect */
/*.avatar::before {
  content: "";
  position:absolute;
  inset:-8px;
  border-radius:inherit;
  border:2px solid rgba(255,255,255,0.25);
  opacity:.4;
}*/
/*
.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform .3s ease;
}
.avatar:hover .avatar__img {
  transform: scale(1.08);
} 
*/

.avatar {
  width: 240px;
  height: 260px;
  overflow: hidden;
  position: relative;
  border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}


.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Grid utility */
.grid {
  display:grid;
  gap:1.5rem;
}

/* Larger screens layout */
@media(min-width: 768px) {
  .home__container {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
    text-align:left;
  }
  .home__data {
    text-align:left;
  }
  .home__actions {
    justify-content:flex-start;
  }
  .about__container {
    grid-template-columns: 1.2fr 1fr;
    align-items:start;
  }
  .skills__container {
    grid-template-columns: 1fr 1fr;
  }
  .container {
    padding: 0 2rem;
  }
}

/* ABOUT & SKILLS quick bars */
.about__list {
  list-style:none;
  margin-top:1rem;
  text-align:left;
}
.about__list li + li {
  margin-top:.35rem;
}

/* SKILLS accordion */
.skills__content {
  background:var(--container-color);
  padding:1rem;
  border-radius:.5rem;
  box-shadow:var(--shadow);
  overflow:hidden;
  transition: max-height .35s ease;
}
.skills__header {
  display:flex;
  align-items:center;
  gap:1rem;
  cursor:pointer;
}
.skills__icon {
  font-size:1.5rem;
  color:var(--first-color);
}
.skills__arrow {
  margin-left:auto;
  transition: transform .25s ease;
}
.skills__list {
  margin-top:.75rem;
  text-align:left;
  color:var(--text-color-light);
}

/* collapsed behavior */
.skills__content .skills__list {
  max-height:0;
  overflow:hidden;
  transition: max-height .35s ease;
}
.skills__content.open .skills__list {
  max-height: 400px;
}
.skills__content.open .skills__arrow {
  transform: rotate(180deg);
}

/* MINI skill bars */
.skills__group {
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin-top:1rem;
}
.skills__data {}
.skills__titles {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.35rem;
}
.skills__bar {
  width:100%;
  height:6px;
  border-radius:999px;
  background:rgba(0,0,0,0.06);
  overflow:hidden;
}
.skills__percentage {
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--first-color);
}

/* Qualification tabs */
.qualification__tabs {
  display:flex;
  gap:.75rem;
  justify-content:center;
  margin-bottom:1rem;
}
.qualification__button {
  padding:.5rem 1rem;
  border-radius: .5rem;
  background:var(--container-color);
  cursor:pointer;
  box-shadow:var(--shadow);
  font-size:.9rem;
}
.qualification__button.button--flex {
  display:flex;
  align-items:center;
  gap:.35rem;
}
.qualification__active {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 2px solid rgba(0,0,0,0.03);
}
.qualification__sections {
  max-width:420px;
  margin:0 auto;
}
.qualification__content {
  display:none;
}
.qualification__content.qualification__active {
  display:block;
}
.qualification__data h3 {
  font-size:var(--h3-font-size);
  color:var(--title-color);
}
.qualification__data span {
  color:var(--text-color-light);
}

/* SERVICES */
.services__container {
  display:grid;
  gap:1rem;
  grid-template-columns: 1fr;
}
@media(min-width: 768px) {
  .services__container {
    grid-template-columns: 1fr 1fr;
  }
}
.services__card {
  padding:1.25rem;
  background:var(--container-color);
  border-radius:.75rem;
  box-shadow:var(--shadow);
  text-align:left;
}

/* modal */
.services__modal {
  position:fixed;
  inset:0;
  display:none;
  background: rgba(0,0,0,0.5);
  justify-content:center;
  align-items:center;
  z-index:1000;
}
.services__modal.active-modal {
  display:flex;
}
.services__modal-content {
  background:var(--container-color);
  padding:1.25rem;
  border-radius:.75rem;
  width:90%;
  max-width:520px;
  position:relative;
  box-shadow:var(--shadow);
}
.services__modal-close {
  position:absolute;
  right:.75rem;
  top:.75rem;
  cursor:pointer;
  font-size:1.25rem;
}

/*==================== PORTFOLIO ====================*/
.portfolio__featured {
  background: var(--container-color);
  border-radius: .75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.portfolio__featured-img {
  width: 100%;
  display: block;
}
.portfolio__featured-content {
  padding: 1.5rem;
  text-align: left;
}
.portfolio__featured-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: .5rem;
}
.portfolio__featured-description {
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text-color);
}

/* Portfolio Grid */
.portfolio__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.portfolio__item {
  background: var(--container-color);
  border-radius: .75rem;
  box-shadow: var(--shadow);
  padding-bottom: 1rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.portfolio__img {
  width: 100%;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.portfolio__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  padding: 1rem 1rem .25rem 1rem;
}
.portfolio__description {
  padding: 0 1rem;
  color: var(--text-color-light);
}

.portfolio__see-more {
  margin-top: 2rem;
  text-align: center;
}

/* Responsive Portfolio Grid */
@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio__featured {
    grid-template-columns: 2fr 1.2fr;
    align-items: center;
  }
  .portfolio__featured-img {
    height: 100%;
    object-fit: cover;
  }
}

/* TESTIMONIAL */
.testimonial__container {
  display:grid;
  gap:1.5rem;
  margin-top:1.5rem;
}
@media(min-width: 768px) {
  .testimonial__container {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial__card {
  background:var(--container-color);
  padding:1.25rem;
  border-radius:.75rem;
  box-shadow:var(--shadow);
  text-align:left;
  position:relative;
  overflow:hidden;
}
.testimonial__card p {
  margin-bottom:.75rem;
  color:var(--text-color);
}
.testimonial__card h4 {
  font-size:.9rem;
  color:var(--text-color-light);
}

/* CONTACT */
.contact__container {
  display:grid;
  gap:1.5rem;
  grid-template-columns: 1fr;
}
@media(min-width: 768px) {
  .contact__container {
    grid-template-columns: 1.2fr 1fr;
  }
}
.form__group {
  margin-bottom:.8rem;
}
.form__control {
  width:100%;
  padding:.7rem;
  border-radius:.5rem;
  border:1px solid rgba(0,0,0,0.08);
  background:transparent;
  color:var(--text-color);
}
.form__control:focus {
  outline:none;
  border-color: var(--first-color);
}
.contact__info h3 {
  font-size:var(--h3-font-size);
  color:var(--title-color);
  margin-bottom:.25rem;
}
.contact__info p {
  margin-bottom:.75rem;
  color:var(--text-color-light);
}

/* FOOTER */
.footer {
  padding:1.5rem 0;
  text-align:center;
  color:var(--text-color-light);
  font-size:.85rem;
}

/* SCROLL UP */
.scrollup {
  position:fixed;
  right:1.25rem;
  bottom:1.25rem;
  background:var(--first-color);
  color:white;
  padding:.6rem;
  border-radius:50%;
  display:none;
  box-shadow:var(--shadow);
  z-index:999;
}
.scrollup i {
  font-size:1.05rem;
}
.show-scroll {
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* small screens */
@media(max-width: 420px) {
  .nav__menu {
    padding-top:3rem;
  }
  .avatar {
    width:130px;
    height:130px;
  }
}

/* helper utilities */
.hidden {
  display:none;
}

/*==================== PROJECTS PAGE ====================*/
.project__banner {
  width: 100%;
  margin: 1rem 0 2rem;
  border-radius: .75rem;
  box-shadow: var(--shadow);
}


.project__details,
.project__pdf,
.project__video {
  margin-bottom: 2rem;
  text-align: left;
}

.project__summary,
.project__objective {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.project__summary h3,
.project__details h3,
.project__pdf h3,
.project__video h3 {
  color: var(--title-color);
  margin-bottom: .5rem;
}

.project__video-thumb {
  width: 100%;
  max-width: 650px;
  border-radius: .75rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.project__video-thumb:hover {
  transform: scale(1.03);
}
.project__video-thumb img {
  width: 100%;
  border-radius: inherit;
  display: block;
}

/* Remove underline from project links on the Projects page */
.portfolio__item,
.portfolio__item * {
  text-decoration: none !important;
}

.portfolio__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Certifications section */
.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cert-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
  box-shadow: var(--shadow);
}

/* Filter Buttons */
.portfolio__filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .6rem 1rem;
  border: none;
  background: var(--container-color);
  box-shadow: var(--shadow);
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--first-color);
  color: white;
}
