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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
}

nav h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #2c3e50;
}

.nav-right {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-right a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-right a:hover {
    color: #667eea;
}

main {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.typing-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-align: center;
    min-height: 120px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

.typing-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.chat-interface {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.welcome-message {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.welcome-message h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.suggested-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.suggested-question {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    color: #667eea;
    font-weight: 500;
}

.suggested-question:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

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

.user-message {
    background: #667eea;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
}

.loading {
    color: #666;
    font-style: italic;
}

.chat-input-wrapper {
    display: flex;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

#chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: #667eea;
}

#chat-send {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    margin-left: 1rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#chat-send:hover {
    background: #5568d3;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-content a {
    color: #667eea;
    text-decoration: none;
}

/* Side Menu Styles */
.side-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.side-menu.open {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #2c3e50;
}

.side-menu h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.side-menu .experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.side-menu h3.collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

.side-menu h3.collapsible:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.toggle-icon.rotated {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.collapsed {
    max-height: 0;
}

.date {
    color: #666;
    font-style: italic;
    margin: 0.5rem 0;
}

.side-menu ul {
    margin-left: 1.5rem;
}

.side-menu li {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    
    nav h1 {
        font-size: 1.1rem;
        position: static;
        transform: none;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-right a {
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .hero-container {
        padding: 1rem 0;
    }
    
    .typing-text {
        font-size: 1.2rem;
        min-height: 100px;
        padding: 0 1rem;
    }
    
    .chat-interface {
        height: calc(100vh - 250px);
        min-height: 400px;
        border-radius: 12px;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .welcome-message {
        padding: 1rem;
    }
    
    .welcome-message h3 {
        font-size: 1.1rem;
    }
    
    .message {
        max-width: 85%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .chat-input-wrapper {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    #chat-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    #chat-send {
        padding: 0.75rem 1.5rem;
        margin-left: 0.5rem;
    }
    
    .side-menu {
        width: 85%;
        left: -85%;
        padding: 1.5rem;
    }
    
    .side-menu.open {
        left: 0;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1rem;
    }
    
    .hamburger {
        font-size: 20px;
    }
    
    .nav-right {
        gap: 0.75rem;
    }
    
    .nav-right a {
        font-size: 0.85rem;
    }
    
    .typing-text {
        font-size: 1rem;
        min-height: 80px;
    }
    
    .chat-interface {
        height: calc(100vh - 220px);
        border-radius: 8px;
    }
    
    .welcome-message h3 {
        font-size: 1rem;
    }
    
    .suggested-question {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .message {
        max-width: 90%;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .chat-input-wrapper {
        padding: 0.75rem;
    }
    
    #chat-input {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    #chat-send {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .side-menu {
        width: 90%;
        left: -90%;
        padding: 1rem;
    }
    
    .side-menu h2 {
        font-size: 1.3rem;
    }
    
    .side-menu .experience-item {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    footer {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}
