/* Reset and Base Styles */
:root {
    --bg-color: #050505;
    --text-main: #C8C8C8;
    --text-dim: #888;
    --accent-color: #FFB000; /* Amber/Gold */
    --accent-glow: rgba(255, 176, 0, 0.3);
}

/* Scanline effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle, rgba(255, 176, 0, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 176, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.title {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 15px;
    margin-bottom: 32px;
    color: var(--accent-color);
    text-shadow: 0 0 3px var(--accent-glow);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

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

.enter-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 8px 0;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.enter-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
    border-bottom-color: var(--accent-color);
}

.hero-ascii {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-ascii pre {
    font-size: 11px;
    line-height: 1.15;
    color: #C8C8C8;
    text-align: left;
    white-space: pre;
    letter-spacing: 0;
}

.scope-white {
    color: #FFFFFF;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Circuit Board Divider */
.divider {
    text-align: center;
    padding: 30px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.divider-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #252525;
}

.divider-node {
    width: 5px;
    height: 5px;
    background: #303030;
    border-radius: 50%;
    margin: 0 12px;
}

/* Sections */
.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 40px;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
    letter-spacing: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-box {
    cursor: pointer;
}

.project-box:hover pre {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

.project-box pre {
    font-size: 12px;
    line-height: 1.3;
    color: #C8C8C8;
    margin-bottom: 10px;
}

.project-description {
    font-size: 12px;
    color: #888;
    padding-left: 4px;
}

a.project-box {
    text-decoration: none;
    display: block;
}

/* Datasheet */
.datasheet pre {
    font-size: 13px;
    line-height: 1.5;
    color: #C8C8C8;
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text p {
    font-size: 13px;
    line-height: 1.7;
    color: #AAAAAA;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
}

.value-ascii {
    font-size: 10px;
    line-height: 1.0;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
    margin-bottom: 12px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.value-label {
    font-size: 12px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Contact Row */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.contact-link {
    font-size: 13px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    text-shadow: 0 0 8px var(--accent-glow);
    border-bottom-color: var(--accent-color);
}

/* Logs */
.logs-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.log-entry {
    font-size: 13px;
    color: #AAAAAA;
    padding-left: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry::before {
    content: "│";
    position: absolute;
    left: 0;
    top: 0;
    color: #444;
    height: 100%;
}

.log-date {
    color: var(--accent-color);
    font-size: 12px;
    opacity: 0.8;
}

.log-content {
    line-height: 1.5;
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info p {
    font-size: 14px;
    color: #C8C8C8;
}

.contact-arrow {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Footer */
.footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--text-dim);
    font-size: 12px;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-meta span {
    white-space: pre;
}

.footer-cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
    margin-left: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-ascii {
        justify-content: center;
    }

    .hero-ascii pre {
        font-size: 10px;
    }

    .title {
        font-size: 22px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .datasheet pre {
        font-size: 10px;
        overflow-x: auto;
    }

    .divider {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-ascii pre {
        font-size: 8px;
    }

    .title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 14px;
    }

    .project-box pre {
        font-size: 10px;
    }
}

/* Selection styling */
::selection {
    background: #333;
    color: #FFF;
}
