/* filepath: /home/femar/AO3/fescii.github.io/assets/css/console.css */
:root {
    /* Terminal colors */
    --terminal-bg: #1e1e1e;
    --terminal-header-bg: #323232;
    --terminal-text: #f0f0f0;
    --terminal-prompt: #74b9ff;
    --terminal-user: #55efc4;
    --terminal-machine: #74b9ff;
    --terminal-path: #fd79a8;
    --terminal-dollar: #ffeaa7;
    
    /* Command colors */
    --cmd-normal: #f0f0f0;
    --cmd-command: #55efc4;
    --cmd-error: #ff5252;
    --cmd-warning: #ffbb33;
    --cmd-highlight: #74b9ff;
    --cmd-dim: #aaaaaa;
    
    /* Window controls */
    --control-close: #ff5f56;
    --control-minimize: #ffbd2e;
    --control-maximize: #27c93f;
    
    /* General UI */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --scrollbar-track: #1e1e1e;
    --scrollbar-thumb: #555555;
    
    /* Profile badge */
    --profile-badge-bg: #323232;
    --profile-status-online: #27c93f;
    
    /* Light mode overrides */
    --light-terminal-bg: #f5f5f5;
    --light-terminal-header-bg: #e0e0e0;
    --light-terminal-text: #121212;
    --light-cmd-normal: #121212;
    --light-cmd-dim: #777777;
    --light-scrollbar-track: #dddddd;
    --light-scrollbar-thumb: #aaaaaa;
    --light-terminal-input-bg: #f0f0f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}
*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(83, 83, 83, 0.07);
    background-color: #1e1e1e;
}
*::-webkit-scrollbar {
    width: 4px;
    border-radius: 10px;
    background-color: #8b48e4;
  }
*::-webkit-scrollbar-thumb {
    background-color: #8b48e4;
  }

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #2a2a2a;
    color: var(--terminal-text);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://c4.wallpaperflare.com/wallpaper/743/379/720/music-jimi-hendrix-artwork-2700x1688-entertainment-music-hd-art-wallpaper-preview.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: -1;
}

.terminal-container {
    width: 90%;
    height: 90vh;
    background-color: rgba(30, 30, 30, 0.85);
    border-radius: 12px;
    box-shadow: 0 15px 35px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: terminalAppear 0.5s ease-out forwards;
}

@keyframes terminalAppear {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.terminal-header {
    background-color: var(--terminal-header-bg);
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.window-controls {
    display: flex;
    align-items: center;
}

.control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control:hover {
    transform: scale(1.1);
}

.control::before {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px;
}

.control:hover::before {
    display: block;
}

.control.close {
    background-color: var(--control-close);
}

.control.close:hover::before {
    content: "×";
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.control.minimize {
    background-color: var(--control-minimize);
}

.control.minimize:hover::before {
    content: "−";
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.control.maximize {
    background-color: var(--control-maximize);
}

.control.maximize:hover::before {
    content: "+";
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--cmd-dim);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.time-display {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-label {
    color: var(--cmd-dim);
    font-size: 12px;
    font-weight: 500;
}

.time-value {
    color: var(--cmd-highlight);
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: 60px; /* Added extra padding to account for the footer */
    overflow: hidden;
    position: relative;
}

.terminal-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin: 0;
}

.terminal-input-area {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    margin-top: 12px;
    padding: 0 4px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--cmd-highlight);
    position: relative; /* Add positioning context for autocomplete */
}

.output-line .command-input,
.prompt {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    color: var(--terminal-text);
    margin-right: 8px;
    white-space: nowrap;
}

.prompt .user {
    color: var(--terminal-user);
}

.prompt .at {
    color: var(--cmd-normal);
}

.prompt .machine {
    color: var(--terminal-machine);
}

.prompt .path {
    color: var(--terminal-path);
}

.prompt .dollar {
    color: var(--terminal-dollar);
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    /* Ensure the wrapper has proper positioning context for the autocomplete */
    width: 100%;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--cmd-normal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    outline: none;
    caret-color: transparent;
    position: relative;
    z-index: 2;
    padding: 0 4px;
}

#terminal-input::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: cursor-blink 1.2s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.terminal-cursor {
    height: 2px;
    min-width: 10px;
    background-color: var(--cmd-highlight);
    position: absolute;
    bottom: 0;
    left: 0;
    animation: cursor-blink 1.2s infinite;
    user-select: none;
    pointer-events: none;
    border-radius: 1px;
    box-shadow: 0 0 5px var(--cmd-highlight);
}

.terminal-cursor-info {
    position: absolute;
    bottom: -22px;
    left: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--cmd-command);
    padding: 3px 8px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    opacity: 0.8;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

/* Base styles for autocomplete suggestions - specific positioning in autocomplete-fix.css */
.autocomplete-suggestions {
    position: absolute;
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--cmd-highlight);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

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

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--cmd-normal);
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    animation: suggestionFadeIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(-5px);
}

