/* Base styles */
:root {
    --primary-color: #000;
    --secondary-color: #666;
    --background-color: #fff;
    --max-width: 800px;
}

[data-theme="dark"] {
    --primary-color: #fff;
    --secondary-color: #ccc;
    --background-color: #1a1a1a;
}

/* Theme switch styles */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF4500;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .fa-sun {
    color: #000;
    font-size: 16px;
}

.slider .fa-moon {
    color: #fff;
    font-size: 16px;
}

/* Existing styles continue below */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Header styles */
header {
    padding: 2rem 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

nav {
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    position: relative;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 0.5rem 0;
}

nav a:hover {
    opacity: 1;
}

nav a.active {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 1;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* Main content styles */
.bio {
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.work h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.work-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.work-details h3 {
    font-size: 1rem;
    font-weight: 600;
}

.work-details p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.contact {
    margin-top: 3rem;
}

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

.contact a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .bio {
        font-size: 1rem;
    }
}

/* Writing page styles */
.writing-section {
    margin: 2rem 0;
}

.coming-soon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-align: center;
    padding: 3rem 0;
}

/* Work page styles */
.work-description {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
}

/* Contact page styles */
.contact-section {
    margin: 3rem 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > div {
    margin-bottom: 3rem;
}

.contact-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.contact-email {
    margin-bottom: 3rem;
}

.contact-content .email {
    font-size: 1.4rem;
    margin: 2rem 0;
}

.contact-content .email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-content .email a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin: 3rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.social-icon span {
    font-size: 0.9rem;
}

/* Schedule Meeting */
.schedule-meeting {
    margin: 3rem 0;
}

.calendly-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendly-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-note {
    font-style: italic;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* SPA Transitions */
main {
    transition: opacity 0.3s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* Work section styles */
.work-section {
    max-width: 800px;
    margin: 0 auto;
}

.work-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--card-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-details h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.work-details p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.work-details .date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.role-description {
    margin-top: 1rem !important;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
}
