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

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --light: #f8f8f8;
    --gray: #888888;
    --accent: #1d1d1d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--white);
    border-right: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 40px 0;
}

.sidebar-content {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.logo {
    display: block;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.6;
}

/* ===== Content ===== */
.content {
    padding: 80px 100px;
    max-width: 100%;
    overflow-y: auto;
}

/* ===== Hero ===== */
.hero {
    margin-bottom: 100px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--black);
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 600px;
}

/* ===== Projects ===== */
.projects {
    margin-bottom: 100px;
}

.projects h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    color: var(--black);
}

.project {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

.project img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.project-text h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--black);
}

.project-text > p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    font-size: 12px;
    padding: 6px 12px;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    color: var(--black);
    font-weight: 500;
}

.btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent);
}

/* ===== About ===== */
.about {
    margin-bottom: 100px;
}

.about h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--black);
}

.about p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
    margin-bottom: 80px;
}

.contact h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--black);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list a {
    font-size: 17px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    padding: 0;
    transition: opacity 0.2s;
}

.contact-list a:hover {
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
        border-bottom: 1px solid #e5e5e5;
        border-right: none;
        padding: 30px 0;
    }
    
    .sidebar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        padding: 0 24px;
    }
    
    .nav {
        flex-direction: row;
        gap: 30px;
    }
    
    .content {
        padding: 60px 40px;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project img {
        height: 280px;
    }
    
    .hero h1 {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .sidebar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        flex-direction: column;
        gap: 14px;
    }
    
    .content {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .projects h2,
    .about h2,
    .contact h2 {
        font-size: 24px;
    }
}
