/* =====================
   IMPORT FONTS
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =====================
   CSS VARIABLES
   ===================== */
:root {
    --background: #0f1117;
    --foreground: #d8e0ea;
    --card: #161b22;
    --card-foreground: #d8e0ea;
    --primary: #40c463;
    --primary-foreground: #0f1117;
    --secondary: #58a6ff;
    --secondary-foreground: #0f1117;
    --muted: #21262d;
    --muted-foreground: #8b949e;
    --border: #30363d;
    --input: #30363d;
    --destructive: #da3633;
    --radius: 0.5rem;
}

/* =====================
   GLOBAL STYLES
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(64, 196, 99, 0.4); }

::selection { background: rgba(64, 196, 99, 0.3); }

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background-color: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.navbar-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(64, 196, 99, 0.3);
}

.nav-links-desktop {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links-desktop { display: flex !important; }
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(64, 196, 99, 0.3);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
}

.nav-links-mobile.active { display: flex; }
.nav-links-mobile .nav-link { padding: 0.75rem 0; font-size: 0.875rem; }

/* Buttons */
.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-secondary {
    border-color: var(--border);
    color: var(--muted-foreground);
    background-color: transparent;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-soon {
    border-color: var(--border);
    color: var(--muted-foreground);
    background-color: transparent;
    cursor: default;
    opacity: 0.5;
}

/* =====================
   SECTIONS
   ===================== */
section {
    padding: 6rem 1.5rem;
}

.section-container {
    max-width: 56rem;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(64, 196, 99, 0.3);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

/* =====================
   TOOLS GRID
   ===================== */
#tools {
    background-color: rgba(22, 27, 34, 0.3);
    padding-top: calc(60px + 3rem);
}

.tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured tool spans full width */
.tool-card-featured {
    grid-column: 1 / -1;
}

/* =====================
   TOOL CARD
   ===================== */
.tool-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    border-color: rgba(64, 196, 99, 0.3);
    box-shadow: 0 0 12px rgba(64, 196, 99, 0.08);
}

.tool-card-soon:hover {
    border-color: rgba(139, 148, 158, 0.3);
    box-shadow: none;
}

.tool-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.tool-icon-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-muted {
    color: var(--muted-foreground);
    opacity: 0.5;
}

.tool-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    display: block;
}

.tool-title-muted {
    color: var(--muted-foreground);
}

.tool-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(64, 196, 99, 0.4);
    color: var(--primary);
    background-color: rgba(64, 196, 99, 0.06);
}

.tool-badge-soon {
    border-color: var(--border);
    color: var(--muted-foreground);
    background-color: transparent;
}

.tool-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.tool-description-muted {
    opacity: 0.7;
}

.project-link {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.project-link:hover { color: var(--primary); }

/* Feature list */
.tool-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.4rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.feature-bullet {
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
    line-height: 1.6;
}

/* Tool Footer */
.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
}

/* =====================
   FOOTER
   ===================== */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-inner {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
    #tools { padding: calc(60px + 2rem) 1rem 2rem; }
    .section-title { font-size: 1.5rem; }
    .tool-footer { flex-direction: column; align-items: flex-start; }
}
