/* Index Page Specific Styles */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.4) 0%, transparent 70%);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    mix-blend-mode: screen;
}



/* Header Override */
.header-section {
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 20px;
    position: relative;
    margin-bottom: 20px;
}

.cyber-title {
    font-size: 3.5em;
    /* Specific size for main page */
}

.cyber-subtitle {
    font-size: 1.2em;
    margin-top: 10px;
}

.operator-display {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    letter-spacing: 1px;
    background: rgba(0, 255, 136, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.operator-label {
    color: #00d4ff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.operator-value {
    color: #fff;
    font-weight: normal;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: blinkStatus 2s infinite;
}

@keyframes blinkStatus {
    0% {
        opacity: 1;
        box-shadow: 0 0 8px #00ff88;
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px #00ff88;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 8px #00ff88;
    }
}

/* Specific Container Size for Index */
.cyber-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    min-height: 600px;
    padding: 20px;
    margin: 20px auto;
}

/* Content Body */
.content-body {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    height: auto;
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar .cyber-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 18px 25px;
    margin-bottom: 8px;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #66ffb3;
    font-size: 0.85em;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
}

.sidebar .cyber-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0%;
    background: #00ff88;
    box-shadow: 0 0 15px #00ff88;
    transition: all 0.4s ease;
}

.sidebar .cyber-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
    transform: translateX(10px);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.sidebar .cyber-btn:hover::before {
    height: 70%;
}

.sidebar .cyber-btn.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
    color: #fff;
    text-shadow: 0 0 12px #00ff88;
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1), 0 0 40px rgba(0, 255, 136, 0.2);
}

.sidebar .cyber-btn.active::before {
    height: 100%;
    width: 4px;
}

.sidebar .cyber-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(35deg);
    transition: all 0.6s ease;
}

.sidebar .cyber-btn:hover::after {
    left: 150%;
}

/* Button Variants (If needed for specific styling) */
.btn-connect {
    border-color: rgba(0, 255, 136, 0.4);
}

.btn-contact {
    border-color: rgba(0, 212, 255, 0.4);
}

.btn-contact.active,
.btn-contact:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff;
}

.btn-ai {
    border-color: rgba(255, 0, 255, 0.4);
}

.btn-ai.active,
.btn-ai:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}


.btn-admin {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
    font-size: 0.8em;
    padding: 10px;
    margin-top: auto;
}

.btn-admin:hover {
    background: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
    color: #fff;
}

/* Main Terminal */
.main-terminal {
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    position: inherit !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
    min-height: 400px;
}


.main-terminal::after {
    content: '';

}



/* Chat Interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.chat-header {
    background: #0a0a0a;
    padding: 10px 15px;
    border-bottom: 1px solid #00ff88;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #66ffb3;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.chat-display-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-display {
    flex: 1;
    background: #050505;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.received {
    align-self: flex-start;
    color: #00d4ff;
    border-left: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.message.sent {
    align-self: flex-end;
    color: #00ff88;
    border-right: 2px solid #00ff88;
    background: rgba(0, 255, 136, 0.05);
    text-align: right;
}

.chat-input-area {
    background: #111;
    padding: 10px 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #00ff88;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    outline: none;
}

.chat-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.chat-send-btn {
    background: #00331a;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 0 15px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-send-btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Footer */
.cyber-footer {
    position: relative;
    text-align: center;
    font-size: 0.8em;
    color: rgba(0, 255, 136, 0.5);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding-top: 15px;
    margin-top: auto;
}

/* Contact & Portfolio */
.contact-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}

.contact-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: #00ff88;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.contact-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #66ffb3;
    margin-bottom: 5px;
    display: block;
}

/* Input Overrides for Index Page */
/* Input Overrides for Index Page */
.contact-input,
.chat-input,
.cyber-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    /* Semi-transparent */
    border: 1px solid #333 !important;
    color: #00ff88 !important;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    outline: none;
    transition: all 0.3s ease;
}

.contact-input:focus,
.chat-input:focus,
.cyber-input:focus {
    background: rgba(0, 255, 136, 0.05) !important;
    border-color: #333 !important;
    box-shadow: none !important;
}

.contact-success {
    font-family: 'Courier New', monospace;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 8px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Sidebar Quote */
.sidebar-quote {
    margin-top: auto;
    font-size: 0.8em;
    color: rgba(0, 255, 136, 0.6);
    line-height: 1.4;
    text-align: center;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 255, 136, 0.2);
}

