/* CSS Custom Properties */
:root {
    --ink: #000000;
    --cream: #f8f8f8;
    --blue: #00d4ff;
    --violet: #8b5cf6;
    --shadow: rgba(0, 0, 0, 0.3);
    
    /* Additional colors for the OS theme */
    --gray-light: #e5e5e5;
    --gray-medium: #9ca3af;
    --gray-dark: #374151;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
}

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

body {
    font-family: 'IBM Plex Mono', monospace;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Section Management */
section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
}

section.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Boot Screen Section */
.boot-section {
    background: var(--ink);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
}

.boot-container {
    text-align: center;
    z-index: 2;
}

.boot-logs {
    margin-bottom: 3rem;
    font-size: 0.9rem;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out 0.5s forwards;
}

.log-line {
    margin-bottom: 0.5rem;
    color: var(--green);
}

.boot-logo {
    margin-bottom: 2rem;
    opacity: 1;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.glitch-text {
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--blue);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch 0.3s infinite;
    color: var(--violet);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch 0.3s infinite reverse;
    color: var(--red);
    z-index: -2;
}

.version {
    font-size: 1rem;
    color: var(--gray-medium);
    margin-top: 0.5rem;
}

.pixel-character {
    opacity: 1;
    transform: none;
}

.pixel-img {
    width: 120px;
    height: 120px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


.boot-prompt {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out 1s forwards;
}

.prompt-text {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-right: 0.5rem;
}

.cursor {
    font-size: 1.1rem;
    color: var(--blue);
}

.blink {
    animation: blink 1s infinite;
}

.scroll-indicator {
    display: none;
}

/* Profile Dashboard Section */
.profile-section {
    background: var(--ink);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
}

.desktop-container {
    max-width: 1200px;
    width: 100%;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.character-panel {
    position: relative;
    display: flex;
    justify-content: center;
}

.character-image {
    position: relative;
    width: 300px;
    height: 300px;
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: drop-shadow(0 0 20px var(--blue));
}

.aura-effect {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--blue), var(--violet), var(--blue));
    border-radius: 15px;
    z-index: -1;
    animation: auraGlow 3s ease-in-out infinite alternate;
    opacity: 0.6;
}

.system-info-panel {
    background: var(--cream);
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
}

