/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

.dark body {
    background-color: #050505;
    color: #e5e7eb;
}

#profile-image {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark #profile-image {
    border: 3px solid #1a1a1a;
    box-shadow: none;
}

.text-accent { color: #0f766e; }
.dark .text-accent { color: #2dd4bf; }

.bg-accent { background-color: #2dd4bf; }
.border-accent { border-color: #2dd4bf; }

.bg-card { background-color: #ffffff; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); }
.dark .bg-card { background-color: #0d0d0d; box-shadow: none; }

.border-card-edge { border-color: #d1d5db; }
.dark .border-card-edge { border-color: #1f2937; }

.skill-icon {
    filter: brightness(0.9);
}
.dark .skill-icon {
    filter: none;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d1dbd2; 
}

.dark .timeline-item::before {
    background-color: #374151; 
}

.timeline-item:first-child::before {
    top: 0.25rem; 
}

.timeline-item:last-child::before {
    bottom: auto;
    height: 0.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -0.375rem;
    top: 0.25rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    background-color: #6b7280;
    border: 2px solid #f9fafb;
    z-index: 10;
}

.dark .timeline-dot {
    background-color: #707A87;
    border-color: #050505;
}

.timeline-dot-active {
    background-color: #2dd4bf;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e5e7eb;
}
.dark ::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #2dd4bf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e9282;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#chatbot-container {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
}

.fade-hide {
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
    pointer-events: none;
}

.fade-show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

#chatbot-toggle-btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chat-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.chat-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.chat-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 10px;
}
.dark .chat-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(75, 85, 99, 0.5);
}

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

.animate-typing-bounce {
    animation: typing-bounce 1.4s infinite ease-in-out both;
}