/* =========================================================
   Nebrix – Shared Stylesheet
   Covers: index.html & about.html
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --green-top:    #10b981;
    --green-bottom: #064e3b;
    --bg-dark:      #0f0f0f;
    --text-main:    #ffffff;
    --text-body:    #e0e0e0;
    --btn-green:    #10b981;
    --btn-hover:    #059669;
    --card-bg:      rgba(255, 255, 255, 0.05);
    --card-border:  rgba(255, 255, 255, 0.1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ── Navigation brand (shared) ──────────────────────────── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 5rem;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* ── Logo / heading text ─────────────────────────────────── */
.logo-text {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    color: #ffffff;
}

.subtitle {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* ── Shared icon ─────────────────────────────────────────── */
.icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--btn-green);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.1s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover  { background-color: var(--btn-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.1s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover  { background-color: rgba(255, 255, 255, 0.1); }
.btn-secondary:active { transform: scale(0.98); }

.text-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-link:hover { text-decoration: underline; }

/* ── Action row ──────────────────────────────────────────── */
.action-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ============================================================
   INDEX PAGE
   ============================================================ */

/* Hero */
.hero {
    background: linear-gradient(to bottom, var(--green-top) 0%, var(--green-bottom) 100%);
    padding: 6rem 10% 8rem;
    display: flex;
    border-radius: 16px;
    flex-direction: column;
    justify-content: center;
}

/* Index logo is slightly larger */
.hero .logo-text  { font-size: 6rem; margin-bottom: 0.5rem; }
.hero .subtitle   { font-size: 3rem; margin-bottom: 3rem; }
.hero .nav-logo-img { height: 7rem; }

/* Content section */
.content-section {
    background-color: var(--bg-dark);
    padding: 6rem 10%;
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.text-column {
    flex: 1;
    max-width: 600px;
}

.text-column h2 {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.text-column p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.nebrix-video {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Community CTA */
.community-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 10%;
    background-color: var(--bg-dark);
    text-align: center;
}

.cta-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .cta-header { flex-direction: row; text-align: left; }
}

.cta-logo     { font-size: 3.5rem; margin-bottom: 0; }
.cta-logo-img { height: 3.5rem; width: auto; display: block; }

.cta-description {
    max-width: 800px;
    font-size: 1.25rem;
    color: var(--text-body);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.square-btn { border-radius: 16px; }

.cta-separator {
    width: 1px;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Social icons */
.social-links { display: flex; gap: 0.5rem; }

.social-icon {
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
    text-decoration: none;
    opacity: 0.8;
}

.social-icon:hover {
    color: var(--text-main);
    transform: scale(0.95);
    opacity: 1;
}

.social-icon svg { width: 1.75rem; height: 1.75rem; }

.brand-wrapper { display: flex; align-items: center; gap: 0.75rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* About hero */
.about-hero {
    background: linear-gradient(to bottom, var(--green-top) 0%, var(--green-bottom) 100%);
    padding: 6rem 10% 8rem;
    display: flex;
    border-radius: 0 0 16px 16px;
    flex-direction: column;
    justify-content: center;
}

.about-hero .nav-brand { margin-bottom: 2rem; }

/* About content */
.about-content {
    padding: 4rem 10% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section { margin-bottom: 5rem; }
.about-section:last-child { margin-bottom: 0; }

.about-section h2 {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    color: #ffffff;
}

.about-section p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.about-section p:last-child { margin-bottom: 0; }

/* Tech detail list */
.tech-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.6;
}

.tech-list li::before {
    content: '▸';
    color: var(--btn-green);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Status badge inline */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.status-done    { background: rgba(16,185,129,0.2); color: #10b981; border: 1px solid rgba(16,185,129,0.4); }
.status-wip     { background: rgba(245,158,11,0.2);  color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); }
.status-planned { background: rgba(255,255,255,0.07); color: #9ca3af; border: 1px solid rgba(255,255,255,0.15); }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 600px;
    width: 100%;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--btn-green);
}

.feature-icon svg { width: 100%; height: 100%; fill: currentColor; }

.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: white; }
.feature-card p  { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--green-top), var(--green-bottom));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--btn-green);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--btn-green);
}

.timeline-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: white; }
.timeline-content p  { font-size: 1rem; color: var(--text-body); line-height: 1.6; }

/* About actions & footer */
.about-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-footer {
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 10%;
    text-align: center;
}

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

.footer-brand { display: flex; align-items: center; gap: 0.75rem; }

.footer-logo-img { height: 2.5rem; width: auto; display: block; }

.footer-logo-text {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.footer-tagline { color: var(--text-body); font-size: 1rem; }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text-main); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero .logo-text, .logo-text { font-size: 3rem; }
    .hero .subtitle, .subtitle   { font-size: 2rem; }

    .content-section { flex-direction: column; gap: 3rem; }

    .about-hero { padding: 4rem 5% 5rem; }
    .about-section h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero         { padding: 4rem 5% 5rem; }
    .content-section, .community-cta { padding: 3rem 5%; }
    .about-hero   { padding: 3rem 5% 4rem; }
    .about-content { padding: 3rem 5%; }

    .hero .logo-text, .logo-text { font-size: 2.5rem; }
    .hero .subtitle, .subtitle   { font-size: 1.5rem; }
    .cta-logo     { font-size: 2.5rem; }

    .action-row, .cta-actions, .about-actions { flex-direction: column; align-items: flex-start; }

    .cta-separator { width: 100%; height: 1px; }

    .text-column h2 { font-size: 2rem; }

    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    .footer-links { flex-direction: column; gap: 1rem; }
}