* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    width: 100%;
    background: #111;
    border-bottom: 3px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow:
        0 0 6px #00d4ff,
        0 0 18px rgba(0, 212, 255, 0.6);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #00d4ff;
}

/* NAV */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: #cfd8dc;
    font-size: 0.95rem;
    transition: 0.25s;
}

.nav-menu a:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

.nav-menu a.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.9);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* MAIN LAYOUTS */
.main-vert-center,
.main-vert-top {
    flex: 1;
    width: 100%;
    padding: 40px 0;
}

.page-shell {
    width: 100%;
}

.main-vert-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-vert-top {
    display: block;
}

.container {
    width: min(100%, 768px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 212, 255, 0.5);
    transition: 0.25s;
}

.container a:hover {
    color: #7fe8ff;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.8);
    border-bottom: 1px solid #00d4ff;
}

/* PAGE ALIGNMENT */
/* MAIN LAYOUTS */
.main-vert-center,
.main-vert-top {
    flex: 1;
    width: 100%;
    padding: 40px 0;
}

.page-shell {
    width: 100%;
}

.main-vert-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-vert-top {
    display: block;
}

.container {
    width: min(100%, 768px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home-page,
.about-page,
.projects-page,
.ideas-page,
.contact-page,
.feeds-page {
    text-align: left;
}

.home-page h2,
.about-page h2,
.projects-page h2,
.ideas-page h2,
.contact-page h2,
.feeds-page {
    text-align: center;
    color: #00d4ff;
}

/* GENERAL TEXT */
.tagline {
    font-weight: bolder;
    color: #00d4ff;
}

p {
    margin: 0 0 18px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
}

.align-left {
    text-align: left !important;
}

/* IMAGES */
.about-photo,
.exo-arm-photo,
.engineering-photo {
    float: left;
    width: 220px;
    margin: 6px 24px 16px 0;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.exo-arm-photo {
	max-width: 600px;
}

.hmi-photo {
    float: right;
    width: 220px;
    margin: 6px 0 16px 10px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}

.home-image-block {
    text-align: center;
    padding-top: 20px;
}

.home-image {
    display: block;
    width: 100%;
    max-width: 750px;
    height: auto;
    margin: 24px auto 12px;
}

.image-credit {
    display: block;
    font-size: 0.75rem;
    color: #777777;
    text-align: center;
}

.image-credit a {
    color: #777777;
}

.home-signoff {
    font-style: italic;
    margin-top: 24px;
    text-align: center;
}

.project-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}

/* CONTENT BLOCKS */
.project-block,
.idea-block {
    clear: both;
    margin-bottom: 40px;
    padding-top: 0;
    border-top: 2px solid rgba(0, 212, 255, 0.15);
}

.project-block h3,
.idea-block h3 {
    margin-top: 6px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    color: #00d4ff;
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
}

/* DECORATIVE DATA STREAM */
.data-stream {
    position: relative;
    width: 100%;
    margin: auto;
    max-width: 300px;
    height: 2px;
    margin: 20px auto; /* centers it */
    background: rgba(0, 212, 255, 0.15);
    overflow: hidden;
}

.data-stream::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: dataFlow 2s linear infinite;
}

/* FEEDS TEASER */
.feeds-wrapper {
    width: 100%;
    padding: 10px 20px 30px;
}

.feeds-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.feeds-title {
    text-align: center;
    color: #00d4ff;
    margin: 0 0 24px;
}

.feeds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feed-card {
    display: block;
    min-height: 140px;
    padding: 22px;
    background: #0f141a;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: #cfd8dc;
    transition: 0.25s ease;
}

.feed-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.feed-card h4 {
    margin: 0 0 12px;
    color: #00d4ff;
    font-size: 1.15rem;
}

.feed-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #c9d3d8;
}

