@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #e1e8ed;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.12);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
    color: white;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="20" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.tagline {
    font-size: 1em;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.language-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9em;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lang-btn.active {
    background: rgba(255,255,255,0.9);
    color: #2563eb;
}

.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.research-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 1px solid var(--border-color);
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.card-title {
    color: var(--text-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.7;
}

.ai-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ai-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 28px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    min-width: 100px;
    min-height: 30px;
}

.ai-link:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.ai-icon {
    width: 104px;
    height: 78px;
    max-width: 104px;
    max-height: 78px;
    object-fit: contain;
    flex-shrink: 0;
    /* Removed the white filter to show original icon colors */
}

.download-label {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: bold;
}

.resume-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.resume-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.resume-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.resume-label {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-right {
        order: -1;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .tagline {
        font-size: 0.9em;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        padding: 20px;
    }
    
    .card-description {
        text-align: left;
        line-height: 1.6;
    }
    
    .ai-downloads {
        justify-content: center;
    }
    
    .resume-section {
        text-align: center;
    }
}