/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terminal-bg: #0a0a0a;
    --terminal-text: #0cfa7d;
    --terminal-secondary: #00b4d8;
    --terminal-header: #1a1a1a;
    --terminal-shadow: rgba(0, 250, 125, 0.2);
    --font-mono: 'JetBrains Mono', monospace;
    --section-bg: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #27c93f;
}

/* Theme: Blue */
body.theme-blue {
    --terminal-text: #00b4d8;
    --terminal-secondary: #90e0ef;
    --terminal-shadow: rgba(0, 180, 216, 0.2);
    --success-color: #0077b6;
}

/* Theme: Purple */
body.theme-purple {
    --terminal-text: #9b5de5;
    --terminal-secondary: #c77dff;
    --terminal-shadow: rgba(155, 93, 229, 0.2);
    --success-color: #7209b7;
}

/* Theme: Amber */
body.theme-amber {
    --terminal-text: #ffb703;
    --terminal-secondary: #fb8500;
    --terminal-shadow: rgba(255, 183, 3, 0.2);
    --success-color: #e76f51;
}

/* Theme: Red */
body.theme-red {
    --terminal-text: #e63946;
    --terminal-secondary: #ff758f;
    --terminal-shadow: rgba(230, 57, 70, 0.2);
    --success-color: #d90429;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: var(--font-mono);
    color: var(--terminal-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

a {
    color: var(--terminal-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px var(--terminal-secondary);
}

a:hover {
    text-shadow: 0 0 8px var(--terminal-secondary);
}

/* Background particle animation */
#stars-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #000;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Terminal container */
.terminal-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--terminal-bg);
    border-radius: 6px;
    box-shadow: 0 0 20px var(--terminal-shadow), 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Screensaver Styles */
#screensaver-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at 50% 50%);
    transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.8s;
    pointer-events: none;
    color: #0F0;
    font-family: var(--font-mono);
}

#screensaver-container.active {
    opacity: 1;
    visibility: visible;
    clip-path: circle(75% at 50% 50%);
    transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: all;
}

#screensaver-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.screensaver-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screensaver-panel {
    position: absolute;
    padding: 2vw;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1), transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

#screensaver-container.active .screensaver-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#top-left-panel {
    top: 0;
    left: 0;
    transition-delay: 0.4s;
}

#top-right-panel {
    top: 0;
    right: 0;
    text-align: right;
    transition-delay: 0.6s;
}

#bottom-left-panel {
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition-delay: 0.5s;
}

#bottom-right-panel {
    bottom: 0;
    right: 0;
    text-align: right;
    transition-delay: 0.7s;
}

#network-stats p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

#network-stats .label {
    color: var(--terminal-secondary);
    padding-right: 15px;
}

#network-stats .value {
    display: inline-block;
    width: 100px;
    text-align: left;
    color: var(--terminal-text);
}

#profile-placeholder {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    animation: float-effect 6s ease-in-out infinite;
    border: 2px solid var(--terminal-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

#placeholder-skeleton {
    width: 60%;
    height: 60%;
    fill: var(--terminal-text);
    opacity: 0.4;
    filter: drop-shadow(0 0 5px var(--terminal-text));
}

@keyframes float-effect {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--terminal-text);
    box-shadow: 0 0 15px var(--terminal-text);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    to {
        top: 100%;
    }
}

#image-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 50px;
    height: 50px;
    border: 1px solid var(--terminal-secondary);
    background: rgba(0, 255, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--terminal-secondary);
    opacity: 0.7;
}

#joke-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

.loading-bar-container {
    height: 10px;
    width: 250px;
    border: 1px solid var(--terminal-text);
}

#loading-bar {
    height: 100%;
    width: 0%;
    background: var(--terminal-text);
    transition: width 0.5s ease-out;
}

#earth-image {
    width: 80px;
    height: 80px;
    color: var(--terminal-secondary);
    animation: pulse-earth 4s infinite;
}

@keyframes pulse-earth {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

#location-text {
    font-size: 1rem;
}

/* Terminal header */
.terminal-header {
    background-color: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 20px;
    font-size: 14px;
    color: #999;
}

/* Terminal body */
.terminal-body {
    height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Custom Scrollbar */
.scrollbar-track {
    background: transparent;
}

.scrollbar-thumb {
    background: var(--terminal-secondary);
    border-radius: 4px;
    width: 6px; /* A bit thinner */
    opacity: 0;
    transition: all 0.3s ease;
}

.terminal-body:hover .scrollbar-thumb {
    opacity: 1;
    box-shadow: 0 0 10px 0 var(--terminal-secondary);
}

.scrollbar-thumb:hover {
    background: var(--terminal-text);
    box-shadow: 0 0 15px 0 var(--terminal-text);
}

/* Navigation */
.terminal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 20px 20px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--terminal-bg);
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    outline: none;
}

