:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --primary-color: #ffffff;
    --accent-color: #7289da;
    --border-color: #27272a;
    --card-bg: #18181b;
    --glow-color: rgba(59, 130, 246, 0.4);

    --font-main: 'Satoshi', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-width: 1200px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Grid Background Handled below in override or update */
body {
    background-color: var(--bg-color);
    /* Grid Pattern */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.1s ease;
}

.logo:active {
    transform: scale(0.95);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navbar Items & Dropdowns */
.nav-links {
    display: flex;
    gap: 8px;
    /* Closer gap for pill buttons */
    align-items: center;
}

.nav-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-trigger,
.nav-item-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

/* Hover effect for top-level items */
.nav-item-wrapper:hover .nav-trigger,
.nav-item-link:hover {
    background-color: #1f1f22;
    /* Dark pill bg on hover */
    color: var(--text-color);
}

.chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.nav-item-wrapper:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    /* Spacing below nav item */
    left: 0;
    background-color: #0c0c0e;
    /* Almost black */
    border: 1px solid #1f1f22;
    border-radius: 12px;
    padding: 8px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

/* Invisible bridge to prevent dropdown from closing when moving mouse */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Covers the gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #1f1f22;
}

.item-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    /* Default icon color */
    margin-top: 2px;
}

.dropdown-item:hover .item-icon {
    color: var(--text-color);
}

.item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Specific styling for Discord icon */
.discord-icon {
    color: #5865F2;
}

.dropdown-item:hover .discord-icon {
    color: #5865F2;
    /* Keep brand color on hover */
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #e4e4e7;
}

.btn-white {
    background-color: white;
    color: black;
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 12px;
}

.hero-note {
    font-size: 0.9rem;
    color: #52525b;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 80px;
}

.os-availability {
    font-size: 0.85rem;
    color: #52525b;
}

/* Construction Notice */
/* Deployment Card */
.deployment-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.deployment-card {
    background: #000000;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-mono);
    /* Using mono for code-like look */
    text-align: left;
}

.deployment-preview {
    width: 300px;
    background: #111;
    border-right: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Remove padding to let image fill */
}

.deployment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deployment-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.9rem;
    color: #eee;
}

.detail-value.link {
    color: #fff;
    text-decoration: none;
}

.detail-value.link:hover {
    text-decoration: underline;
}

.domain-list {
    display: flex;
    gap: 12px;
}

.detail-row {
    display: flex;
    gap: 40px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eee;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #50e3c2;
    /* Cyan/Green for Ready */
    border-radius: 50%;
    box-shadow: 0 0 8px #50e3c2;
}

.user-handle {
    color: #fff;
    font-weight: 600;
}

.source-branch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eee;
    font-size: 0.9rem;
}

.branch-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .deployment-card {
        flex-direction: column;
    }

    .deployment-preview {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
    }
}

.construction-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.construction-card {
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.9), rgba(10, 10, 12, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 540px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.construction-card:hover {
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(251, 146, 60, 0.1);
    transform: translateY(-2px);
}

/* Remove old left border */
.construction-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.03), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.construction-card:hover::before {
    opacity: 1;
}

.construction-icon-wrapper {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.05));
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fb923c;
    flex-shrink: 0;
    border: 1px solid rgba(251, 146, 60, 0.1);
    box-shadow: inset 0 0 12px rgba(251, 146, 60, 0.05);
}

.construction-content {
    text-align: left;
}

.construction-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.construction-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Mockup */
.hero-image-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

body {
    background-color: var(--bg-color);
    /* Grid Pattern */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

body::before {
    /* Vignette effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.3) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
    border-radius: 50%;
}

.app-mockup {
    background: #0f0f11;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
    height: 600px;
    /* Force height for mockup */
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #18181b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3f3f46;
}

.mockup-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mockup-body {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 240px;
    background: #111113;
    border-right: 1px solid var(--border-color);
    padding: 20px;
}

.sidebar-item {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 4px;
}

.sidebar-item.active {
    background: #27272a;
    color: white;
}

.content {
    flex: 1;
    padding: 40px;
    background: #0f0f11;
}

.banner-card {
    background: linear-gradient(135deg, #2e2836, #1c1a20);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #3f3f46;
}

.banner-card h3 {
    margin-bottom: 8px;
}

.banner-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-pink {
    background: #f472b6;
    color: #831843;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3f3f46;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #ffffff !important;
        z-index: 2000;
        cursor: pointer;
    }

    .mobile-menu-btn .lucide {
        width: 24px;
        height: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-container {
        margin: 0 -24px;
        /* Bleed to edge */
        border-radius: 0;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(20px + var(--nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 400px;
    background: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    z-index: 999;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);

    /* Animation Initial State */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mobile-group {
    margin-bottom: 20px;
}

.mobile-group:last-child {
    margin-bottom: 0;
}

.mobile-group-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 8px;
}

.mobile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
}

.mobile-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-item .lucide {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title .lucide {
    width: 32px;
    height: 32px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 32px;
}

.search-input {
    width: 100%;
    background: #09090b;
    border: 1px solid #27272a;
    padding: 12px 12px 12px 48px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    background: rgba(24, 24, 27, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: var(--text-muted);
}

.card-title-group {
    flex: 1;
}

.repo-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.card-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-stars .lucide {
    width: 14px;
    height: 14px;
}

.card-body {
    flex: 1;
    margin-bottom: 20px;
}

.card-body p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    align-items: center;
}

.language-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lang-ts {
    background-color: #31c651b5;
}

.lang-go {
    background-color: #00add8;
}

.lang-java {
    background-color: #b07219;
}

.lang-rust {
    background-color: #9a2929;
}

.lang-unknown {
    background-color: #52525b;
}