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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

/* Container layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar - 1/4 width, fixed */
.sidebar {
    width: 22%;
    background: white;
    color: #333;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ababab;
    z-index: 1000;
}

.sidebar-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Profile section */
.profile-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.name-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.name-link:hover {
    color: #666;
}

/* Navigation */
.navigation {
    flex-grow: 1;
    margin-bottom: 3rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: text-decoration 0.3s ease;
}

.nav-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-title-link:hover {
    color: #666;
}

.nav-title-link.active {
    text-decoration: underline;
}

.navigation ul {
    list-style: none;
    margin-left: 0.5rem;
}

.navigation li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.25rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.nav-link:hover,
.nav-link.active {
    color: #666;
    text-decoration: underline;
}

/* Contact info */
.contact-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact-links {
    margin-bottom: 1rem;
}

.contact-link {
    color: #333;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: #666;
}

.contact-detail {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Main Content Area - 3/4 width, scrollable */
.main-content {
    width: 78%;
    margin-left: 22%;
    background-color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section styles */
.section {
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}

/* About section specific styles */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.8;
}

.about-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 300px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.about-intro {
    flex: 1;
}

.intro-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-link {
    color: #333;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.about-link:hover {
    color: #666;
}

.about-links {
    margin-top: 1rem;
}

.about-links .contact-link {
    font-size: 1rem;
}

/* Project section styles */
.project-section {
    display: none;
    min-height: 100vh;
    padding-top: 2rem;
}

.project-section.active {
    display: block;
}

.project-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

/* Section navigation */
.section-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.nav-arrow {
    color: #333;
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-arrow:hover {
    color: #666;
}

.nav-arrow.prev {
    margin-right: auto;
}

.nav-arrow.next {
    margin-left: auto;
}

/* Work section styles */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.work-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.work-item:last-child {
    border-bottom: none;
}

.work-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.work-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.work-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.work-description ul {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0;
    margin-left: 0;
}

.work-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    list-style: none !important;
    list-style-type: none !important;
}

.work-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #555;
}

.work-links {
    display: flex;
    gap: 1rem;
}

.work-link {
    color: #333;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.work-link:hover {
    color: #666;
}

/* Project list styles */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.project-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    position: relative;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #333;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.project-link:hover {
    color: #666;
}

/* Expandable project details */
.project-details-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.project-details-expanded.expanded {
    max-height: 2000px;
    margin-top: 2rem;
    padding-top: 2rem;
}

.expanded-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-image-detail {
    margin-bottom: 2rem;
    text-align: center;
}

.project-image-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* General styling for 3 images in a row */
.project-image-detail.three-images img {
    max-width: 30%;
    margin: 0 1%;
    display: inline-block;
    vertical-align: top;
}

/* Video iframe styling */
.project-image-detail iframe {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.expanded-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.expanded-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.expanded-content li {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    padding: 1rem;
    text-align: center;
}

.mobile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    margin: 0;
}

.mobile-name-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-name-link:hover {
    color: #666;
}

/* Responsive design */
@media (max-width: 1024px) {
    .sidebar {
        width: 28%;
    }
    
    .main-content {
        width: 72%;
        margin-left: 28%;
    }
    
    .about-photo img {
        width: 200px;
    }
    
    .name {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-header {
        display: block;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        min-height: 100vh;
        display: block;
        padding-top: 120px;
    }
    
    .section {
        padding: 1.5rem 1rem;
        max-width: none;
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
    }
    
    .about-photo {
        order: -1;
    }
    
    .about-photo img {
        width: 200px;
    }
    
    .about-intro {
        text-align: left;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .nav-section {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        padding: 0.5rem;
    }
    
    .section {
        padding: 1rem 0.5rem;
    }
    
    .about-header {
        padding: 0;
        gap: 1rem;
    }
    
    .about-photo img {
        width: 150px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .contact-detail {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .about-photo img {
        width: 120px;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 0.5rem;
    }
} 