/* Portfolio Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

.project-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-title {
    color: #00d4ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.project-desc {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 3px 8px;
    font-size: 0.7em;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: #00ff88 !important;
}

/* Mobile */
@media (max-width: 800px) {
    .content-body {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px dashed rgba(0, 255, 136, 0.3);
        padding-bottom: 20px;
        padding-right: 0;
    }

    .main-terminal {
        min-height: 300px;
    }
}

/* Markdown Styles for Cyber Theme */
.markdown-content pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.markdown-content code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: #00ff88;
}

.markdown-content p {
    margin: 5px 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 5px 0 5px 20px;
}

.markdown-content li {
    margin: 2px 0;
}

.markdown-content a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px dashed #00d4ff;
}

.markdown-content a:hover {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

.markdown-content hr {
    border: 0;
    height: 1px;
    /* background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent); */
    background: transparent;
    margin: 20px 0;
}

/* Markdown Headers */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: #00ff88;
    /* border-bottom: 1px solid rgba(0, 255, 136, 0.3); */
    border-bottom: 1px solid transparent;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Markdown Tables */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    color: #cceeff;
    font-size: 0.9em;
}

.markdown-content th,
.markdown-content td {
    /* border: 1px solid rgba(0, 255, 136, 0.2); */
    border: 1px solid transparent;
    padding: 8px;
    text-align: left;
}

.markdown-content th {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

/* Markdown Blockquote */
.markdown-content blockquote {
    border-left: 3px solid #00ff88;
    background: rgba(0, 255, 136, 0.05);
    margin: 10px 0;
    padding: 10px 20px;
    color: #aaffdd;
}

/* Reset JSF button styles */
.ui-button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    cursor: pointer !important;
    outline: inherit !important;
}

.ui-button-text {
    display: none !important;
}

/* Cyber Theme Base */
body {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background: #020205;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #00ff88;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-y: auto;
    animation: gridFlow 20s linear infinite;
}

/* Moving Grid Animation */
@keyframes gridFlow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Current Flow Beam */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: scanBeam 8s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes scanBeam {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 195, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 128, 0.03) 0%, transparent 50%);
    animation: matrix 15s linear infinite;
    z-index: -1;
}

@keyframes matrix {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Main Container */
.cyber-container {
    width: 90%;
    max-width: 1200px;
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 2px rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    height: 85vh;
    min-height: 600px;
}

/* Scanline */
.cyber-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 136, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

/* Header */
.header-section {
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 20px;
    position: relative;
}

.cyber-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5em;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    margin: 0;
    letter-spacing: 4px;
}

.cyber-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: #66ffb3;
    letter-spacing: 6px;
    margin-top: 10px;
    text-transform: uppercase;
}

.system-status {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid #00ff88;
    padding: 5px 10px;
    font-size: 0.8em;
    color: #00ff88;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Content Body: Sidebar + Main */
.content-body {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    height: auto;
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px dashed rgba(0, 255, 136, 0.3);
}

/* Enforce dark background on buttons to prevent white browser defaults */
.cyber-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    background: rgba(10, 20, 30, 0.8) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.5) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-decoration: none;
    margin-bottom: 15px;
    line-height: normal;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.1);
}

