
:root {
    --bg: #0b0e14;
    --surface: #131b28;
    --border: #29384b;
    --text: #edf3fb;
    --muted: #9aa9bc;
    --accent: #75d4f5;
    --green: #82dfb0;
    --brand-red: #e53935;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(ellipse at top, #17263a, var(--bg) 65%);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.site-shell {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}

.topbar {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .1em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 9px;
    font-size: 1.2rem;
}

.brand-light {
    color: var(--muted);
    font-weight: 500;
}

.system-status {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .1em;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 7px;
}

.hero {
    min-height: 400px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 35px;
    padding: 55px 0;
}

.hero {
    background-image: url('/assets/Heroimage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
}

.eyebrow {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .15em;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    letter-spacing: -.06em;
    line-height: 1.12;
    margin: 15px 0;
}

.headline-accent {
    color: var(--brand-red);
}

.hero-description,
.section-description,
.project-description,
.about-strip p:not(.eyebrow) {
    color: var(--muted);
}

.hero-description {
    max-width: 480px;
    margin: 22px 0;
}

.explore-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 650;
}

.hero-art {
    min-height: 290px;
    position: relative;
    display: grid;
    place-items: center;
}

.orbit {
    position: absolute;
    aspect-ratio: 1;
    border: 1px solid rgba(117, 212, 245, .2);
    border-radius: 50%;
}

.orbit-one { width: 130px; }
.orbit-two { width: 205px; }
.orbit-three {
    width: 280px;
    border-style: dashed;
    opacity: .6;
}

.core {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 24px;
    background: #142338;
    box-shadow: 0 0 50px rgba(117, 212, 245, .12);
}

.core-letter {
    color: var(--accent);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.core-caption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .5rem;
    letter-spacing: .15em;
}

.node {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    background: var(--bg);
    border-radius: 50%;
}

.node-one { top: 15%; left: 25%; }
.node-two { top: 25%; right: 12%; }
.node-three { bottom: 15%; right: 25%; }
.node-four { bottom: 25%; left: 12%; }

.projects-section {
    border-top: 1px solid var(--border);
    padding: 40px 0 65px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 25px;
}

.section-heading h2,
.about-strip h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: -.04em;
}

.section-description {
    margin-bottom: 0;
}

.project-count {
    text-align: right;
}

.count-number {
    display: block;
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 750;
}

.count-label {
    color: var(--muted);
    font-size: .6rem;
    letter-spacing: .1em;
}

/* Project Grid */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* Project Cards */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    height: 280px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    text-align: left;
    text-decoration: none;
    color: var(--text);
}

.project-card-wide {
    grid-column: 1 / -1;
}

/* Full Card Background Image */
.project-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
}

.project-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark Gradient Overlay */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(11, 14, 20, 0.98) 0%,
        rgba(11, 14, 20, 0.75) 35%,
        rgba(11, 14, 20, 0.15) 100%
    );
}

/* Keep Card Content Above Image */
.project-card > *:not(.project-icon) {
    position: relative;
    z-index: 2;
}

/* Status */
.card-topline {
    position: absolute !important;
    top: 18px;
    left: 20px;
    z-index: 3 !important;
}

/* Project Name */
.project-card h3 {
    margin: 0 0 8px;
    text-align: left;
}

/* Description */
.project-description {
    margin: 0;
    text-align: left;
    max-width: 95%;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    text-align: left;
}

/* Hover Effect */
.project-card-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-card-link:hover .project-icon img {
    transform: scale(1.04);
    transition: transform 0.35s ease;
}

.project-icon img {
    transition: transform 0.35s ease;
}
.coming-soon {
    color: var(--muted);
    font-size: .8rem;
}

.card-arrow {
    color: var(--accent);
}

.about-strip {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 55px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #111722;
}

.about-symbol {
    color: var(--accent);
    font-size: 3rem;
    font-weight: 800;
}

.about-strip .eyebrow {
    margin-bottom: 5px;
}

.about-strip p:not(.eyebrow) {
    margin-bottom: 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .8rem;
}

.footer-brand {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 260px;
    }

    .orbit-three { width: 245px; }
    .orbit-two { width: 185px; }

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

