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

:root {
    --primary-color: #c77dbb;
    --primary-dark: #1e3a5f;
    --text-color: #2c2c2c;
    --light-gray: #f8f9fa;
    --border-color: #e8e8e8;
    --hover-bg: #f5f5f5;
    --black: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: white;
}

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bebas+Neue&family=Righteous&display=swap');

h1, h2, h3 {
    font-family: 'Righteous', 'Archivo Black', sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / Hero */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    font-style: italic;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.15rem;
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.6;
}

/* CTA Cards */
.cta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.cta-card {
    padding: 60px 40px;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(199, 125, 187, 0.15);
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(199, 125, 187, 0.25);
}

.cta-card h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
    font-style: italic;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* Resume Page */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    font-style: italic;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Resume Content */
.job {
    margin-bottom: 40px;
}

.job-header {
    margin-bottom: 12px;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.job-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.job ul {
    margin-left: 20px;
}

.job li {
    margin-bottom: 10px;
    color: #495057;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--black);
    font-weight: 800;
    font-style: italic;
}

.section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
    color: var(--text-color);
    font-weight: 700;
    font-style: italic;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-category p {
    color: #495057;
    line-height: 1.8;
}

/* Portfolio Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.portfolio-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    transition: all 0.3s;
    background: white;
}

.portfolio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.portfolio-card h3 {
    color: var(--black);
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
}

.portfolio-card .subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-card p {
    color: #495057;
    margin-bottom: 15px;
    line-height: 1.7;
}

.portfolio-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.portfolio-card a:hover {
    text-decoration: none;
    border-bottom-color: var(--primary-color);
}

/* Chat Interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 800px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.ai {
    align-items: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: 12px;
    line-height: 1.6;
}

.message-bubble p {
    margin: 0 0 12px 0;
}

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

.message.user .message-bubble {
    background: var(--light-gray);
    color: var(--text-color);
}

.message.ai .message-bubble {
    background: #f0f4f8;
    color: var(--text-color);
}

.typing-indicator {
    display: none;
    padding: 16px 20px;
    background: #f0f4f8;
    border-radius: 12px;
    max-width: 80px;
}

.typing-indicator.active {
    display: block;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #adb5bd;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.suggested-btn {
    padding: 12px 22px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.suggested-btn:hover {
    background: #b56ba8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 125, 187, 0.3);
}

.chat-input-area {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    font-weight: 600;
}

.send-btn:hover {
    background: #b56ba8;
    transform: translateY(-2px);
}

.send-btn:disabled {
    background: #d4a5ca;
    cursor: not-allowed;
    transform: none;
}

.chat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.start-over-btn {
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.start-over-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chat-note {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .cta-cards {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
    }

    .message-bubble {
        max-width: 90%;
    }
}
