/* Astrovia Bootstrap Theme */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --primary: #8b6aff;
    --secondary: #8a6aff23;
    --dark: #0b0920;
    --light: #ffffff;
    --muted: #c7c7d5;
    --bs-body-bg: #0b0d12;
    --bs-body-color: #e8eef7;
    --brand-primary: var(--bs-primary, #7c5cff);
    --brand-accent: #23d2ff;
    --brand-surface: rgba(255, 255, 255, 0.06);
    --brand-border: rgba(255, 255, 255, 0.12);
    --cyan: #40f0ff;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* ---------- Background utility classes ---------- */
.bg-hero {
    background:
        radial-gradient(
            ellipse at top right,
            rgba(153, 97, 255, 0.4),
            var(--dark)
        ),
        url("../img/background.webp");
    background-size: cover;
    background-position: center;
}

.bg-services {
    background:
        radial-gradient(
            ellipse at bottom,
            rgba(153, 97, 255, 0.4),
            var(--dark)
        ),
        url("../img/planetsvertical.webp");
    background-size: cover;
    background-position: center;
}

.bg-section-planets {
    background: url("../img/planetsvertical.webp");
    background-size: cover;
    background-position: center;
}

.bg-section-stars {
    background: url("../img/starfield.webp");
    background-size: cover;
    background-position: center;
}

/* ---------- Navigation ---------- */
.navbar.backdrop-blur {
    background-color: rgba(139, 106, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .active {
    font-weight: bolder;
}

button.navbar-toggler {
    background-color: rgba(139, 106, 255, 0.25);
}

button.navbar-toggler span {
    filter: invert(1);
}

.astrovia-toggler {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--cyan) !important;
    outline-offset: 3px;
    border-radius: 0;
}

.btn {
    border-radius: 0px;
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at top right,
            rgba(153, 97, 255, 0.45) 0%,
            rgba(11, 9, 32, 1) 80%
        ),
        url("../img/background.webp");
    background-size: cover;
    background-position: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            1200px 600px at 10% 10%,
            rgba(124, 92, 255, 0.18),
            transparent 55%
        ),
        radial-gradient(
            800px 400px at 95% 40%,
            rgba(35, 210, 255, 0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0)
        );
}

.hero-grid {
    position: absolute;
    inset: -20% -10%;
    background-image:
        linear-gradient(transparent 97%, rgba(255, 255, 255, 0.06) 97%),
        linear-gradient(90deg, transparent 97%, rgba(255, 255, 255, 0.06) 97%);
    background-size: 36px 36px;
    mask-image: radial-gradient(
        1000px 600px at 40% 20%,
        #000 40%,
        transparent 100%
    );
}

.hero-glow {
    position: absolute;
    inset: 0;
    filter: blur(42px);
    background:
        radial-gradient(
            600px 300px at 20% 20%,
            rgba(124, 92, 255, 0.2),
            transparent 60%
        ),
        radial-gradient(
            700px 420px at 80% 60%,
            rgba(35, 210, 255, 0.16),
            transparent 60%
        );
}

.hero-badge {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    color: #cfd7ff;
}

.hero-title {
    letter-spacing: 0.2px;
}

.text-gradient {
    background: linear-gradient(
        90deg,
        var(--brand-primary),
        var(--brand-accent)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 56ch;
}

.hero-highlights .hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 0px;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
    font-size: 14px;
    line-height: 1.2;
}

.hero-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 0px;
    background: var(--brand-accent);
    box-shadow: 0 0 10px var(--brand-accent);
}

/* Mockup card */
.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--brand-border);
    backdrop-filter: blur(12px);
    border-radius: 0px;
    overflow: hidden;
    max-width: 440px;
}

.hero-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--brand-border);
    font-weight: 600;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.02)
    );
}

.hero-card-body {
    padding: 1rem 1rem 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-stats .stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brand-border);
    border-radius: 0px;
    padding: 0.75rem;
    text-align: center;
}

.hero-stats .label {
    font-size: 1rem;
}

