/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: radial-gradient(circle at top, #111827 0%, #02030a 60%);
    color: #f9fafb;
    overflow-x: hidden;
}

/* ========== BACKGROUND EFFECTS ========== */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
            linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.25;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at top, rgba(255,179,71,0.18), transparent 55%),
            radial-gradient(circle at bottom, rgba(56,189,248,0.18), transparent 55%);
    z-index: 0;
}

.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,179,71,0.9), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0;
    z-index: 5;
    transition: opacity .2s;
}

.mouse-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.18), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease-out;
    z-index: 1;
}

/* ========== HEADER ========== */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 40px;
    background: rgba(10,12,20,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #ffb347, #ff8a3c);
    -webkit-background-clip: text;
    color: transparent;
}

nav a {
    margin-left: 20px;
    font-size: 14px;
    color: #9ca3af;
    transition: 0.2s;
    text-decoration: none;
}

nav a:hover {
    color: #fff;
}

/* ========== HERO ========== */
.hero-section {
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(90deg, #ffb347, #ff8a3c);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    color: #05060a;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    padding: 14px 28px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
}

/* ========== FEATURES ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 40px;
}

.feature-card {
    background: rgba(15, 18, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(18px);
}

/* ========== PAGE HEADERS ========== */
.page-header {
    padding: 40px;
    text-align: center;
}

.page-description {
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== GRID ========== */
.grid {
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* ========== CARDS ========== */
.card {
    background: rgba(15, 18, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(18px);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #ffb347;
    box-shadow: 0 0 60px rgba(255,179,71,0.35);
}

.card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 16px;
    object-fit: cover;
    max-height: 180px;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 14px;
}

.tags span {
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 6px;
}

/* ========== CARD BUTTONS ========== */
.card-buttons {
    display: flex;
    gap: 10px;
}

.card-buttons a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 14px;
    background: #1f2937;
    color: #f9fafb;
    transition: 0.2s;
    text-decoration: none;
}

.card-buttons a.download {
    background: linear-gradient(90deg, #ffb347, #ff8a3c);
    color: #05060a;
    font-weight: 700;
}

/* ========== PROJECT PAGE ========== */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    padding: 24px 18px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(10,12,20,0.96);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
    transition: .2s;
}

.sidebar-nav a:hover {
    background: rgba(15,23,42,0.95);
    color: #fff;
}

.main {
    flex: 1;
    padding: 28px 32px 40px;
}

.panel {
    background: rgba(15, 18, 30, 0.85);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px;
    backdrop-filter: blur(18px);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.screenshot-grid img {
    width: 100%;
    border-radius: 12px;
}
