/*
 * LitWebTech — Digital Cosmos
 * Visual system layered over the existing Bootstrap build.
 */

:root {
    --cosmos-void: #05060c;
    --cosmos-ink: #080a13;
    --cosmos-panel: rgba(13, 17, 31, 0.72);
    --cosmos-panel-solid: #0d111f;
    --cosmos-line: rgba(150, 191, 255, 0.16);
    --cosmos-line-strong: rgba(113, 224, 255, 0.34);
    --cosmos-cyan: #65e7ff;
    --cosmos-blue: #4d8dff;
    --cosmos-violet: #9b7cff;
    --cosmos-coral: #ff886f;
    --cosmos-white: #f5f7ff;
    --cosmos-muted: #9aa6bd;
    --cosmos-display: 'Inter', sans-serif;
    --cosmos-body: 'Manrope', sans-serif;
    --primary-dark: var(--cosmos-void);
    --secondary-dark: var(--cosmos-panel-solid);
    --tertiary-dark: #222a3d;
    --accent-blue: var(--cosmos-cyan);
    --accent-teal: #79f2c5;
    --accent-purple: var(--cosmos-violet);
    --text-light: #dfe6f5;
    --bs-primary: #65e7ff;
    --bs-primary-rgb: 101, 231, 255;
    --bs-secondary-rgb: 155, 124, 255;
    --bs-success-rgb: 121, 242, 197;
    --bs-info-rgb: 101, 231, 255;
    --bs-warning-rgb: 255, 184, 107;
    --bs-danger-rgb: 255, 118, 144;
    --bs-dark: #05060c;
    --bs-body-bg: #05060c;
    --bs-body-color: #dfe6f5;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 12% 28%, rgba(64, 80, 207, 0.1), transparent 30rem),
        radial-gradient(circle at 92% 72%, rgba(63, 207, 230, 0.07), transparent 32rem),
        var(--cosmos-void) !important;
    color: var(--text-light) !important;
    font-family: var(--cosmos-body) !important;
    font-size: 1rem;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: '';
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

::selection {
    color: var(--cosmos-void);
    background: var(--cosmos-cyan);
}

a,
button,
input,
select,
textarea {
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease,
        opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cosmos-cyan) !important;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 1000000000;
    padding: 0.8rem 1rem;
    color: var(--cosmos-void);
    background: var(--cosmos-cyan);
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    color: var(--cosmos-white) !important;
    font-family: var(--cosmos-display) !important;
    letter-spacing: -0.035em;
}

p,
.card-text,
.text-light {
    color: #b4bfd1 !important;
}

.text-primary {
    color: var(--cosmos-cyan) !important;
}

.text-muted {
    color: #8996ad !important;
}

.text-secondary {
    color: #b49fff !important;
}

.text-success {
    color: #79f2c5 !important;
}

.text-info {
    color: var(--cosmos-cyan) !important;
}

.text-warning {
    color: #ffbd76 !important;
}

.text-danger {
    color: #ff8299 !important;
}

main {
    position: relative;
    isolation: isolate;
}

main > section:not(#hero) {
    padding-block: clamp(5.5rem, 9vw, 9rem) !important;
}

main > section.bg-dark,
.bg-dark,
.bg-secondary-dark {
    background-color: transparent !important;
}

main > section.bg-dark::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    border-block: 1px solid rgba(137, 171, 221, 0.08);
    background:
        linear-gradient(120deg, rgba(66, 89, 164, 0.07), transparent 42%),
        rgba(8, 10, 19, 0.62);
}

/* Navigation */
.navbar {
    top: 18px !important;
    left: 50% !important;
    width: min(calc(100% - 32px), 1320px) !important;
    padding: 0.65rem 0.8rem !important;
    border: 1px solid rgba(169, 200, 255, 0.15) !important;
    border-radius: 20px;
    background: rgba(6, 8, 17, 0.72) !important;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px) saturate(135%);
    transform: translateX(-50%);
}

.navbar.is-scrolled {
    top: 10px !important;
    border-color: rgba(101, 231, 255, 0.21) !important;
    background: rgba(6, 8, 17, 0.9) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.44);
}

.navbar .container {
    max-width: 1260px;
}

