/*
South Seas Tech™
Main Website Stylesheet
South Seas Tech Web 1.1
Developed by South Seas Tech™ · Developer: Grant Abbott
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }

:root {
    --space: #04050d;
    --space-2: #080b1c;
    --navy: #0b1a38;
    --panel: rgba(12, 24, 52, .72);
    --line: rgba(79, 179, 219, .22);
    --blue: #1d5482;
    --cyan: #4fb3db;
    --glow: #8fe3ff;
    --text: #dbe7f3;
    --muted: #93a7bd;
    --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--space);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Starfield and circuit traces, drawn behind everything */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 12%, #cfefff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 38% 64%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 46%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 22% 82%, #bfe8ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 58% 34%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 94% 86%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 46% 8%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 92%, #d8f3ff 50%, transparent 51%),
        radial-gradient(ellipse 70% 50% at 80% 0%, rgba(29, 84, 130, .35), transparent 70%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(79, 179, 219, .12), transparent 70%),
        var(--space);
    background-size: 420px 420px, 380px 380px, 520px 520px, 300px 300px, 460px 460px, 610px 610px, 350px 350px, 400px 400px, 330px 330px, 570px 570px, 100% 100%, 100% 100%, 100% 100%;
}

body::after {
    opacity: .16;
    background-image: url("../images/circuit.svg");
    background-size: 640px 640px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 55%, transparent 70%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 55%, transparent 70%, #000 100%);
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    letter-spacing: .01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

a { color: var(--glow); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
    font-family: var(--display);
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: .8rem;
}

.glow-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--glow) 55%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wrap { width: min(1120px, 100% - 3rem); margin: 0 auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(4, 5, 13, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 18px rgba(79, 179, 219, .45); }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: .95rem; }
.brand span b { color: var(--cyan); font-weight: 700; }

.site-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.site-nav a {
    color: var(--muted);
    font-size: .92rem;
    padding: .45rem .8rem;
    border-radius: 8px;
    transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: #fff; background: rgba(79, 179, 219, .1); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(79, 179, 219, .18); box-shadow: inset 0 0 0 1px var(--line); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 8px;
    padding: .45rem .7rem;
    font: inherit;
    cursor: pointer;
}

main { flex: 1; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 10px;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(143, 227, 255, .35), 0 10px 30px rgba(79, 179, 219, .25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(143, 227, 255, .6), 0 14px 36px rgba(79, 179, 219, .4); }
.btn-ghost { color: var(--glow); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: #fff; background: rgba(79, 179, 219, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-top: 1.2rem; }
.hero-logo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-logo::before {
    content: "";
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 179, 219, .35), transparent 65%);
    filter: blur(10px);
    z-index: -1;
}
.hero-logo img { width: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(143, 227, 255, .25), 0 0 60px rgba(79, 179, 219, .35); }

.page-hero { padding: 4.5rem 0 2.5rem; }
.page-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 44rem; margin-top: 1rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(180deg, rgba(16, 32, 68, .78), rgba(8, 14, 34, .78));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    top: 0; left: 1.6rem; right: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow), transparent);
    opacity: .6;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 1.1rem; margin-top: .6rem; }
.card li { margin-bottom: .3rem; }

.icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(79, 179, 219, .12);
    box-shadow: inset 0 0 0 1px var(--line);
    margin-bottom: 1rem;
}
.icon svg { width: 24px; height: 24px; stroke: var(--glow); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: 3rem; }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute; top: 0; left: 0;
    font-family: var(--display); font-weight: 700; font-size: 1.6rem;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(79, 179, 219, .6);
}
.step::after {
    content: "";
    position: absolute; top: 1.05rem; left: 3.2rem; right: -1.4rem;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }
.step p { color: var(--muted); }

/* Feature (project / band) */
.feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.4rem;
    align-items: center;
}
.feature-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(79, 179, 219, .12);
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.2rem; list-style: none; }
.tags li {
    font-size: .78rem;
    letter-spacing: .04em;
    padding: .25rem .65rem;
    border-radius: 999px;
    color: var(--glow);
    box-shadow: inset 0 0 0 1px var(--line);
    background: rgba(79, 179, 219, .07);
}

.band {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.6rem;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(79, 179, 219, .18), transparent 60%),
        linear-gradient(180deg, rgba(16, 32, 68, .85), rgba(8, 14, 34, .85));
}
.band p { color: var(--muted); max-width: 46rem; }

.note { color: var(--muted); font-size: .92rem; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin-top: 1rem; }
dl.details dt { color: var(--cyan); font-family: var(--display); font-weight: 600; }
dl.details dd { color: var(--text); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(4, 5, 13, .85);
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: .88rem;
    color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer p { margin: 0; }

/* Tablets */
@media (max-width: 900px) {
    .hero .wrap, .feature { grid-template-columns: 1fr; }
    .hero { padding-top: 3.5rem; }
    .hero-logo { width: min(300px, 80%); order: -1; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step::after { display: none; }
}

/* Phones */
@media (max-width: 640px) {
    .wrap { width: min(1120px, 100% - 2rem); }
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: rgba(4, 5, 13, .97);
        border-bottom: 1px solid var(--line);
        padding: .6rem 1rem 1rem;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .7rem .8rem; }
    .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
    .band { padding: 1.6rem; }
    .section { padding: 2.6rem 0; }
    dl.details { grid-template-columns: 1fr; gap: .1rem; }
    dl.details dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

.work-item .status { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .8rem; }

/* Tighter spacing for a more professional look */
body { line-height: 1.55; }
p { margin-bottom: .7rem; }
h2 { margin-bottom: .7rem; }
.section { padding: 2.8rem 0; }
.page-hero { padding-top: 3rem; padding-bottom: 3.2rem; }
.hero { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.section-head { margin-bottom: 1.4rem; }
.card { padding: 1.25rem 1.35rem; }
.card li { margin-bottom: .15rem; }
.grid { gap: 1.1rem; }
.btn-row { margin-top: 1rem; }

/* Our faith */
.faith-inner { max-width: 860px; }
.faith-mission { font-size: 1.05rem; border-left: 3px solid currentColor; padding-left: 1rem; margin: 1rem 0 1.4rem; }
.faith-list { display: grid; gap: .8rem; margin-top: .6rem; }
.faith-list dt { font-weight: 700; }
.faith-list dd { margin: .1rem 0 0; opacity: .85; }
.faith-note { margin-top: 1.2rem; font-style: italic; opacity: .85; }
