/* Base layout and structure */
body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/bg_image.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Main container for terminal and button */
.matrix-button {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.terminal {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    height: 70%;
    margin: 10px auto;
    display: none;
    z-index: 20;
}

.terminal-header {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 21;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-content {
    padding: 20px;
    overflow-y: auto;
    height: 80% /* Account for header height */
}

/* Footer positioning */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 30;
    box-sizing: border-box;
}

/* Theme switcher layout */
.theme-switcher {
    position: relative;
    display: inline-block;
}

.current-theme {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.theme-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding: 10px;
    min-width: 120px;
    display: none;
    flex-direction: column;
    gap: 5px;
}

/* Add invisible bridge to prevent hover break */
.theme-options::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.theme-switcher:hover .theme-options {
    display: flex;
}

.theme-option {
    cursor: pointer;
    padding: 5px 10px;
    white-space: nowrap;
}

.theme-option input {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal {
        width: 95%;
        height: 85vh;
        margin: 10px auto;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }

    .theme-switcher {
        justify-content: center;
    }
}

.matrix-button {
    padding: 15px 30px;
    font-size: 1.5rem;
    background: transparent;
    border: 2px solid var(--matrix-green);
    color: var(--matrix-green);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.matrix-button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.terminal-title {
    font-size: 1.2rem;
    color: var(--matrix-green, #00ff00);
}

.back-button {
    padding: 5px 15px;
    background: transparent;
    border: 1px solid var(--matrix-green, #00ff00);
    color: var(--matrix-green, #00ff00);
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.service-option {
    margin: 15px 0;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    padding-left: 20px;
    color: var(--matrix-green, #00ff00);
}

.footer-content {
    text-align: center;
    flex: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--matrix-green, #00ff00);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-shadow: 0 0 10px var(--matrix-green, #00ff00);
}

/* Skill and project items styling */
.skill-item, .project-item {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.skill-item:before, .project-item:before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--matrix-green, #00ff00);
}

.contact-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--matrix-green, #00ff00);
    color: var(--matrix-green, #00ff00);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.theme-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-option input {
    display: none;
}

.theme-option span {
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.theme-option input:checked + span {
    border-color: var(--matrix-green, #00ff00);
    color: var(--matrix-green, #00ff00);
} 