.hero-stats .value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(
        90deg,
        var(--brand-primary),
        var(--brand-accent)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-pad {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* === Seal Panel === */
.seal-panel {
    position: relative;
    height: 100%;
    min-height: 200px;
    border: 1px solid var(--brand-border);
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.seal-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
                circle at 20% 30%,
                rgba(255, 255, 255, 0.25) 0px,
                transparent 0px
            )
            0 0 / 12px 12px,
        radial-gradient(
                circle at 70% 60%,
                rgba(255, 255, 255, 0.18) 1px,
                transparent 0px
            )
            0 0 / 16px 16px,
        radial-gradient(
                circle at 40% 80%,
                rgba(255, 255, 255, 0.12) 0px,
                transparent 0px
            )
            0 0 / 20px 20px,
        radial-gradient(
            120% 80% at 80% 20%,
            rgba(35, 210, 255, 0.12),
            transparent 60%
        ),
        radial-gradient(
            100% 70% at 20% 80%,
            rgba(124, 92, 255, 0.14),
            transparent 60%
        );
    mix-blend-mode: screen;
    opacity: 0.65;
}

.seal-core {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.seal-logo {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 6px rgba(35, 210, 255, 0.4));
    margin-bottom: 0.5rem;
}

.seal-title {
    font-weight: 700;
    font-size: 1rem;
    color: #e8eef7;
    background: linear-gradient(
        90deg,
        var(--brand-primary),
        var(--brand-accent)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.seal-values {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    z-index: 2;
}

.seal-values li {
    font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    .seal-bg {
        animation: starsDrift 35s linear infinite;
    }

    .seal-logo {
        animation: sealPulse 4s ease-in-out infinite;
    }
}

@keyframes starsDrift {
    0% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0,
            0 0;
    }

    100% {
        background-position:
            -240px 0,
            -180px 0,
            -120px 0,
            0 0,
            0 0;
    }
}

@keyframes sealPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(35, 210, 255, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(35, 210, 255, 0.6));
    }
}

.hero-title {
    font-size: clamp(28px, 5.2vw, 48px);
    line-height: 1.12;
    letter-spacing: 0.2px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.6vw, 20px);
    line-height: 1.55;
    opacity: 0.95;
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-section .btn-lg {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-highlights {
        gap: 0.85rem !important;
    }

    .hero-highlights .hero-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
        padding-top: 0;
    }

    .hero-highlights li {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-section .small {
        gap: 0.9rem !important;
    }

    .hero-section .small > div {
        width: 100%;
    }
}

.hero-card {
    max-width: 440px;
}

@media (max-width: 992px) {
    .hero-card {
        max-width: 100%;
        margin-top: 1.25rem !important;
    }

    .hero-card-header {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .seal-panel {
        padding: 0.9rem;
        min-height: 170px;
    }

    .seal-logo {
        width: 48px;
        height: 48px;
    }

    .seal-title {
        font-size: 0.95rem;
    }

    .seal-values {
        gap: 0.45rem;
    }

    .seal-values li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section .row {
        margin-top: 0.5rem !important;
        padding-top: 1.25rem !important;
    }

    .hero-grid {
        background-size: 28px 28px;
        opacity: 0.75;
    }
}

/* ---------- Services ---------- */
.services-section {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
    background: url("../img/nightsky.webp");
    background-size: cover;
}
.service-card,
.value-box,
.hero-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
}

.service-card {
    border-radius: 0px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
    background-color: rgba(139, 106, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff !important;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.planet-img {
    max-height: 120px;
    transition: filter 0.3s ease;
}

.service-link {
    text-decoration: none;
    color: inherit;
    position: relative;
}
.service-link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 4px;
}

.service-card:hover .planet-img {
    filter: drop-shadow(0 0 10px var(--primary));
}

.coming-overlay {
    pointer-events: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffc107;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 0px;
    z-index: 2;
}

a.service-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
a.service-card:hover {
    transform: translateY(-2px);
}
a.service-card:focus-visible {
    outline: 2px solid rgba(200, 170, 255, 0.9);
    outline-offset: 4px;
    border-radius: 0px;
}

/* ---------- Process ---------- */
.process-section {
    position: relative;
    background:
        radial-gradient(circle at top, #15162a 0%, #0e0b12 65%, #090b10 100%);
    overflow: hidden;
}

.process-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 75% 20%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 80% 75%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 15% 80%, rgba(255, 255, 255, 0.4), transparent);
    background-repeat: repeat;
    background-size: 220px 220px;
    opacity: 0.28;
    pointer-events: none;
}

.process-section .container {
    position: relative;
    z-index: 1;
}

.process-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent);
    font-weight: 700;
}

.process-timeline {
    position: relative;
    display: grid;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.process-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.18) 15%,
        rgba(255, 255, 255, 0.18) 85%,
        rgba(255, 255, 255, 0)
    );
}

.process-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    min-height: 160px;
}

.process-item-left .process-card {
    grid-column: 1;
}

.process-item-right .process-card {
    grid-column: 3;
}

