/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5c9e;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8b5c9e;
}

/* Sections */
section {
    padding: 3rem 1rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Home Section */
#home {
    background: #f8f5fa;
}

.home-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-content {
    flex: 1;
}

.text-content h1 {
    font-size: 3rem;
    color: #8b5c9e;
    margin-bottom: 1rem;
}

.text-content h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.current-role {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.current-role .company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.current-role p {
    margin: 0;
    flex: 1;
}

/* Fun Facts Section */
.fun-facts {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fun-facts h3 {
    color: #8b5c9e;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f5fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 158, 0.1);
    background: white;
}

.fact-icon {
    background: #8b5c9e;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.fact-icon i {
    font-size: 1.5rem;
}

.fact-text {
    flex: 1;
}

.fact-text h4 {
    color: #8b5c9e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fact-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.achievements {
    margin-top: 2.5rem;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #f8f5fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(139, 92, 158, 0.1);
    background: white;
}

.achievement-item i {
    font-size: 1.5rem;
    color: #8b5c9e;
    width: 40px;
    text-align: center;
}

.achievement-text {
    flex: 1;
}

.achievement-text h4 {
    color: #8b5c9e;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.achievement-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.image-content {
    flex: 1;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Education Section */
.education-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.education-item h3 {
    color: #8b5c9e;
    margin-bottom: 0.5rem;
}

.education-item h4 {
    color: #666;
    margin-bottom: 1rem;
}

.education-item ul {
    list-style-position: inside;
    margin: 1rem 0;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.timeline-item h3 {
    color: #8b5c9e;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: #666;
    margin-bottom: 1rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.timeline-item ul {
    list-style-position: inside;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skill-category h3 {
    color: #8b5c9e;
    margin-bottom: 1rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: #f8f5fa;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: #8b5c9e;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #8b5c9e;
    text-decoration: none;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #8b5c9e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Section Titles */
.section-title {
    text-align: center;
    color: #8b5c9e;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Chat Interface */
#chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #1DB954;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 24px;
    transition: transform 0.3s ease;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

#chat-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#chat-header {
    padding: 15px;
    background: #1DB954;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header h3 {
    margin: 0;
    font-size: 18px;
}

#close-chat {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 5px;
    transition: opacity 0.3s ease;
}

#close-chat:hover {
    opacity: 0.8;
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
    max-width: 85%;
}

.message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
    font-size: 16px;
}

.message-content {
    padding: 15px;
    border-radius: 15px;
    background: #f0f0f0;
    position: relative;
    word-wrap: break-word;
    line-height: 1.6;
    white-space: pre-wrap;
}

.message-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.message-content li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.message-content li:hover {
    transform: translateX(5px);
}

.message-content li::before {
    content: "•";
    color: #8b5c9e;
    font-size: 1.2em;
}

.message.assistant .message-content .song-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #8b5c9e;
}

.message.assistant .message-content .song-footer {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.user .message-content {
    background: #1DB954;
    color: white;
}

.assistant .message-content {
    background: #f0f0f0;
}

.typing .message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #1DB954;
    border-radius: 50%;
    animation: bounce 1s infinite;
    opacity: 0.8;
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

#chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

#user-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#user-input:focus {
    border-color: #1DB954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.1);
}

#user-input.focused {
    background-color: #fff;
}

#send-button.active {
    background: #1DB954;
    transform: scale(1.02);
}

#send-button.active:hover {
    background: #1ed760;
    transform: scale(1.05);
}

#send-button {
    background: #1DB954;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

#send-button:hover {
    background: #1ed760;
}

#send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Create Music Button */
#create-playlist-btn {
    display: none;
    background: #1DB954;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px 15px;
    width: calc(100% - 30px);
    transition: background-color 0.3s ease;
}

#create-playlist-btn:hover {
    background: #1ed760;
}

/* Music Player */
#music-player {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 320px;
    background: linear-gradient(145deg, #1DB954, #169443);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 999;
    display: none;
    color: white;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 15px;
}

#track-artwork {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.track-info {
    flex-grow: 1;
    overflow: hidden;
}

#track-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

#artist-name {
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#youtube-player {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    margin: 10px 0;
    background: black;
    overflow: hidden;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 30px;
}

.control-btn {
    background: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #1DB954;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.control-btn:disabled {
    background: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Playlist Queue */
#playlist-queue {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.queue-item:hover {
    background-color: #f5f5f5;
}

.queue-item.active {
    background-color: #e8f5e9;
}

.queue-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.queue-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.queue-item-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-artist {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Scrollbar Styles */
#chat-messages::-webkit-scrollbar,
#playlist-queue::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track,
#playlist-queue::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chat-messages::-webkit-scrollbar-thumb,
#playlist-queue::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover,
#playlist-queue::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    #chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    #music-player {
        width: 100%;
        right: 0;
        border-radius: 0;
    }
}
