/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: #CFF5E1;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    max-width: 80%;
    margin: 0 auto;
    background-color: #090f0a;
    box-shadow: 0 0 20px rgba(207, 245, 225, 0.1);
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    background-color: #090f0a;
    min-height: 100vh;
}

/* CRT Overlay */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.8;
    z-index: 100;
}

/* Header Styles */
header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, #101a13, #22452c);
    border-bottom: 4px double #CFF5E1;
    text-shadow: 0 0 5px #CFF5E1;
    position: relative;
}

header h1.glitch {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    position: relative;
    animation: glitch 2s infinite alternate;
}

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

header h1.glitch::before {
    clip: rect(0, 900px, 0, 0);
    animation: glitch-top 1s infinite linear alternate-reverse;
    left: 2px;
    text-shadow: -2px 0 #458f5b;
}

header h1.glitch::after {
    clip: rect(0, 900px, 0, 0);
    animation: glitch-bottom 1.5s infinite linear alternate-reverse;
    left: -2px;
    text-shadow: 2px 0 #458f5b;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Navigation Styles */
nav {
    background-color: #CFF5E133;
    padding: 1rem;
    text-align: right;
    position: relative;
    top: 0;
    z-index: 10;
    border-bottom: 4px double #CFF5E1;
    box-shadow: 0 2px 10px rgba(207, 245, 225, 0.2);
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 1.5rem;
}

nav a {
    color: #CFF5E1;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px #CFF5E1;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex: 1;
    flex-direction: row-reverse; /* Sidebar on the right */
}

/* Sidebar Styles */
.sidebar {
    flex: 1;
    background-color: #090f0a;
    border-left: 4px double #CFF5E1;
    padding: 15px;
    color: #CFF5E1;
    box-shadow: inset 0 0 10px rgba(207, 245, 225, 0.1);
}

.sidebar-title {
    font-size: 1.2rem;
    border-bottom: 1px dashed #CFF5E1;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Button Styles with Icons */
.button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #CFF5E1;
    color: #090f0a;
    font-size: 1rem;
    text-align: left;
    border: 2px solid #CFF5E1;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #CFF5E1;
}


.button:hover {
    background-color: #090f0a;
    color: #CFF5E1;
    box-shadow: 0 0 15px #CFF5E1;
}


.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.github-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/25/25231.png'); /* GitHub icon */
}

.discord-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/5968/5968756.png'); /* Discord icon */
}

.coffee-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/1999/1999992.png'); /* Coffee icon */
}

.cell-icon{
  background-image: url(https://cell-lab.net/favicon-32x32.png); /* Cell Lab Icon */
}

/* Main Content Styles */
main {
    flex: 3;
    max-width: 100%;
    padding: 2rem;
    background-color: #090f0a;
    border-right: 4px double #CFF5E1;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #CFF5E1;
    text-shadow: 0 0 5px #CFF5E1;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 3px #CFF5E1;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 3px #CFF5E1;
}


/* latin */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/vt323/v17/pxiKyp0ihIEF2isfFJU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.terminal-text {
    font-size: 1.3rem;
    background: #050a07;
    padding: 0.5rem;
    border: 1px solid #CFF5E1;
    box-shadow: inset 0 0 10px rgba(207, 245, 225, 0.1);
    position: relative;
    animation: flicker 4s infinite;
    font-family: 'VT323', 'Courier New', monospace;
    color: #CFF5E1;
}

.cursor {
    font-size: 1.3rem;
    color: #CFF5E1;
    animation: blink 1s step-end infinite;
    text-shadow: 0 0 5px #CFF5E1;
    margin-left: 0.1rem; /* Small offset from text */
}

.typed-text {
    display: inline; 
    visibility: hidden; 
}

.highlight {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 5px #ffffff;
}

a {
    color: #458f5b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #CFF5E1;
}

/* Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    100% { transform: translate(0); }
}

@keyframes glitch-top {
    0% { clip: rect(0, 900px, 0, 0); }
    20% { clip: rect(10px, 900px, 20px, 0); }
    40% { clip: rect(30px, 900px, 40px, 0); }
    60% { clip: rect(50px, 900px, 60px, 0); }
    80% { clip: rect(70px, 900px, 80px, 0); }
    100% { clip: rect(0, 900px, 0, 0); }
}

@keyframes glitch-bottom {
    0% { clip: rect(0, 900px, 0, 0); }
    20% { clip: rect(80px, 900px, 90px, 0); }
    40% { clip: rect(60px, 900px, 70px, 0); }
    60% { clip: rect(40px, 900px, 50px, 0); }
    80% { clip: rect(20px, 900px, 30px, 0); }
    100% { clip: rect(0, 900px, 0, 0); }
}

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

@keyframes flicker {
    0% { opacity: 1; }
    5% { opacity: 0.95; }
    10% { opacity: 1; }
    15% { opacity: 0.98; }
    20% { opacity: 1; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-wrapper {
        max-width: 100%;
    }
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar, .sidebar-left {
        border-left: none;
        border-right: none;
        border-top: 2px solid #CFF5E1;
    }
    main {
        border-right: none;
        border-bottom: 4px double #CFF5E1;
    }
    header h1 {
        font-size: 2rem;
    }
}

