body {
  /* remove default margin and padding */
  margin: 0;
  padding: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  overflow-x: hidden;

  /* modern dark developer theme */
  --bg-900: #030416;
  --bg-800: #071029;
  --bg-700: #0b1220;
  --muted: #94a3b8;
  --accent: #7c3aed; /* purple */
  --accent-2: #06b6d4; /* cyan */
  --glass: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.92);
}

:root {
  --color-primary-dark: var(--accent);
  --color-primary: var(--accent-2);
  --color-primary-light: rgba(124,58,237,0.08);
  --color-secondary: var(--bg-700);
  --color-text: var(--text);
  --color-border: rgba(255,255,255,0.04);
}

main { padding-top: 88px; }

/* Utility color helpers (map legacy class names to theme variables) */
.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--bg-900) !important; }
.bg-accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important; }
.bg-secondary { background: transparent !important; }
.text-text { color: var(--text) !important; }

/* Ensure project cards are visible by default */
.project-card { opacity: 1 !important; transform: none !important; }


.tags {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1rem;
  border-radius: 4px;
  padding: 8px 12px 8px 12px;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
}

.buttons {
  width: max-content;
  margin-top: 12px;
  padding: 12px;
  color: white;
  border: none;
  border-radius: 4px;
  font-style: normal;
  font-weight: 500;
  font-size: 1.063rem;
  line-height: 1.5rem;
  background-color: var(--color-primary-dark);
  text-decoration: none;
}

.buttons:hover {
  box-shadow: 0 8px 16px rgba(255, 97, 99, 0.24);
}

.buttons:active {
  background: #dd5153;
}

.section-title {
  font-style: normal;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 3.25rem;
  color: var(--color-secondary);
}

/* ****Header Section**** */

header {
  position: fixed;
  background-color: #172b4d;
  top: 0;
  width: 100vw;
  height: auto !important;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  color: var(--color-secondary);
}

header h1 {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 0;

}

header h1 a {
  text-decoration: none;
  color: white;
}

#headline ul {
  margin: 40px 24px 0 0;
  padding: 0;
  width: 170px;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
}

header #desktop-nav ul {
  display: none;
  padding: 0;
  margin: 0;
}

header #mobile-nav {
  width: 100vw;
  height: 95vh;
  background-color: white;
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  right: -100vw;
  transition: 0.7s;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 48px 48px rgba(37, 47, 137, 0.08);
}

header #mobile-nav ul {
  width: 100vw;
  height: 90vh;
  list-style: none;
  color: white;
}

header #mobile-nav ul li {
  display: flex;
  width: 100%;
  color: white;
}

header #mobile-nav ul li a {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  color: #172b4d;
  width: 100%;
  padding: 10px 28px 10px 28px;
}

header #desktop-nav ul li a {
  text-decoration: none;
  color: white;
  transition: 300ms;
}

header .toggleNav {
  width: 40px;
  height: 45px;
  margin: 4px 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 20px;
}

#close-menu{
  color: #172b4d;
}
/* ****Headline Section**** */

#headline {
  margin: 50px 0;
  padding: 0;
  background-image: url("/assets/images/header-illsutration-mobile@2x.png");
  background-position: top;
  background-size: cover;
}

#headline .headline-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#headline h1,
p {
  text-align: center;
  margin: 40px 24px 0 24px;
  color: var(--color-secondary);
}

#headline h1 span {
  color: var(--color-primary-dark);
}

.work-detail-wrapper .work-detail .buttons {
  width: 160px;
  height: fit-content;;
  padding: 12px 16px;
  display: inline-flex;
  margin-top: 5px;
  margin-right: 12px;
}

.work-detail-wrapper .work-detail .buttons p {
  width: 100px;
  padding: 0;
  margin: 0;
  color: white;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
}

#headline p {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.btn-round {
  border: 1px solid #dfe1e6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary);
}

#headline .btn-round {
  width: 40px;
  height: 40px;
  margin-top: 60px;
  text-decoration: none;
}

.social {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  text-decoration: none;
  margin-top: 100px;
  color: var(--color-secondary);
  transition: all 0.3s;
}

.social:hover {
  color: var(--color-primary-dark);
  transform: scale(1.3);
}

/* ****Works Section**** */
#works {
  display: grid;
  justify-content: center;
}

#works .work-wrapper {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-rows: repeat(3, auto);
}

footer .contact-wrapper h3 {
  padding: 0;
  margin: 24px;
  text-align: center;
}

.work-detail-wrapper .work-detail h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 40px;
  margin: 0;
  order: 3;
}

#about-me div h2 {
  text-align: center;
  margin: 50px 12px 24px 12px;
}

#works .work-wrapper h2 {
  text-align: center;
  font-size: 2.813rem;
  grid-row: 1 / 2;
  padding: 0;
  margin: 0;
}

#works .work-wrapper hr {
  width: 48px;
  height: 4px;
  margin-top: 10px;
  background-color: var(--color-primary-dark);
  border: none;
  border-radius: 24px;
  grid-row: 2 / 3;
}