.navbar-brand {
    position: relative;
    padding: 0;
}

.navbar-brand::after {
    position: absolute;
    right: -0.8rem;
    bottom: 0.1rem;
    width: 5px;
    height: 5px;
    content: '';
    border-radius: 50%;
    background: var(--cosmos-cyan);
    box-shadow: 0 0 12px var(--cosmos-cyan);
}

.navbar-brand img,
.navbar-brand .logo {
    width: auto;
    height: 34px;
}

.navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

.navbar-nav .nav-link {
    padding: 0.65rem 0.75rem !important;
    color: #aab4c8 !important;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cosmos-white) !important;
}

.navbar-nav .nav-link.active::after {
    bottom: 0.15rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cosmos-cyan);
    box-shadow: 0 0 10px var(--cosmos-cyan);
}

.navbar .btn,
.btn-primary,
.cta-button {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    color: #061016 !important;
    background: linear-gradient(115deg, #d9fbff, var(--cosmos-cyan) 46%, #90c6ff) !important;
    box-shadow: 0 10px 30px rgba(49, 191, 229, 0.18), inset 0 1px rgba(255, 255, 255, 0.55) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.navbar .btn {
    padding: 0.72rem 1.1rem !important;
    font-size: 0.82rem;
}

.btn-primary:hover,
.cta-button:hover,
.navbar .btn:hover {
    color: #061016 !important;
    background: linear-gradient(115deg, #fff, #91efff 48%, #ad9fff) !important;
    box-shadow: 0 14px 38px rgba(74, 210, 244, 0.27) !important;
    transform: translateY(-2px) !important;
}

.btn-outline-primary,
.hero-buttons .btn-outline-primary {
    border: 1px solid rgba(192, 218, 255, 0.24) !important;
    border-radius: 999px !important;
    color: var(--cosmos-white) !important;
    background: rgba(11, 15, 27, 0.52) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    font-weight: 650;
}

.btn-outline-primary:hover,
.hero-buttons .btn-outline-primary:hover {
    border-color: var(--cosmos-line-strong) !important;
    color: var(--cosmos-white) !important;
    background: rgba(101, 231, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Homepage hero */
.home-hero {
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    min-height: 100svh !important;
    overflow: clip;
    padding: 9.5rem 0 8rem;
    text-align: left !important;
    background-color: #05060c;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    background-image:
        linear-gradient(90deg, rgba(5, 6, 12, 0.99) 0%, rgba(5, 6, 12, 0.93) 30%, rgba(5, 6, 12, 0.42) 62%, rgba(5, 6, 12, 0.16) 100%),
        linear-gradient(0deg, #05060c 0%, transparent 30%),
        url('../img/visuals/digital-universe-hero.webp');
    background-repeat: no-repeat;
    background-position: calc(50% + var(--hero-shift-x)) calc(50% + var(--hero-shift-y));
    background-size: cover;
    transform: scale(1.025);
    transition: background-position 350ms ease-out;
}

.home-hero::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(121, 187, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 187, 255, 0.12) 1px, transparent 1px);
    background-position: center;
    background-size: 90px 90px;
    mask-image: linear-gradient(90deg, transparent, black 68%, transparent);
}

.home-hero .container {
    z-index: 5 !important;
}

.home-hero .row {
    justify-content: flex-start !important;
    text-align: left !important;
}

.home-hero .hero-content {
    max-width: 820px;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.4rem;
    color: #c3cada !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-eyebrow::before,
.section-kicker::before {
    width: 7px;
    height: 7px;
    content: '';
    border-radius: 50%;
    background: var(--cosmos-cyan);
    box-shadow: 0 0 14px rgba(101, 231, 255, 0.9);
}

.home-hero h1 {
    max-width: 800px;
    margin-bottom: 1.75rem !important;
    font-size: clamp(3.25rem, 6.4vw, 6.7rem) !important;
    font-weight: 700 !important;
    line-height: 0.95;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.home-hero h1 .highlight {
    color: transparent;
    background: linear-gradient(100deg, #f5f7ff 4%, #75e9ff 48%, #a98cff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero .hero-content > .lead {
    max-width: 620px;
    margin: 0 0 2rem !important;
    color: #aeb9cd !important;
    font-size: clamp(1.04rem, 1.55vw, 1.24rem);
    line-height: 1.75;
}

.home-hero .hero-buttons {
    justify-content: flex-start !important;
    margin-bottom: 2.25rem;
}

.home-hero .hero-buttons .btn {
    min-width: 170px;
    padding: 0.95rem 1.45rem !important;
    font-size: 0.93rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #78859c;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta i {
    color: var(--cosmos-cyan);
}

.about-brand-stage {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    aspect-ratio: 1;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(151, 206, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 178, 65, 0.12), transparent 35%),
        radial-gradient(circle at 70% 30%, rgba(103, 87, 255, 0.16), transparent 48%),
        linear-gradient(145deg, rgba(15, 20, 38, 0.88), rgba(5, 7, 15, 0.95));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    perspective: 1200px;
    isolation: isolate;
}

.about-brand-stage::before {
    position: absolute;
    inset: 7%;
    z-index: 0;
    content: '';
    border: 1px solid rgba(118, 224, 255, 0.24);
    border-radius: 50%;
    box-shadow: inset 0 0 35px rgba(105, 131, 255, 0.07), 0 0 60px rgba(89, 199, 255, 0.05);
    transform: rotateX(67deg) rotateZ(-12deg);
    animation: brand-orbit-ring 18s linear infinite;
}

.about-brand-stage::after {
    position: absolute;
    inset: 14%;
    z-index: 0;
    content: '';
    border-radius: 50%;
    opacity: 0.5;
    background: radial-gradient(circle, rgba(255, 180, 71, 0.25), rgba(116, 94, 255, 0.11) 44%, transparent 72%);
    filter: blur(28px);
}

.about-brand-spinner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    animation: brand-turntable 14s linear infinite;
}

.about-brand-stage .image-overlay-badge {
    z-index: 3;
}

.about-brand-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(255, 186, 76, 0.16));
}

.about-brand-face--front {
    transform: translateZ(2px);
}

.about-brand-face--back {
    transform: rotateY(180deg) translateZ(2px);
}

.hero-signal {
    position: absolute;
    right: clamp(1.5rem, 7vw, 8rem);
    bottom: 21%;
    z-index: 6;
    width: min(270px, 24vw);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(151, 210, 255, 0.2);
    border-radius: 16px;
    background: rgba(7, 10, 20, 0.54);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.hero-signal__status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: #8d9bb1;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-signal__status::before {
    width: 6px;
    height: 6px;
    content: '';
    border-radius: 50%;
    background: #79f2c5;
    box-shadow: 0 0 12px #79f2c5;
    animation: cosmos-pulse 2.2s ease-in-out infinite;
}

.hero-signal strong {
    display: block;
    color: var(--cosmos-white);
    font-size: 0.94rem;
    font-weight: 600;
}

.home-hero #particles-js,
#particles-js {
    z-index: 2;
    opacity: 0.2;
    mask-image: linear-gradient(90deg, transparent, black 50%);
}

.scroll-indicator {
    left: auto !important;
    right: 2.1rem;
    bottom: 1.5rem !important;
    z-index: 8;
    transform: none !important;
}

.scroll-indicator .scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.scroll-indicator p {
    margin: 0 !important;
    color: #79859a !important;
    font-size: 0.62rem !important;
    writing-mode: vertical-rl;
}

.scroll-indicator .arrow-container {
    width: 34px;
    height: 52px;
    border: 1px solid var(--cosmos-line);
    border-radius: 999px;
}

.scroll-indicator .bounce-arrow {
    font-size: 1rem !important;
}

/* Proof strip */
#stats {
    z-index: 10;
    margin-top: -52px;
    padding: 0 !important;
    background: none !important;
}

#stats::before {
    display: none;
}

