      :root {
        --bg: #f8fafc;
        --card: #ffffff;
        --text: #0f172a;
        --muted: #64748b;
        --accent: #4f46e5;
        --border: #e5e7eb;
      }

      ::-webkit-scrollbar {
        width: 6px;
      }

      ::-webkit-scrollbar-thumb {
        background-color: var(--accent);
        border-radius: 5px;
      }

      ::-webkit-scrollbar-thumb:hover {
        cursor: grab;
      }

      ::-webkit-scrollbar-track {
        background: var(--border);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html:focus-within {
        scroll-behavior: smooth;
      }

      body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.7;
        overflow-x: hidden;
      }

      a {
        text-decoration: none;
      }

      button, img {
        user-select: none;
      }

      p {
        padding: 1rem;
        font-size: clamp(0.85rem, calc(1.25dvw + 0.1rem), 1.5rem);
      }

      /* ---------- NAV ---------- */
      header {
        position: sticky;
        top: 0;
        z-index: 10;
        opacity: 0.98;
        box-shadow: 1px 2px 2px rgba(0,0,0,0.05);
      }

      nav {
        background: var(--card);
        width: min(100%, 1200px);
        padding: 0rem 1.4rem 0.5rem 1.4rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
      }

      /* LOGO */
      .logo {
        font-size: clamp(1.6rem, calc(2.25dvw + 0.25rem), 2.25rem);
        font-weight: 800;
        color: var(--accent);
        text-shadow: var(--border) 3px 2px 3px;
      }

      .logo:hover {
        transform: scale(1.03);
        transition: transform 0.4s ease;
        cursor: pointer;
        user-select: none;
      }

      /* NAV-LINKS */
      .nav-links {
        list-style: none;
        display: flex;
        gap: 1.25rem;
      }

      .nav-links a {
        font-size: clamp(0.95rem, calc(1dvw + 0.25rem), 1.25rem);
        color: var(--text);
        font-weight: 650;
        position: relative;
        display: inline-block;
      }

      .nav-links a:hover {
        color: var(--accent);
        transition: color 0.3s ease;
      }

      /* underline on hover effect */
      .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
      }

      .nav-links a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
      }

      /* ACTIVE UNDERLINE FOR CURRENT PAGE */
      .nav-links a[aria-current="page"]::after {
       transform: scaleX(1);
       transform-origin: left;
      }

      .nav-links a[aria-current="page"] {
        color: var(--accent);
      }

      /* MENUBAR */
      .menu-toggle {
        display: none;
      }

      /* ----------- SEARCH BOX ---------- */
      .search-box {
        display: flex;
        gap: 0.8rem;
        margin-top: 0.67rem;
      }

      .search-box input {
        padding: 0.75rem 1.2rem;
        border: none;
        border-radius: 25px;
        max-width: 220px;
        min-width: 172px;
        width: 100%;
        margin: 0;
        background: var(--accent);
        color: white;
        transition: all 0.3s ease;
        font-weight: 500;
        font-family: Comic Sans MS;
      }

      .search-box input::placeholder {
        color: rgb(150, 144, 239);
      }

      .search-box input:focus {
        outline: none;
        border: 0.3px solid black;
        color: var(--accent);
        border-color: #453ce3;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
      }

      .search-box button {
        padding: 0.75rem 1.5rem;
        background: white;
        color: #667eea;
        border: none;
        box-shadow: 0 3px 4px rgba(0, 0, 0, 0.08);
        border-radius: 25px;
        font-weight: 700;
      }

      .search-box button:hover {
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.12);
        transition: box-shadow 0.3s ease;
        cursor: pointer;
      }

      /* ---------- FADE SECTIONS ---------- */
      .fade-section {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
      }

      .fade-section.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* ---------- HERO ---------- */
      .hero {
        text-align: center;
        padding: 6rem 2rem 4rem;
        position: relative;
        z-index: 1;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        opacity: 0.25;
        inset: 0;
        background-size: cover;
        background-image: url("https://plus.unsplash.com/premium_photo-1667549072387-04a817a30c17?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGJhY2tncm91bmQlMjBkZXNpZ24lMjBmb3IlMjB3ZWJzaXRlfGVufDB8fDB8fHww");
      }

      .hero h1 {
        font-size: clamp(2.5rem, calc(5dvw + 0.25rem), 4rem);
        line-height: 1.2;
      }
      
      #hero-head {
        color: var(--accent);
        text-shadow: #3c24d92f 3px 4px 6px;
        font-weight: 1100;
        font-size: clamp(3.5rem, calc(8dvw + 0.25rem), 5rem);
      }

      #hero-head:hover {
        transform: scale(1.025);
        transition: transform 0.3s ease;
      }

      .hero p {
        color: black;
        font-size: clamp(1rem, calc(1.2dvw + 0.2rem) , 1.4rem);
        margin-bottom: 2rem;
      }

      .hero img {
        margin: 1.25rem;
        width: min(100%, 400px);
        object-fit: cover;
        border-radius: 10px;
      }

      .hero img:hover {
        transform: scale(1.067);
        transition: transform 0.67s ease;
      }

      .hero-flex {
        margin: 0 2rem 2rem 2rem;
        display: flex;
        align-items: center;
        border-radius: 25px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.6));
        box-shadow: 6px 6px 8px rgba(0,0,0,0.15);
        /* animation setting */
        opacity: 0;
      }

      .hero-flex.reverse {
        flex-direction: row-reverse;
      }

      /* Button */
      .cta-button {
        display: inline-block;
        padding: 0.9rem 1.8rem;
        background: var(--accent);
        color: white;
        border-radius: 8px;
        font-weight: 600;
      }

      .cta-button:hover {
        transform: scale(1.015);
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .button {
        display: flex;
        justify-content: center;
        align-items: center;
        user-select: none;
      }

      /* ---------- 404 IMAGE --------- */
      .error-image {
        height: 300px;

        display: flex;
        justify-content: center;
      }

      .error-image img {
        margin: 1rem 0;
      }

      /* ---------- CONTENT ---------- */
      .content {
        max-width: 1200px;
        width: 100%;
        margin: auto;
        padding: 3rem 2rem;
      }

      /* PROFILE - SECTION */
      #profile-section {
        background: var(--border);
        border: 0.3px solid var(--text);
      }

      #profile-section img {
        width: min(100%, 450px);
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 25px;
        padding: 10px;
        border: var(--text) 2px solid;
        background-color: #ffffff44;
      }

      #profile {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
      }

      #profile p {
        text-align: justify;
      }

      /* ---------- NOTES SECTION ------------ */
      #notes-section h2 {
        font-size: 2rem;
        color: var(--accent);
        font-weight: 900;
        border-bottom: #0f172a 3px solid;
        border-radius: 4px;
        padding: 0 1rem;
        width: fit-content;
      }

      /* ---------- NOTES CAROUSEL ---------- */

      .carousel {
        position: relative;
        max-width: 100%;
        width: 95%;
        margin: 2rem auto 0;
        overflow: hidden;
        /* active slide index (used by indicators) */
        --active-slide: 1;
      }

      /* -------- PAUSE-ON-HOVER -------- */
      /* status container */
      .carousel-status {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: var(--bg);
        padding: 6px 12px;
        border-radius: 1000px;
        font-size: 1rem;
        display: flex;
        gap: 6px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
      }

      /* show on hover */
      .carousel:hover .carousel-status {
        opacity: 1;
      }

      /* icons */
      .carousel-status .icon {
        display: none;
        line-height: 1;
      }

      /* default: show pause icon */
      .carousel-status .pause {
        display: inline;
      }

      /* when paused, show play icon */
      .carousel.paused .carousel-status .pause {
        display: none;
      }

      .carousel.paused .carousel-status .play {
        display: inline;
      }

      /* CAROUSEL - TRACKERS */
      .carousel-track {
        display: flex;
        width: 100%;
        transition: transform 0.6s ease;
      }

      /* CAROUSEL CARDS OR SLIDES */
      .carousel-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 320px;
        display: flex;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 15px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
      }

      /* CAROUSEL IMAGE */
      .carousel-card img {
        width: 40%;
        object-fit: cover;
        opacity: 1;
      }

      /* CAROUSEL CAPTION */
      .carousel-caption {
        position: relative;
        overflow: hidden;
        z-index: 1;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      /* CAROUSEL CAPTION BACKGROUND */
      .carousel-caption::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("https://plus.unsplash.com/premium_vector-1682299635821-ba03e8c5a94d?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fHByb2dyYW1taW5nfGVufDB8fDB8fHww");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right bottom;
        opacity: 0.3;
        z-index: -1;
      }

      .carousel-caption h3 {
        font-size: 1.6rem;
        color: var(--accent);
      }

      .carousel-caption p {
        color: var(--muted);
      }

      /* ---------- CAROUSEL SLIDING BUTTONS ---------- */
      .carousel-btn {
        position: absolute;
        top: 40%;
        z-index: 5;
        background: white;
        border: none;
        border-radius: 50%;
        padding: 0.4rem 1rem;
        font-size: 1.75rem;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        user-select: none;
      }

      .carousel-btn.prev {
        left: 15px;
      }
      .carousel-btn.next {
        right: 15px;
      }

      .carousel-btn:hover {
        background: var(--accent);
        color: white;
        transform: scale(1.1);
        transition: transform 0.3s ease, color 0.4s ease-in-out, background 0.4s ease-in-out;
      }

      /* ---------- CAROUSEL INDICATORS ---------- */
      .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 16px;
        user-select: none;
      }

      .carousel-indicators button {
        display: block;
        width: 2rem;
        height: 4px;
        border-radius: 4px;
        transition: all 0.4s ease;
        cursor: pointer;
      }

      .carousel-indicators button.active {
        width: 4rem;
      }
      
      /* ---------- NOTES INFO SECTION ---------- */
      .notes-info {
        max-width: 1200px;
        margin: auto;
        padding: 4rem 2rem;
        padding-bottom: 0;
      }

      /* FLEX INFO */
      .notes-info-flex {
        display: flex;
        flex-direction: row-reverse;
        gap: 2.5rem;
        align-items: center;
        background: linear-gradient(90deg, #0f202a33, #7c8ba7e2);
        border-radius: 18px;
        padding: min(10%, 2.5rem);
        border: 1px solid var(--border);
      }

      .notes-text h2 {
        font-size: clamp(1.25rem, calc(2.5dvw + 0.25rem), 2.5rem);
        color: var(--text);
        margin-bottom: 1rem;
        border-bottom: #0f172a 4px solid;
        border-radius: 12px;
        padding-bottom: 5px;
        padding-left: 20px;
      }

      .notes-text p {
        font-size: clamp(0.8rem, calc(1.25dvw + 0.25rem), 1rem);
        color: var(--muted);
        text-align: justify;
      }

      .notes-image img {
        width: min(100%, 1200px);
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 18px;
        border: 2px solid var(--text);
        padding: 8px;
      }

      .notes-image {
        width: fit-content;
        height: fit-content;
        display: flex;
        justify-content: center;
      }

      /* ---------- NOTES CONTENTS TABLE ---------- */
      .notes-table-wrapper {
        overflow-x: auto;
      }

      /* Make sure no scrollbar on overflow */
      .notes-table-wrapper::-webkit-scrollbar,
      .notes-table::-webkit-scrollbar {
        display: none;
      }

      .notes-table-wrapper h1 {
        margin-bottom: 6px;
        color: var(--text);
        padding-left: 1.5rem;
      }

      .notes-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--card);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--border);
        margin-bottom: 3rem;
      }

      .notes-table th,
      .notes-table td {
        padding: 1rem 1.2rem;
        text-align: left;
      }

      .notes-table td {
        color: var(--muted);
        font-weight: 500;
        text-align: left;
        text-wrap-mode: wrap;
        text-wrap-style: pretty;
      }

      .notes-table thead {
        background: linear-gradient(90deg, #667eea, #4f46e5);
        color: white;
      }

      .notes-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background 0.25s ease;
      }

      .notes-table td:first-child {
        font-weight: 700;
        color: var(--accent);
      }

      /* ---------- LEVEL BADGES ---------- */
      .level {
        display: flex;
        padding: 0.35rem 0.85rem;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        justify-content: center;
        user-select: none;
      }

      /* Beginner */
      .level.beginner {
        background: rgba(22, 163, 74, 0.15);
        color: #16a34a;
      }

      .level.beginner:hover {
        transform: scale(1.01);
        background: rgba(22, 163, 74, 0.20);
        transition: transform 0.3s ease, background 0.3s ease;
      }

      /* Intermediate */
      .level.intermediate {
        background: rgba(245, 158, 11, 0.18);
        color: #f59e0b;
      }

      .level.intermediate:hover {
        transform: scale(1.01);
        background: rgba(245, 158, 11, 0.23);
        transition: transform 0.3s ease, background 0.3s ease;
      }

      /* Advanced */
      .level.advanced {
        background: rgba(220, 38, 38, 0.15);
        color: #dc2626;
      }

      .level.advanced:hover {
        transform: scale(1.01);
        background: rgba(220, 38, 38, 0.20);
        transition: transform 0.3s ease, background 0.3s ease;
      }

      /* In-Progress */
      .level.in-progress {
        background: rgba(0, 0, 0, 0.15);
        color: var(--muted);
      }

      .level.in-progress:hover {
        transform: scale(1.01);
        background: rgba(0, 0, 0, 0.20);
        transition: transform 0.3s ease, background 0.3s ease;
      }

      /* ---------- TOOLS & PROJECTS SECTION ---------- */
      #tools-projects {
        padding-top: 0;
      }

      /* Section heading */
      .section-heading {
        font-size: 2rem;
        color: var(--accent);
        font-weight: 900;
        border-bottom: #0f172a 3px solid;
        border-radius: 4px;
        padding: 0 1rem 0 1rem;
        width: fit-content;
        margin-bottom: 2rem;
      }

      /* Projects wrapper */
      .projects-list {
        display: flex;
        flex-direction: column;
        gap: 4rem;
      }

      /* Individual project */
      .project-card {
        position: relative;
        display: flex;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        border-radius: 25px;
        background: var(--card);
        user-select: none;
        box-shadow: 6px 8px 6px rgba(0,0,0,0.15);
        /* ANIMATION SETTING */
        opacity: 0;
        z-index: 1;
      }

      .project-card[aria-label="stuff"]::after {
        content: "";
        inset: 0;
        position: absolute;
        z-index: -1;
        background-image: url("https://plus.unsplash.com/premium_photo-1681400745727-c69f8e47f524?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8YWJzdHJhY3R8ZW58MHx8MHx8fDA%3D");
        border-radius: 25px;
        opacity: 0.45;
        background-size: cover;
      }
      
      .project-card.reverse {
        flex-direction: row-reverse;
        box-shadow: 6px 8px 6px rgba(0,0,0,0.15);
      }

      .project-card img, .project-card.reverse img {
        width: 42%;
        border-radius: 20px;
        object-fit: cover;
        border: 2px solid var(--text);
        padding: 8px;
        opacity: 1;
      }

      .project-content {
        flex: 1;
      }

      .project-content h3 {
        font-size: clamp(1.25rem, calc(2.5dvw + 0.25rem), 2.5rem);
        margin-bottom: 0.8rem;
        color: var(--text);
        padding-bottom: 5px;
        border-bottom: #0f172a 3px solid;
        border-radius: 6px;
        padding-left: 0.9375rem;
        font-weight: 800;
      }

      .project-content p {
        font-size: clamp(0.8rem, calc(1.25dvw + 0.25rem), 1rem);
        color: var(--muted);
        text-align: justify;
      }

      /* PROJECTS POP - UP */
      .project-link {
        display: block;
        text-decoration: none;
        color: inherit;
      }

      /* ---------- CONTACT SECTION ---------- */
      .contact-container {
        display: flex;
        gap: 3rem;
        align-items: flex-start;
        margin: 3rem 4rem;
      }

      .contact-info {
        flex: 1;
      }

      .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--accent);
        font-weight: 900;
        border-bottom: #0f172a 3px solid;
        border-radius: 4px;
        align-self: center;
        padding: 0 1rem 0 1rem;
        width: fit-content;
      }

      .contact-info p {
        color: var(--muted);
        line-height: 1.7;
        text-align: justify;
      }

      .contact-form {
        flex: 0.75;
        background: var(--card);
        padding: 2rem;
        border-radius: 16px;
        border: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
      }

      .contact-form :hover {
        transform: scale(1.005);
        transition: transform 0.4s ease;
      }

      .contact-form input,
      .contact-form textarea {
        width: 100%;
        padding: 1rem;
        border-radius: 10px;
        border: 1px solid var(--border);
        font-size: 1rem;
        font-family: inherit;
        resize: vertical;
      }

      .contact-form input:focus,
      .contact-form textarea:focus {
        outline: none;
        border-color: var(--accent);
      }

      .contact-form button {
        align-self: flex-start;
        padding: 0.8rem 1.6rem;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
      }

      .contact-form button:hover {
        opacity: 0.95;
        transition: opacity 0.33s ease;
      }

      #form-status {
        font-size: clamp(0.85rem, calc(1.2dvw + 0.25rem), 1.2rem);
        padding: 0;
        font-weight: 600;
        min-height: 1rem;
        opacity: 0;
        transition: opacity 0.4s ease;
      }

      /* ---------- FOOTER ---------- */
      footer {
        width: 100%;
        text-align: center;
        color: var(--card);
        background-color: var(--text);
      }

      .social-links a {
        font-weight: 600;
        color: var(--bg);
      }

      div.social-links .nav-links {
        justify-content: center;
      }

      div.social-links .nav-links :hover {
        color: var(--border);
        transition: color 0.3s ease;
      }

      #foot {
        padding: 0.67rem;
      }

      /* ---------- POPUP ---------- */
      .popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
      }

      .popup-overlay.active {
        opacity: 1;
        pointer-events: auto;
      }

      .popup-box {
        background: white;
        width: min(90%, 420px);
        padding: 2rem;
        border-radius: 16px;
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
      }

      .popup-overlay.active .popup-box {
        transform: scale(1);
      }

      .popup-box h3 {
        margin-bottom: 0.85rem;
        color: var(--accent);
        padding-bottom: 3px;
        border-bottom: #0f172a 2px solid;
        border-radius: 5px;
        padding-left: 15px;
      }

      .popup-box p {
        color: var(--muted);
        line-height: 1.6;
        text-align: center;
      }

      .popup-close {
        position: absolute;
        top: 12px;
        right: 14px;
        border: none;
        background: none;
        font-size: 1.4rem;
        cursor: pointer;
      }
      
      /* ------- ANIMATIONS -------- */
      @keyframes fadeIn {
        from {
          opacity: 0.5;
          transform: translateX(-100px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

       @keyframes fadeIn-reverse {
        from {
          opacity: 0.5;
          transform: translateX(100px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      /* ---------- MEDIA QUERIES ---------- */
        /* ----- LARGE LAPTOPS ----- */
      @media (min-width: 1190px) {
        p {
          word-spacing: 0.5rem;
        }

        nav {
          margin: 0;
          width: 100%;
          padding: 0.75rem 2.5rem;

          justify-content: space-between;
        }

        .content {
          margin: 0;
        }

        .fade-section {
          max-width: 100%;
        }

        #profile-section img {
          width: min(100%, 700px);
        }

        .project-card, .project-card.reverse {
          width: 90%;
          margin: auto;
        }

        .carousel {
          width: 90%;
        }
      }

      /* TABLET-SIZED-DEVICE */
      @media (max-width: 900px) {
        nav {
          flex-direction: row;
          padding: 1rem;
          gap: 20dvw;
        }

        .nav-links {
          flex-wrap: wrap;
          row-gap: 0;
          justify-content: space-around;
          gap: 0.75rem;
        }

        .search-box {
          width: 100%;
          justify-content: center;
          display: none;
        }

        .search-box input {
          width: 100%;
        }

        body {
          overflow-x: hidden;
        }

        p {
          word-spacing: 0.3rem;
        }

        .content {
          padding: 2rem;
        }

        .hero {
          padding: 4rem 1.2rem 3rem;
        }

        .hero-flex {
          flex-direction: column;
        }

        #profile-section {
          flex-direction: column;
          text-align: center;
        }

        #profile {
          flex-direction: column-reverse;
          flex-wrap: wrap;
        }

        #profile-section img {
          width: min(100%, 300px);
          aspect-ratio: 1/1;
          object-fit: cover;
        }

        #profile p {
          text-align: justify;
        }

        #notes-section h2 {
          text-align: center;
        }

        .notes-info-flex {
          flex-direction: column-reverse;
          gap: 1rem;
        }

        .carousel {
          width: 85%;
          margin: 2rem auto;
        }

        .carousel-card {
          flex-direction: column;
          background-size: 200%;
          background-position: top center;
        }

        .carousel-card img {
          width: 100%;
          height: 18rem;
        }

        .carousel-caption {
          padding: 1.75rem;
        }

        .carousel-btn {
          font-size: smaller;
          font-weight: 1000;
        }

        .project-card,
        .project-card.reverse {
          flex-direction: column;
          gap: 1.5rem;

          width: 95%;
          margin: 0;
          padding: 1.2rem;
        }

        .project-card img, .project-card.reverse img {
          width: 100%;
        }
        
        .project-content h3 {
          margin: 0;
        }

        .projects-list {
          gap: 0.75rem;
          flex-direction: row;
        }

        .project-link {
          display: flex;
        }

        .contact-container {
          flex-direction: column;
        }

        .contact-form {
          width: 100%;
        }

        footer {
          padding: 0;
        }

        .social-links a {
          display: inline-block;
          margin: 0.5rem;
        }

        @keyframes fadein {
          from {
            opacity: 0.5;
            transform: translateX(-60px);
          }

          to {
            opacity: 1;
            transform: translateX(0);
          }
        }

         @keyframes fadein-reverse {
          from {
            opacity: 0.5;
            transform: translateX(60px);
          }

          to {
            opacity: 1;
            transform: translateX(0);
          }
        }
      }

      /* MOBILE-SIZED-DEVICE */
      @media (max-width: 500px) {
        p {
          word-spacing: 0.2rem;
        }

        nav {
          top: 0;
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 0.67rem;
          row-gap: 0;
          padding: 0.4rem 0.75rem;
        }

        nav .nav-links {
          width: 0;
          max-height: 0;
          overflow: hidden;
          opacity: 0;
          transform: translateY(-20px);
        }

        .nav-links.show {
          width: fit-content;
          display: flex;
          max-height: 300px;
          opacity: 1;
          transform: translateY(0);
          
          transition: transform 0.4s ease, opacity 0.3s ease-in-out;
        }

        .menu-toggle {
          display: block;
          font-size: 2rem;
          background: none;
          border: none;
          cursor: pointer;
        }

        .hero {
          height: 85dvh;
        }

        .hero h1 {
          margin: 0 1.5rem 0 1.5rem;
        }

        .hero img {
          width: min(100%, 250px);
          height: auto;
        }

        .content {
          padding: 1.5rem;
        }

        .error-image img {
          width: min(90%, 100%);
          object-fit: contain;

          margin: 0;
        }

        .cta-button {
          font-size: small;
          padding: 0.8rem 1.25rem;
        }

        .carousel-caption {
          padding: 0 1rem;
        }

        .carousel-caption h3 {
          text-align: center;
        }

        .carousel-caption p {
          word-spacing: 0.5rem;
        }

        .carousel-btn {
          display: none;
        }

        .carousel-card img {
          height: 10rem;
        }

        .projects-list {
          flex-direction: column;
          gap: 1.5rem;
        }

        .project-card, .project-card.reverse {
          padding: 0.75rem;

          width: 90%;
          margin: auto;
        }

        .notes-info {
          padding: 2rem;
        }

        .notes-text p {
          padding: 0;
        }

        .notes-table-wrapper::-webkit-scrollbar {
          display: none;
        }

        .notes-table th, .notes-table td {
          font-size: 0.7rem;
          padding: 0.5rem;
        }

        .level {
          font-size: smaller;
        }

        .contact-container {
          margin: 2rem 1.5rem;
          gap: 1rem;
        }

        .contact-form {
          background-size: 400px;
        }

        #contacts p, #foot {
          padding: 0.5rem;
        }
      }

      /* -------- SETTING: REDUCED-MOTION -------- */
      @media (prefers-reduced-motion: reduce) {
        * {
          transition: none !important;
          animation: none !important;
        }
      }