#works .work-wrapper .list-work {
  display: grid;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  grid-row: 3 / 4;
  row-gap: 24px;
}

#works .work-wrapper .list-work .work {
  width: 330px;
  height: 475px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.work-detail-wrapper .work-detail img {
  width: 100%;
  max-height: 250px;
  border-radius: 8px;
  order: 1;
}

.work-detail-wrapper .work-detail .buttons img {
  width: 24px;
  height: 24px;
}

#works .work-wrapper .list-work .work img {
  width: 100%;
  height: 275px;
  background-color: var(--color-primary-light);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#works .work-wrapper .list-work .work div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#works .work-wrapper .list-work .work div h2 {
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 6px;
}

.list-tag {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}

.work-detail-wrapper .work-detail .list-tag {
  width: 100%;
  height: 32px;
  padding: 0;
  margin-top: 5px;
  margin-bottom: 5px;
  order: 4;
}

#works .list-work .work .list-tag {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
}

#works .list-work .work div button {
  width: max-content;
  margin-top: 24px;
  padding: 12px;
  color: white;
  border: none;
  border-radius: 4px;
  font-style: normal;
  font-weight: 500;
  font-size: 1.063rem;
  line-height: 1.5rem;
  background-color: var(--color-primary-dark);
}

/* *****Work Detail Modal***** */
.work-detail-wrapper {
  display: flex; /* flex */
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  top: 0;
  left: 0;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  padding: 20px 16px 26px 16px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
}

.work-detail-wrapper .work-detail {
  width: 100%;
  height: 98%;
  padding: 16px;
  background-color: white;
  border: 1px solid #dfe1e6;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.work-detail-wrapper .work-detail .row {
  width: 88%;
  height: 32px;
  position: fixed;
  display: flex;
  justify-content: flex-end;
  z-index: 11;
  right: 38px;
  left: 0;
  top: 38px;
  color: white;
  font-size: 24px;
}

.work-detail-wrapper .work-detail .btn-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  order: 6;
}

#work-detail-description {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: start;
  margin: 0;
  padding-bottom: 12px;
  padding-top: 12px;
  max-height: 32vh;
  overflow: hidden;
  order: 5;
}

.work-detail-wrapper .work-detail .buttons i {
  font-size: 24px;
  color: white;
  margin-left: 8px;
}

/* ****About me**** */

#about-me {
  display: flex;
  justify-content: center;
}

#about-me .about-me-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#about-me .about-me-wrapper .resume {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  background: url("/assets/images/illustration-aboutme-mobile.png");
  background-position: top;
  background-size: cover;
}

#about-me .about-me-wrapper div p {
  font-style: normal;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
  margin: 0 12px 24px 12px;
}

#about-me .about-me-wrapper .list-skill {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#about-me .about-me-wrapper .list-skill .skill {
  margin-top: 24px;
  width: 325px;
  height: 375px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-primary-light);
}

#about-me .about-me-wrapper .list-skill .skill img {
  width: 60px;
  height: 60px;
  padding: 18px;
  margin-top: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 16px 24px rgba(37, 47, 137, 0.08);
}

#about-me .about-me-wrapper .list-skill .skill h3 {
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #633434;
  margin: 60px 0 0 0;
}

#about-me .about-me-wrapper .list-skill .skill ul {
  justify-content: center;
  padding: 0;
}

#about-me .about-me-wrapper .list-skill .skill li {
  background-color: white;
}

/* ****Footer Section**** */

footer {
  background-image: url("/assets/images/backgroundfooter.png");
  background-position: top;
  background-size: cover;
}

footer .footer-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

footer .contact-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer .contact-wrapper form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .contact-wrapper form label {
  margin-top: 24px;
}

footer .contact-wrapper form label input,
textarea {
  width: 300px;
  padding: 15px;
  border: 1px solid #d0d9d4;
  border-radius: 4px;
}

footer .contact-wrapper form label input:focus,
textarea:focus {
  outline: none !important;
  border: 2px solid var(--color-primary-dark);
}

footer .contact-wrapper textarea {
  min-height: 100px;
}

.errorOutline {
  border: 2px solid red !important;
}

.error {
  color: red;
  font-weight: bold;
  padding-top: 20px;
  padding-right: 12px;
  padding-left: 12px;
}

.btn-contact {
  margin-top: 24px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-top: 50px;
  font-size: 1.25rem;
}

.social-icon {
  transition: all 0.3s;
  font-size: 1.5rem;
  color: #505f79;
  margin-left: 10px;
  margin-right: 10px;
}

.social-icon:hover {
  color: var(--color-primary-dark);
  transform: scale(1.3);
}

.my-email {
  color: #42526e;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2rem;
  margin: 24px 0 147px 0;
}

