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

html, body {
    overflow: hidden;
    height: 100%;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #111;
    --border: #222;
    --border-hover: #444;
    --text: #fff;
    --text-dim: #888;
    --accent-bg: #fff;
    --accent-text: #000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-y: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text);
}

/* ===== PAGE WRAPPER ===== */
.page {
    padding-top: 60px;
    min-height: 100vh;
}

/* ===== HOME ===== */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px;
    text-align: center;
}

.home-content {
    max-width: 600px;
}

.home-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.home-content p {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ===== HOME BUTTON (PROJECTS) ===== */
.home-btn {
    font-size: 18px;
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
}

.home-btn:hover {
    color: #b266ff;
}

.home-btn::after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #b266ff;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

.home-btn:hover::after {
    width: 100%;
    left: 0%;
}

/* ===== SECTION ===== */
.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
}

/* ===== PROJECT CARDS (projects.html) ===== */
.project-card {
    display: block;
    margin-bottom: 40px;
}

.project-card:hover .project-card-image {
    border-color: var(--border-hover);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.project-card-text {
    padding: 20px 0 0;
}

.project-card-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card-text p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-card-text .btn-row {
    display: flex;
    gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-text);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #ddd;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

/* ===== DOWNLOAD LIST (download.html) ===== */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    overflow: hidden;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    background: var(--bg-card);
    transition: background 0.2s;
}

.download-item:hover {
    background: #181818;
}

.download-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-dim);
}

.download-item .btn {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: 13px;
}

/* ===== PROJECT PAGE (project-N.html) ===== */
.project-hero {
    display: block;
    max-width: 1280px;
    width: 100%;
    margin: 60px auto 0;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.project-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.project-body h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.project-body .meta {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.project-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 16px;
}

.project-body .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

/* ===== MINI BANNERS BLOCK ===== */
.minibanners {
    display: flex;
    gap: 7px;
    margin-top: 40px;
}

.minibanners a {
    flex: 1;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.minibanners a:hover {
    border-color: var(--border-hover);
}

.minibanners img {
    width: 100%;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .home-content h1 {
        font-size: 32px;
    }

    .section {
        padding: 40px 20px;
    }

    .project-card-text {
        padding: 16px 0 0;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-body {
        padding: 30px 20px 60px;
    }

    .project-hero {
        width: 100%;
        max-width: none;
        margin-top: 0;
    }

    .minibanners {
        gap: 5px;
    }
}
