/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffecd5;  /* Updated home page color */
    color: #333;
    min-height: 100vh;
}

body.projects-page {
    background-color: #f87270;  /* Updated projects page color */
}

/* Navigation */
nav {
    padding: 1rem;
    box-shadow: none;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(0,0,0,0.1);
}

nav a.active {
    color: #333;
    background-color: rgba(0,0,0,0.1);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #666;
}

.about {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #F87270;
    margin-bottom: 1rem;
}

/* Mac OS Classic Theme */
.mac-os-classic {
    font-family: 'Chicago', sans-serif;
    background-color: #999999;
    color: #000;
    min-height: 100vh;
    position: relative;
}

/* Menu Bar */
.menu-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #000;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.apple-menu {
    margin-right: 16px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.apple-logo {
    width: 13px;
    height: 16px;
    display: block;
}

/* Apple Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 20px;
    left: -10px;
    background-color: #ffffff;
    border: 1px solid #000;
    border-top: none;
    box-shadow: 2px 2px 0 #000;
    min-width: 180px;
    z-index: 10000;
    padding: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #000;
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background-color: #000;
    margin: 2px 0;
}

.menu-items {
    display: flex;
    gap: 16px;
    height: 20px;
}

.menu-items span {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    height: 20px;
    line-height: 20px;
    padding: 0 4px;
}

.menu-items span:hover {
    background-color: #000;
    color: #fff;
}

.system-icons {
    margin-left: auto;
}

/* Desktop */
.desktop {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #999999;
    overflow: hidden;
}

/* Window */
.window {
    background-color: #ffffff;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    resize: both;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* About window specific styling */
#about-window {
    display: none;
    width: 60%;
    max-width: 600px;
    min-width: 400px;
}

#about-window .about-section {
    display: none;
    padding: 15px;
}

#about-window .about-section h2 {
    display: none;
    margin-bottom: 15px;
    font-size: 24px;
}

#about-window .about-section p {
    display: none;
    margin-bottom: 12px;
    line-height: 1.4;
}

.window-header {
    background-color: #ffffff;
    border-bottom: 1px solid #000;
    padding: 2px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-right: 8px;
}

.window-title {
    flex: 1;
    text-align: center;
    font-weight: normal;
    margin-left: -20px; /* Offset the space taken by close button */
}

.close-btn {
    width: 12px;
    height: 12px;
    border: 1px solid #000;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.close-btn:hover {
    background: #000;
}

.zoom-btn {
    width: 12px;
    height: 12px;
    border: 1px solid #000;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
}

.zoom-btn:hover {
    background: #000;
}

.window-content {
    padding: 16px;
    min-height: 100px;
    max-height: 500px;
    overflow-y: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

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

.icon:active {
    background-color: rgba(0, 0, 0, 0.2);
}

.icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.icon span {
    font-size: 12px;
    max-width: 80px;
    word-wrap: break-word;
}

/* Window Content Styles */
.projects-list, .resume, .contact-form {
    font-family: 'Chicago', sans-serif;
}

/* Contact Form Styles */
.contact-form {
    padding: 15px;
}

.contact-form h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #000;
    background-color: #fff;
    font-family: 'Chicago', sans-serif;
    font-size: 14px;
}

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

button[type="submit"] {
    background-color: #fff;
    border: 1px solid #000;
    padding: 6px 12px;
    font-family: 'Chicago', sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #000;
    color: #fff;
}

button[type="submit"]:active {
    background-color: #000;
    color: #fff;
    transform: translateY(1px);
}

.status-message {
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #000;
}

.status-message.success {
    background-color: #ccffcc;
}

.status-message.error {
    background-color: #ffcccc;
}

.status-message ul {
    margin: 5px 0 0 20px;
}

/* Calculator */
.calculator {
    width: 200px;
    padding: 10px;
    background: #fff;
    font-family: 'Chicago', sans-serif;
}

.calc-display {
    background: #fff;
    border: 1px inset #000;
    margin-bottom: 10px;
    padding: 5px;
    text-align: right;
    font-family: 'Chicago', monospace;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
    overflow: hidden;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.calc-btn {
    background: #fff;
    border: 1px solid #000;
    padding: 5px;
    font-family: 'Chicago', sans-serif;
    font-size: 14px;
    cursor: pointer;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:active {
    background: #000;
    color: #fff;
}

/* Make the zero button span two columns */
.calc-btn[data-digit="0"] {
    grid-column: span 2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Chicago', sans-serif;
    color: #000;
    margin: 0 0 8px 0;
}

.window-content h1,
.window-content h2,
.window-content h3,
.window-content h4,
.window-content h5,
.window-content h6 {
    font-family: 'Chicago', sans-serif;
    color: #000;
    background-color: #fff;
    padding: 2px 4px;
    margin-bottom: 8px;
}

p {
    font-size: 12px;
    line-height: 1.4;
}

/* Selection style */
::selection {
    background: #000;
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}