.nav-item:hover, .nav-item:focus-visible {
    opacity: 1;
    text-shadow: 0 0 8px var(--terminal-text);
    background-color: rgba(12, 250, 125, 0.1);
    transform: translateY(-2px);
    border-color: var(--terminal-secondary);
    box-shadow: 0 0 15px -5px var(--terminal-text);
}

.nav-item.active {
    opacity: 1;
    text-shadow: 0 0 8px var(--terminal-text);
    background-color: rgba(12, 250, 125, 0.1);
    border: 1px solid var(--terminal-text);
}

/* Terminal content */
.terminal-content {
    padding: 0 20px 20px;
}

.terminal-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 90vh;
}

.terminal-section.active {
    display: block;
}

/* Make all sections visible when home is active for scrolling */
#home.active ~ .terminal-section {
    display: block;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px dashed var(--border-color);
}

.command-line {
    margin-bottom: 15px;
    font-weight: bold;
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: inline-block;
}

.prompt {
    color: var(--terminal-secondary);
    margin-right: 8px;
}

/* Section headers */
.section-header, .about-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--terminal-text);
    padding-bottom: 10px;
}

.section-header h2, .about-header h2 {
    font-size: 1.8rem;
    color: var(--terminal-text);
    text-shadow: 0 0 10px var(--terminal-shadow);
}

/* Matrix background */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
}

.matrix-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.matrix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: url('https://media.giphy.com/media/mIZ9rPeMKefm0/giphy.gif');
    background-size: cover;
    opacity: 0.1;
    animation: matrix-scroll 30s linear infinite;
}

@keyframes matrix-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ASCII art */
.terminal-ascii-art {
    text-align: center;
}

.terminal-ascii-art pre {
    font-size: 0.6rem;
    color: var(--terminal-secondary);
    white-space: pre;
    overflow: hidden;
    animation: glitch 5s infinite;
    text-shadow: 0 0 5px var(--terminal-secondary);
}

@keyframes glitch {
    0%, 100% { opacity: 1; transform: translateX(0); }
    92% { opacity: 1; transform: translateX(0); }
    94% { opacity: 0.8; transform: translateX(3px); }
    96% { opacity: 1; transform: translateX(-3px); }
    98% { opacity: 0.8; transform: translateX(3px); }
}

/* Terminal commands */
.terminal-commands {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 10px;
    margin: 15px 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.command-history .history-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.command-history .history-line:nth-child(1) { animation-delay: 0.2s; }
.command-history .history-line:nth-child(2) { animation-delay: 0.8s; }
.command-history .history-line:nth-child(3) { animation-delay: 1.4s; }
.command-history .history-line:nth-child(4) { animation-delay: 2.0s; }
.command-history .history-line:nth-child(5) { animation-delay: 2.6s; }

.blink-text {
    animation: blink 1s step-end infinite;
}

/* Home section */
.boot-sequence {
    position: relative;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 10px 0 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--terminal-text);
    width: 0;
    animation: progress 2s ease-in-out forwards;
}

.welcome-message {
    text-align: center;
    position: relative;
}

.welcome-message h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--terminal-shadow);
}

/* Rotating text */
.rotating-text {
    height: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.rotating-text span {
    display: block;
    height: 100%;
    padding-left: 10px;
    color: var(--terminal-secondary);
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    animation: rotateWords 10s linear infinite 0s;
}

.rotating-text span:nth-child(2) {
    animation-delay: 2s;
}

.rotating-text span:nth-child(3) {
    animation-delay: 4s;
}

.rotating-text span:nth-child(4) {
    animation-delay: 6s;
}

.rotating-text span:nth-child(5) {
    animation-delay: 8s;
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(10px); }
    5% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    25% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; }
}

/* Tech badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-badge i {
    color: var(--terminal-secondary);
    font-size: 1rem;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 250, 125, 0.1);
    border-color: var(--terminal-secondary);
}

/* Digital signature */
.digital-signature {
    margin: 30px auto;
    text-align: center;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--terminal-secondary);
    position: relative;
    overflow: hidden;
}

.digital-signature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(12, 250, 125, 0.05), transparent);
    animation: shine 3s infinite;
}

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

.signature-art {
    color: var(--terminal-secondary);
    font-size: 0.7rem;
    white-space: pre;
    margin-bottom: 15px;
    display: inline-block;
    text-shadow: 0 0 8px var(--terminal-secondary);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 0 0 8px var(--terminal-secondary);
        opacity: 0.8;
    }
    50% {
        text-shadow: 0 0 12px var(--terminal-secondary);
        opacity: 1;
    }
}

.signature-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.signature-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--terminal-text);
    text-shadow: 0 0 10px var(--terminal-shadow);
}

.signature-subtitle {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 1px;
}

