  @font-face {
    font-family: 'Nunito';
    src: url('../localfonts/Nunito-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Nunito';
    src: url('../localfonts/Nunito-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
  }

  @font-face {
    font-family: 'Nunito';
    src: url('../localfonts/Nunito-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
  }

  @font-face {
    font-family: 'Nunito';
    src: url('../localfonts/Nunito-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
  }

  @font-face {
    font-family: 'Cormorant Garamond';
    src: url('../localfonts/CormorantGaramond-Regular.woff2') format('woff2'),
      url('../localfonts/CormorantGaramond-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Cormorant Garamond';
    src: url('../localfonts/CormorantGaramond-Light.woff2') format('woff2'),
      url('../localfonts/CormorantGaramond-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
  }

  @font-face {
    font-family: 'Cormorant Garamond';
    src: url('../localfonts/CormorantGaramond-Bold.woff2') format('woff2'),
      url('../localfonts/CormorantGaramond-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
  }

  @font-face {
    font-family: 'Cormorant Garamond';
    src: url('../localfonts/CormorantGaramond-Italic.woff2') format('woff2'),
      url('../localfonts/CormorantGaramond-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
  }

  :root {
    --primary-color: #f6bdc9;
    --bg-color: #ffffff;
    --menu-bg-color: #f6bdc9;

    --primary-text-color: #010101;
    --navbar-text-color: #ffffff;
    --gray-color: #fff5f5;
    --p-color: #7d7a7a;

    --base-font-family: "Nunito", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    --heading-font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-weight-bold: 700;
    --font-weight-normal: 400;
    --font-weight-light: 300;

    --h1-font-size: 56px;
    --h2-font-size: 48px;
    --h3-font-size: 38px;
    --h4-font-size: 34px;
    --h5-font-size: 30px;
    --h6-font-size: 24px;
    --p-font-size: 18px;
    --base-font-size: 16px;
    --button-font-size: 20px;

    --border-radius-large: 100%;
    --border-radius-medium: 80px;
    --border-radius-small: 40px;

    /* Additional variables for smooth transitions */
    --card-bg-color: #fff0f0;
  }

  /* Dark mode color scheme */
  @media (prefers-color-scheme: dark) {
    :root {
      --primary-color: #c7a5ac;
      --bg-color: #3e3439;
      --menu-bg-color: #8d757a;
      --primary-text-color: #e8e8e8;

      --gray-color: #f9ebeb;
      --p-color: #b8b8b8;

      --card-bg-color: #53424a;
    }
  }


  body {
    font-family: var(--base-font-family);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
  }


  /*---------------------------------------
     TYPOGRAPHY              
  -----------------------------------------*/

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--heading-font-family);
    letter-spacing: 0.02em;
    font-weight: 600;
  }

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

  h1,
  h3 {
    font-weight: var(--font-weight-light);
  }

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

  h3 {
    font-size: var(--h3-font-size);
  }

  h4 {
    font-size: var(--h4-font-size);
  }

  h5 {
    font-size: var(--h5-font-size);
  }

  h6 {
    font-weight: var(--font-weight-bold);
    font-size: var(--h6-font-size);
  }

  #container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.3px;
    line-height: 2em;
  }

  pre {
    font-family: var(--base-font-family);
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.3px;
    line-height: 2em;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .custom-icon {
    font-size: 12px;
    position: relative;
    bottom: 3px;
    left: 5px;
    transform: rotate(-25deg);
  }


  /* CUSTOM BUTTON */
  .custom-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-medium);
    color: var(--bg-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--base-font-family);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.2px;
    line-height: 1;
    min-height: 40px;
    padding: 0 24px 2px 24px;
    transition: all 0.4s;
    white-space: nowrap;
  }

  @media (hover: hover) {
    .custom-btn:hover {
      background: transparent;
      color: var(--primary-text-color);
    }
  }


  /*---------------------------------------
     GENERAL               
  -----------------------------------------*/

  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  *::before,
  *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  a {
    color: var(--primary-text-color);
    text-decoration: none;
    transition: all 0.4s linear;
  }

  a:hover {
    color: var(--primary-text-color);
    text-decoration: none;
  }


  /*---------------------------------------
     MENU                
  -----------------------------------------*/

  .navbar {
    background: var(--menu-bg-color);
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    opacity: 1;
  }

  .navbar.scroll {
    background: var(--menu-bg-color);
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    opacity: 1;
  }

  .navbar-brand {
    color: var(--navbar-text-color) !important;
    font-family: var(--heading-font-family);
    font-weight: 600;
    font-size: var(--h4-font-size);
  }

  .navbar .custom-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }

  @media (hover: hover) {

    .contact-form #submit-button:hover,
    .navbar .custom-btn:hover {
      background: transparent;
      color: var(--primary-text-color);
    }
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    margin: 0 1.5rem;
    padding: 0;
  }

  .nav-item .nav-link.active,
  .nav-item .nav-link:hover {
    color: var(--gray-color);
  }

  .nav-item .nav-link.active,
  .nav-item .nav-link:hover {
    border-bottom-color: var(--primary-color);
  }

  .nav-link {
    color: var(--gray-color);
    font-weight: var(--font-weight-light);
    font-size: var(--base-font-size);
    border-bottom: 1px solid transparent;
  }

  .navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0 10px 0 0;
    width: 30px;
    height: 35px;
    outline: none;
  }

  .navbar-toggler:focus {
    outline: none;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
    top: 0;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
  }


  .navbar-toggler .navbar-toggler-icon {
    background: var(--navbar-text-color);
    transition: background 10ms 300ms ease;
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
  }

  .navbar-toggler .navbar-toggler-icon::before,
  .navbar-toggler .navbar-toggler-icon::after {
    transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--navbar-text-color);
    width: 30px;
    height: 2px;
    content: '';
  }

  .navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
  }

  .navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
  }

  /*---------------------------------------
     OTHER                
  -----------------------------------------*/

  .other-third {
    margin: 2.2em -0.8em;
  }

  .other-image {
    border-radius: var(--border-radius-small);
    box-shadow: 0px 15px 15px var(--primary-color);
  }

  .profile-list li {
    margin: 0.3rem 0;
  }

  .profile-list strong {
    display: inline-block;
    width: 30%;
    margin-right: 1rem;
  }

  /*---------------------------------------
     CONTACT               
  -----------------------------------------*/

  .contact-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(142, 140, 140, 0.35);
    box-shadow: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    color: var(--primary-text-color);
    font-weight: var(--font-weight-light);
    cursor: text;
  }

  .contact-form input {
    height: calc(2.25rem + 10px);
  }

  .contact-form .form-group {
    position: relative;
  }

  .contact-form .form-control,
  .webform-label {
    transition: all 0.4s;
    touch-action: manipulation;
  }

  .webform-label {
    cursor: text;
    font-size: 12px;
    font-weight: var(--font-weight-light);
    margin-bottom: 5px;
  }

  .contact-form .form-control:placeholder-shown+.webform-label {
    cursor: text;
    max-width: 66.66%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-origin: left bottom;
    transform: translate(0, 2.125rem) scale(1.5);
  }

  .contact-form ::-webkit-input-placeholder {
    opacity: 0;
    transition: inherit;
    color: var(--primary-text-color);
  }

  .contact-form ::-moz-placeholder {
    opacity: 0;
    transition: inherit;
    color: var(--primary-text-color);
  }

  .contact-form .form-control:focus::-webkit-input-placeholder {
    opacity: 1;
  }

  .contact-form .form-control:focus::-moz-placeholder {
    opacity: 1;
  }

  .contact-form .form-control:not(:placeholder-shown)+.webform-label,
  .contact-form .form-control:focus+.webform-label {
    transform: translate(0, 0) scale(1);
    cursor: pointer;
    color: var(--gray-color);
  }

  .contact-form #submit-button {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-medium);
    color: var(--bg-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
    line-height: 1;
    margin: 2.5rem auto 0 auto;
    min-height: 40px;
    padding: 0 24px 2px 24px;
    transition: all 0.4s;
    white-space: nowrap;
    width: fit-content;
    max-width: none;
  }

  .copyright-text {
    font-size: var(--base-font-size);
  }


  /*---------------------------------------
     SOCIAL LINKS              
  -----------------------------------------*/

  .social-links {
    margin: 40px 0;
    padding: 0;
  }

  .social-links li {
    display: inline-block;
    list-style: none;
  }

  .social-links a {
    display: inline-block;
    color: var(--p-color);
    font-size: var(--h6-font-size);
    margin: 5px 20px 5px;
  }

  .social-links a:hover {
    color: var(--primary-text-color);
  }


  /*---------------------------------------
     PORTFOLIO GRID              
  -----------------------------------------*/

  .tag-filter-wrapper {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    margin: 15px auto;
    width: 100%;
    max-width: 100%;
  }

  .tag-filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
    /* Hide scrollbar for IE/Edge */
    -ms-overflow-style: none;
    cursor: grab;
    /* Prevent text selection during drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .tag-filter-container.grabbing,
  .tag-filter-container.grabbing .tag-chip {
    cursor: grabbing;
    cursor: -webkit-grabbing;
  }

  .tag-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: max-content;
    padding: 0 10px;
  }

  /* Hide scrollbar for Chrome/Safari/Opera */
  .tag-filter-container::-webkit-scrollbar {
    display: none;
  }

  .tag-chip {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-medium);
    color: var(--primary-text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--base-font-size);
    font-weight: var(--font-weight-light);
    line-height: 1;
    min-height: 40px;
    padding: 0 24px 2px 24px;
    transition: all 0.4s;
    white-space: nowrap;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.15);
  }

  @media (hover: hover) {
    .tag-chip:hover {
      background: var(--primary-color);
      color: var(--bg-color);
      cursor: pointer;
    }
  }

  .tag-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
  }

  .portfolio-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius-small);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s;
    text-decoration: none;
    display: block;
    position: relative;
  }

  @media (hover: hover) {
    .portfolio-card:hover {
      transform: translateY(-10px);
      box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);
    }
  }

  .portfolio-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--primary-color);
  }

  .portfolio-card-content {
    padding: 20px;
  }

  .portfolio-card-title {
    color: var(--primary-text-color);
    font-family: var(--heading-font-family);
    font-size: var(--h3-font-size);
    margin: 0 0 15px 0;
  }

  .portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .portfolio-tag {
    background: var(--primary-color);
    border-radius: 20px;
    color: var(--bg-color);
    font-size: 14px;
    font-weight: var(--font-weight-light);
    padding: 4px 12px;
  }

  .portfolio-date {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: var(--primary-color);
    border-radius: 20px;
    color: var(--bg-color);
    font-size: 14px;
    font-weight: var(--font-weight-light);
    padding: 4px 12px;
  }

  .portfolio-card.hidden {
    display: none;
  }


  /*---------------------------------------
     RESPONSIVE STYLES              
  -----------------------------------------*/

  @media screen and (max-width: 991px) {
    .navbar-nav {
      margin: 1rem 0;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
      display: inline-block;
      margin: 5px 0.5rem;
    }
  }

  @media screen and (max-width: 350px) {
    .navbar-brand {
      font-size: 28px;
    }
  }

  /*---------------------------------------
     DARK MODE ADJUSTMENTS              
  -----------------------------------------*/

  @media (prefers-color-scheme: dark) {

    /* Adjust shadows for dark mode */
    .portfolio-card {
      box-shadow: 0px 5px 20px rgba(174, 189, 166, 0.1);
    }

    .portfolio-card:hover {
      box-shadow: 0px 5px 20px rgba(221, 173, 208, 0.6);
    }

    .other-image {
      box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.4);
    }

    /* Adjust form controls for dark mode */
    .contact-form .form-control {
      border-bottom: 1px solid rgba(232, 232, 232, 0.35);
      color: var(--primary-text-color);
    }

    .contact-form .form-control:focus+.webform-label {
      color: var(--gray-color);
    }

    /* Adjust portfolio tag contrast */
    .portfolio-tag {
      background: var(--primary-color);
      color: var(--bg-color);
    }
  }