* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'W95FA';
    src: url('/fonts/w95fa.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-white: #ffffff;
    --color-gray-5: #f0f0f0;
    --color-gray-10: #e6e6e6;
    --color-gray-50: #757575;
    --color-gray-70: #454545;
    --color-black: #0A0A0A;
    --color-accent: #365c99ff;

    --custom-font: W95FA, "Seravek Fallback", "Gill Sans Nova Fallback", "Ubuntu Fallback", "Calibri Fallback", source-sans-pro, sans-serif;
}

.scan-lines {
    z-index: 99999;
    opacity: 0.7;
    filter: alpha(opacity=70);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    
    background-image: 
        radial-gradient( 
            ellipse at center,
            transparent 0%,
            transparent 60%,
            rgba(0, 0, 0, 0.25) 100% 
        ),
        repeating-linear-gradient( 
            0deg,
            transparent 0px,
            transparent 1px,
            rgba(0, 60, 255, 0.2) 3px 
        );
    
    background-size: 100% 100%, 100% 6px;
    animation: flicker 300ms linear infinite;
}

@keyframes flicker {
    50% {
        opacity: 0.55;
        filter: alpha(opacity=55);
    }
}

body {
    font-family: var(--custom-font);
    background: var(--color-white);
    color: var(--color-black);
    overflow: hidden; 
}

.system {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background-image: url('/backgrounds/background.png');
    background-repeat: repeat;
    background-size: 12px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Desktop Icons Styles */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-decoration: none;
    color: var(--color-black);
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-image {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: crisp-edges;
    margin-bottom: 8px;
    display: block;
}

.desktop-icon span {
    font-size: 14px;
    text-align: center;
    justify-content: center;
    word-wrap: break-word;
    background-color: var(--color-accent);
    color: white;
    padding: 2px 8px;
}


/*Taskbar Styles*/
.taskbar {
    font-size: 14px;
    height: 40px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid var(--color-black);
}

@media (max-width: 768px) {
    .taskbar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.home-button {
    padding: 4px 8px;
    padding-right: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
}

.home-button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.home-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.home-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    padding-right: 0px;
}

.home-icon img {
    height: 24px;
    width: auto;
    image-rendering: pixelated;
}

.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
}

.clock {
    font-size: 14px;
}


/*Content Area Styles*/
#content-area {
    position: absolute;
    top: 10px;
    left: 100px;
    right: 20px;
    bottom: 60px;
    overflow-y: auto;
    padding: 20px;
    transition: opacity 0.1s ease-in-out;
}

#content-area.fade-out {
    opacity: 0;
}

#content-area.fade-in {
    opacity: 1;
}

.content-container {
    max-width: 2000px;
}

.content-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-white);
    background-color: var(--color-black);
    padding: 8px 16px;
}

/* Window Styles */
.window {
    background: var(--color-white);
    border: 1px solid var(--color-black);
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    max-width: 900px;
    overflow: hidden;
}

.window h2,
.blog-content h1 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--color-black);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-black);
    text-align: centlefter;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content h1 {
    font-size: 14px;
    margin-top: 24px;
}

.window p {
    line-height: 1.6;
    color: var(--color-gray-70);
    padding: 8px 16px;
}

.window .date {
    font-size: 12px;
}

.content-layout-right .window p:last-of-type {
    padding-bottom: 24px;
}

.window button,
.contact-form button[type="submit"],
button.window-button {
    font-family: var(--custom-font);
    font-size: 14px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    margin-bottom: 16px;
    margin-left: 16px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    transition: transform 0.1s, box-shadow 0.1s;
    width: fit-content;
}

.window button:active,
.contact-form button[type="submit"]:active,
button.window-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 1);
}

.portrait {
    width: 140px;
    height: 140px;
    display: block;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid black;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

.intro-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 16px;
}

/* Bento Grid Layout */
.content-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-layout-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-layout-right {
    display: flex;
    flex-direction: column;
}

/* Bento layout on larger screens */
@media (min-width: 900px) {
    .content-layout-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }
    
    .content-layout-right .window {
        height: 100%;
        padding-bottom: 16px;
    }
}

/* Table Styles */
.window table {
    width: calc(100% - 32px);
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 16px;
    table-layout: fixed;
}

.window table td {
    padding-bottom: 16px;
    padding-right: 16px;
    vertical-align: top;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.window table td:nth-child(1) {
    width: 100px;
}

.window table td:nth-child(2) {
    padding-right: 0;
}

.window table tr {
    border-bottom: 1px solid var(--color-gray-10);
}

.window table tr:last-child {
    border-bottom: none;
}

.social-media-icons {
    margin-left: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.social-media-icons a {
    text-decoration: none;
    display: inline-block;
}

.social-media-icons img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    display: block;
}

/* Contact Form */
.contact-form { 
    padding-top: 16px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 16px;
}

.form-group label {
    font-weight: bold;
    color: var(--color-black);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    font-family: var(--custom-font);
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--color-black);
    background: var(--color-white);
    color: var(--color-black);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
}

.form-note {
    font-size: 14px;
    font-style: italic;
    color: var(--color-gray-50);
    margin-bottom: 16px;
}

abbr[title] {
    text-decoration: none;
    cursor: help;
}

/* Certifications Grid */
.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
}

.certification-section {
    padding: 0;
}

.certification-section p {
    margin-bottom: 8px;
    padding: 0 !important;
}

.certification-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.certification-section li {
    padding: 4px 0;
    color: var(--color-gray-70);
}

.certification-section a {
    color: var(--color-accent);
    text-decoration: none;
}

.certification-section a:hover {
    text-decoration: underline;
}

/* Experience Section */
.experience-section {
    margin-bottom: 24px;
    padding: 0 16px;
}

.experience-section:first-of-type {
    padding-top: 8px;
}

.experience-section h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--color-black);
}

.experience-org {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 2px;
    padding: 0 !important;
}

.experience-date {
    font-size: 12px;
    color: var(--color-gray-50);
    margin-bottom: 8px;
    padding: 0 !important;
}

.experience-section ul {
    list-style-position: inside;
    margin-left: 0;
    padding-left: 0;
}

.experience-section li {
    margin-bottom: 6px;
    color: var(--color-gray-70);
    line-height: 1.5;
}

.experience-section p {
    padding: 0 !important;
    margin-bottom: 4px;
}