/**
 * BuildSys.ai Portal Styles
 * Clean, minimal, professional
 */

/* ============================================
   Reset & Base
   ============================================ */

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

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent: #00d4ff;
    --accent-dim: #00a0c0;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --border: #2a2a35;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Layout */
    --max-width: 1100px;
    --border-radius: 12px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.logo .accent {
    color: var(--accent);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   Main Content
   ============================================ */

main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* ============================================
   Project Grid
   ============================================ */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-dim);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.project-thumbnail {
    height: 180px;
    background: var(--bg-secondary);
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-dim), transparent);
    opacity: 0.7;
}

.project-info {
    padding: var(--space-md);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25em 0.6em;
    border-radius: 4px;
    margin-right: var(--space-xs);
}

/* ============================================
   Coming Soon
   ============================================ */

.coming-soon {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--border-radius);
    text-align: center;
}

.coming-soon .section-title {
    margin-bottom: var(--space-xs);
}

/* ============================================
   Footer
   ============================================ */

footer {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    .logo {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1rem;
    }

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