.process-marker {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.process-marker span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--primary));
    box-shadow:
        0 0 0 8px rgba(15, 98, 207, 0.08),
        0 10px 30px rgba(153, 15, 207, 0.28);
}

.process-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--brand-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 0;
    max-width: 440px;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.process-step-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-accent);
}

.process-card h3 {
    color: var(--light);
}

.process-card p {
    color: var(--muted);
}

@media (min-width: 1200px) {
    .process-item-right .process-card {
        margin-left: 80px;
    }
}

@media (max-width: 991.98px) {
    .process-timeline::before {
        left: 24px;
        transform: none;
    }

    .process-item {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
        min-height: auto;
    }

    .process-marker {
        grid-column: 1;
        justify-content: center;
        align-items: top;
        padding-top: 0;
    }

    .process-item-left .process-card,
    .process-item-right .process-card {
        grid-column: 2;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .process-card {
        padding: 1.25rem;
    }

    .process-marker {
        justify-content: start;
        align-items: start;
    }

    .process-marker span {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
}

/* ---------- About ---------- */
.about {
    background: var(--dark);
}

.about-section {
    position: relative;
    background: radial-gradient(circle at top, #1a1a2e 0%, #0f0f1c 100%);
    overflow: hidden;
}

/* Stjärneffekt */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(
            2px 2px at 20% 30%,
            rgba(255, 255, 255, 0.8),
            transparent
        ),
        radial-gradient(
            1px 1px at 80% 70%,
            rgba(255, 255, 255, 0.5),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 50% 50%,
            rgba(255, 255, 255, 0.7),
            transparent
        ),
        radial-gradient(
            1px 1px at 10% 80%,
            rgba(255, 255, 255, 0.4),
            transparent
        );
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite linear;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

/* Lätt blink på stjärnor */
@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.about-img {
    max-height: 400px;
    object-fit: cover;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.about-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Values ---------- */
.astrovia-values {
    background: linear-gradient(135deg, #0f0f1c 0%, #1a1a2e 100%);
}

.value-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.value-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Footer ---------- */
.footer {
    padding: 3.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Comparison ---------- */
.table-comparison {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.table-comparison th {
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 1.2rem;
}

.table-comparison td {
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    font-size: 1rem;
}

.table-comparison tr {
    transition: filter 0.3s ease;
}

.table-comparison tr:hover {
    filter: drop-shadow(0 0 10px var(--primary));
}

.table-comparison th:first-child,
.table-comparison tr td:first-child {
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}
.table-comparison th:last-child,
.table-comparison tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.table-comparison .yes {
    color: #00ff00;
    font-weight: bold;
}

.table-comparison .no {
    font-weight: bold;
    color: #ff0000;
}

.table-comparison td a {
    color: var(--muted);
    text-decoration-style: dotted;
}

/* ---------- Seal of Quality ---------- */
.seal-certificate {
    border: 3px solid var(--primary);
    padding: 3rem 2rem;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(139, 106, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.seal-certificate:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(139, 106, 255, 0.4);
}

.astrovia-seal-of-quality {
    text-decoration: none;
}
.astrovia-seal-of-quality:hover:not(a) {
    border: 1px solid var(--primary);
}

.tooltip {
    --bs-tooltip-bg: var(--secondary);
    --bs-tooltip-color: var(--bs-body-color);
}

.form-floating > .form-control-plaintext ~ label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--muted) !important;
}

.seal-hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
}

.seal-badge {
    width: 256px;
    height: 256px;
    object-fit: contain;
}

.seal-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seal-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seal-list li:last-child {
    border-bottom: 0;
}

.seal-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    color: var(--light);
    font-weight: bolder;
}

/* ---------- Typography ---------- */
.text-secondary {
    color: var(--muted) !important;
}

/* ---------- Kontakt ---------- */

.contact-shell {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
}
.contact-hero {
    max-width: 860px;
    margin: 0 auto;
}
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-link {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}
.contact-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}
.contact-link:focus-visible {
    outline: 2px solid rgba(200, 170, 255, 0.95);
    outline-offset: 3px;
    border-radius: 0px;
}

.form-control,
.form-check-input {
    border-color: rgba(255, 255, 255, 0.16);
}
.form-control:focus {
    border-color: rgba(200, 170, 255, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(200, 170, 255, 0.15);
}

.tabbtn[aria-selected="true"] {
    background: var(--primary, #c3a0ff);
    border-color: transparent;
    color: #0b0920;
}
.tabbtn[aria-selected="false"] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.text-muted {
    color: var(--muted) !important;
}
