/* === Luna AI — Shared Styles === */

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

:root {
    --purple-deep: #1a0a2e;
    --purple-dark: #2d1b4e;
    --purple-mid: #5b2d8e;
    --purple-light: #8b5cf6;
    --purple-glow: #a78bfa;
    --purple-soft: #c4b5fd;
    --white: #ffffff;
    --gray-light: #e2d9f3;
    --gray-mid: #a89cc8;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--purple-deep);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* === Navbar === */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(26, 10, 46, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.4rem; font-weight: 700; color: var(--purple-glow); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--white); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--gray-mid); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; font-weight: 400; }
.nav-links a:hover { color: var(--purple-glow); }
.nav-cta { background: var(--purple-light) !important; color: var(--white) !important; padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 500; transition: all 0.3s !important; }
.nav-cta:hover { background: var(--purple-glow) !important; transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* === Buttons === */
.btn-primary {
    background: var(--purple-light); color: var(--white);
    padding: 0.85rem 2rem; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: all 0.3s;
    border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--purple-glow); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }
.btn-outline {
    background: transparent; color: var(--purple-soft);
    padding: 0.85rem 2rem; border-radius: 10px; text-decoration: none;
    font-weight: 500; font-size: 1rem; border: 1px solid rgba(139, 92, 246, 0.4);
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--purple-glow); color: var(--white); background: rgba(139, 92, 246, 0.1); }

/* === Section Common === */
section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--gray-mid); font-size: 1.05rem; margin-bottom: 4rem; }

/* === Cards === */
.project-card {
    background: rgba(45, 27, 78, 0.6); border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px; padding: 2rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--purple-light), var(--purple-glow)); opacity: 0; transition: opacity 0.3s;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15); }
.project-card:hover::before { opacity: 1; }
.project-status { display: inline-block; padding: 0.25rem 0.8rem; background: rgba(139, 92, 246, 0.2); border-radius: 50px; font-size: 0.78rem; color: var(--purple-glow); margin-bottom: 1rem; }
.project-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; font-weight: 700; }
.project-card p { color: var(--gray-mid); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.8; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tag { font-size: 0.78rem; padding: 0.2rem 0.7rem; background: rgba(139, 92, 246, 0.1); border-radius: 4px; color: var(--purple-soft); }
.project-metric { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.6rem 1rem; background: rgba(139, 92, 246, 0.1); border-radius: 8px; width: fit-content; }
.project-metric .number { font-size: 1.2rem; font-weight: 700; color: var(--purple-glow); }
.project-metric .label { font-size: 0.8rem; color: var(--gray-mid); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* === Tags === */
.tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.tag { padding: 0.4rem 1rem; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 50px; font-size: 0.85rem; color: var(--purple-soft); }

/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Footer === */
footer { text-align: center; padding: 2rem; border-top: 1px solid rgba(139, 92, 246, 0.15); color: var(--gray-mid); font-size: 0.85rem; }
.footer-links { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 1rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--gray-mid); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--purple-glow); }

/* === Breadcrumb === */
.breadcrumb {
    max-width: 1100px; margin: 0 auto; padding: 5rem 2rem 0;
    font-size: 0.85rem; color: var(--gray-mid);
}
.breadcrumb a { color: var(--purple-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple-glow); }
.breadcrumb span { margin: 0 0.5rem; }

/* === Detail Page Hero === */
.detail-hero {
    max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 0;
    text-align: center;
}
.detail-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
    line-height: 1.3; margin-bottom: 1rem;
}
.detail-hero h1 .highlight { color: var(--purple-glow); }
.detail-hero .subtitle { font-size: 1.1rem; color: var(--gray-mid); max-width: 700px; margin: 0 auto 2rem; }

/* === Detail Page Content === */
.detail-content {
    max-width: 800px; margin: 0 auto; padding: 3rem 2rem;
}
.detail-content h2 {
    font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem;
    color: var(--purple-glow); border-left: 3px solid var(--purple-light); padding-left: 1rem;
}
.detail-content p { color: var(--gray-light); font-size: 1.05rem; line-height: 2; margin-bottom: 1.2rem; }
.detail-content ul { list-style: none; margin-bottom: 1.5rem; }
.detail-content ul li { padding: 0.4rem 0; color: var(--gray-light); font-size: 1rem; }
.detail-content ul li::before { content: '✦ '; color: var(--purple-glow); }

/* === Detail Page CTA === */
.detail-cta {
    text-align: center; padding: 3rem 2rem 4rem; max-width: 800px; margin: 0 auto;
}
.detail-cta .cta-box {
    background: rgba(45, 27, 78, 0.6); border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px; padding: 2.5rem;
}
.detail-cta h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.detail-cta p { color: var(--gray-mid); margin-bottom: 1.5rem; }
.detail-cta .buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(26, 10, 46, 0.98); flex-direction: column; padding: 1.5rem; gap: 1rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .detail-hero h1 { font-size: 1.8rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 0.8rem; }
}
