:root{
    --color-primary:#00ff00;
    --color-secondary:#ffffff;
    --color-accent-1:#edff00;
    --color-accent-2:#ff2436;
    --bg-page:#92AAB3;
    --text-color:#000000
}

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

body{
    background:var(--bg-page);
    color:var(--text-color);
    text-rendering:optimizeLegibility
}

.nav-terminal,.footer-terminal,
.card-terminal,.offcanvas{
    background:rgba(80,80,92,.85);
    color:#fff;
    border-color:rgba(0,255,0,.2)!important
}

.brand-text{
    color:#00ff00;
    letter-spacing:.5px;
    text-shadow:0 0 8px rgba(0,255,0,.35)
}

.navbar-logo{
    width: 7rem;
    height: auto;
    /* border-radius:50%;
    box-shadow:0 0 10px rgba(0,255,0,.5);
    transition:transform .3s ease */
}

/* .logo-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#00ff00;
    box-shadow:0 0 10px rgba(0,255,0,.7);
    display:inline-block
} */

.cursor{
    animation:blink 1.2s steps(2,start) infinite
}

@keyframes blink{50%{opacity:0}}

.navbar .nav-link{
    color:#fff;opacity:.9
}

.navbar .nav-link:hover,
.navbar .nav-link.active{
    color:#00ff00
}

.navbar-toggler-icon{
    color: #00ff00;
    background-color: #00ff00;
}

.btn-primary{
    --bs-btn-bg:#0d0;
    --bs-btn-border-color:#0d0;
    --bs-btn-hover-bg:#0f0;
    --bs-btn-hover-border-color:#0f0;
    --bs-btn-color:#000
}

.btn-outline-primary{
    --bs-btn-color:#0f0;
    --bs-btn-border-color:#0f0;
    --bs-btn-hover-bg:#0f0;
    --bs-btn-hover-border-color:#0f0;
    --bs-btn-hover-color:#000
}

