/* public/css/variables.css */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-secondary: #808080;
    --color-accent: #404040;
    --color-border: #1a1a1a;
    --color-glitch: #ff0000;
    --color-hover: rgba(255, 255, 255, 0.05);
    
    --font-main: 'JetBrains Mono', monospace;
    --font-size-base: 16px;
    --font-size-large: 2.5em;
    --font-size-small: 0.875em;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

/* public/css/main.css */
body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
.inline-icon {
    vertical-align: middle;
    margin-left: 4px;
}

.container {
    position: relative;
    padding-top: 120px; /* Increased padding for header space */
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.content {
    padding-top: 80px;
}

/* Header Styles */
.terminal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-close { background: #ff5f56; }
.control-minimize { background: #ffbd2e; }
.control-maximize { background: #27c93f; }

.header-title {
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    letter-spacing: 1px;
}

/* Navigation */
.nav-bar {
    padding: var(--spacing-sm) 0;
    display: flex;
    gap: var(--spacing-lg);
    position: fixed;
    top: 40px; /* Adjust based on header height */
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-small);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Terminal Effects */
.glitch-container {
    position: relative;
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

.terminal-window {
   background-color: rgba(0, 0, 0, 0.85);
   /* border: 1px solid rgba(255, 255, 255, 0.1); */
   box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
   margin: 40px auto; /* Center horizontally */
   padding: 30px;     /* Increased padding */
   position: relative;
   z-index: 3;
   backdrop-filter: blur(10px);
   width: 90%;       /* Width relative to container */
   max-width: 900px; /* Maximum width */
   padding-top: 70px;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes textShadow {
    0% {
        text-shadow: 0.4389924193300864px 0 1px rgba(255,255,255,0.5),
                     -0.4389924193300864px 0 1px rgba(0,0,0,0.3);
    }
    100% {
        text-shadow: 2.6208764473832513px 0 1px rgba(255,255,255,0.5),
                     -2.6208764473832513px 0 1px rgba(0,0,0,0.3);
    }
}

.crt-effect {
    animation: textShadow 1.6s infinite;
}

.terminal-line {
    margin: var(--spacing-sm) 0;
    position: relative;
    padding-left: var(--spacing-lg);
}

.terminal-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-text-secondary);
}

/* Visual Effects */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N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SflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
    opacity: 0.05;
    z-index: 1;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 100% 4px;
    animation: scanline 10s linear infinite;
    opacity: 0.2;
    z-index: 2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Animations */
@keyframes glitch {
    0% { transform: none; opacity: 1; }
    7% { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10% { transform: none; opacity: 1; }
    27% { transform: none; opacity: 1; }
    30% { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35% { transform: none; opacity: 1; }
    52% { transform: none; opacity: 1; }
    55% { transform: skew(-1deg, 0.2deg); opacity: 0.75; }
    50% { transform: none; opacity: 1; }
    72% { transform: none; opacity: 1; }
    75% { transform: skew(0.4deg, 1deg); opacity: 0.75; }
    80% { transform: none; opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #fff;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

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

.terminal-line {
    display: none;  /* Initially hidden, will be shown when typing starts */
    margin-bottom: 8px;
    font-family: var(--font-main);
    color: var(--color-text);
    position: relative;
    padding-left: 20px;
}

.terminal-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-text-secondary);
}

/* Optional: Add different styles for different types of terminal lines */
.terminal-output .terminal-line::before {
    content: '#';
    color: #4CAF50;
}

.terminal-navigation .terminal-line::before {
    content: '$';
    color: #2196F3;
}
.directory-listing {
    font-family: var(--font-main);
    line-height: 1.6;
    padding-left: 20px;
    white-space: pre;
}

.directory {
    color: var(--color-white);
    margin-bottom: 10px;
}

.file-item {
    padding-left: 20px;
    color: var(--color-grey);
}
/* Terminal Prompt Container */
.terminal-prompt {
    position: relative;
    display: flex;
    align-items: center;
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    color: var(--color-text);
    padding-left: 20px; /* Matches your .terminal-line padding */
    margin-bottom: 1rem;
}

/* Prompt Symbol */
.prompt-symbol {
    margin-right: 0.5rem;
    color: var(--color-text-secondary);
}

/* The typed text span */
#typedText {
    white-space: pre; /* So spaces show up properly */
}

/* The single blinking cursor */
.prompt-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* Hide the actual input offscreen */
.terminal-input {
    position: absolute;
    left: -9999px; /* or top: -9999px */
    opacity: 0;
    pointer-events: none; /* not strictly necessary, but ensures no clicks */
}

/* Blink animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}
.site-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 10px;
    width: 421px; /* Adjust as needed */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 10px;
    font-family: var(--font-main);
    font-size: var(--font-size-small);
}

.site-footer .header-title {
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    margin-bottom: 10px;
}

/* Terminal line styling */
.site-footer .terminal-line {
    margin: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-lg);
}

/* Adds the '>' prompt */
.site-footer .terminal-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-text-secondary);
}

/* Links */
.site-footer a {
    color: var(--color-text);
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Optional: Responsive tweak if you need to shrink on small screens */
@media (max-width: 480px) {
    .site-footer {
        width: auto;
        left: 0;
        right: 0;
        margin: 10px;
    }
}
