:root {
    --bg-color: #0d0d2b;
    --primary-color: #1a1a40;
    --accent-color-1: #4efdff;
    --accent-color-2: #b621fe;
    --text-color: #e0e0e0;
    --font-headings: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --terminal-border-radius: 12px;
    --terminal-padding: 20px;
    --terminal-header-height: 42px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    background: rgba(13, 13, 43, 0.6);
    backdrop-filter: blur(5px);
}

.page-header h1 {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    text-shadow: 0 0 15px rgba(78, 253, 255, 0.5);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 30px;
    background: transparent;
    border: 2px solid var(--accent-color-1);
    color: var(--accent-color-1);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.back-button:hover {
    background-color: var(--accent-color-1);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-color-1);
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 60px 40px;
    width: 100%;
    flex-grow: 1;
}

.terminal-window {
    background-color: rgba(20, 20, 50, 0.95);
    border-radius: var(--terminal-border-radius);
    border: 2px solid var(--accent-color-2);
    box-shadow: 0 0 30px rgba(182, 33, 254, 0.3),
                0 0 15px rgba(78, 253, 255, 0.15);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(182, 33, 254, 0.5),
                0 0 20px rgba(78, 253, 255, 0.25);
}

.terminal-header {
    height: var(--terminal-header-height);
    background: linear-gradient(to right, #4efdff33, #b621fe33);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--terminal-padding);
    border-bottom: 1px solid var(--accent-color-2);
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-color-1);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}
.terminal-control-dot:nth-child(2) {
    background-color: #ffbd2e;
}
.terminal-control-dot:nth-child(3) {
    background-color: #27c93f;
}

.terminal-content {
    padding: var(--terminal-padding);
    flex-grow: 1;
    font-family: var(--font-mono);
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color-2) var(--primary-color);
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}
.terminal-content::-webkit-scrollbar-track {
    background: var(--primary-color);
    border-radius: 10px;
}
.terminal-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color-2);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.terminal-content p {
    margin-bottom: 10px;
}
.terminal-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 10px;
    }

    .page-header h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .back-button {
        position: static;
        display: block;
        margin: 10px auto 20px;
        text-align: center;
    }

    .details-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .terminal-window {
        transform: none !important;
        box-shadow: 0 0 20px rgba(182, 33, 254, 0.2),
                    0 0 10px rgba(78, 253, 255, 0.1);
    }

    .terminal-header {
        font-size: 0.85em;
        height: 38px;
    }

    .terminal-content {
        font-size: 0.88em;
    }
}