#stats .row {
    overflow: hidden;
    margin-inline: 0;
    border: 1px solid rgba(154, 198, 255, 0.15);
    border-radius: 24px;
    background: rgba(10, 13, 24, 0.8);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
}

#stats .row > div {
    padding: 1.65rem 1.2rem;
}

#stats .row > div:not(:last-child) {
    border-right: 1px solid rgba(161, 197, 255, 0.1);
}

#stats .stat-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.7rem;
}

#stats .stat-item h3 {
    margin: 0 !important;
    color: var(--cosmos-white) !important;
    font-size: clamp(1.35rem, 2.5vw, 2.05rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.05em;
}

#stats .stat-item p {
    max-width: 8rem;
    margin: 0;
    color: #8390a6 !important;
    font-size: 0.7rem;
    line-height: 1.35;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

/* Sections */
#about {
    overflow: hidden;
    background: transparent !important;
}

#about .about-text {
    max-width: 650px;
}

#about h2,
#solutions h2,
#testimonials h2,
#clients h2,
#contact h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem) !important;
    line-height: 1.02;
    text-wrap: balance;
}

#about .about-text h3 {
    margin-bottom: 1.6rem !important;
    color: var(--cosmos-cyan) !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

#about .about-text p {
    color: #9da9bd !important;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.about-principles span {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(147, 193, 255, 0.14);
    border-radius: 999px;
    color: #aeb9cd;
    background: rgba(100, 130, 210, 0.06);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* About page leadership */
