

/* ========================================
   TRUTHscare — Main Stylesheet
   ======================================== */

/* Colour palette */
:root {
    --background: #05080d;
    --text: #deddda;
    --gold: #d4af55;
    --muted: #b8c0cc;
    --blue: #397fc2;
    --blue-light: #79baff;
}

/* Base reset */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#logoLoopVideo {
  width: 100%;
  height: auto;
}
  
.gateway {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

#logoInitVideo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    pointer-events: none;
}


/* Blue sphere atmosphere */
.sphere {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: min(65vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;

    background: radial-gradient(
        circle at 35% 30%,
        rgba(44, 157, 255, 0.35),
        rgba(8, 53, 119, 0.12) 35%,
        transparent 70%
    );

    filter: blur(35px);
    opacity: 0.75;
    pointer-events: none;
}

/* Identity heading and tagline */
.identity {
    text-align: center;
    margin-bottom: 65px;
}

.identity h1 {
    margin-top: 0;
    color: var(--text);
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
}

.identity h1 span {
    color: var(--gold);
}

.identity p {
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    letter-spacing: 0.12em;
}


/* Project cards */
.projects {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project {
    height: 360px;
    min-height: 0;
    padding: 22px 24px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    color: var(--text);
    text-decoration: none;
    background: rgba(11, 17, 27, 0.82);
    border: 1px solid rgba(120, 160, 210, 0.2);
    border-radius: 3px;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.project img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    flex-shrink: 0;
}

.project .number {
    display: block;
    margin-top: 10px;
    color: var(--blue-light);
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

.project h2 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.project p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.project .arrow {
    align-self: flex-end;
    margin-top: auto;
    padding-top: 12px;
    color: var(--gold);
    font-size: 1.4rem;
}

.project:hover {
    background: rgba(15, 30, 48, 0.95);
    border-color: var(--blue);
    transform: translateY(-4px);
}

/* Footer */
footer {
    margin-top: 75px;
    color: var(--muted);
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

footer a {
    color: var(--text);
}

footer span {
    color: var(--gold);
}

/* Responsive layout */
@media (max-width: 760px) {
    .gateway {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .identity {
        margin-bottom: 45px;
    }

    .projects {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .project {
        min-height: 170px;
    }

    footer {
        margin-top: 45px;
    }
}



@media (max-width: 600px) {
    .projects {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .project {
        height: 340px;
    }
}