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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-color-dark: #000000;
    --nav-text-color: #000000;
    --footer-bar-color: #000000;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-color-dark: #ffffff;
    --nav-text-color: #ffffff;
    --footer-bar-color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 3rem;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-text-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}

.intro {
    margin-bottom: 4rem;
}

.intro h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
}

.currently {
    margin-bottom: 4rem;
}

.currently h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 2rem;
}

.currently-item {
    margin-bottom: 2rem;
}

.currently-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}

.currently-item p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.experience {
    margin-bottom: 4rem;
}

.experience h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--text-color-dark);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.experience-item {
    margin-bottom: 3rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color-dark);
    margin: 0;
}

.experience-date {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.experience-company {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color-dark);
    margin-bottom: 0.25rem;
}

.experience-location {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.experience-bullets {
    list-style: none;
    padding-left: 0;
}

.experience-bullets li {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.projects-container {
    max-width: 900px;
}

.projects {
    margin-bottom: 4rem;
}

.projects h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--text-color-dark);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.project-item {
    margin-bottom: 4rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color-dark);
    margin: 0;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.project-link {
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.tag {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    background-color: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

[data-theme="dark"] .tag {
    color: #999999;
    background-color: #1a1a1a;
}

.project-date {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.project-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.project-bullets li {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.project-image {
    margin-top: 2rem;
    width: 100%;
}

.project-image:has(img + video) {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.project-image video,
.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.project-image:has(img + video) img,
.project-image:has(img + video) video {
    width: 50%;
    flex: 1;
}

.project-image img + video {
    margin-top: 0;
}

.project-image video {
    background-color: #000000;
}

.project-image video[controls] {
    cursor: pointer;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

[data-theme="dark"] .image-placeholder {
    background-color: #1a1a1a;
    border-color: #333333;
}

.image-placeholder p {
    color: #999999;
    font-size: 14px;
}

.photography-container {
    max-width: 1400px;
    padding: 0 2rem 4rem;
}

.photography {
    margin-bottom: 4rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    grid-auto-flow: dense;
}

.photo-grid img,
.photo-grid video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
    aspect-ratio: 3/4;
}

.photo-grid video {
    background-color: var(--bg-color);
}

.photo-grid img:hover,
.photo-grid video:hover {
    transform: scale(1.02);
    opacity: 1;
}

.main-footer {
    margin-top: 4rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.resume-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color-dark);
}

.copyright {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.footer-bar {
    width: 100%;
    height: 1px;
    background-color: var(--footer-bar-color);
    position: fixed;
    bottom: 0;
    left: 0;
}

.contacts {
    margin-bottom: 4rem;
}

.contacts h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--text-color-dark);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.contacts-intro {
    margin-bottom: 3rem;
}

.contacts-intro p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    margin-bottom: 0;
}

.contact-item h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color-dark);
    margin-bottom: 0.75rem;
}

.contact-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.chat-section {
    margin-bottom: 4rem;
}

.chat-section h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.chat-intro {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    scroll-behavior: smooth;
}

[data-theme="dark"] .chat-messages {
    border-color: rgba(255, 255, 255, 0.1);
}

.message {
    display: flex;
    width: 100%;
    animation: fadeIn 0.3s ease-in;
}

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

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 80%;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background-color: #f5f5f5;
    color: #000000;
}

[data-theme="dark"] .bot-message .message-content {
    background-color: #1a1a1a;
    color: #ffffff;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: #000000;
    color: #ffffff;
}

[data-theme="dark"] .user-message .message-content {
    background-color: #ffffff;
    color: #000000;
}

.suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.prompt-chip {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

[data-theme="dark"] .prompt-chip {
    border-color: rgba(255, 255, 255, 0.1);
}

.prompt-chip:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

[data-theme="dark"] .prompt-chip:hover {
    background-color: #1a1a1a;
}

.prompt-chip:active {
    transform: translateY(0);
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    outline: none;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .chat-input {
    border-color: rgba(255, 255, 255, 0.1);
}

.chat-input:focus {
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .chat-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.chat-input::placeholder {
    color: #999999;
}

.send-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[data-theme="dark"] .send-button {
    background-color: #ffffff;
    color: #000000;
}

.send-button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #999999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 0 1.5rem 4rem;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .experience h1 {
        font-size: 2rem;
    }

    .contacts h1 {
        font-size: 2rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects h1 {
        font-size: 2rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-container {
        max-width: 100%;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .photography-container {
        max-width: 100%;
        padding: 0 1.5rem 4rem;
    }

    .project-image:has(img + video) {
        flex-direction: column;
    }

    .project-image:has(img + video) img,
    .project-image:has(img + video) video {
        width: 100%;
    }

    .project-image img + video {
        margin-top: 1.5rem;
    }
}