.leadership-section {
    overflow: hidden;
}

.leadership-section::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background:
        radial-gradient(circle at 18% 42%, rgba(101, 231, 255, 0.07), transparent 28rem),
        radial-gradient(circle at 82% 58%, rgba(155, 124, 255, 0.08), transparent 28rem);
}

.leadership-section .team-member {
    border-color: rgba(153, 196, 255, 0.17) !important;
    background: linear-gradient(145deg, rgba(16, 21, 38, 0.88), rgba(7, 10, 19, 0.94)) !important;
}

.leadership-section .team-member .card-body {
    padding: clamp(1.7rem, 3vw, 2.6rem) !important;
}

.leadership-section .avatar-circle {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(101, 231, 255, 0.09) !important;
    box-shadow: inset 0 0 22px rgba(101, 231, 255, 0.08), 0 0 32px rgba(101, 231, 255, 0.07);
}

.leadership-section .avatar-circle i {
    color: var(--cosmos-cyan) !important;
}

.leadership-section .team-member--security .avatar-circle {
    background: rgba(155, 124, 255, 0.1) !important;
    box-shadow: inset 0 0 22px rgba(155, 124, 255, 0.1), 0 0 32px rgba(155, 124, 255, 0.08);
}

.leadership-section .team-member--security .avatar-circle i {
    color: #b49fff !important;
}

.leadership-section .team-member .card-title {
    color: var(--cosmos-white) !important;
}

.leadership-section .expertise-tags .badge {
    border: 1px solid rgba(101, 231, 255, 0.2);
    color: #bdeff8 !important;
    background: rgba(101, 231, 255, 0.08) !important;
    font-weight: 600;
}

.leadership-section .team-member--security .expertise-tags .badge {
    border-color: rgba(155, 124, 255, 0.23);
    color: #c8bbff !important;
    background: rgba(155, 124, 255, 0.09) !important;
}

.leadership-section .team-member--founder .bg-warning {
    border: 1px solid rgba(255, 189, 118, 0.26);
    color: #ffd7a9 !important;
    background: rgba(255, 184, 107, 0.12) !important;
}

.leadership-section .team-stats-card {
    border: 1px solid rgba(150, 196, 255, 0.14);
    border-radius: 20px !important;
    background: rgba(11, 15, 27, 0.7) !important;
}

.studio-console {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(131, 204, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(6, 8, 17, 0.04), rgba(6, 8, 17, 0.72)),
        url('../img/visuals/digital-universe-hero.webp') 68% center / cover;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.07);
}

.studio-console::before {
    position: absolute;
    inset: 1.1rem;
    content: '';
    border: 1px solid rgba(165, 213, 255, 0.13);
    border-radius: 20px;
}

.studio-console__top {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #8f9bb0;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.studio-console__top::before {
    width: 7px;
    height: 7px;
    content: '';
    border-radius: 50%;
    background: var(--cosmos-coral);
    box-shadow: 13px 0 var(--cosmos-violet), 26px 0 var(--cosmos-cyan);
    margin-right: 2rem;
}

.studio-console__steps {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(159, 206, 255, 0.16);
    border-radius: 14px;
    background: rgba(5, 7, 15, 0.68);
    backdrop-filter: blur(14px);
}

