:root {
    --bg-desktop: #050508;
    --window-bg: rgba(13, 17, 26, 0.94);
    --accent-color: #00f3ff;
    --secondary-color: #5c6773;
    --text-white: #e6edf3;
    --border-color: rgba(0, 243, 255, 0.3);
    --font-main: 'JetBrains Mono', monospace;
    --font-code: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-desktop);
    color: var(--text-white);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: -1;
}

body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.window-container {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    animation: bootUp 0.6s ease-out;
}

@keyframes bootUp {
    from {
        transform: scale(0.98);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.window-bar {
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window-title {
    flex-grow: 1;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-family: var(--font-code);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.terminal-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.login-msg {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    opacity: 0.9;
}

section {
    margin-bottom: 60px;
}

h1,
h2,
h3 {
    color: #fff;
    margin-bottom: 10px;
}

p {
    color: #b0b8c3;
    line-height: 1.6;
    margin-bottom: 15px;
}

.prompt {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.cmd-text {
    color: #ff79c6;
    font-family: var(--font-code);
}

.comment {
    color: var(--secondary-color);
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}

.accent {
    color: var(--accent-color);
}

header {
    margin-bottom: 40px;
}

.nav-link {
    margin-right: 25px;
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    font-family: var(--font-code);
}

.nav-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

.nav-link::before {
    content: "./";
    color: var(--accent-color);
    opacity: 0.5;
}

.about-flex-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.about-text-area {
    flex: 1;
    min-width: 300px;
}

.typewriter-box {
    min-height: 80px;
    margin-bottom: 20px;
}

.info-block {
    border-left: 2px solid var(--secondary-color);
    padding-left: 20px;
}

.stats-list {
    list-style: none;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.stats-list li {
    margin-bottom: 8px;
    display: flex;
}

.label {
    color: #fff;
    margin-right: 10px;
    min-width: 60px;
}

.image-frame {
    position: relative;
    border: 2px solid var(--accent-color);
    background: #000;
    overflow: hidden;
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 243, 255, 0.05) 3px, rgba(0, 0, 0, 0.2) 4px);
    pointer-events: none;
}

.hacker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.5s;
}

.image-frame:hover .hacker-img {
    filter: grayscale(0%);
}

.avatar-wrapper {
    flex: 0 0 350px;
    max-width: 350px;
    aspect-ratio: 1/1;
}

.studio-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 20px auto;
}

.studio-section {
    text-align: center;
    padding: 40px 0;
    border-block: 1px dashed var(--secondary-color);
}

.btn-store,
.btn-download {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-code);
    transition: 0.3s;
}

.btn-store {
    padding: 12px 30px;
    margin-top: 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
}

.btn-store:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color);
}

.btn-download {
    border-bottom: 1px dashed var(--accent-color);
    margin-top: 15px;
    font-size: 0.9rem;
}

.btn-download:hover {
    background: var(--accent-color);
    color: #000;
    border-style: solid;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.card,
.social-link {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--secondary-color);
    padding: 20px;
    transition: 0.3s;
}

.card:hover,
.social-link:hover {
    border-color: var(--accent-color);
    background: rgba(0, 243, 255, 0.05);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--font-code);
}

.price-tag {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--accent-color);
}

.social-link {
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-code);
    display: flex;
    align-items: center;
}

.social-icon {
    color: var(--accent-color);
    margin-right: 10px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-color);
    animation: blink 1s step-end infinite;
    vertical-align: sub;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

footer {
    margin-top: 80px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    border-top: 1px dashed var(--secondary-color);
    padding-top: 20px;
}

@media (max-width: 900px) {
    .about-flex-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .about-text-area {
        width: 100%;
    }

    .window-container {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }

    .window-bar {
        padding: 0 10px;
    }

    .window-title {
        display: none;
    }

    .nav-link {
        display: block;
        margin-bottom: 10px;
    }
}