/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #202124;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* LinkedIn Panel Toggle Button */
.linkedin-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #0077b5;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
    transition: all 0.2s;
}

.linkedin-toggle-btn:hover {
    background: #006399;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* LinkedIn Panel Overlay */
.linkedin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.linkedin-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* LinkedIn Side Panel */
.linkedin-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1200;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.linkedin-panel.active {
    left: 0;
}

.linkedin-panel-header {
    background: #0077b5;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.linkedin-panel-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.linkedin-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.linkedin-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.linkedin-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.linkedin-intro {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.linkedin-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.linkedin-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.linkedin-link {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.linkedin-link:hover {
    color: #006399;
    text-decoration: underline;
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: #202124;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-btn:hover span {
    background: #4285f4;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.menu.active {
    display: flex;
}

.menu-link {
    color: #202124;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 15px;
}

.menu-link:hover {
    background: #f8f9fa;
    color: #4285f4;
}

/* Header */
header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 30px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -2px;
    color: #202124;
    margin: 0;
}

.logo .ai {
    color: #4285f4;
    font-weight: 400;
}

.tagline {
    font-size: 14px;
    color: #5f6368;
    margin-top: 8px;
    font-style: italic;
}

/* Mode Selector */
.mode-selector-container {
    text-align: center;
    margin-bottom: 30px;
}

.mode-label {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 12px;
    font-weight: 500;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mode-btn {
    padding: 8px 20px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #5f6368;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.mode-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.mode-btn.active {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
    transition: box-shadow 0.2s;
}

.search-box:hover {
    box-shadow: 0 1px 8px rgba(32, 33, 36, 0.12);
}

.search-box:focus-within {
    box-shadow: 0 1px 8px rgba(32, 33, 36, 0.18);
    border-color: #4285f4;
}

#question {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
}

#question::placeholder {
    color: #9aa0a6;
}

.search-btn {
    padding: 10px 24px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 12px;
}

.search-btn:hover {
    background: #1a73e8;
}

.search-btn:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

/* Mode Description */
.mode-description {
    text-align: center;
    margin-bottom: 30px;
}

.mode-description p {
    font-size: 13px;
    color: #5f6368;
    font-style: italic;
}

/* Loading Indicator */
.loading {
    display: none;
    text-align: center;
    margin: 40px 0;
}

.loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #5f6368;
    font-size: 14px;
}

/* Response Container */
.response-container {
    display: none;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    animation: fadeIn 0.3s;
}

.response-container.active {
    display: block;
}

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

.response-header {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.response-mode {
    display: inline-block;
    padding: 4px 12px;
    background: #4285f4;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.response-question {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    display: block;
}

.response-text {
    font-size: 15px;
    line-height: 1.6;
    color: #3c4043;
    white-space: pre-wrap;
}

.response-text p {
    margin-bottom: 12px;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
}

.disclaimer {
    font-size: 12px;
    color: #5f6368;
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    margin-bottom: 16px;
}

.footer-links {
    margin: 12px 0;
}

.footer-link {
    color: #4285f4;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.footer-separator {
    color: #9aa0a6;
    margin: 0 8px;
}

.copyright {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 8px;
}

/* Support Section */
.support-section {
    margin: 16px 0;
}

.coffee-button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFDD00;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coffee-button:hover {
    background: #FFED4E;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* About Page */
.about-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-content h2 {
    font-size: 28px;
    color: #202124;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-content h3 {
    font-size: 20px;
    color: #202124;
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 500;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #3c4043;
    margin-bottom: 20px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tech-list li {
    padding: 10px 0;
    font-size: 15px;
    color: #3c4043;
    line-height: 1.5;
}

.tech-list li strong {
    color: #202124;
    font-weight: 600;
}

.back-link {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dadce0;
}

/* Who Page */
.who-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.who-content h2 {
    font-size: 28px;
    color: #202124;
    margin-bottom: 20px;
    font-weight: 400;
}

.who-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #3c4043;
    margin-bottom: 20px;
}

.linkedin-embed {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

/* Lab Page */
.lab-content {
    margin-top: 30px;
    margin-bottom: 30px;
}

.lab-content h2 {
    font-size: 28px;
    color: #202124;
    margin-bottom: 12px;
    font-weight: 400;
    text-align: center;
}

.lab-intro {
    font-size: 16px;
    color: #5f6368;
    text-align: center;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.project-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    flex: 1;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #4285f4;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 16px;
    align-self: flex-start;
}

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

    header {
        margin-top: 50px;
    }

    .logo {
        font-size: 48px;
    }

    .mode-selector {
        flex-wrap: wrap;
    }

    .search-box {
        flex-direction: column;
        gap: 12px;
    }

    .search-btn {
        width: 100%;
        margin-left: 0;
    }

    .response-text {
        font-size: 14px;
    }

    /* LinkedIn Panel Mobile */
    .linkedin-panel {
        width: 100%;
        left: -100%;
    }

    .linkedin-panel.active {
        left: 0;
    }
}

/* Error States */
.error {
    background: #fce8e8;
    border: 1px solid #f5c6c6;
    color: #d93025;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

/* Success States */
.success {
    background: #e6f4ea;
    border: 1px solid #b7e1cd;
    color: #137333;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}