.studio-console__steps span {
    padding: 1rem;
    color: #aeb9cc;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-align: center;
    text-transform: uppercase;
}

.studio-console__steps span:not(:last-child) {
    border-right: 1px solid rgba(159, 206, 255, 0.13);
}

/* Service constellation */
#solutions .section-heading,
#testimonials .section-heading,
#clients .section-heading,
#contact .section-heading {
    max-width: 850px;
    margin-inline: auto;
}

.section-intro-copy {
    max-width: 650px;
    margin: 1.25rem auto 0;
    color: #8f9caf !important;
    line-height: 1.8;
}

#solutions .row.g-4 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.card,
.solution-card,
.testimonial-card,
.contact-info-card,
.contact-form-card {
    overflow: hidden;
    border: 1px solid rgba(154, 197, 255, 0.14) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(145deg, rgba(17, 22, 39, 0.86), rgba(8, 11, 21, 0.94)) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.card::after,
.solution-card::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: '';
    opacity: 0;
    background: radial-gradient(circle at 50% 0, rgba(101, 231, 255, 0.14), transparent 46%);
    transition: opacity 300ms ease;
}

.card:hover::after,
.solution-card:hover::after {
    opacity: 1;
}

.card:hover,
.solution-card:hover {
    border-color: rgba(101, 231, 255, 0.3) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34) !important;
    transform: translateY(-6px) !important;
}

.solution-card img {
    height: 190px !important;
    opacity: 0.68;
    filter: saturate(0.72) contrast(1.06);
    transition: opacity 350ms ease, filter 350ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.solution-card:hover img {
    opacity: 0.92;
    filter: saturate(0.95) contrast(1.04);
    transform: scale(1.035);
}

.solution-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem !important;
}

.solution-card .card-title {
    min-height: 2.6rem;
    color: var(--cosmos-white) !important;
    font-size: 1.08rem;
    line-height: 1.25;
}

.solution-card .card-text {
    color: #8f9bb0 !important;
    font-size: 0.87rem;
    line-height: 1.7;
}

.solution-card .btn {
    width: fit-content;
    padding: 0.55rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--cosmos-cyan) !important;
    background: transparent !important;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.solution-card .btn::after {
    content: '  \2197';
}

.solution-card .btn:hover {
    color: #fff !important;
    transform: translateX(3px);
}

/* Testimonials, marquees and contact */
#testimonials .testimonial-card {
    position: relative;
    padding-top: 0.5rem;
}

#testimonials .testimonial-card::before {
    top: 0.65rem;
    left: auto;
    right: 1.25rem;
    color: var(--cosmos-cyan);
    font-family: Georgia, serif;
    opacity: 0.18;
}

#testimonials .testimonial-card .card-body {
    padding: 1.7rem !important;
}

#testimonials blockquote p {
    color: #a8b3c7 !important;
    font-size: 0.91rem;
    line-height: 1.8;
}

#testimonials .rating {
    color: var(--cosmos-coral) !important;
    font-size: 0.72rem;
}

#testimonials .rating i {
    color: var(--cosmos-coral) !important;
}