@keyframes suggestionFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background-color: rgba(116, 185, 255, 0.15);
    padding-left: 15px;
}

.suggestion-item .command {
    color: var(--cmd-command);
    margin-right: 8px;
    font-weight: 600;
}

.suggestion-item .description {
    color: var(--cmd-dim);
    font-size: 0.9em;
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--profile-badge-bg);
    border: 2px solid var(--cmd-highlight);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 100;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: var(--profile-status-online);
    border-radius: 50%;
    border: 2px solid var(--terminal-bg);
}

/* Terminal output styling */
.output-line {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.command-input {
    color: var(--cmd-command);
    font-weight: 600;
    white-space: pre;
    display: flex;
    align-items: center;
}

.command-input .timestamp {
    color: var(--cmd-dim);
    margin-right: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1px 0;
}

.command-input .cmd-prompt {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.command-input .cmd-prompt .user {
    color: var(--terminal-user);
    font-weight: bold;
}

.command-input .cmd-prompt .at {
    color: var(--cmd-normal);
    margin: 0 2px;
}

.command-input .cmd-prompt .machine {
    color: var(--terminal-machine);
}

.command-input .cmd-prompt .path {
    color: var(--terminal-path);
}

.command-input .cmd-prompt .dollar {
    color: var(--terminal-dollar);
    margin-right: 3px;
}

.error-text {
    color: var(--cmd-error);
}

.warning-text {
    color: var(--cmd-warning);
}

.highlight-text {
    color: var(--cmd-highlight);
    font-weight: 700;
    padding: 4px 0;
    margin-top: 25px;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    font-size: 1.25em;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(116, 185, 255, 0.3);
}

.highlight-text::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--cmd-highlight);
    box-shadow: 0 0 8px rgba(116, 185, 255, 0.5);
}

.dim-text {
    color: var(--cmd-dim);
}

.system-message {
    color: var(--cmd-normal);
    font-style: italic;
}

.cmd-hint {
    color: var(--cmd-command);
    font-weight: bold;
    background-color: rgba(85, 239, 196, 0.1);
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid rgba(85, 239, 196, 0.3);
}

