/* ============================================
   MH Tech – Dark + Neon Design System
   ============================================ */

:root {
    /* Backgrounds */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f1023;
    --bg-tertiary: #161833;

    /* Neon accents */
    --neon-cyan: #00e5ff;
    --neon-magenta: #e91e8c;
    --neon-purple: #7b2ff7;
    --neon-pink: #ff2d95;

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 229, 255, 0.25);

    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --max-width: 72rem;
    --nav-height: 4rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle radial gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 47, 247, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--neon-pink); }

/* ---- Layout ---- */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

main { flex: 1; }

section { padding: 5rem 0; }

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: flex;
    gap: 0.35rem;
}
.nav-logo .logo-mh {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo .logo-tech {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: #33ebff;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 1.5px solid var(--neon-cyan);
}
.btn-outline:hover {
    background: rgba(0, 229, 255, 0.08);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* ============================================
   About / Stats Section
   ============================================ */
.about-section {
    padding: 4rem 0;
}

.about-text {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}
.stat-value.cyan { color: var(--neon-cyan); }
.stat-value.magenta { color: var(--neon-magenta); }
.stat-value.purple { color: var(--neon-purple); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1);
}

.project-card.accent-cyan:hover  { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 8px 32px rgba(0, 229, 255, 0.12); }
.project-card.accent-magenta:hover { border-color: rgba(233, 30, 140, 0.4); box-shadow: 0 8px 32px rgba(233, 30, 140, 0.12); }
.project-card.accent-purple:hover { border-color: rgba(123, 47, 247, 0.4); box-shadow: 0 8px 32px rgba(123, 47, 247, 0.12); }

.project-card h3 {
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.08);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.tag.magenta {
    background: rgba(233, 30, 140, 0.08);
    color: var(--neon-magenta);
    border-color: rgba(233, 30, 140, 0.15);
}
.tag.purple {
    background: rgba(123, 47, 247, 0.08);
    color: var(--neon-purple);
    border-color: rgba(123, 47, 247, 0.15);
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.project-link::after {
    content: '\2192';
    transition: transform 0.2s;
}
.project-link:hover::after {
    transform: translateX(4px);
}

/* ============================================
   Team Teaser (homepage)
   ============================================ */
.team-teaser {
    text-align: center;
    padding: 4rem 0 5rem;
}

.team-teaser p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   Team Page
   ============================================ */
.team-section {
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.08);
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover .team-photo {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Impressum Page
   ============================================ */
.impressum-section {
    padding: 5rem 0;
    max-width: 40rem;
    margin: 0 auto;
}

.impressum-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.impressum-section h2 {
    font-size: 1.25rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.impressum-section p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.address-canvas {
    margin-bottom: 1rem;
}

.email-canvas {
    margin-bottom: 1rem;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple)) 1;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer a:hover { color: var(--neon-cyan); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .hero { padding: 5rem 0 3rem; }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 20rem;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }

    /* Mobile nav */
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-subtle);
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li { padding: 0.75rem 1.5rem; }

    section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: 100%; justify-content: center; max-width: 18rem; }
}

/* ---- Print ---- */
@media print {
    body { background: #fff; color: #111; }
    body::before { display: none; }
    .nav, .footer { display: none; }
    a { color: #111; }
}
