/* Se7enZ Landing Page - Bitcoin Infrastructure Engineer */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #f7931a;
    --accent-hover: #ffa940;
    --accent-glow: rgba(247, 147, 26, 0.15);
    --border: #30363d;
    --link: #58a6ff;
    --success: #3fb950;
    --purple: #a371f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-nostr {
    background: #7B4DCD;
    color: #ffffff;
    border: 1px solid #9466E8;
}

.btn-nostr:hover {
    background: #6B3DBD;
    border-color: #A478F0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 77, 205, 0.3);
}

.icon {
    width: 18px;
    height: 18px;
}

/* GPG Inline */
.gpg-inline {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gpg-inline .gpg-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.gpg-inline code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--success);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

/* Sections */
section {
    padding: 60px 0;
}

section > h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* Detailed Project Cards */
.project-detail {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.project-detail:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-header-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.project-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--bg-tertiary);
    padding: 8px;
}

.project-logo-dark {
    background: transparent;
    padding: 4px;
    width: 80px;
    height: auto;
}

.project-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.project-title-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills Row */
.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.skill {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(163, 113, 247, 0.1) 100%);
    border: 1px solid rgba(163, 113, 247, 0.3);
    color: var(--purple);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contributions List */
.contributions-list {
    margin-bottom: 24px;
}

.contributions-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.contributions-list ul {
    list-style: none;
}

.contributions-list ul.scrollable-list {
    max-height: 370px;
    overflow-y: auto;
    padding-right: 8px;
}

.contributions-list ul.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.contributions-list ul.scrollable-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.contributions-list ul.scrollable-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.contributions-list ul.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.contributions-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.contributions-list li:last-child {
    border-bottom: none;
}

.contributions-list li a {
    color: var(--link);
    text-decoration: none;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.contributions-list li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contribution-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* PR Status Badges */
.pr-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.pr-status.merged {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.pr-status.open {
    background: rgba(88, 166, 255, 0.15);
    color: var(--link);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

/* Project Links */
.project-links-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-links-detail a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-links-detail a:hover {
    color: var(--accent-hover);
}

/* GPG Section */
.gpg {
    border-top: 1px solid var(--border);
    text-align: center;
}

.gpg-key {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: inline-block;
}

.gpg-key code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1rem;
    color: var(--success);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.gpg-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    section {
        padding: 40px 0;
    }
    
    section > h2 {
        font-size: 1.5rem;
    }
    
    .project-detail {
        padding: 24px;
    }
    
    .project-header-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .project-title-group h3 {
        font-size: 1.3rem;
    }
    
    .skills-row {
        justify-content: center;
    }
    
    .contributions-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contributions-list li a {
        min-width: auto;
    }
    
    .project-links-detail {
        justify-content: center;
    }
    
    .gpg-key code {
        font-size: 0.75rem;
        word-break: break-all;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.project-detail {
    animation: fadeIn 0.6s ease-out backwards;
}

.project-detail:nth-child(1) { animation-delay: 0.1s; }
.project-detail:nth-child(2) { animation-delay: 0.15s; }
.project-detail:nth-child(3) { animation-delay: 0.2s; }
.project-detail:nth-child(4) { animation-delay: 0.25s; }
.project-detail:nth-child(5) { animation-delay: 0.3s; }