.clients-slideshow-container {
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.client-logo-slide {
    max-height: 58px;
    opacity: 0.54;
    filter: grayscale(1) brightness(1.65);
}

.client-logo-slide:hover {
    opacity: 0.95;
    filter: grayscale(0) brightness(1);
}

/* Normalize legacy portfolio colors into the cosmic palette. */
.client-card,
.additional-clients-section,
.client-item {
    border-color: rgba(144, 194, 255, 0.16) !important;
    background: linear-gradient(145deg, rgba(15, 20, 36, 0.86), rgba(7, 10, 19, 0.94)) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 22px 65px rgba(0, 0, 0, 0.22) !important;
}

.client-card .client-header {
    border-color: rgba(144, 194, 255, 0.13) !important;
    background: rgba(101, 231, 255, 0.025) !important;
}

.client-card h5,
.client-card h6,
.additional-clients-section h5,
.additional-clients-section h6 {
    color: var(--cosmos-white) !important;
}

.client-card .badge {
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-info-card,
.contact-form-card {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid rgba(163, 193, 236, 0.15) !important;
    border-radius: 12px !important;
    color: var(--cosmos-white) !important;
    background: rgba(4, 7, 14, 0.58) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(101, 231, 255, 0.54) !important;
    background: rgba(6, 10, 19, 0.88) !important;
    box-shadow: 0 0 0 4px rgba(101, 231, 255, 0.08) !important;
}

.contact-cta-section,
.cta-section {
    border: 1px solid rgba(125, 218, 255, 0.16) !important;
    background:
        radial-gradient(circle at 50% 120%, rgba(80, 112, 255, 0.16), transparent 50%),
        rgba(10, 14, 27, 0.72) !important;
}

/* Interior pages */
.page-hero {
    display: flex !important;
    min-height: 520px !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 10rem 0 5rem;
    background:
        linear-gradient(90deg, rgba(5, 6, 12, 0.96), rgba(5, 6, 12, 0.55) 60%, rgba(5, 6, 12, 0.35)),
        linear-gradient(0deg, #05060c, transparent 55%),
        url('../img/visuals/digital-universe-hero.webp') 68% center / cover no-repeat;
}

.page-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(141, 194, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 194, 255, 0.15) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(90deg, transparent, black);
}

.page-hero .container {
    position: relative;
    z-index: 5;
}

.page-hero h1 {
    font-size: clamp(3rem, 6vw, 5.8rem) !important;
    line-height: 0.98;
}

.page-hero .lead {
    max-width: 660px;
    color: #a8b4c8 !important;
    line-height: 1.7;
}

.page-hero .hero-content,
.page-hero .breadcrumb,
.page-hero h1,
.page-hero .lead,
.page-hero .hero-stats,
.page-hero .hero-services,
.page-hero .hero-highlights,
.page-hero .hero-contact-methods,
.page-hero .hero-login-options {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

.service-image,
.about-image,
.portfolio-item {
    overflow: hidden;
    border: 1px solid rgba(146, 194, 255, 0.14);
    border-radius: 22px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.feature-card,
.service-card,
.process-step,
.team-card,
.value-card {
    border: 1px solid rgba(153, 196, 255, 0.13) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(16, 21, 37, 0.78), rgba(7, 10, 19, 0.88)) !important;
}

/* Modal and footer */
.modal-backdrop.show {
    opacity: 0.82;
    backdrop-filter: blur(8px);
}

.modal-content {
    border: 1px solid rgba(132, 214, 255, 0.25) !important;
    border-radius: 22px !important;
    background: rgba(10, 14, 27, 0.96) !important;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.55);
}

.professional-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(137, 183, 246, 0.12);
    background:
        radial-gradient(circle at 80% 120%, rgba(71, 78, 203, 0.14), transparent 38%),
        #060811 !important;
}

.professional-footer::before {
    position: absolute;
    top: -1px;
    left: 12%;
    width: 20%;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, var(--cosmos-cyan), transparent);
    box-shadow: 0 0 18px var(--cosmos-cyan);
}

.professional-footer .newsletter-form-container {
    border-color: rgba(134, 191, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

/* Cookie consent: compact, readable, and out of the hero's way. */
#cookie-consent-banner.cookie-consent-banner {
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    width: min(460px, calc(100vw - 36px)) !important;
    padding: 0 !important;
    border: 1px solid rgba(131, 209, 255, 0.2) !important;
    border-radius: 18px !important;
    background: rgba(8, 11, 21, 0.92) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(20px) saturate(130%);
    transform: translateY(calc(100% + 36px)) !important;
}

#cookie-consent-banner.cookie-consent-banner.show {
    transform: translateY(0) !important;
}

#cookie-consent-banner .cookie-consent-content {
    padding: 1.15rem;
}

#cookie-consent-banner .container {
    padding: 0;
}

#cookie-consent-banner .row > div {
    width: 100%;
}

#cookie-consent-banner .cookie-title {
    font-size: 0.92rem;
}

#cookie-consent-banner .cookie-text {
    margin-bottom: 0.85rem !important;
    font-size: 0.76rem;
    line-height: 1.55;
}

#cookie-consent-banner .cookie-actions {
    flex-direction: row !important;
    justify-content: flex-end;
}