/* Scroll indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.scroll-indicator i {
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--terminal-secondary);
    animation: bounce 2s infinite;
}

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

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    padding: 8px 15px;
    border: 1px solid var(--terminal-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.social-link:hover, .social-link:focus-visible {
    background-color: rgba(0, 180, 216, 0.1);
    transform: translateY(-3px);
    border-color: var(--terminal-text);
    box-shadow: 0 0 12px -2px var(--terminal-secondary);
}

.social-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover i, .social-link:focus-visible i,
.social-link:hover svg, .social-link:focus-visible svg {
    filter: drop-shadow(0 0 3px var(--terminal-secondary));
}

.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* About section */
.about-container {
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.about-content {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 4px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.skills-container {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

.skill-progress {
    height: 100%;
    background-color: var(--terminal-secondary);
    border-radius: 4px;
}

/* Projects section */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Single column layout for projects */
.projects-list.single-column {
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-item {
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.project-item:hover, .project-content:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 0 20px -5px var(--terminal-shadow);
    border-color: var(--terminal-secondary);
}

.project-content {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: bold;
    color: var(--terminal-secondary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    padding: 3px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    padding: 5px 10px;
    border: 1px solid var(--terminal-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: rgba(0, 180, 216, 0.1);
    transform: translateY(-2px);
}

.project-thumbnail {
    width: 180px;
    flex-shrink: 0;
}

.thumbnail-container {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 150px;
}

.thumbnail-container::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terminal-secondary);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

/* Fallback for missing images */
.thumbnail-container img:not([src]), 
.thumbnail-container img[src=""], 
.thumbnail-container img[src="error"], 
.thumbnail-container img[src$="missing.png"] {
    display: none;
}

.thumbnail-container img:not([src]) + .placeholder-text,
.thumbnail-container img[src=""] + .placeholder-text,
.thumbnail-container img[src="error"] + .placeholder-text,
.thumbnail-container img[src$="missing.png"] + .placeholder-text {
    display: block;
}

.placeholder-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--terminal-secondary);
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px dashed var(--terminal-secondary);
}

.placeholder-note {
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.7;
    font-style: italic;
}

/* Animated border for placeholders */
@keyframes border-pulse {
    0%, 100% { border-color: rgba(0, 180, 216, 0.3); }
    50% { border-color: rgba(0, 180, 216, 0.8); }
}

.placeholder-text {
    animation: border-pulse 2s infinite;
}

.project-item:hover .thumbnail-container {
    border-color: var(--terminal-secondary);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.project-item:hover .thumbnail-container img {
    transform: scale(1.05);
}

.project-details {
    height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0;
    padding-top: 0;
    border-top: 1px dashed transparent;
    opacity: 0;
    transform: translateY(-15px);
}

.project-details.open {
    margin-top: 20px;
    padding-top: 15px;
    border-top-color: var(--border-color);
    opacity: 1;
    transform: translateY(0);
}

.details-header {
    color: var(--terminal-secondary);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.details-content {
    font-size: 0.85rem;
}

.details-content p {
    margin-bottom: 10px;
}

.details-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.details-content li {
    margin-bottom: 5px;
}

.code-preview {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    margin-top: 10px;
}

/* Contact section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-container.single-column {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    color: var(--terminal-secondary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 25px 0;
    opacity: 0.5;
}

.contact-availability, .contact-services {
    margin-bottom: 25px;
}

.contact-availability h3, .contact-services h3 {
    font-size: 1.1rem;
    color: var(--terminal-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-availability h3 i, .contact-services h3 i {
    color: var(--terminal-secondary);
}

.contact-availability p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.availability-hours {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 5px;
}

.availability-hours li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    max-width: 300px;
}

.day {
    font-weight: bold;
    color: var(--terminal-secondary);
}

.response-time {
    font-style: italic;
    font-size: 0.85rem;
}

.response-time span {
    color: var(--terminal-secondary);
    font-weight: bold;
}

.services-list {
    list-style: none;
    padding-left: 5px;
}

.services-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.services-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--terminal-secondary);
    font-weight: bold;
}

.contact-form {
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-mono);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300b4d8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--terminal-secondary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0095b5;
    transform: translateY(-2px);
}

/* Success message */
.success-message {
    background-color: rgba(39, 201, 63, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    color: var(--success-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 10px;
}

/* Error message */
.error-message {
    background-color: rgba(255, 87, 87, 0.1);
    border: 1px solid #ff5757;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.error-message i {
    color: #ff5757;
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-message p {
    margin-bottom: 10px;
}

/* Footer */
.terminal-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #777;
    font-size: 0.8rem;
}

.terminal-note {
    margin-top: 5px;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

.code {
    color: var(--terminal-secondary);
}

/* Error and help messages */
.error-message, .help-message {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    border-left: 3px solid var(--terminal-secondary);
}

.help-message ul {
    padding-left: 20px;
    margin-top: 10px;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Project item animations */
.project-item.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-item:nth-child(1).fadeInUp { animation-delay: 0.1s; }
.project-item:nth-child(2).fadeInUp { animation-delay: 0.3s; }
.project-item:nth-child(3).fadeInUp { animation-delay: 0.5s; }

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-body {
        height: auto;
        max-height: 80vh;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .terminal-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-message h1 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .terminal-ascii-art pre {
        font-size: 0.4rem;
    }
    
    .tech-badges {
        gap: 5px;
    }
    
    .tech-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .signature-art {
        font-size: 0.5rem;
    }
    
    .signature-text {
        font-size: 1rem;
    }
    
    .project-content {
        flex-direction: column-reverse;
    }
    
    .project-thumbnail {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .thumbnail-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .project-details {
        height: auto;
        margin-top: 20px;
        border-top: 1px dashed var(--border-color);
        padding-top: 15px;
    }
    
    .availability-hours li {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .rotating-text {
        height: 40px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        width: 100%;
    }
}

.project-status {
    margin-top: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.status-badge i {
    color: var(--terminal-secondary);
    opacity: 0.8;
}

/* Terms of Service section */
.terms-container {
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h3 {
    font-size: 1.2rem;
    color: var(--terminal-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.terms-section h3 i {
    color: var(--terminal-secondary);
}

.terms-content {
    padding-left: 10px;
}

.terms-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.terms-list {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 15px;
}

.terms-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.terms-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--terminal-secondary);
    font-weight: bold;
}

.terms-note {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--terminal-secondary);
    font-size: 0.85rem;
    margin-top: 20px;
}

.terms-note i {
    color: var(--terminal-secondary);
    margin-right: 8px;
}

@media (max-width: 768px) {
    .terms-section h3 {
        font-size: 1.1rem;
    }
    
    .terms-content {
        padding-left: 0;
    }
}

/* Theme selector */
.theme-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-label {
    color: #777;
    font-size: 12px;
}

.theme-options {
    display: flex;
    gap: 5px;
}

.theme-option {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-option:hover {
    transform: scale(1.2);
}

.theme-option.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Theme colors */
.theme-option[data-theme="default"] {
    background-color: #0cfa7d;
}

.theme-option[data-theme="blue"] {
    background-color: #00b4d8;
}

.theme-option[data-theme="purple"] {
    background-color: #9b5de5;
}

.theme-option[data-theme="amber"] {
    background-color: #ffb703;
}

.theme-option[data-theme="red"] {
    background-color: #e63946;
}

/* Theme transition overlay */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Responsive styles for theme selector */
@media (max-width: 768px) {
    .theme-selector {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .theme-label {
        display: none;
    }
}

/* Theme option for custom theme */
.theme-option.custom-theme {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* Custom theme panel */
.custom-theme-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--terminal-bg);
    border: 1px solid var(--terminal-secondary);
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-theme-panel:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.panel-header h3 {
    color: var(--terminal-text);
    margin: 0;
    font-size: 1.2rem;
}

.close-panel {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #777;
    transition: color 0.2s ease;
    padding: 0;
}

.close-panel:hover {
    color: var(--terminal-text);
}

.color-pickers {
    margin-bottom: 20px;
}

.color-picker {
    margin-bottom: 15px;
}

.color-picker label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-group input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.color-input-group input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-mono);
}

.theme-preview {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.preview-title {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-content {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.preview-command {
    color: #777;
    margin-bottom: 5px;
}

.preview-output {
    color: var(--terminal-text);
}

.panel-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.panel-actions button {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-theme {
    background-color: var(--terminal-secondary);
    color: #000;
}

.save-theme {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.apply-theme:hover, .save-theme:hover {
    transform: translateY(-2px);
}

/* Overlay for custom theme panel */
.theme-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

#scanner-data {
    margin-top: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
}

#scanner-data p {
    margin: 0 0 5px 0;
    text-shadow: 0 0 2px var(--terminal-text);
}

#scanner-data .label {
    display: inline-block;
    width: 120px;
    color: var(--terminal-secondary);
}

#scanner-data .value {
    color: var(--terminal-text);
}

#top-left-panel {
    top: 0;
    left: 0;
    transition-delay: 0.4s;
}

.panel-header {
    font-size: 0.8rem;
    color: var(--terminal-text);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.header-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.header-icon {
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.header-icon:hover {
    color: var(--terminal-text);
    transform: scale(1.1);
}

body.fullscreen-active {
    overflow: hidden;
}

body.fullscreen-active .terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    z-index: 5000;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-header);
}

::-webkit-scrollbar-thumb {
    background-color: var(--terminal-secondary);
    border-radius: 5px;
    border: 2px solid var(--terminal-header);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--terminal-text);
} 