/* Global transitions and animated elements */
.animated-section {
    animation: sectionFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animated-item {
    opacity: 0;
    animation: itemFadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

@keyframes itemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated highlight */
.animated-highlight {
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    background-size: 200% 100%;
    background-position-x: 100%;
    transition: background-position-x 0.5s ease-out;
    animation: highlightPulse 3s ease-in-out infinite alternate;
}

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

/* Animated section transitions */
.section-exit {
    animation: sectionExit 0.4s ease-out forwards;
}

@keyframes sectionExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Smooth element transform animations */
.terminal-content > div {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Enhanced scrolling behavior */
.terminal-content {
    scroll-behavior: smooth;
}

/* Enhanced welcome section styling */
.welcome-container {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.welcome-container.show {
    transform: translateY(0);
    opacity: 1;
}

.welcome-ascii {
    color: var(--cmd-highlight);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
    margin-bottom: 15px;
    font-size: 0.8em;
    display: inline-block;
    text-shadow: 0 0 5px rgba(116, 185, 255, 0.7);
    background: linear-gradient(to right, var(--cmd-highlight), #74d9ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate, asciiAppear 1s ease-out forwards;
    opacity: 0;
}

@keyframes asciiAppear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.typing-animation {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2.5s steps(40, end) forwards;
    width: 0;
}

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

.welcome-message {
    margin-bottom: 10px;
}

.welcome-version-info {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUpIn 0.5s ease-out 1.5s forwards;
}

.system-ready {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUpIn 0.5s ease-out 2s forwards;
    border-left: 3px solid var(--cmd-command);
}

.loading-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(85, 239, 196, 0.3);
    border-top: 2px solid var(--cmd-command);
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-bar {
    height: 2px;
    background-color: var(--cmd-command);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        var(--cmd-command),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

body.light-theme #terminal-input, 
body.light-theme .output-line:not(.command-input):not(.error-text):not(.warning-text):not(.highlight-text) {
    color: var(--light-cmd-normal);
}

body.light-theme .terminal-content::-webkit-scrollbar-track {
    background: var(--light-scrollbar-track);
}

body.light-theme .terminal-content::-webkit-scrollbar-thumb {
    background-color: var(--light-scrollbar-thumb);
}

body.light-theme .dim-text {
    color: var(--light-cmd-dim);
}

/* Skills section styling */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    animation: sectionFadeIn 0.6s ease-out forwards;
    transform-origin: top center;
    perspective: 800px;
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-category {
    margin-bottom: 16px;
    animation: categorySlideIn 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--delay, 0) * 0.1s);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.2)
    );
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border-left: 3px solid var(--cmd-highlight);
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3),
        rgba(30, 30, 30, 0.3)
    );
}

@keyframes categorySlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-category-title {
    color: var(--cmd-highlight);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    background: linear-gradient(to right, var(--cmd-highlight), #64d6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.skill-category-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    animation: expandWidth 1s ease-out forwards;
    animation-delay: 0.2s;
    transform-origin: left;
}

@keyframes expandWidth {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    opacity: 0;
    animation: skillItemFadeIn 0.4s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.08s + 0.2s);
}

@keyframes skillItemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-name {
    color: var(--terminal-user);
    margin-right: 10px;
    font-weight: 600;
    position: relative;
}

.skill-name::before {
    content: "▹";
    color: var(--cmd-command);
    margin-right: 6px;
}

.skill-level {
    color: var(--cmd-dim);
    font-style: italic;
    font-size: 0.9em;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Projects section styling */
.project {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-left: 3px solid var(--cmd-highlight);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 0 6px 6px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateX(-30px);
    opacity: 0;
    animation: projectSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--index, 0) * 0.15s);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) translateX(0) !important;
    border-left-width: 5px;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project:hover::before {
    opacity: 0.05;
}

@keyframes projectSlideIn {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.project-title {
    color: var(--terminal-user);
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
    position: relative;
    font-size: 1.05em;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    transition: width 0.3s ease;
}

.project:hover .project-title::after {
    width: 100%;
}

.project-description {
    margin-top: 6px;
    color: var(--cmd-normal);
    line-height: 1.4;
    position: relative;
    padding-left: 12px;
}

.project-description::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--cmd-highlight);
    opacity: 0.8;
}

/* Contact info styling */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 16px;
    opacity: 0;
    transform: scale(0.9);
    animation: contactItemScale 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.15s);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15),
        rgba(30, 30, 30, 0.05)
    );
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes contactItemScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.25),
        rgba(30, 30, 30, 0.1)
    );
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
    color: var(--cmd-command);
}

.contact-icon {
    color: var(--cmd-highlight);
    margin-right: 12px;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.contact-label {
    color: var(--terminal-user);
    margin-right: 8px;
    font-weight: 600;
}

.contact-value {
    color: var(--cmd-normal);
    position: relative;
}

.contact-value::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--cmd-highlight);
    transition: width 0.3s ease;
}

.contact-item:hover .contact-value::after {
    width: 100%;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    perspective: 1000px;
}

.contact-message {
    color: var(--cmd-dim);
    font-style: italic;
    margin-top: 16px;
    padding: 10px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.05)
    );
    border-radius: 6px;
    border-left: 2px solid var(--cmd-warning);
    text-align: center;
    font-size: 0.95em;
}

