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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Development Notice */
.dev-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

/* Navigation */
.main-nav {
    top: 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-links {
    display: flex;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--text-primary);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 2.5rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards, bounce 2s ease-in-out 1.6s infinite;
    cursor: pointer;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Timeline Section */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 2.5rem;
    padding: 4rem 2rem;
}

.chapter {
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chapter:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    user-select: none;
}

.chapter-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.expand-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.chapter.active .expand-btn {
    transform: rotate(45deg);
}

.chapter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.chapter.active .chapter-content {
    max-height: none;
    overflow: visible;
}

.work-section,
.genuine-section {
    padding: 0 2rem 2rem 2rem;
}

.genuine-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.chapter-content h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.work-section p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.work-section a,
.genuine-section a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.work-section a:hover,
.genuine-section a:hover {
    border-bottom-color: var(--text-primary);
}

.genuine-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* Chapter Images */
.chapter-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chapter-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.chapter-img:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* References Section */
.references {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    margin-bottom: 4rem;
}

.references-content {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.references-content h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.references-content ul {
    list-style: none;
    margin-left: 0;
}

.references-content li {
    margin-bottom: 1rem;
    padding-left: 0;
}

.references-content li::before {
    display: none;
}

.references-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.references-content a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Portfolio Page */
.portfolio-header {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: 7.center;
    margin-top: 5rem;
}

.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.portfolio-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Project Grid */
.project-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.project-bubble {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-bubble:hover::before {
    transform: translateX(100%);
}

.project-bubble:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(30, 30, 30, 0.8);
    cursor: pointer;
}

.bubble-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.project-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 2000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.side-panel.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--text-secondary);
}

.panel-content {
    padding: 4rem 3rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
    height: auto;
    min-height: 100vh;
}

.panel-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.panel-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.github-link:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.panel-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.panel-section h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.panel-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .timeline {
        padding: 2rem 1rem;
    }

    .chapter-header {
        padding: 1.5rem;
    }

    .chapter-header h2 {
        font-size: 1.2rem;
    }

    .chapter.active .chapter-content {
        overflow: visible;
        max-height: none;
    }

    .work-section,
    .genuine-section {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .portfolio-header h1 {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .main-nav {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .side-panel {
        right: -100%;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-content {
        padding: 3rem 2rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .chapter-header h2 {
        font-size: 1.1rem;
    }

    .project-bubble {
        padding: 2rem;
    }
}

@media print {
    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
        padding: 0;
    }
}
