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

html, body {
    height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #ffffff;
    padding: 0;  /* Remove padding */
}

/* Navigation */
.nav-links {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c2c2c;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #2c2c2c;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main content - different layouts for different pages */
main {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8rem;
    overflow: hidden;
}

/* Home page specific styles */
.home-content {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: center;
}

/* Projects and Resume pages layout */
.projects-content,
.resume-content {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Projects section */
.project-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    display: grid;
    gap: 0.5rem;
    max-width: 650px;
}

/* Resume section */
.resume-section {
    margin-bottom: 4rem;
    max-width: 650px;
}

/* Responsive design */
@media (max-width: 1024px) {
    main {
        padding: 0 4rem;
    }

    .intro h1 {
        font-size: 72px;
        letter-spacing: -3px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 2rem;
    }

    .intro h1 {
        font-size: 48px;
        letter-spacing: -2px;
        margin-bottom: 32px;
    }

    .intro p {
        font-size: 18px;
    }
}

/* Updated intro styles */
.intro {
    max-width: 1000px;
}

.intro h1 {
    font-size: 92px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 48px;
    letter-spacing: -4px;
}

/* Update cursor animation */
.intro h1::after {
    content: '_';
    display: inline-block;
    opacity: 0;
    animation: blink 1.2s step-end infinite;
    margin-left: 8px;
    font-weight: 300;
}

/* Add keyframes for blinking animation */
@keyframes blink {
    0%, 100% { 
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
}

.intro p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 600px;
    color: #666;
    margin-bottom: 24px;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.intro a:hover {
    opacity: 0.7;
}

/* Dark theme updates */
[data-theme="dark"] .intro p {
    color: #888;
}

h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.resume-section h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-year {
    font-size: 0.9rem;
    color: #666;
}

.project-card h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.project-tags span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Add custom cursor styles */
html {
    cursor: default;
}

a, button {
    cursor: pointer;
}

::selection {
    background: rgba(44, 44, 44, 0.1);
}

/* Add scroll progress styles */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2c2c2c;
    opacity: 0.7;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Add timeline styles */
.timeline {
    display: grid;
    gap: 3rem;
}

.timeline-entry {
    display: grid;
    gap: 0.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.timeline-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.timeline-header span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.timeline-details {
    margin-top: 1rem;
    list-style: none;
}

.timeline-details li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-details li::before {
    content: '—';
    position: absolute;
    left: -0.5rem;
    opacity: 0.5;
}

/* Theme toggle styles */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1000;
    color: #2c2c2c;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
}

.theme-toggle .moon {
    display: none;
}

/* Dark theme styles */
[data-theme="dark"] {
    background-color: #111111;
    color: #f5f5f5;
}

[data-theme="dark"] body {
    background-color: #111111;
    color: #f5f5f5;
}

[data-theme="dark"] .theme-toggle {
    color: #f5f5f5;
}

[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: block;
}

[data-theme="dark"] .nav-links a {
    color: #f5f5f5;
}

[data-theme="dark"] .nav-links a::after {
    background-color: #f5f5f5;
}

[data-theme="dark"] .intro a {
    color: #f5f5f5;
    border-bottom-color: #f5f5f5;
}

[data-theme="dark"] .scroll-progress {
    background-color: #f5f5f5;
}

[data-theme="dark"] .project-year,
[data-theme="dark"] .project-tags span,
[data-theme="dark"] .timeline-header span {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] ::selection {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .timeline-details li::before {
    color: #f5f5f5;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Dark theme update */
[data-theme="dark"] .intro h1 {
    color: #f5f5f5;
}

.comment {
    display: block;
    color: #666;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hello-world {
    margin-bottom: 1.5rem;
}

.hello-world h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
    color: #2c2c2c;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 1.5rem 0;
}

.closing-brace {
    display: block;
    font-size: 2rem;
    color: #2c2c2c;
}

/* Dark theme updates */
[data-theme="dark"] .comment {
    color: #888;
}

[data-theme="dark"] .hello-world h1,
[data-theme="dark"] .closing-brace {
    color: #f5f5f5;
}

/* Resume/Experience page styles */
.resume-content {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 6rem 2rem 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.experience {
    margin-bottom: 4rem;
}

.role {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.role:last-child {
    border-bottom: none;
}

.role h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

.role .title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.role .period {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
}

.role ul {
    list-style: none;
    padding: 0;
}

.role ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.role ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #666;
}

/* Dark theme updates for resume */
[data-theme="dark"] .role {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .role .period,
[data-theme="dark"] .role ul li::before {
    color: #888;
}

/* Main Story Page - Independent Styles */
.story-page {
    background: #fafafa;
    color: #1a1a1a;
    min-height: 100vh;
    scroll-behavior: smooth;
}

[data-theme="dark"] .story-page {
    background: #111111;
    color: #f5f5f5;
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 32px;
    padding-bottom: 200px;
}

/* Header Styles */
.story-header {
    position: relative;
    margin-bottom: 160px;
}

.header-content {
    position: relative;
}

.story-header h1 {
    font-size: 92px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -4px;
}

.story-header p {
    font-size: 18px;
    color: #666;
    max-width: 400px;
    line-height: 1.6;
}

/* Timeline Layout */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .timeline::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Timeline Entries */
.timeline-entry {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 64px;
}

.entry-year {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-top: 8px;
}

.entry-content {
    position: relative;
}

.entry-header {
    margin-bottom: 32px;
}

.entry-header h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.entry-meta {
    display: flex;
    gap: 24px;
    font-size: 16px;
    color: #666;
}

.entry-meta .role {
    position: relative;
}

.entry-meta .role::after {
    content: '•';
    position: absolute;
    right: -14px;
    color: #999;
}

/* Entry Details */
.entry-details {
    display: none;
}

/* Dark Theme Updates */
[data-theme="dark"] .entry-meta,
[data-theme="dark"] .entry-details li {
    color: #888;
}

/* Hover Effects */
.timeline-entry {
    transition: transform 0.3s ease;
}

.timeline-entry:hover {
    transform: translateX(8px);
}

/* Hide scrollbar but keep functionality */
/* For Webkit browsers (Chrome, Safari) */
.story-page::-webkit-scrollbar {
    display: none;
}

/* For Firefox */
.story-page {
    scrollbar-width: none;
}

/* For IE/Edge */
.story-page {
    -ms-overflow-style: none;
}

/* Update the entry details styles */
.entry-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    max-width: 600px;
}

/* Dark theme update */
[data-theme="dark"] .entry-description {
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-description {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Side Quest Page Styles */
.quest-page {
    background: #fafafa;
    color: #1a1a1a;
    min-height: 100vh;
    scroll-behavior: smooth;
}

[data-theme="dark"] .quest-page {
    background: #111111;
    color: #f5f5f5;
}

.quest-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 32px;
    padding-bottom: 200px;
}

/* Header Styles */
.quest-header {
    position: relative;
    margin-bottom: 160px;
}

.quest-header h1 {
    font-size: 92px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -4px;
}

.quest-header p {
    font-size: 18px;
    color: #666;
    max-width: 400px;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateX(8px);
}

.project-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    transition: background-color 0.3s ease;
}

.project-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.project-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.project-year {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-tags {
    display: flex;
    gap: 12px;
}

.project-tags span {
    font-size: 14px;
    color: #666;
}

/* Dark theme updates */
[data-theme="dark"] .project-content p,
[data-theme="dark"] .project-tags span {
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quest-container {
        padding: 80px 24px;
    }

    .quest-header {
        margin-bottom: 100px;
    }

    .quest-header h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .project-link {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .project-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
} 