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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fefefe;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    padding: 6rem 0 4rem 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.name {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.01em;
}

/* Main content */
.main {
    padding: 4rem 0;
}

/* Sections */
section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
}

/* Intro section */
.intro {
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
    font-weight: 400;
}

/* Tab system */
.content-tabs {
    margin-bottom: 6rem;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-button:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

.tab-button.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Projects section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.project-status {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.project-status.inactive {
    background-color: #f8f8f8;
    color: #888;
    border: 1px solid #e0e0e0;
}

.project-status.development {
    background-color: #f0f8ff;
    color: #0066cc;
    border: 1px solid #cce5ff;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    background-color: #f8f8f8;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Journalism section */
.journalism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.journalism-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.journalism-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.journalism-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.journalism-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.journalism-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.journalism-date {
    font-size: 0.875rem;
    color: #888;
    font-weight: 500;
    background: #f8f8f8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.journalism-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.journalism-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Contact section */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.contact-link:hover {
    background-color: #f8f8f8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: #888;
    font-weight: 400;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 4rem 0 3rem 0;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.125rem;
    }
    
    .main {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .intro-text {
        font-size: 1.125rem;
    }
    
    .tab-container {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .journalism-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .journalism-card {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.375rem;
    }
    
    .journalism-title {
        font-size: 1.25rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 3rem 0 2rem 0;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .journalism-card {
        padding: 1.25rem;
    }
    
    .project-header {
        margin-bottom: 0.5rem;
    }
    
    .journalism-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

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

/* Only animate on initial page load */
.project-card.initial-load {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card.initial-load:nth-child(1) { animation-delay: 0.1s; }
.project-card.initial-load:nth-child(2) { animation-delay: 0.2s; }
.project-card.initial-load:nth-child(3) { animation-delay: 0.3s; }
.project-card.initial-load:nth-child(4) { animation-delay: 0.4s; }

.journalism-card.initial-load {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

/* Focus states for accessibility */
.contact-link:focus,
.tag:focus,
.project-link:focus,
.journalism-link:focus,
.tab-button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .contact-link:hover {
        transform: none;
    }
} 