@font-face {
    font-family: 'Harmond Display';
    src: url('fonts/Harmond-SemiBoldCondensed.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Harmond Display';
    src: url('fonts/Harmond-SemBdItaCond.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Harmond Display';
    src: url('fonts/Harmond-ExtraBoldExpanded.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Fallback if Harmond not available */
@supports not (font-variation-settings: normal) {
    .title {
        font-family: 'Red Hat Display', serif;
        font-weight: 700;
    }
}

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

:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #11151d;
    --text-primary: #d4d9e0;
    --text-secondary: #8b95a6;
    --accent-teal: #4a9b8e;
    --accent-purple: #7a6b9a;
    --accent-green: #5a8a6f;
    --accent-muted: #6b7a8a;
    --accent-amber: #8a7a5a;
    --line-color: #2a3441;
    --glow-color: rgba(74, 155, 142, 0.3);
    /* Neofetch colors - more vibrant */
    --neofetch-ascii: #5a9b8e;
    --neofetch-header: #7ab8a6;
    --neofetch-label: #8b95a6;
    --neofetch-value-primary: #d4d9e0;
    --neofetch-value-accent: #6a9a7f;
    --neofetch-value-green: #7ab88a;
    --neofetch-value-blue: #7a9bb8;
    --neofetch-value-purple: #9b8bb8;
    --neofetch-value-amber: #b8a87a;
    --neofetch-value-red: #b88a7a;
}

body {
    font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.terminal-section {
    margin-bottom: 4rem;
}

.header {
    margin-bottom: 4rem;
    position: relative;
}

.title-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.title {
    font-family: 'Harmond Display', 'Red Hat Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(74, 155, 142, 0.1);
}

.title-underline {
    height: 2px;
    width: 60%;
    background: linear-gradient(90deg, var(--accent-teal), transparent);
    margin-top: 0.5rem;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -2px;
    width: 4px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--glow-color);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.subtitle-main {
    font-family: 'Harmond Display', 'Red Hat Display', serif;
    font-weight: 600;
    font-style: italic;
    text-transform: none;
    color: var(--text-primary);
    opacity: 0.9;
}

.subtitle-link {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.subtitle-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.main-content {
    flex: 1;
    margin-bottom: 4rem;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-secondary);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 155, 142, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    background: rgba(17, 21, 29, 0.8);
    transform: translateY(-2px);
}

.card-icon {
    margin-bottom: 1.5rem;
    opacity: 0.6;
    color: var(--accent-teal);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.info-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--accent-green);
}

.card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 400;
}

.card-value a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.card-value a:hover {
    color: var(--accent-green);
}

.card-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.card-value a:hover::after {
    width: 100%;
}

.pending {
    color: var(--accent-muted);
    font-size: 0.9em;
    margin-left: 0.5rem;
    font-style: italic;
}

/* Partial lines for cards */
.card-line-top {
    position: absolute;
    top: 0;
    left: 20px;
    width: 40%;
    height: 1px;
    background: var(--line-color);
    transition: all 0.3s ease;
}

.card-line-bottom {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 40%;
    height: 1px;
    background: var(--line-color);
    transition: all 0.3s ease;
}

.card-line-left {
    position: absolute;
    left: 0;
    top: 20px;
    width: 1px;
    height: 40%;
    background: var(--line-color);
    transition: all 0.3s ease;
}

.card-line-right {
    position: absolute;
    right: 0;
    top: 20px;
    width: 1px;
    height: 40%;
    background: var(--line-color);
    transition: all 0.3s ease;
}

.info-card:hover .card-line-top,
.info-card:hover .card-line-bottom {
    width: 60%;
    box-shadow: 0 0 4px var(--glow-color);
}

.info-card:hover .card-line-left,
.info-card:hover .card-line-right {
    height: 60%;
    box-shadow: 0 0 4px var(--glow-color);
}

.visual-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 20px var(--glow-color);
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--line-color);
    pointer-events: none;
}

.terminal-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 30%;
    height: 1px;
    background: var(--accent-teal);
    box-shadow: 0 0 4px var(--glow-color);
}

.terminal-window:hover::after {
    width: 50%;
    transition: width 0.5s ease;
}

.terminal-header {
    background: rgba(26, 30, 38, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line-color);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-muted);
}

.terminal-dots span:nth-child(1) {
    background: #ff5f56;
}

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

.terminal-dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--accent-teal);
    margin-right: 0.5rem;
}

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

.neofetch-output {
    margin: 1rem 0;
    padding: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.neofetch-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.neofetch-ascii-art {
    flex-shrink: 0;
}

.neofetch-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--neofetch-ascii);
    margin: 0;
    white-space: pre;
    overflow-x: auto;
    background: transparent;
    border: none;
    padding: 0;
    letter-spacing: 0;
}

.neofetch-info {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.4;
}

.neofetch-header {
    color: var(--neofetch-header);
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.neofetch-separator {
    color: var(--neofetch-label);
    margin-bottom: 0.3rem;
}

.neofetch-line {
    margin-bottom: 0.1rem;
}

.neofetch-label {
    color: var(--neofetch-label);
}

.neofetch-value {
    color: var(--neofetch-value-primary);
}

.neofetch-value.value-primary {
    color: var(--neofetch-value-primary);
}

.neofetch-value.value-accent {
    color: var(--neofetch-value-accent);
}

.neofetch-value.value-green {
    color: var(--neofetch-value-green);
}

.neofetch-value.value-blue {
    color: var(--neofetch-value-blue);
}

.neofetch-value.value-purple {
    color: var(--neofetch-value-purple);
}

.neofetch-value.value-amber {
    color: var(--neofetch-value-amber);
}

.neofetch-value.value-red {
    color: var(--neofetch-value-red);
}

.neofetch-value.value-muted {
    color: var(--neofetch-label);
    opacity: 0.7;
}

.output {
    margin-left: 1.5rem;
}

.output-text {
    color: var(--accent-green);
    font-style: italic;
}

.cursor-blink {
    color: var(--accent-teal);
    animation: blink 1s infinite;
}

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

.footer {
    margin-top: auto;
    padding-top: 4rem;
    text-align: center;
    position: relative;
}

.footer-line {
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-color), transparent);
    margin: 0 auto 1.5rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    opacity: 0.6;
    position: relative;
}

.footer-text::before {
    content: '//';
    margin-right: 0.5rem;
    opacity: 0.4;
}

.footer-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.footer:hover .footer-text::after {
    width: 60%;
}

/* Additional decorative partial lines */
.container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 80px;
    height: 1px;
    background: var(--line-color);
    transform: rotate(-45deg);
    opacity: 0.4;
}

.container::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 0;
    width: 1px;
    height: 100px;
    background: var(--line-color);
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .header {
        margin-bottom: 4rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .terminal-section {
        margin-bottom: 3rem;
    }

    .header {
        margin-bottom: 3rem;
    }

    .terminal-window {
        max-width: 100%;
    }

    .neofetch-container {
        flex-direction: column;
        gap: 1rem;
    }

    .neofetch-ascii {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .neofetch-info {
        font-size: 0.65rem;
    }

    .terminal-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) {
    animation-delay: 0.3s;
}
