/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Sysfont';
  src: url('../fonts/sysfont.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Wordpress';
  src: url('../fonts/W95FA.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Wordpress', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #ffffff;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    overflow-x: hidden;
    width: 100%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

/* Scrollbar Styling - macOS 8 Retro Style with Images */
/* Firefox */
/* width */
::-webkit-scrollbar {
  width: 40px;
    cursor: url("../images/cursor-default.svg") 8 8, auto !important;

}

/* Track */
::-webkit-scrollbar-track {
  background-image: url('../images/scrollbar-background.png');
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  width: 32px;
  /* Add the image in the center */
  background-image: url('../images/thumb.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto; /* keep natural size */

  outline: 4px solid #000000; /* base color */
  outline-offset: -4px;
  background-color: #9996FF; /* base color */
  border-bottom: 8px solid #6563CF;
  border-right: 7px solid #6563CF;
  border-left: 8px solid #CCCBFF;
  border-top: 7px solid #CCCBFF;
  position: relative;
}
::-webkit-scrollbar-thumb:active {
  width: 32px;
  /* Add the image in the center */
  background-image: url('../images/thumb-active.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto; /* keep natural size */

  outline: 4px solid #000000; /* base color */
  outline-offset: -4px;
  background-color: #6563CF; /* base color */
  border-bottom: 8px solid #322E9C;
  border-right: 7px solid #322E9C;
  border-left: 8px solid #CCCBFF;
  border-top: 7px solid #9996FF;
  position: relative;
}

/* Up */
/* Big web scrollbar is different than the others */
body::-webkit-scrollbar-button:single-button:vertical:decrement {
  height: 80px;
  width: 40px; 
  background-image: url('../images/big-scrollbar-decrement.png');
  background-position: center 0px;
}

body::-webkit-scrollbar-button:single-button:vertical:decrement:active {
  height: 80px;
  width: 40px; 
  background-image: url('../images/big-scrollbar-decrement-active.png');
  background-position: center 0px;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
  height: 40px;
  width: 40px; 
  background-image: url('../images/scrollbar-decrement.png');
  background-position: center 0px;
}

::-webkit-scrollbar-button:single-button:vertical:decrement:active {
  height: 40px;
  width: 40px; 
  background-image: url('../images/scrollbar-decrement-active.png');
  background-position: center 0px;
}
/* Down */
::-webkit-scrollbar-button:single-button:vertical:increment {
  height: 39px;
  width: 40px; 
  background-image: url('../images/scrollbar-increment.png');
  background-position: center 0px;
}

::-webkit-scrollbar-button:vertical:single-button:increment:active {
  height: 39px;
  width: 40px; 
  background-image: url('../images/scrollbar-increment-active.png');
  background-position: center 0px;
}
/* Handle on hover */
/*::-webkit-scrollbar-thumb:hover {
  background: #b30000; 
}*/

            /* BIG PIXEL CURSOR  */ 
        /* Default cursor */
html,
html *{
  cursor: url("../images/cursor-default.svg") 2 0, auto;
}

/* Text cursor */
html p,
h1,
h2,
h3,
h4,
h5,
h6,
input[type="text"],
input[type="email"],
textarea,
span,
[data-text] {
  cursor: url("../images/cursor-text.svg") 9 19, text;
}

/* Hover cursor */
html a,
html a *,
html g,
html button,
html button *,
html input[type="submit"],
html input[type="submit"] *,
html input[type="button"],
html input[type="button"] *,
html [data-submit],
html [data-submit] *,
html [data-hover],
html [data-hover] * {
  cursor: url("../images/cursor-pointer.svg") 12 0, pointer;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accent Color */
.accent {
    color: #f5c000;
    font-weight: 700;
}

/* Navigation */
.nav {
    position: fixed;
    height: 40px;
    top: 0;
    left: 0;
    right: 0;
    background-color: #e7e7e7;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    border-top: 3px solid #ffffff;
    border-left: 2px solid #b5b4b4;
    border-bottom: 4px solid #b5b4b4;
    outline: 4px solid #000000;
    /* It is equivalent to: */
    border-top-left-radius: 8px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffb700;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-family: 'Sysfont', serif;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    height: 40px;
    list-style: none;
    align-items: center;
    visibility: visible;
    opacity: 1;
    font-family: "Wordpress";
    transform: none;
    flex: 1;
    margin-left: 20px;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 12px 6px 12px 6px;
    font-weight: 500;
}

.nav-item-left {
    display: flex;
    align-items: center;
}

.nav-item-time {
    margin-left: auto;
    cursor: pointer;
    color: #000000;
    font-size: 0.95rem;
    padding: 12px 12px;
    user-select: none;
    transition: background-color 0.1s ease;
    font-family: "Wordpress";
}

.nav-link:active{
    opacity:0.7;
    color: #ffffff;
    background-color: #0b0bb7;
    border-radius:0;
    border-bottom: 2px solid #2A2AAC;
}

.nav-link-contact {
    background: transparent;
    color: #2c2c2c;
    padding: 8px 20px;
    border-radius: 0;
    border: 2px solid #2c2c2c;
    transition: all 0.3s ease;
}

.nav-link-contact:hover {
    background: #2c2c2c;
    color: #ede6d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

/* Projects Dropdown */
.nav-item-projects {
    position: relative;
    font-family: "Wordpress", sans-serif;
}

.nav-link-projects {
    display: flex;
    align-items: center;
}

.nav-link-projects::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #000000;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.nav-item-projects:has(.projects-dropdown.active) .nav-link-projects::after {
    transform: scaleY(-1);
}

.projects-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -1px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999;
}

.projects-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    background-color: #e7e7e7;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    outline: 3px solid #000000;
    border-radius: 0px;
    padding: 0px 0;
    min-width: 220px;
      box-shadow:
    6px 0 0 0 rgba(0, 0, 0, 0.1),     /* right side */
    0 6px 0 0 rgba(0, 0, 0, 0.1),     /* bottom side */
    6px 6px 0 0 rgba(0, 0, 0, 0.1);   /* corner block */
}

.dropdown-item {
    display: block;
    padding: 5px 0px 5px 24px;
    border-radius:0;
    color: #000000;
    text-decoration: none;
    font: "Wordpress", serif;
    font-size: 1rem;
    transition: background-color 0.15s ease;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #7070c9;
    color: #ffffff;
}

.dropdown-item:active {
    opacity:0.7;
    background-color: #0b0bb7;
    color: #ffffff;
}

@keyframes flashBlueWhite {
    0%, 100% {
        background-color: #0b0bb7;
        color: #ffffff;
    }
    50% {
        background-color: #ffffff;
        color: #000000;
    }
}

.dropdown-item.flash {
    animation: flashBlueWhite 0.2s ease-in-out 3;
}



/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2c2c2c;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #2c2c2c;
    font-family: 'Wordpress', 'Georgia', serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #5a5a5a;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.15rem;
    color: #4a4a4a;
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-buttons {
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0px;
    width: 120px;
    text-decoration: none;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #2c2c2c;
    letter-spacing: 0.5px;
    font-family: 'Sysfont', serif;
}

.btn-primary {
    outline: 2px solid #000000;
    border-left: 3px solid #ffffff;
    border-top: 3px solid #ffffff;
    border-right: 2px solid #868686;
    border-bottom: 2px solid #868686;
    color: #000000;
    border-radius: 4px;
    background: #ddd;
    font: 'Sysfont', serif;
}

.btn-primary:hover {
    background: #ffca0a;
    border-color: #ffca0a;
}

.btn-secondary {
    background: transparent;
    color: #2c2c2c;
    border-color: #2c2c2c;
}

.btn-secondary:hover {
    background: #ffd746;
    color: #2c2c2c;
    border-color: #ffd746;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
    background-image: url('../images/macos-app-background.png');
      image-rendering: pixelated;
  /* For older browsers, consider vendor prefixes */
  image-rendering: -moz-crisp-edges; /* Firefox */
  image-rendering: -webkit-optimize-contrast; /* Chrome, Safari */
  image-rendering: -o-crisp-edges; /* Opera */
  -ms-interpolation-mode: nearest-neighbor; /* IE */
    background-repeat: repeat;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    text-align: center;
    border: 2px solid black;
    background: #fff;
    outline: #fff;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.08;
    color: #000000;
    margin-bottom: 20px;
}

.about-image {
    display: none;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
}

/* Tag Filter Buttons */
.tag-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #2c2c2c;
    border-radius: 0;
    color: #2c2c2c;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tag-btn:hover {
    background: #ffd746;
    color: #2c2c2c;
    border-color: #ffd746;
}

.tag-btn.active {
    background: #f5c000;
    border-color: #f5c000;
    color: #2c2c2c;
}

.tag-btn.active:hover {
    background: #ffca0a;
    border-color: #ffca0a;
}

/* Tag Filter Dropdown */
.tag-filter-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.tag-filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c2c2c;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.custom-select-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff8d6;
    border: 2px solid #ffd746;
    border-radius: 0;
    padding: 10px 40px 10px 16px;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-select-btn:hover {
    border-color: #2c2c2c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fffef5;
}

.custom-select-btn:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 4px 16px rgba(44, 44, 44, 0.15);
}

.custom-select-btn.active {
    border-color: #2c2c2c;
    box-shadow: 0 4px 16px rgba(44, 44, 44, 0.15);
}

.custom-select-text {
    flex: 1;
}

.dropdown-icon {
    width: 12px;
    height: 8px;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #5a5a5a;
}

.custom-select-btn:hover .dropdown-icon {
    color: #2c2c2c;
}

.custom-select-btn.active .dropdown-icon {
    transform: rotate(180deg);
    color: #2c2c2c;
}

.custom-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff8d6;
    border: 2px solid #ffd746;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.custom-select-menu.hidden {
    display: none;
}