/* Section containers styling */
.projects-container,
.work-experience-container,
.education-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    perspective: 1000px;
}

/* Education section styling */
.education-item {
    margin-bottom: 15px;
    padding: 12px;
    border-left: 3px solid var(--cmd-highlight);
    background: linear-gradient(
        to right,
        rgba(116, 185, 255, 0.05),
        rgba(30, 30, 30, 0.05)
    );
    border-radius: 0 6px 6px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: educationSlideIn 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.2s);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes educationSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.education-item:hover {
    background: linear-gradient(
        to right,
        rgba(116, 185, 255, 0.1),
        rgba(30, 30, 30, 0.05)
    );
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Summary section */
.summary-section {
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeUpIn 0.6s ease-out forwards;
    padding: 15px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.05)
    );
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--cmd-highlight), transparent);
    opacity: 0.05;
    transition: all 0.5s ease;
}

.summary-section:hover::before {
    transform: scale(2);
    opacity: 0.075;
}

/* Work experience section */
.work-item {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: workItemAppear 0.6s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.2s);
    padding: 15px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes workItemAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(116, 185, 255, 0.2);
}

.work-item::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    opacity: 0.1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.work-item:hover::before {
    right: -20px;
    top: -20px;
    opacity: 0.15;
}

.work-title {
    color: var(--terminal-user);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1.1em;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, var(--terminal-user), var(--cmd-command));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.work-company, .work-period {
    color: var(--cmd-highlight);
    display: inline-block;
}

.work-company {
    font-weight: 600;
}

.work-period {
    font-style: italic;
    margin-left: 8px;
    opacity: 0.85;
}

.work-description {
    margin-top: 12px;
    padding: 8px 0 0 16px;
    position: relative;
}

.work-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
}

.work-bullet {
    display: flex;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-10px);
    animation: bulletAppear 0.5s ease-out forwards;
    animation-delay: calc(var(--bullet-index, 0) * 0.1s + 0.3s);
}

@keyframes bulletAppear {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.work-bullet:before {
    content: "▹";
    color: var(--cmd-highlight);
    margin-right: 10px;
    font-size: 1.1em;
    position: relative;
    top: -2px;
}

/* Status section styling */
.status-container {
    padding: 15px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    border-left: 3px solid var(--cmd-highlight);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: statusContainerAppear 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    opacity: 0;
    transform: scale(0.95);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

@keyframes statusContainerAppear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.status-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right,
        rgba(116, 185, 255, 0.1),
        transparent 70%
    );
    pointer-events: none;
}

.status-item {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateX(-20px);
    opacity: 0;
    animation: statusItemSlide 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s + 0.2s);
    transition: all 0.3s ease;
}

@keyframes statusItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-item:hover {
    background-color: rgba(0, 0, 0, 0.25);
    transform: translateX(5px);
}

.status-label {
    color: var(--terminal-user);
    width: 150px;
    font-weight: bold;
    position: relative;
    padding-left: 18px;
}

.status-label::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--cmd-highlight);
    font-size: 1.2em;
    line-height: 0.8;
}

.status-value {
    color: var(--cmd-normal);
    position: relative;
    overflow: hidden;
    animation: textReveal 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s + 0.4s);
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-value.online {
    color: var(--profile-status-online);
    position: relative;
    padding-left: 18px;
}

.status-value.online::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--profile-status-online);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--profile-status-online);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0.8;
    }
}

/* About section styling */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0;
    animation: sectionFadeIn 0.6s ease-out forwards;
}

.about-info-section {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--cmd-highlight);
}

.about-info-item {
    margin-bottom: 8px;
    display: flex;
    opacity: 0;
    transform: translateX(-20px);
    animation: infoItemSlide 0.4s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s + 0.2s);
}

@keyframes infoItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-info-label {
    color: var(--terminal-user);
    font-weight: 600;
    width: 100px;
    position: relative;
    padding-left: 15px;
}

.about-info-label::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--cmd-highlight);
}

.about-info-value {
    color: var(--cmd-normal);
}

