/* 
 * BHTeam Website - Monospace Web Design
 * Inspired by The Monospace Web by Oskar Wickström
 * https://owickstrom.github.io/the-monospace-web/
 * Similar style to https://ksotik.com/
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Monospace font stack */
    --font-mono: 'Courier New', 'Courier', 'Monaco', 'Menlo', 'Consolas', monospace;
    
    /* Colors - minimal palette */
    --color-bg: #ffffff;
    --color-fg: #000000;
    --color-link: #0000EE;
    --color-visited: #551A8B;
    --color-border: #d0d0d0;
    --color-subtle: #666666;
    
    /* Spacing */
    --line-height: 1.5;
    --spacing-unit: 1.5em;
}

html {
    font-size: 16px;
    line-height: var(--line-height);
}

body {
    font-family: var(--font-mono);
    color: var(--color-fg);
    background-color: var(--color-bg);
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 1.8em;
    margin-top: 0;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--color-link);
    text-decoration: underline;
}

a:visited {
    color: var(--color-visited);
}

a:hover {
    opacity: 0.8;
}

ul, ol {
    margin-bottom: var(--spacing-unit);
    padding-left: 2em;
}

li {
    margin-bottom: 0.3em;
}

pre {
    font-family: var(--font-mono);
    overflow-x: auto;
    line-height: 1.5;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 80ch;
    margin: 0 auto;
    padding: 0 1.5em;
}

.section {
    padding: 2em 0;
}

.section.alt {
    background-color: transparent;
    border-top: 1px solid var(--color-border);
    margin-top: 2em;
    padding-top: 2em;
}

.section-intro {
    color: var(--color-subtle);
    margin-bottom: var(--spacing-unit);
}

/* ========================================
   HEADER
   ======================================== */

.header {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5em 0;
    margin-bottom: 2em;
}

.logo pre {
    font-size: 0.45em;
    line-height: 1.1;
    margin: 0 0 1em 0;
}

.nav {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--color-fg);
}

.nav a:hover {
    text-decoration: underline;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 2em 0;
    margin-bottom: 2em;
}

.hero h1 {
    margin-bottom: 0.5em;
}

.lead {
    max-width: 65ch;
    margin-bottom: var(--spacing-unit);
    color: var(--color-fg);
}

.cta {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: var(--spacing-unit);
}

/* ========================================
   BUTTONS
   ======================================== */

.button {
    display: inline-block;
    padding: 0.5em 1em;
    border: 1px solid var(--color-fg);
    background-color: transparent;
    color: var(--color-fg);
    text-decoration: none;
    font-family: var(--font-mono);
}

.button:hover {
    background-color: var(--color-fg);
    color: var(--color-bg);
    text-decoration: none;
}

.button.primary {
    background-color: var(--color-fg);
    color: var(--color-bg);
}

.button.primary:hover {
    opacity: 0.8;
}

.button.secondary {
    border-color: var(--color-fg);
    color: var(--color-fg);
}

.button.secondary:hover {
    background-color: var(--color-fg);
    color: var(--color-bg);
}

/* ========================================
   SERVICE GRID
   ======================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28ch, 1fr));
    gap: 2em 1.5em;
    margin-top: var(--spacing-unit);
}

.service-card {
    padding: 0;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.service-card ul {
    padding-left: 1.5em;
    margin-bottom: 0;
}

.service-card li {
    margin-bottom: 0.3em;
}

/* ========================================
   PORTFOLIO
   ======================================== */

.portfolio-list {
    display: grid;
    gap: 2em;
}

.portfolio-item {
    padding: 0;
}

.portfolio-item h3 {
    margin-top: 0;
    margin-bottom: 0.3em;
}

.tech-stack {
    color: var(--color-subtle);
    font-style: italic;
    margin-bottom: 0.5em;
    font-size: 0.95em;
}

.link {
    display: inline-block;
    margin-top: 0.3em;
}

/* ========================================
   EXPERTISE
   ======================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25ch, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.expertise-column h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.code-block {
    background-color: transparent;
    padding: 0;
    border: none;
    overflow-x: auto;
    line-height: 1.5;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18ch, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.stat-item {
    padding: 0;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.2em;
}

.stat-label {
    font-size: 0.9em;
    color: var(--color-subtle);
}

/* ========================================
   CONTACT
   ======================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-top: var(--spacing-unit);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.contact-methods {
    margin-top: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

.contact-method {
    margin-bottom: 0.5em;
}

.contact-method strong {
    font-weight: bold;
}

.contact-cta {
    margin-top: var(--spacing-unit);
}

.contact-box {
    display: flex;
    align-items: flex-start;
}

.ascii-art {
    font-size: 0.85em;
    line-height: 1.3;
    color: var(--color-subtle);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    border-top: 1px solid var(--color-border);
    padding: 2em 0;
    margin-top: 3em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5em;
    font-size: 0.9em;
}

.footer-section {
    flex: 1;
    min-width: 20ch;
}

.footer a {
    color: var(--color-link);
}

.footer a:visited {
    color: var(--color-visited);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1em;
    }
    
    .logo pre {
        font-size: 0.4em;
    }
    
    .nav {
        gap: 1em;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1em;
    }
    
    .cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        color: #000;
        background: #fff;
    }
    
    .nav,
    .cta {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
    }
}