.feeds-page {
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(8, 14, 20, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 10px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card h4 {
    margin: 0 0 10px;
    color: #00d4ff;
}

#live-feed {
    scroll-margin-top: 20px;
}

.feed-item {
    background: rgba(8, 14, 20, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    transition: 0.25s;
}

.feed-item:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.feed-item h4 {
    margin: 0 0 8px;
}

.feed-item a {
    color: #00d4ff;
    text-decoration: none;
}

.feed-item a:hover {
    text-decoration: underline;
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.feed-item p {
    margin: 0;
    color: #cfcfcf;
}

.page-title {
    color: #00d4ff;
    text-align: center;
    margin-bottom: 10px;
}

.page-title::after {
    content: "";
    display: block;
    width: 260px;
    max-width: 80%;
    height: 2px;
    margin: 14px auto 0;
    background: rgba(0, 212, 255, 0.35);
}

.data-stream {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 2px;
    margin: 0 auto 24px;
    background: rgba(0, 212, 255, 0.15);
    overflow: hidden;
}

.data-stream::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

.content-block {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: left;
}

.content-block p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.section-title {
    color: #00d4ff;
    text-align: center;
    margin: 40px 0 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: rgba(8, 14, 20, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 10px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.06);
}

.card h4 {
    margin: 0 0 10px;
    color: #00d4ff;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

.card p {
    margin: 0;
    line-height: 1.6;
    color: #d6d6d6;
}

.status-panel {
    max-width: 760px;
    margin: 0 auto 20px;
    padding: 22px;
    text-align: left;
    background: rgba(8, 14, 20, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.06);
}

.status-panel p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.status-panel p:last-child {
    margin-bottom: 0;
}

/* CONTACT FORM */
.contact-form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
    border-radius: 6px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 10px;
    background: #00d4ff;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #00aacc;
}

.form-message {
    max-width: 500px;
    margin: 20px auto;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: bold;
}

.form-message.success {
    background: rgba(0, 255, 140, 0.12);
    border: 1px solid rgba(0, 255, 140, 0.35);
    color: #7dffb3;
}

.form-message.error {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ff9b9b;
}

.honeypot-wrap {
    position: absolute;
    left: -9999px;
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    width: 100%;
    background: #111;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    color: #bbb;
    font-size: 0.95rem;
    padding: 18px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left {
    text-align: left;
}

.footer-left p {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-support {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.footer-support form {
    margin: 0;
}

.cyba-beer-button {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cyba-beer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
}

.cyba-beer-button:active {
    transform: translateY(0);
}

/* ANIMATIONS */
@keyframes dataFlow {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* TABLET + MOBILE */
@media (max-width: 768px) {
    .header-bar {
        padding: 12px 14px;
    }

    header h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        right: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 220px;
        background: #0b0f14;
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 8px;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .main-vert-center,
    .main-vert-top {
        padding: 24px 0;
    }

    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    .feeds-wrapper {
        padding: 10px 12px 24px;
    }

    .feeds-grid {
        grid-template-columns: 1fr;
    }

    .project-image,
    .home-image,
    .home-feature-image,
    .tech-image {
        width: 100%;
        max-width: 100%;
        margin: 16px auto;
    }

    .about-page {
        text-align: left;
    }

    .about-photo,
    .exo-arm-photo,
    .hmi-photo,
    .engineering-photo {
        float: none;
        display: block;
        width: 180px;
        margin: 0 auto 20px auto;
    }

    .site-footer {
        padding: 14px 0;
        font-size: 0.8rem;
    }

    .footer-inner {
        padding: 0 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-support {
        justify-content: center;
        text-align: center;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {
    .header-bar {
        padding: 12px 12px;
    }

    header h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .main-vert-center,
    .main-vert-top {
        padding: 20px 0;
    }

    p {
        font-size: 1rem;
    }

    .loader {
        width: 52px;
        height: 52px;
    }

    .nav-menu {
        width: 200px;
        right: 12px;
    }
}