.profile-text {
    color: var(--cmd-normal);
    line-height: 1.6;
    margin-top: 8px;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    padding: 5px 10px;
    border-left: 2px solid rgba(116, 185, 255, 0.3);
    font-size: 0.97em;
}

.stats-section {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    padding: 10px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: statItemAppear 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.15s + 0.6s);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) !important;
    background-color: rgba(116, 185, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

@keyframes statItemAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-key {
    color: var(--cmd-dim);
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--cmd-highlight);
    font-weight: 700;
    font-size: 1.1em;
}

/* Help section styling */
.commands-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 10px 0 20px 0;
    animation: sectionFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.command-help-item {
    padding: 12px 15px;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2), 
        rgba(30, 30, 30, 0.1)
    );
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: commandHelpAppear 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.08s + 0.2s);
    border-left: 2px solid var(--cmd-highlight);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

@keyframes commandHelpAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-help-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--cmd-highlight), transparent);
    transition: width 0.3s ease;
}

.command-help-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.25),
        rgba(30, 30, 30, 0.15)
    );
    border-left-color: var(--cmd-command);
}

.command-help-item:hover::before {
    width: 100%;
}

.command-help-name {
    color: var(--cmd-command);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-help-name i {
    font-size: 14px;
    opacity: 0.8;
}

.command-help-desc {
    color: var(--cmd-normal);
    font-size: 0.95em;
    opacity: 0.9;
    padding-left: 22px;
}

.help-hint {
    background-color: rgba(255, 187, 51, 0.1);
    border: 1px solid rgba(255, 187, 51, 0.3);
    color: var(--cmd-warning);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0 25px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.5s ease-out forwards;
    max-width: fit-content;
}

.help-hint i {
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

/* Payment links styling */
.payment-links {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--cmd-warning);
    animation: paymentAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: scale(0.98);
}

@keyframes paymentAppear {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.payment-caption {
    display: block;
    color: var(--cmd-warning);
    font-style: italic;
    margin: 0 0 20px;
    text-align: start;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.payment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
}

.payment-link {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--terminal-text);
}

.payment-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.payment-link.paypal {
    background: linear-gradient(135deg, #253b80, #169bd7);
    border: 1px solid #169bd7;
}

.payment-link.buymeacoffee {
    background: linear-gradient(135deg, #fd0 20%, #ffdd5f 80%);
    border: 1px solid #fd0;
    color: #000;
}

.payment-link.mpesa {
    background: linear-gradient(135deg, #4caf50, #1e8722);
    border: 1px solid #4caf50;
    cursor: pointer;
}

.payment-link i {
    font-size: 1.2em;
}

.mpesa-popup {
    display: none;
    position: absolute;
    background: var(--terminal-header-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--cmd-highlight);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    width: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: popupAppear 0.3s ease-out forwards;
    backdrop-filter: blur(10px);
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.mpesa-popup-title {
    color: var(--cmd-highlight);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.mpesa-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
    color: var(--cmd-command);
    font-size: 1.2em;
    margin: 10px 0;
    letter-spacing: 2px;
    border: 1px solid rgba(85, 239, 196, 0.3);
    user-select: all;
}

.mpesa-close {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: var(--cmd-error);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpesa-close:hover {
    background: rgba(255, 82, 82, 0.2);
    transform: translateY(-2px);
}

/* Footer styling */
.terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(30,30,30,0.9) 100%);
    padding: 12px 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
    transform: translateY(100%);
    animation: footerSlideUp 0.5s ease-out 1s forwards, footerFloat 4s ease-in-out 2s infinite;
}

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

.footer-contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--cmd-normal);
    padding: 6px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), max-width 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(116, 185, 255, 0.1);
    opacity: 0;
    width: 34px;
    height: 34px;
    max-width: 34px;
    animation: footerLinkAppear 0.4s ease-out forwards;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.footer-link:nth-child(1) { animation-delay: 1.2s; }
.footer-link:nth-child(2) { animation-delay: 1.4s; }
.footer-link:nth-child(3) { animation-delay: 1.6s; }
.footer-link:nth-child(4) { animation-delay: 1.8s; }
.footer-link:nth-child(5) { animation-delay: 2.0s; }

@keyframes footerLinkAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.footer-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.footer-link:hover {
    background: rgba(116, 185, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.3);
    width: auto;
    max-width: 200px;
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
}

.footer-link:hover .footer-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 2px;
}

.footer-link:hover .footer-icon {
    background: rgba(116, 185, 255, 0.25);
    transform: scale(1.1);
}

.footer-text {
    position: relative;
    overflow: hidden;
    display: inline-block;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.4s ease-out, opacity 0.3s ease-out 0.1s;
    white-space: nowrap;
}

.footer-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--cmd-highlight);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.footer-link:hover .footer-text::before {
    width: 100%;
}