.custom-select-option {
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #2c2c2c;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.custom-select-option:hover {
    background: #ffd746;
    color: #2c2c2c;
}

.custom-select-option:active {
    background: #ffca0a;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: visible;
}

.project-card:hover {
    /*transform: translateY(-2px);*/
    /*filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.3));*/
}

/* macOS 8 window title bar */
.project-card-titlebar {
    background: repeating-linear-gradient(
        to bottom,
        #FFFFFF 0px,
        #FFFFFF 1px,
        #000000 1px,
        #000000 2px
    );
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 6px 6px 0 6px;
}

.project-card-titlebar-text {
    background-color: #CCCCCC;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #DDDDDD;
    border-bottom: 1px solid #888888;
}

.project-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #2c2c2c;
    font-family: 'Wordpress', serif;
}

.project-card-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 10px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px 15px;
    margin: 0;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #e7e7e7;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    color: #000000;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: "Sysfont", serif;
    cursor: pointer;
    transition: all 0.15s ease;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    outline: 1px solid #dfdfdf;
    user-select: none;
}

.project-tag::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.project-tag:hover {
    background-color: #0b0bb7;
    color: #ffffff;
    border-top: 2px solid #1f1fd6;
    border-left: 2px solid #1f1fd6;
    border-bottom: 2px solid #050563;
    border-right: 2px solid #050563;
    outline: 1px solid #050563;
}

