/* styles.css */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --accent-color: #FFBE00;
    --card-bg: #f8f9fa;
    --pill-bg: #e9ecef;
    --pill-text: #495057;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --text-primary: #e0e0e0;
        --text-secondary: #a0a0a0;
        --border-color: #3a3a3a;
        --card-bg: #2a2a2a;
        --pill-bg: #3a3a3a;
        --pill-text: #c0c0c0;
    }
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: #f8f9fa;
    --pill-bg: #e9ecef;
    --pill-text: #495057;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #3a3a3a;
    --card-bg: #2a2a2a;
    --pill-bg: #3a3a3a;
    --pill-text: #c0c0c0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

#theme-toggle:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.theme-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.theme-icon.hidden {
    display: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 60px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.icons a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.icons a:hover {
    color: var(--accent-color);
}

.icons svg,
.icons img {
    width: 24px;
    height: 24px;
}

.llm-link {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-color);
}

.llm-link:hover {
    text-decoration: underline;
}

.icon-img {
    width: 24px;
    height: 24px;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.card {
    background: var(--card-bg);
    border-left: 3px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.card strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.links {
    margin-top: 12px;
}

.links a {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
}

.pill {
    display: inline-block;
    background: var(--pill-bg);
    padding: 6px 12px;
    margin: 4px;
    border-radius: 16px;
    font-size: 0.9em;
    color: var(--pill-text);
    transition: background-color 0.3s ease;
}

.skills {
    margin-bottom: 50px;
}

.skills > div {
    margin-bottom: 25px;
}

.skills > div > div:first-child {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.05em;
}

footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.newsletter-section {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    transition: background-color 0.3s ease;
}

.newsletter-section h3 {
    text-align: center;
    margin-bottom: 25px;
}

.newsletter-iframe-container {
    display: flex;
    justify-content: center;
}

.newsletter-iframe-container iframe {
    max-width: 100%;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
}

.consultation-highlight {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.consultation-highlight:hover {
    box-shadow: 0 4px 12px rgba(255, 190, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 190, 0, 0.3);
    text-decoration: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }

    .container {
        padding: 20px 15px;
    }

    .newsletter-section {
        padding: 25px 20px;
    }

    .newsletter-iframe-container iframe {
        width: 100% !important;
        height: 400px !important;
    }

    #theme-toggle {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .consultation-highlight {
        padding: 20px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 1em;
    }
}
