* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Arial, sans-serif;
    background-image: url("https://frutigeraeroarchive.org/images/wallpapers/materialdictionary206/materialdictionary206_23.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Top bar */
.top-bar,
.footer-bar {
    position: relative;
    background: linear-gradient(
        to bottom,
        #8fd1ff 0%,
        #67bfff 12%,
        #1b6fd0 48%,
        #1b6fd0 52%,
        #0e56b3 100%
    );
    border-top: 1px solid rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 4px 12px rgba(0,0,0,0.25);
}

.top-bar::before,
.footer-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.5) 0%,
        rgba(255,255,255,0.2) 35%,
        rgba(255,255,255,0.02) 36%,
        rgba(255,255,255,0.0) 100%
    );
    pointer-events: none;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 4px 20px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36px;
}

.brand {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Apple-style buttons */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-radius: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 70%;
    box-shadow:
        0 1px 5px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 1;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    min-width: 90px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        #67bfff 0%,
        #1d74c5 45%,
        #1b6fd0 50%,
        #0e56b3 100%
    );
    border-right: 1px solid rgba(255,255,255,0.15);
    border-left: 1px solid rgba(0,0,0,0.35);
    text-shadow: 0 1px 1px rgba(0,0,0,0.75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
    transition: background 0.2s ease, transform 0.15s ease;
    flex: 0 0 auto;
}

.nav-menu a:first-child {
    border-left: none;
}

.nav-menu a:last-child {
    border-right: none;
}

.nav-menu a:hover {
    background: linear-gradient(
        to bottom,
        #7d7d7d 0%,
        #5a5a5a 45%,
        #444444 50%,
        #1971e4 100%
    );
}

.nav-menu a:active {
    transform: translateY(1px);
    background: linear-gradient(
        to bottom,
        #4a4a4a 0%,
        #3a3a3a 45%,
        #2f2f2f 50%,
        #4d4d4d 100%
    );
}

/* Main */
main {
    flex: 1;
    width: 100%;
    max-width: 950px;
    margin: 40px auto;
    padding: 76px 20px 90px 20px;
}

/* Blog posts */
.blog-post {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow:
        0 10px 24px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blog-post h2 {
    margin: 0 0 8px 0;
    color: #10233d;
    font-size: 1.8rem;
    text-shadow: none;
}

.blog-post .date {
    color: #3d5875;
    font-size: 0.92rem;
    margin-bottom: 14px;
    font-weight: 600;
}

.blog-post p {
    color: #182430;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Footer */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    padding: 6px 20px;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    margin-top: 20px;
    z-index: 1000;
}

@media (max-width: 900px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: auto;
    }

    .nav-menu {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .nav-menu a {
        flex: 1 1 auto;
        min-width: 120px;
    }
}