/* New gradient helpers and animation classes */
.gradient-text {
  background: linear-gradient(135deg, #4fd1c5, #63b3ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animated-bg .blob {
  filter: blur(28px) saturate(120%);
  opacity: 0.85;
  transform-origin: center;
}

.hero-fade {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive helpers kept as original (omitted here for brevity) */

@media screen and (min-width: 768px) {
  header h1 {
    padding: 0;
  }

  header .toggleNav,
  h1 a {
    display: none;
  }

  .social-icons a {
    display: flex;
    text-decoration: none;
    padding: 15px 25px 0 10px;
    align-items: center;
    color: #505f79;
    list-style: none;
  }

  header #desktop-nav {
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 0.938rem;
    line-height: 1.25rem;
  }

  header #mobile-nav {
    display: none;
  }

  header #desktop-nav ul {
    width: 255px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    list-style: none;
    color: #344563;
    padding: 0;
    margin-top: 16px;
    margin-bottom: 16px;
    cursor: pointer;
  }

  header #desktop-nav ul li {
    cursor: pointer;
  }

  header #desktop-nav ul li:hover {
    text-decoration: underline;
  }

  #headline {
    height: 1000px;
    margin: 0;
    display: flex;
    justify-content: center;
    background-image: url("/assets/images/Header-llustration-desktop@2x.png");
  }

  #headline .headline-wrapper {
    width: 920px;
    height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
  }

  #headline .headline-wrapper h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 3.75rem;
    letter-spacing: 0.37px;
    margin: 0;
  }

  #headline .headline-wrapper p {
    margin: 10px 150px 24px 150px;
    line-height: 1.75rem;
  }

  #headline .headline-wrapper ul {
    margin: 24px 0 24px 0;
  }

  #headline .headline-wrapper .btn-round {
    margin-top: 24px;
    transition: all 0.3s;
  }

  #headline .headline-wrapper .btn-round:hover {
    transform: scale(1.3);
  }

  /* ****Work Section**** */

  #works .work-wrapper {
    width: 1150px;
    margin-top: 80px;
  }

  footer .contact-wrapper h3 {
    width: 465px;
    font-size: 1.875rem;
    margin-right: 24px;
    text-align: start;
  }

  .work-detail-wrapper .work-detail h2 {
    width: 60%;
    height: 60px;
  }

  #works .work-wrapper h2 {
    margin-bottom: 24px;
  }

  #works .work-wrapper hr {
    display: none;
  }

  #works .work-wrapper .list-work {
    display: grid;
    justify-content: center;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 24px;
  }

  #works .work-wrapper .list-work .work {
    width: 369px;
    height: 520px;
    transition: all 0.4s;
    overflow: hidden;
  }

  .work img {
    transition: all 0.4s ease-in-out;
  }

  .work img:hover {
    transform: scale(1.08);
  }

  #works .work-wrapper .list-work .work:hover {
    transform: translateY(-15px);
    border: 1px solid var(--color-primary-dark);
    box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
  }

  #works .work-wrapper .list-work .work h2 {
    padding-left: 16px;
    padding-right: 16px;
    margin: 0;
  }

  /* ****Work Detail*** */

  .work-detail-wrapper .work-detail {
    width: 100%;
    height: 90vh;
    max-width: 800px;
    flex-direction: row;
    flex-wrap: wrap;
    border: 1px solid #ebecf0;
    border-radius: 8px;
    box-shadow: 0 48px 48px rgba(37, 47, 137, 0.08);
  }

  .work-detail-wrapper .work-detail .row {
    width: 100%;
    height: 32px;
    position: relative;
    top: 0;
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-end;
  }

  .work-detail-wrapper .work-detail .row .close-icon {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #ebecf0;
    color: #67798e;
    font-size: 20px;
    cursor: pointer;
  }

  .work-detail-wrapper .work-detail img {
    max-height: 320px;
  }

  .work-detail-wrapper .work-detail .btn-group {
    width: 35%;
    order: 3;
  }

  /* ****About me**** */

  #about-me {
    width: 100%;
    min-height: 300px;
    align-items: flex-end;
    background: url("/assets/images/illustration-about-me-desktop@2x.png");
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
  }

  #about-me .about-me-wrapper {
    width: 80vw;
  }

  #about-me .about-me-wrapper .resume {
    background: none;
    margin-top: 80px;
    padding-left: 120px;
    padding-right: 120px;
  }

  #about-me .about-me-wrapper .list-skill {
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }

  #about-me .about-me-wrapper .list-skill .skill {
    margin-right: 24px;
    transition: all 0.3s;
  }

  #about-me .about-me-wrapper .list-skill .skill:hover {
    transform: translateY(-15px);
    border: 1px solid var(--color-primary-dark);
    box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
  }

  /* ****Footer Section**** */

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .footer-wrapper {
    padding-bottom: 140px;
    background: url("/assets/images/illustration-2-contact-form-desktop@2x.png");
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
  }

  footer .contact-wrapper {
    box-sizing: border-box;
    width: 80vw;
    min-height: 500px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 80px;
  }

  footer .contact-wrapper form {
    width: 600px;
    align-items: flex-start;
  }

  footer .contact-wrapper form label {
    width: 100%;
  }

  footer .contact-wrapper form label input,
  textarea {
    box-sizing: border-box;
    width: 100%;
  }

  footer .social-icons {
    margin-top: 0;
  }

  footer .my-email {
    display: none;
  }
}
