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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Hero Section */
.hero {
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
    max-width: 600px;
}

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

/* Current Work Section */
.current-work {
    margin-bottom: 80px;
}

.current-work p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 24px;
    max-width: 700px;
}

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

.current-work strong {
    color: #1a1a1a;
    font-weight: 500;
}

/* Work item layout */
.work-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-item p {
    flex: 1;
    margin-bottom: 0;
}

/* Company logos */
.company-logo {
    flex-shrink: 0;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #f8f8f8;
}

.company-logo svg {
    color: #666;
    transition: color 0.3s ease;
}

.company-logo:hover svg {
    color: #1a1a1a;
}

.company-logo img {
    max-width: 60px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.company-logo img:hover {
    filter: grayscale(0%);
}

.logo-placeholder {
    width: 60px;
    height: 24px;
    background-color: #d0d0d0;
    border-radius: 4px;
}

/* Links in content sections */
.current-work a,
.intro a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.current-work a:hover,
.intro a:hover {
    color: #666;
}

/* Projects Section */
.projects {
    margin-bottom: 80px;
}

.projects h2,
.current-work h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-placeholder {
    width: 32px;
    height: 32px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 500px;
}

/* Social Section */
.social h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
}

.social-link:last-child {
    border-bottom: none;
}

.social-link:hover {
    color: #666;
    padding-left: 8px;
}

.social-link:hover .external-link {
    transform: translateX(4px);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666;
}

.external-link {
    margin-left: auto;
    color: #ccc;
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .hero {
        margin-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 32px;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .current-work {
        margin-bottom: 60px;
    }
    
    .current-work p {
        font-size: 1rem;
    }
    
    .work-item {
        flex-direction: row-reverse;
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .company-logo {
        width: 60px;
        height: 32px;
    }
    
    .company-logo img {
        max-width: 48px;
        max-height: 28px;
    }
    
    .logo-placeholder {
        width: 48px;
        height: 18px;
    }
    
    .projects {
        margin-bottom: 60px;
    }
    
    .projects h2 {
        margin-bottom: 32px;
    }
    
    .project-card {
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
    }
    
    .icon-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .project-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .intro p,
    .current-work p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .work-item {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .company-logo {
        align-self: flex-start;
        width: 50px;
        height: 28px;
    }
    
    .company-logo img {
        max-width: 40px;
        max-height: 24px;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 16px;
    }
    
    .project-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-icon {
        align-self: flex-start;
    }
    
    .social-link {
        padding: 14px 0;
    }
}

/* Print styles */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .social-link {
        border-bottom: none;
    }
    
    .external-link {
        display: none;
    }
}