.cyber-btn:hover,
.cyber-btn.active {
    background: rgba(0, 255, 136, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
    border-color: #00ff88 !important;
    text-shadow: 0 0 5px #00ff88;
}

/* Specific Button Variations */
.btn-contact {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.btn-contact:hover,
.btn-contact.active {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.btn-ai {
    border-color: #ff00ff;
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.btn-ai:hover,
.btn-ai.active {
    background: rgba(255, 0, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
}

.btn-admin {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
    font-size: 0.8em;
    padding: 10px;
}

.btn-admin:hover {
    background: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

/* Main Terminal Display */
.main-terminal {
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 400px;
}

/* Screen Glare */
.main-terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Chat Interface Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #050505;
}

.terminal-card {
    background: rgba(0, 255, 136, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* =========================================
   PORTFOLIO MERGED STYLES
   ========================================= */

/* Adjusted Container for Portfolio Sections */
.portfolio-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.portfolio-header h2 {
    color: #00ff88;
    font-size: 2em;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

.portfolio-subtitle {
    color: #66ffb3;
    font-size: 1.1em;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

/* Navigation inside Portfolio */
.portfolio-nav {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Content Sections */
.portfolio-section {
    margin-bottom: 20px;
    padding: 0 0 20px 0;
    /* Clean style requested: no border, no gradient */
}

.section-title {
    color: #00ffcc;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.description {
    line-height: 1.6;
    color: #cceeff;
    font-size: 1em;
    text-align: justify;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.skill-item {
    background: rgba(10, 20, 30, 0.6);
    padding: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #66ffb3;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #00ff88, #00cbff);
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
}

/* Projects Grid (Updating existing if needed, or ensuring compatibility) */
.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 10px 5px;
}

/* Inherits .project-card from index.css, just need layout tweaks */
.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}



/* Chat Header */
.chat-header {
    background: #0a0a0a;
    padding: 10px 15px;
    border-bottom: 1px solid #00ff88;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #66ffb3;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Chat Display Area - FIXED HEIGHT */
.chat-display-container {
    flex: 1;
    min-height: 0;
    /* Important for flex children */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-display {
    flex: 1;
    background: #050505;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.received {
    align-self: flex-start;
    color: #00d4ff;
    border-left: 2px solid #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.message.sent {
    align-self: flex-end;
    color: #00ff88;
    border-right: 2px solid #00ff88;
    background: rgba(0, 255, 136, 0.05);
    text-align: right;
}

/* Input Area - FIXED AT BOTTOM */
.chat-input-area {
    background: #111;
    padding: 10px 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #00ff88;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    outline: none;
}

.chat-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.chat-send-btn {
    background: #00331a;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 0 15px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-send-btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Footer */
.cyber-footer {
    text-align: center;
    font-size: 0.8em;
    color: rgba(0, 255, 136, 0.5);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding-top: 15px;
    margin-top: auto;
}

/* Contact Form Styles */
.contact-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    /* overflow-y removed to keep header fixed */
}

.contact-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: #00ff88;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.contact-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #66ffb3;
    margin-bottom: 5px;
    display: block;
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: #00ff88 !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #00ff88;
}

/* Specific Targeting */
#contactForm .contact-input,
#contactForm input[type="text"].contact-input,
.contact-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88 !important;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    outline: none;
}

.chat-input {
    width: 100%;
    background: #000 !important;
    border: 1px solid #333;
    color: #00ff88 !important;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    outline: none;
}

/* Aggressive overrides for chat input */
#messageInput,
#messageInput:focus {
    border: 1px solid #333 !important;
    box-shadow: none !important;
    outline: none !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.contact-input:focus {
    /* Keep border color static or very subtle, no glow/shadow */
    border-color: #333;
    box-shadow: none !important;
    outline: none !important;
}

.contact-success {
    font-family: 'Courier New', monospace;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 8px;
    margin-top: 10px;
    font-size: 0.9em;
}

.hidden {
    display: none !important;
}

/* Quote in sidebar */
.sidebar-quote {
    margin-top: auto;
    font-size: 0.8em;
    color: rgba(0, 255, 136, 0.6);
    line-height: 1.4;
    text-align: center;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 255, 136, 0.2);
}

/* Mobile */
@media (max-width: 800px) {
    .content-body {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px dashed rgba(0, 255, 136, 0.3);
        padding-bottom: 20px;
        padding-right: 0;
    }

    .cyber-btn {
        padding: 12px;
    }

    .main-terminal {
        min-height: 300px;
    }
}

/* Portfolio Styles (Inlined for immediate update) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    flex: 1;
    overflow-y: visible;
}

.project-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-title {
    color: #00d4ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    margin: 0;
    margin-bottom: 15px;
}

.project-card .cyber-btn-sm {
    font-size: 0.65em;
    padding: 5px 12px;
}


.project-desc {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 3px 8px;
    font-size: 0.7em;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.cyber-btn-sm {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 30px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cyber-btn-sm:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    color: #fff;
}

.cyber-btn-sm.active {
    background: rgba(0, 255, 136, 0.4) !important;
    border-color: #00ff88 !important;
    color: #fff !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 136, 0.4);
    text-shadow: 0 0 5px #fff;
    transform: translateY(1px);
}

.cyber-btn-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 5px;
    gap: 8px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.05);
}

.portfolio-sticky-header {
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    flex-shrink: 0;
}

.portfolio-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.portfolio-nav {
    margin-bottom: 0 !important;
}