.project-tag:active {
    background-color: #050563;
    color: #ffffff;
    border-top: 2px solid #050563;
    border-left: 2px solid #050563;
    border-bottom: 2px solid #1f1fd6;
    border-right: 2px solid #1f1fd6;
}

/* Footer */
.footer {
    background-color: #f5c000;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    padding: 60px 0;
    border-top: none;
    text-align: center;
}

.footer p {
    color: #2c2c2c;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.footer-links a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Blog Styles */
.blog-hero {
    padding: 150px 0 80px;
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.blog-hero .tagline {
    font-size: 1.1rem;
    color: #4a4a4a;
}

.blog-search-section {
    background-color: #ffffff;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    padding: 50px 0;
}

.blog-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.blog-search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1px solid #ffd746;
    border-radius: 0;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
}

.blog-search-input:focus {
    outline: none;
    border-color: #f5c000;
}

.search-results-count {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #4a4a4a;
    text-align: center;
}

.blog-posts-section {
    padding: 80px 0;
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-post-card {
    background-color: #ffffff;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    border: 1px solid #ffd746;
    border-radius: 0;
    padding: 25px;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 192, 0, 0.3);
    border-color: #f5c000;
}

.blog-post-date {
    color: #5a5a5a;
    font-size: 0.75rem;
    margin-bottom: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-post-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.blog-post-title a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #5a5a5a;
}

.blog-post-excerpt {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    display: inline-block;
    background: transparent;
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-tag:hover {
    background: #ffd746;
    color: #2c2c2c;
    border-color: #ffd746;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #5a5a5a;
    font-size: 1rem;
}

.hidden {
    display: none;
}

/* Project Detail Page */
.project-detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 150px 20px 80px;
}

.project-header {
    margin-bottom: 40px;
    text-align: center;
}

.project-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
}

.project-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 1.9;
}

.project-body {
    color: #4a4a4a;
    line-height: 1.9;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.project-body h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
}