.panel-header {
    background: var(--gray-light);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.panel-header i {
    margin-right: 0.5rem;
    color: var(--gray-dark);
}

.panel-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

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

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

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

.panel-content {
    padding: 2rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.label {
    font-weight: 500;
    color: var(--gray-dark);
}

.value {
    font-weight: 600;
}

.value.success {
    color: var(--green);
}

.value.error {
    color: var(--red);
}

.system-logs {
    margin-top: 1.5rem;
}

.log-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-entry {
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

.log-entry.success {
    color: var(--green);
}

.log-entry.warning {
    color: var(--yellow);
}

.log-entry.info {
    color: var(--blue);
}

/* Authentication Section - CMD Style */
.auth-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    padding: 2rem;
}

.auth-output {
    color: #c0c0c0;
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.4;
}

.cmd-log {
    margin: 0.3rem 0;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.cmd-log.show {
    opacity: 1;
    transform: translateY(0);
}

/* CMD Terminal Section */
.cmd-section {
    background: #000000;
    color: var(--cream);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
}

.terminal-container {
    max-width: 800px;
    width: 100%;
    background: #000000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
    border: 2px solid #c0c0c0;
}

.terminal-header {
    background: #c0c0c0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #808080;
}

.terminal-controls {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.terminal-button {
    width: 16px;
    height: 16px;
    border-radius: 0;
    border: 1px solid #808080;
    background: #c0c0c0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.terminal-button.close::after {
    content: '×';
}

.terminal-button.minimize::after {
    content: '−';
}

.terminal-button.maximize::after {
    content: '□';
}

.terminal-button:hover {
    background: #a0a0a0;
}

.terminal-title {
    font-size: 0.85rem;
    color: #000;
    font-weight: bold;
    font-family: 'MS Sans Serif', sans-serif;
}

.terminal-content {
    padding: 1rem;
    min-height: 300px;
    background: #000;
    color: #c0c0c0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.2;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.prompt-symbol {
    color: #c0c0c0;
    margin-right: 0;
}

.collect-text {
    color: #c0c0c0;
    margin-left: 0.3rem;
    margin-right: 0.5rem;
}

.command-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.command-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.2;
}

.command-item:hover {
    background: #0000ff;
    color: #ffffff;
}

.command-item:hover .command-text {
    color: #ffffff;
}

.command-text {
    color: #c0c0c0;
    margin-left: 0.3rem;
}

.command-output {
    margin-top: 1rem;
    color: #c0c0c0;
    min-height: 1.5rem;
    font-size: 14px;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitchHover {
    0% {
        text-shadow: 0 0 5px var(--blue);
    }
    25% {
        text-shadow: 2px 0 0 var(--violet), -2px 0 0 var(--blue);
    }
    50% {
        text-shadow: -2px 0 0 var(--violet), 2px 0 0 var(--blue);
    }
    75% {
        text-shadow: 2px 0 0 var(--blue), -2px 0 0 var(--violet);
    }
    100% {
        text-shadow: 0 0 5px var(--blue);
    }
}

@keyframes auraGlow {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .character-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .terminal-container {
        margin: 0 1rem;
    }
    
    .terminal-content {
        padding: 1.5rem;
    }
    
    .command-item {
        font-size: 1rem;
    }
    
    .boot-section,
    .profile-section,
    .cmd-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .character-image {
        width: 150px;
        height: 150px;
    }
    
    .panel-content {
        padding: 1.5rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
}

/* Section Transition Effects */
.section-transition {
    display: none;
}

/* Smooth Section Overlays */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.boot-section::after {
    display: none;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    display: none;
}

.profile-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    display: none;
}

.console-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    display: none;
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Selection Styling */
::selection {
    background: var(--blue);
    color: var(--ink);
}
.cmd-path { color: #c0c0c0; margin-right: 0.3rem; }

/* Enter Button Styling */
.enter-button-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.enter-button {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, var(--violet), var(--blue));
}

.enter-button:active {
    transform: translateY(0);
}

.enter-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.enter-button:hover .enter-arrow {
    transform: translateX(3px);
}


/* CMD Window Styles - Override */
.cmd-section {
    background: #000000 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
}

.cmd-window {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cmd-header {
    background: #111111;
    color: #ffffff;
    padding: 0.3rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'MS Sans Serif', sans-serif;
    height: 24px;
    border-bottom: 1px solid #333;
}

.cmd-title {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: normal;
}

.cmd-controls {
    display: flex;
    gap: 0.1rem;
}

.cmd-control {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    line-height: 1;
}

.cmd-control:hover {
    background: #a0a0a0;
}

.cmd-content {
    padding: 8px;
    flex: 1;
    background: #000000;
    color: #E6F1FF;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow-y: auto;
}

.cmd-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    display: flex;
    align-items: center;
    gap: 0;
}

.cmd-success {
    color: #00FF9C;
}

.cmd-warning {
    color: #A85CFF;
}

.cmd-input-area {
    margin-top: 16px;
}

.cmd-prompt {
    color: #E6F1FF;
}

.cmd-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    margin-left: 0;
    outline: none;
    display: inline;
    text-align: left;
}

.cmd-text {
    color: #00FF9C;
    transition: all 0.3s ease;
}

.cmd-button:hover {
    background: #0000ff;
}

.cmd-button:hover .cmd-text {
    color: #ffffff;
    text-shadow: none;
}

.cmd-current {
    display: flex;
    align-items: center;
}

.cmd-cursor {
    color: #E6F1FF;
    animation: cmd-blink 700ms infinite;
    font-weight: bold;
}

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

.cmd-output {
    margin-top: 8px;
}

.cmd-log {
    color: #00FF9C;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.cmd-log.show {
    opacity: 1;
    transform: translateY(0);
}