#cookie-consent-banner .cookie-actions .btn {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.68rem;
}

/* Progressive reveal */
.cosmos-js .cosmos-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.2, 0.7, 0, 1), transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.cosmos-js .cosmos-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cosmos-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes brand-turntable {
    from { transform: rotateX(-5deg) rotateY(0deg); }
    to { transform: rotateX(-5deg) rotateY(360deg); }
}

@keyframes brand-orbit-ring {
    from { transform: rotateX(67deg) rotateZ(-12deg); }
    to { transform: rotateX(67deg) rotateZ(348deg); }
}

@media (max-width: 1199.98px) {
    .home-hero::before {
        background-image:
            linear-gradient(90deg, rgba(5, 6, 12, 0.98), rgba(5, 6, 12, 0.78) 52%, rgba(5, 6, 12, 0.33)),
            linear-gradient(0deg, #05060c, transparent 35%),
            url('../img/visuals/digital-universe-hero.webp');
        background-position: 60% center;
    }

    .hero-signal {
        right: 2rem;
        width: 220px;
    }

}

@media (max-width: 991.98px) {
    .navbar {
        border-radius: 17px;
    }

    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-top: 1px solid rgba(155, 197, 255, 0.12);
    }

    .navbar-nav {
        align-items: stretch;
        text-align: left;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.2rem !important;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar .btn {
        width: 100%;
        margin: 0.5rem 0 0 !important;
    }

    .home-hero {
        padding-top: 9rem;
    }

    .home-hero::before {
        background-image:
            linear-gradient(90deg, rgba(5, 6, 12, 0.99), rgba(5, 6, 12, 0.82) 70%, rgba(5, 6, 12, 0.5)),
            linear-gradient(0deg, #05060c, transparent 35%),
            url('../img/visuals/digital-universe-hero.webp');
        background-position: 66% center;
    }

    .home-hero .hero-content {
        max-width: 690px;
    }

    .hero-signal {
        display: none;
    }

    .studio-console {
        min-height: 430px;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        top: 10px !important;
        width: calc(100% - 20px) !important;
    }

    .home-hero {
        min-height: 800px !important;
        padding: 8.6rem 0 7rem;
    }

    .home-hero::before {
        background-image:
            linear-gradient(180deg, rgba(5, 6, 12, 0.93) 0%, rgba(5, 6, 12, 0.76) 52%, #05060c 94%),
            url('../img/visuals/digital-universe-hero.webp');
        background-position: 64% center;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem) !important;
        line-height: 0.98;
    }

    .home-hero .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .home-hero .hero-buttons .btn {
        width: 100%;
        min-width: 0;
        padding: 0.85rem 0.5rem !important;
        font-size: 0.78rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .scroll-indicator {
        display: none;
    }

    #stats {
        margin-top: -34px;
    }

    #stats .row > div {
        padding: 1.2rem 0.8rem;
    }

    #stats .row > div:nth-child(2) {
        border-right: 0;
    }

    #stats .row > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(161, 197, 255, 0.1);
    }

    #stats .stat-item {
        display: block;
    }

    #stats .stat-item p {
        max-width: none;
        margin-top: 0.25rem;
        text-align: center;
    }

    .studio-console {
        min-height: 380px;
    }

    .studio-console__steps span {
        padding: 0.8rem 0.4rem;
        font-size: 0.58rem;
    }

    .page-hero {
        min-height: 480px !important;
        padding-top: 8.5rem;
    }

    #cookie-consent-banner.cookie-consent-banner {
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
    }

    #cookie-consent-banner .cookie-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1.25fr;
    }

    #cookie-consent-banner #cookie-accept {
        grid-column: 3;
        grid-row: auto;
    }

    #cookie-consent-banner .cookie-consent-content {
        padding: 0.9rem;
    }

    #cookie-consent-banner .cookie-text {
        margin-bottom: 0.65rem !important;
        font-size: 0.7rem;
    }

    #cookie-consent-banner .cookie-actions .btn {
        padding-inline: 0.35rem !important;
        white-space: nowrap;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cosmos-js .cosmos-reveal {
        opacity: 1;
        transform: none;
    }

    .about-brand-spinner,
    .about-brand-stage::before {
        animation: none !important;
    }
}
