/* ELLIO Research Lab - Professional Dark Theme */

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary: #00a8ff;
    --primary-glow: rgba(0, 168, 255, 0.3);
    --secondary: #00ccff;
    --accent: #0088cc;
    --terminal-bg: #0d1117;
    --terminal-header: #161b22;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-dim: #7a8599;
    --spacing: 2rem;
    --card-border-radius: 6px;
    --success: #4caf50;
    --highlight: #ff9800;
}

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

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

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

@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 typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from { border-right-color: var(--primary); }
    to { border-right-color: transparent; }
}

@keyframes matrix {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(rgba(0, 168, 255, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(0, 168, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

header {
    padding: var(--spacing) 0;
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease forwards;
}

.logo {
    text-align: center;
}

.logo.pulse img {
    max-height: 80px;
    display: block;
    animation: pulse 3s infinite ease-in-out;
}

main {
    flex: 1;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

section {
    margin-bottom: calc(var(--spacing) * 2);
}

.hero {
    text-align: center;
    padding: calc(var(--spacing) * 1.5) 0;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.terminal {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    background-color: var(--terminal-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.1);
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-buttons span:nth-child(1) {
    background-color: #ff5f57;
}

.terminal-buttons span:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background-color: #28ca41;
}

.terminal-title {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
}

.line {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.line.active {
    opacity: 1;
    transform: translateX(0);
}

.prompt {
    color: var(--secondary);
    margin-right: 8px;
}

.command {
    color: var(--text);
}

.output {
    color: var(--text-secondary);
}

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

.highlight {
    color: var(--highlight);
    font-weight: bold;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(0, 168, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.1);
}

.card-content {
    padding: 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

i {
    opacity: 0.9;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.expertise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.expertise-item.active {
    opacity: 1;
    transform: translateY(0);
}

.expertise-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.1);
}

.expertise-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.expertise-item span {
    font-size: 0.95rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 160px;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

.btn.glow {
    position: relative;
    overflow: hidden;
}

.btn.glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn.glow:hover::before {
    opacity: 0.2;
}

footer {
    text-align: center;
    padding: var(--spacing) 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

footer p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media Queries */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing: 1.5rem;
    }
    
    .terminal {
        max-width: 100%;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}