.carousel-item{
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-item img{
    width: 100%;
    height: 100%;
    object-fit:  cover;
}

.carousel-caption{
    background-color: rgba(0,0,0,.7);
    padding: 15px;
    border-radius: 5px;
}

.carousel-caption h5{
    color: #00ff00;
}

.carousel-caption p{
    color: #b3b3b3;
}

.section-title,.page-title{
    color:#00ff00;
    text-shadow:0 0 8px rgba(0,255,0,.25)
}

.link-accent{color:#edff00}

.card-terminal{
    border:1px solid rgba(0,255,0,.2);
    box-shadow:0 0 20px rgba(0,255,0,.1);
    background:rgba(0,0,0,.7)
}

.card-terminal .card-footer{
    border-top:1px solid rgba(0,255,0,.15);
    color:#fff
}

/* .living-lead{
    max-width: 100%;
    height: auto;
} */

.portfolio-grid .tile{
    display:block;
    border:1px solid rgba(0,255,0,.25);
    border-radius:.75rem;
    overflow:hidden;
    background:#000
}

.footer-logo{
    width: 7rem;
    height: auto;
}

.portfolio-grid img{width:100%;height:220px;object-fit:cover;filter:saturate(.9) contrast(1.05);transition:transform .25s ease,filter .25s ease}
.portfolio-grid .tile:hover img{transform:scale(1.03);filter:saturate(1.05) contrast(1.1)}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:static;width:auto;height:auto;padding:.5rem 1rem;background:#000;color:#0f0;z-index:1050}
img{border-radius:.75rem}
.shadow{box-shadow:0 .5rem 1.5rem rgba(0,255,0,.12)!important}

/* Blog template styles */
.blog-content h2,
.blog-content h3 {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0,255,0,.25);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h2 {
    border-bottom: 1px solid rgba(0,255,0,.2);
    padding-bottom: 0.5rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-content blockquote {
    border-left: 3px solid #00ff00;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
}

.blog-content code {
    background: rgba(0,255,0,.1);
    color: #00ff00;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.blog-content pre {
    background: rgba(0,0,0,.8);
    border: 1px solid rgba(0,255,0,.2);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #00ff00;
    content: ">";
}

.breadcrumb-item.active {
    color: var(--text-color);
}

.badge.bg-primary {
    background: #00ff00 !important;
    color: #000 !important;
}

/* Chatbot Styles */
.chatbot-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatbot-robot-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.chatbot-robot-icon .chatbot-icon {
    font-size: 2rem;
    z-index: 2;
    position: relative;
}

.chatbot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #00ff00;
    animation: pulse 2s infinite;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.chatbot-footer-container.active .chatbot-pulse {
    border-color: #ff2436;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: rgba(0,0,0,.95);
    border: 1px solid rgba(0,255,0,.3);
    border-radius: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.chatbot-container.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-container.minimized {
    height: 60px;
    overflow: hidden;
}

.chatbot-header {
    background: rgba(0,255,0,.1);
    border-bottom: 1px solid rgba(0,255,0,.2);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff00;
}

.terminal-prompt {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    opacity: 0.8;
}

.chatbot-title-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-controls {
    display: flex;
    gap: 8px;
}

.chatbot-control-btn {
    background: none;
    border: none;
    color: #00ff00;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.chatbot-control-btn:hover {
    background: rgba(0,255,0,.1);
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0,255,0,.1);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0,255,0,.3);
    border-radius: 3px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-content {
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-message .message-content {
    background: rgba(0,255,0,.1);
    border: 1px solid rgba(0,255,0,.2);
    margin-left: 20px;
}

.bot-message .message-content {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    margin-right: 20px;
}

.message-content p {
    margin: 0;
    color: #fff;
}

.message-content code {
    background: rgba(0,255,0,.2);
    color: #00ff00;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,.5);
    text-align: right;
    padding: 0 12px;
}

.user-message .message-time {
    text-align: left;
}

.typing-indicator .typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

.chatbot-input-area {
    border-top: 1px solid rgba(0,255,0,.2);
    padding: 16px;
    background: rgba(0,0,0,.3);
    border-radius: 0 0 12px 12px;
}

.pdf-upload-area, .api-key-area {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0,255,0,.05);
    border: 1px solid rgba(0,255,0,.1);
    border-radius: 6px;
}

.pdf-upload-btn, .api-key-save-btn {
    background: rgba(0,255,0,.1);
    border: 1px solid rgba(0,255,0,.3);
    color: #00ff00;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-upload-btn:hover, .api-key-save-btn:hover {
    background: rgba(0,255,0,.2);
}

.api-key-input {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(0,255,0,.2);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    width: 70%;
    margin-right: 8px;
    font-size: 0.8rem;
}

.api-key-input::placeholder {
    color: rgba(255,255,255,.5);
}

.pdf-status {
    margin-top: 6px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.pdf-status.success {
    background: rgba(0,255,0,.1);
    color: #00ff00;
    border: 1px solid rgba(0,255,0,.2);
}

.pdf-status.error {
    background: rgba(255,36,54,.1);
    color: #ff2436;
    border: 1px solid rgba(255,36,54,.2);
}

.pdf-status.loading {
    background: rgba(237,255,0,.1);
    color: #edff00;
    border: 1px solid rgba(237,255,0,.2);
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(0,255,0,.2);
    border-radius: 8px;
    padding: 8px;
}

.input-prompt {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0.8;
}

.chatbot-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    min-height: 20px;
    max-height: 80px;
    line-height: 1.4;
}

.chatbot-input::placeholder {
    color: rgba(255,255,255,.5);
}

.chatbot-send-btn {
    background: #00ff00;
    color: #000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

.chatbot-send-btn:hover {
    background: #00cc00;
    transform: scale(1.05);
}

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

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 20px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 400px;
    }
    
    .chatbot-toggle {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}