:root {
    --primary-color: #00f3ff;
    --background-color: #000614;
    --text-color: #ffffff;
    --glitch-color: #0066ff;
}

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

body {
    font-family: 'VT323', 'Courier New', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline 10s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

#glitch-container {
    position: relative;
    overflow: hidden;
}

header {
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#logo {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

main {
    padding-top: 80px;
}

section {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    text-shadow: 0 0 15px var(--primary-color);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-item {
    background: rgba(0, 243, 255, 0.1);
    padding: 1.5rem;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(5px);
}

.research-item:hover {
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

input, textarea {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem;
    font-family: inherit;
}

button {
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: var(--text-color);
    box-shadow: 0 0 10px var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
    }
    
    section {
        padding: 2rem 1rem;
    }
}

.glitch-effect {
    animation: glitch 1s infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

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

@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 1;
    }
    20% {
        transform: translate(-5px, 5px);
        opacity: 0.8;
    }
    40% {
        transform: translate(-5px, -5px);
        opacity: 0.9;
    }
    60% {
        transform: translate(5px, 5px);
        opacity: 0.8;
    }
    80% {
        transform: translate(5px, -5px);
        opacity: 0.9;
    }
    100% {
        transform: translate(0);
        opacity: 1;
    }
}