:root {
    --bg-dark: #0d1117;
    --card-bg: #161b22;
    --accent: #00ff89;
    --text: #c9d1d9;
    --terminal-green: #23d18b;
    --terminal-red: #ff7266;
    --terminal-yellow: #eab93d;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.terminal-header {
    background-color: #0d1117;
    padding: 8px 15px;
    border-bottom: 1px solid var(--terminal-green);
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: var(--terminal-red); }
.dot.yellow { background-color: var(--terminal-yellow); }
.dot.green { background-color: var(--terminal-green); }

.terminal-path {
    color: var(--terminal-green);
    font-size: 14px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #30363d;
}

h1 {
    color: var(--accent);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 137, 0.3);
}

.tagline {
    color: var(--terminal-yellow);
    font-style: italic;
    margin-bottom: 20px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: var(--accent);
    margin-left: 5px;
    animation: blink 1s infinite;
}

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

section {
    background-color: var(--card-bg);
    border: 1px solid #30363d;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    color: var(--accent);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
}

h2::before {
    content: "$";
    color: var(--terminal-yellow);
    margin-right: 10px;
}

/* Research item styling */
.research-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #30363d; /* Separator line */
}

/* Remove separator from the last item */
.research-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Research title styling */
.research-title {
    font-size: 1.45em;       /* Perfect size between section headers and body text */
    line-height: 1.3;        /* Better readability for technical content */
    margin-bottom: 12px;     /* Slightly more breathing room */
    font-weight: 500;        /* Medium weight for technical emphasis */
}

/* Research title link styling */
.research-title a {
    color: var(--terminal-yellow) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;   /* Ensures proper sizing for the hover effect */
}

.research-title a:hover {
    color: var(--accent) !important;
    text-decoration: underline;
}

.research-title a::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;           /* Thicker underline for larger text */
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.research-title a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Research meta styling */
.research-meta {
    color: #8b949e;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag {
    background-color: #21262d;
    color: var(--terminal-green);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.terminal-output {
    background-color: #0d1117;
    border-left: 3px solid var(--accent);
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    color: var(--terminal-green);
}

.output-line {
    margin-bottom: 5px;
}

.comment {
    color: #8b949e;
}

.function {
    color: var(--terminal-yellow);
}

.string {
    color: #a5d6ff;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    color: var(--terminal-green);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    section {
        padding: 20px;
    }
}

/* Terminal button styling */
.terminal-button {
    display: inline-block;
    background-color: transparent;
    color: var(--terminal-green);
    border: 1px solid var(--terminal-green);
    padding: 5px 12px;
    margin-top: 12px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95em;
}

.terminal-button:hover {
    background-color: rgba(35, 209, 139, 0.1);
    box-shadow: 0 0 8px rgba(35, 209, 139, 0.3);
    color: var(--accent);
    border-color: var(--accent);
}

.terminal-button:active {
    transform: translateY(1px);
}

.button-icon {
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: middle;
}