/* Additional footer link animations */
.footer-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30px;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.footer-link:hover::after {
    opacity: 1;
    left: 120%;
}

/* Different color schemes for each link on hover */
.footer-link.email-link:hover {
    border-color: rgba(253, 121, 168, 0.4);
    color: #fd79a8;
}

.footer-link.github-link:hover {
    border-color: rgba(108, 92, 231, 0.4);
    color: #6c5ce7;
}

.footer-link.linkedin-link:hover {
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077B5;
}

.footer-link.twitter-link:hover {
    border-color: rgba(29, 161, 242, 0.4);
    color: #1DA1F2;
}

.footer-link.phone-link:hover {
    border-color: rgba(0, 184, 148, 0.4);
    color: #00b894;
}

/* Pulse animation for the footer */
.terminal-footer.pulse {
    animation: footerPulse 1s ease-out;
}

@keyframes footerPulse {
    0% {
        box-shadow: 0 -5px 25px rgba(116, 185, 255, 0.3);
        border-top-color: rgba(116, 185, 255, 0.4);
    }
    50% {
        box-shadow: 0 -5px 30px rgba(116, 185, 255, 0.5);
        border-top-color: rgba(116, 185, 255, 0.7);
    }
    100% {
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
        border-top-color: rgba(116, 185, 255, 0.2);
    }
}

/* Remove extra padding since footer is now attached */
.terminal-body {
    padding-bottom: 16px; /* Reset to original padding */
}

/* Visual connection between terminal and footer */
.terminal-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    height: 20px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(116, 185, 255, 0.5));
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.3;
        height: 20px;
    }
    50% {
        opacity: 0.8;
        height: 25px;
    }
}

/* Add side connectors for visual interest */
.terminal-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(116, 185, 255, 0.3) 20%, 
        rgba(116, 185, 255, 0.5) 50%,
        rgba(116, 185, 255, 0.3) 80%,
        transparent 100%
    );
    animation: gradientFlow 3s linear infinite;
    background-size: 200% 100%;
}

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

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    vertical-align: middle;
    opacity: 1;
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-footer {
        padding: 10px 15px;
    }
    
    .footer-contact-links {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .footer-link {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .footer-icon {
        width: 24px;
        height: 24px;
    }
    
    @keyframes footerFloat {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-2px);
        }
    }
}

@media (max-width: 576px) {
    .terminal-footer {
        padding: 8px;
    }
    
    .footer-contact-links {
        justify-content: space-around;
        gap: 5px;
    }
    
    .footer-link {
        padding: 8px;
        margin: 0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footer-text {
        display: none;
    }
    
    .footer-icon {
        margin-right: 0;
        font-size: 1.1em;
    }
    
    /* Show tooltips on mobile hover */
    .footer-link::before {
        content: attr(aria-label);
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        white-space: nowrap;
        backdrop-filter: blur(5px);
    }
    
    .footer-link:active::before {
        opacity: 1;
    }
}

/* Spotify Player Styles */
.apple-music-player {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2),
        rgba(30, 30, 30, 0.1)
    );
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid #FA243C; /* Apple Music red */
    animation: musicPlayerAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: scale(0.98);
}

@keyframes musicPlayerAppear {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.music-caption {
    display: block;
    color: #FA243C; /* Apple Music red */
    font-style: italic;
    margin: 0 0 15px;
    text-align: start;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.apple-music-player iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apple-music-player iframe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}