.project-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-body li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 30px;
    border: 1px solid #2c2c2c;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.back-link:hover {
    background: #ffd746;
    color: #2c2c2c;
    border-color: #ffd746;
}

/* Blog Post Detail Page */
.blog-post-detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 150px 20px 80px;
}

.blog-post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ffd746;
    text-align: center;
}

.blog-post-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.4;
    font-family: 'Sysfont', serif;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #5a5a5a;
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-post-body {
    color: #4a4a4a;
    line-height: 1.9;
    font-size: 1.05rem;
}

.blog-post-body h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 400;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
}

.blog-post-body h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 400;
    color: #2c2c2c;
    font-family: 'Sysfont', serif;
}

.blog-post-body p {
    margin-bottom: 16px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-left: 25px;
    margin-bottom: 16px;
}

.blog-post-body li {
    margin-bottom: 6px;
}

.blog-post-body code {
    background-color: #fff8d6;
    padding: 3px 8px;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #2c2c2c;
}

.blog-post-body pre {
    background-color: #fff8d6;
    background-image: url('../images/noise-pattern.png');
    background-repeat: repeat;
    padding: 20px;
    border-radius: 0;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ffd746;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
}

.blog-post-body strong {
    color: #2c2c2c;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    /* Mobile menu styled like projects dropdown (MacOS 8 window style) */
    .nav-menu {
        position: fixed;
        top: 50px;
        left: 20px;
        right: 20px;
        background-color: #e7e7e7;
        background-image: url('../images/noise-pattern.png');
        background-repeat: repeat;
        flex-direction: column;
        gap: 0;
        padding: 0;
        outline: 3px solid #000000;
        border-radius: 0;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
        z-index: 999;
        box-shadow:
            6px 0 0 0 rgba(0, 0, 0, 0.1),
            0 6px 0 0 rgba(0, 0, 0, 0.1),
            6px 6px 0 0 rgba(0, 0, 0, 0.1);
        height: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu li {
        list-style: none;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 24px;
        text-align: left;
        border-bottom: none;
        color: #000000;
        text-decoration: none;
        font-family: "Wordpress", serif;
        font-size: 1rem;
        transition: background-color 0.15s ease;
    }

    .nav-link:hover {
        background-color: #7070c9;
        color: #ffffff;
    }

    .nav-link:active {
        opacity: 0.7;
        background-color: #0b0bb7;
        color: #ffffff;
        border-radius: 0;
        border-bottom: none;
    }

    .nav-link-contact {
        margin-top: 0;
        text-align: left;
        display: block;
        background: transparent;
        color: #000000;
        border: none;
        padding: 10px 24px;
        border-radius: 0;
    }
    
    .nav-link-contact:hover {
        background-color: #7070c9;
        color: #ffffff;
        transform: none;
        box-shadow: none;
    }

    /* Hide projects dropdown arrow on mobile */
    .nav-link-projects::after {
        display: none;
    }

    /* Projects dropdown on mobile - nested inside menu */
    .nav-item-projects .projects-dropdown {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        pointer-events: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
    }

    .nav-item-projects .projects-dropdown.active {
        visibility: visible;
        pointer-events: auto;
        max-height: 500px;
    }

    .nav-item-projects .dropdown-content {
        outline: none;
        box-shadow: none;
        min-width: 100%;
        background-color: #d0d0d0;
    }

    .nav-item-projects .dropdown-item {
        padding-left: 40px;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Fix typing animation on mobile - make it responsive */
    .accent {
        align-items: center;
        width: 12ch;
        font-size: 1.2em;
        animation: typing-mobile 2s steps(12), blink .5s step-end infinite alternate;
    }

    @keyframes typing-mobile {
        from {
            width: 0;
        }
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-section,
    .projects-section {
        padding: 60px 0;
    }

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

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

    .project-grid,
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-detail,
    .blog-post-detail {
        padding: 120px 20px 60px;
    }

    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero h1 {
        font-size: 1.5rem;
    }
}
.hero-title {
  /*This part is important for centering*/
  display: grid;
}

.accent {
  text-align: center;
  width: 100%;
  animation: typing 2s steps(15), blink .5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 6px solid;
  font-family: 'Sysfont', monospace;
  font-size: 2em;
}

@keyframes typing {
  from {
    width: 0
  }
}
    
@keyframes blink {
  50% {
    border-color: transparent
  }
}

body {
  text-align: center;
}

.info {
  position: absolute;
  bottom: 0;
  padding: 20px;
}