@media (max-width: 480px) {
    .site-shell {
        width: calc(100% - 30px);
    }

    .system-status {
        max-width: 110px;
        text-align: right;
    }

    .section-heading {
        align-items: flex-start;
    }

    .about-strip {
        align-items: flex-start;
        gap: 15px;
    }

    .about-symbol {
        font-size: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
/* RussoWeather clickable card - remove default hyperlink styling */
.project-card-link,
.project-card-link:link,
.project-card-link:visited,
.project-card-link:hover,
.project-card-link:active {
    color: inherit;
    text-decoration: none;
}
/* Weather page - Home pill button */
.weather-home-link,
.weather-home-link:link,
.weather-home-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.weather-home-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: #17263a;
    text-decoration: none;
}

.weather-home-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Private Services - Full Width Card */
.private-service-full {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 260px;
    background: var(--surface);
}

/* Image positioned on the RIGHT */
.private-service-full .project-icon {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 48%;
    height: 100%;
    margin: 0;
    z-index: 0;
}

.private-service-full .project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Blue gradient fading from LEFT to RIGHT */
.private-service-full .project-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--surface) 0%,
        rgba(19, 27, 40, 0.95) 15%,
        rgba(19, 27, 40, 0.65) 40%,
        rgba(19, 27, 40, 0.15) 75%,
        transparent 100%
    );
}

/* Keep text above image */
.private-service-full .card-topline,
.private-service-full h3,
.private-service-full .project-description,
.private-service-full .card-footer {
    position: relative;
    z-index: 2;
    max-width: 55%;
}

.private-service-full h3 {
    margin-top: 20px;
}

.private-service-full .project-description {
    flex-grow: 1;
}

.private-service-full .card-footer {
    margin-top: 24px;
}

/* Mobile */
@media (max-width: 700px) {
    .private-service-full .project-icon {
        width: 65%;
        opacity: 0.55;
    }

    .private-service-full .card-topline,
    .private-service-full h3,
    .private-service-full .project-description,
    .private-service-full .card-footer {
        max-width: 75%;
    }
}

.private-service-full .project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Logout Pill Button */
.logout-form {
    margin-left: auto;
}

.logout-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid var(--brand-red);
    border-radius: 50px;
    background: transparent;
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.logout-pill:hover {
    background: var(--brand-red);
    color: #ffffff;
}
/* Private Services Section Divider */
.private-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 45px 0 25px;
    color: var(--brand-red);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .15em;
}

.private-divider::before,
.private-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Private Services Grid */
.private-project-grid {
    grid-template-columns: 1fr;
}

/* Private Services - Horizontal Feature Card */
.private-service-full {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 260px;
    background: var(--surface);
}

/* Image positioned on the right */
.private-service-full .project-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    margin: 0;
    z-index: 0;
}

.private-service-full .project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Blue gradient blending into the background */
.private-service-full .project-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--surface) 0%,
        rgba(19, 27, 40, 0.95) 12%,
        rgba(19, 27, 40, 0.65) 38%,
        rgba(19, 27, 40, 0.10) 75%,
        transparent 100%
    );
}

/* Keep card content above the image */
.private-service-full .card-topline,
.private-service-full h3,
.private-service-full .project-description,
.private-service-full .card-footer {
    position: relative;
    z-index: 1;
}

/* Keep text on the left */
.private-service-full .card-topline,
.private-service-full h3,
.private-service-full .project-description,
.private-service-full .card-footer {
    max-width: 55%;
}

.private-service-full h3 {
    margin-top: 20px;
}

.private-service-full .project-description {
    flex-grow: 1;
}

.private-service-full .card-footer {
    margin-top: 24px;
}

/* Private Services Image */
.private-service-full .project-icon img {
    object-fit: contain;
    object-position: center;
}

@media (max-width: 700px) {
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 20px;
    }
}
/* RussoLab Project Grid */

.labs-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 460px));
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .labs-project-grid {
        grid-template-columns: 1fr;
    }
}
/* Navbar Home Button */
.weather-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease,
                background 0.2s ease;
}

.weather-home-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(117, 212, 245, 0.07);
}

.weather-home-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .topbar {
        flex-wrap: wrap;
    }

    .weather-home-link {
        margin-left: auto;
    }
}
