/* ==========================================
   CB WEB & GIS — DEMO PORTFOLIO
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(7, 17, 31, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #c8d6e5;
    font-size: 15px;
    font-weight: 700;

    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #59c3ff;
}


/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 760px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(89, 195, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #07111f,
            #0d2135
        );
}

.hero-content {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 100px 7%;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.hero-small {
    color: #59c3ff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 18px;
}

.hero h1 {
    max-width: 650px;
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #59c3ff;
}

.hero-text {
    max-width: 650px;

    color: #a9bdd0;

    font-size: 20px;

    margin-bottom: 35px;
}


/* ==========================================
   BUTTONS
========================================== */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 30px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary {
    background: #59c3ff;
    color: #07111f;
}

.btn.secondary {
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
}


/* ==========================================
   DEMOS
========================================== */

.demos {
    max-width: 1400px;

    margin: 0 auto;

    padding: 100px 7%;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 55px;
}

.section-heading > p {
    color: #59c3ff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 48px;

    line-height: 1.1;

    margin-bottom: 15px;
}

.section-heading > span {
    color: #91a8bd;

    font-size: 18px;
}


/* ==========================================
   DEMO GRID
========================================== */

.demo-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}

/* ==========================================
   DEMO PREVIEW IMAGES
========================================== */

.demo-image {
    height: 220px;
    margin: -38px -38px 30px -38px;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;

    transition: transform 0.5s ease;
}

.demo-card:hover .demo-image img {
    transform: scale(1.05);
}
/* ==========================================
   INDIVIDUAL DEMO CARD COLOURS
========================================== */


/* ==========================================
   DEMO CARDS
========================================== */

.demo-card {
    position: relative;

    min-height: 520px;
    padding: 38px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            145deg,
            #10253a,
            #0b1c2c
        );

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 30px;

    overflow: hidden;

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

.demo-card:hover {
    transform: translateY(-7px);

    border-color: rgba(89,195,255,0.5);

    box-shadow:
        0 25px 55px rgba(0,0,0,0.25);
}
/* Salong Superclip — elegant blue */
.demo-card--superclip {
    background:
        linear-gradient(
            145deg,
            #174463,
            #0c293e
        );

    border-color: rgba(80, 190, 255, 0.28);
}


/* AI Automation — violet and orange */

.demo-card--ai {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 122, 26, 0.25),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #4c1d75,
            #25103e 55%,
            #170b28
        );

    border-color: rgba(168, 85, 247, 0.45);
}

/* Express Bilverkstad — red */
.demo-card--express {
    background:
        linear-gradient(
            145deg,
            #a6292f,
            #4a1117
        );

    border-color: rgba(255, 104, 104, 0.35);
}


/* Grön Stad — light green */
.demo-card--gron {
    background:
        linear-gradient(
            145deg,
            #dff4df,
            #a9d5ae
        );

    border-color: rgba(45, 105, 58, 0.30);
}


/* Trend Frisören — warm beige */
.demo-card--trend {
    background:
        linear-gradient(
            145deg,
            #eadfd5,
            #cdb7a5
        );

    border-color: rgba(106, 75, 59, 0.30);
}


/* Business Map — green turquoise */
.demo-card--gis {
    background:
        linear-gradient(
            145deg,
            #08796e,
            #06423d
        );

    border-color: rgba(32, 199, 183, 0.40);
}
/* Mobil Bilservice — red and dark navy */

.demo-card--mobile {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(239, 51, 64, 0.30),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #7d1825,
            #35101a 58%,
            #111827
        );

    border-color: rgba(239, 51, 64, 0.45);
}

.demo-card--mobile:hover {
    border-color: rgba(255, 100, 112, 0.75);

    box-shadow:
        0 25px 55px rgba(80, 5, 18, 0.38);
}
/* Dark text for light-coloured cards */

.demo-card--gron .demo-content h3,
.demo-card--trend .demo-content h3 {
    color: #10251c;
}

.demo-card--gron .demo-content > p:not(.demo-category) {
    color: #315a3a;
}

.demo-card--trend .demo-content > p:not(.demo-category) {
    color: #59483e;
}

.demo-card--gron .demo-btn,
.demo-card--trend .demo-btn {
    color: #10251c;
}

.demo-card--gron .demo-number,
.demo-card--trend .demo-number {
    color: rgba(16, 37, 28, 0.09);
}
.demo-number {
    position: absolute;

    top: 20px;
    right: 28px;

    color: rgba(255,255,255,0.07);

    font-size: 80px;
    font-weight: 900;

    line-height: 1;
}

.demo-content {
    position: relative;
    z-index: 2;

    margin-top: auto;
}

.demo-type {
    color: #59c3ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.demo-content h3 {
    font-size: 30px;

    margin-bottom: 12px;
}

.demo-content > p:not(.demo-type) {
    max-width: 480px;

    color: #a9bdd0;

    margin-bottom: 25px;
}

.demo-btn {
    display: inline-block;

    color: white;

    font-weight: 800;

    border-bottom: 2px solid #59c3ff;

    padding-bottom: 4px;

    transition: color 0.25s ease;
}

.demo-btn:hover {
    color: #59c3ff;
}
/* ==========================================
   SERVICES
========================================== */

.services {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 7%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            #10253a,
            #0b1c2c
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;

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

.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(89,195,255,0.45);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.22);
}

.service-card span {
    display: inline-block;

    color: #59c3ff;

    font-size: 13px;
    font-weight: 900;

    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 25px;

    margin-bottom: 12px;
}

.service-card p {
    color: #a9bdd0;
}
/* ==========================================
   CONTACT
========================================== */

.contact {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 7% 110px;
}

.contact-box {
    padding: 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    background:
        linear-gradient(
            135deg,
            #102b43,
            #0b1c2c
        );

    border: 1px solid rgba(89,195,255,0.25);
    border-radius: 30px;
}

.contact-small {
    color: #59c3ff;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.contact-box h2 {
    max-width: 720px;

    font-size: 38px;
    line-height: 1.15;

    margin-bottom: 15px;
}

.contact-text {
    max-width: 650px;

    color: #a9bdd0;

    font-size: 17px;
}

.contact-actions {
    flex-shrink: 0;
}
/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: white;

    font-size: 30px;
    cursor: pointer;
}
/* ==========================================
   FOOTER
========================================== */

.site-footer {
    padding: 30px 7%;

    text-align: center;

    color: #8199ae;

    font-size: 14px;

    border-top: 1px solid rgba(255,255,255,0.08);

    background: #050d17;
}

.site-footer strong {
    color: #59c3ff;
}
/* ==========================================
   HERO WEBSITE — RIGHT SIDE
========================================== */

.hero-website {
    margin: 0;
    padding: 45px 0 45px 45px;

    border-left: 1px solid rgba(255,255,255,0.14);
}

.hero-website p {
    color: #91a8bd;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 15px;
}

.hero-website a {
    display: block;

    color: #59c3ff;

    font-size: clamp(55px, 5.5vw, 92px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: -3px;

    white-space: nowrap;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.hero-website a:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.hero-website span {
    display: block;

    margin-top: 15px;

    color: #7f96aa;

    font-size: 13px;

    letter-spacing: 2px;
}
/* ==========================================
   MOBILE
========================================== */

@media (max-width: 800px) {

  .navbar {
    position: relative;
}

.menu-toggle {
    display: block;
}

.nav-links {
    display: none;

    position: absolute;

    top: 100%;
    left: 6%;
    right: 6%;

    padding: 22px;

    flex-direction: column;
    align-items: flex-start;

    gap: 18px;

    background: #0b1c2c;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 0 0 20px 20px;

    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.nav-links.active {
    display: flex;
}
.services {
    padding: 70px 6%;
}
.contact {
    padding: 30px 6% 80px;
}

.contact-box {
    padding: 32px;

    flex-direction: column;
    align-items: flex-start;
}

.contact-box h2 {
    font-size: 30px;
}

.contact-actions {
    width: 100%;
}

.contact-actions .btn {
    width: 100%;
    text-align: center;
}
.services-grid {
    grid-template-columns: 1fr;
}
   .hero {
    min-height: auto;
}

.hero-content {
    display: block;
    padding: 70px 7%;
}

.hero-main {
    width: 100%;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-text {
    font-size: 17px;
}

/* Website block moves under hero content on mobile */
.hero-website {
    margin-top: 55px;
    padding: 32px 0 0;

    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.hero-website p {
    margin-bottom: 12px;
}

.hero-website a {
    font-size: clamp(44px, 11vw, 68px);

    white-space: normal;
    overflow-wrap: anywhere;

    letter-spacing: -2px;
}

.hero-website span {
    font-size: 12px;
    letter-spacing: 1.5px;
}
    .demos {
        padding: 70px 6%;
    }

    .section-heading h2 {
        font-size: 38px;
    }

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

}


@media (max-width: 500px) {

    .navbar {
        padding: 18px 5%;
    }

   .logo img {
    width: 125px;
}

  .hero h1 {
    font-size: 36px;
}

.hero-small {
    font-size: 11px;
    letter-spacing: 2px;
}

.hero-website {
    margin-top: 45px;
    padding-top: 28px;
}

.hero-website a {
    font-size: 46px;
    letter-spacing: -1.5px;
}

.hero-website p {
    font-size: 10px;
    letter-spacing: 2px;
}

    .hero-buttons {
        flex-direction: column;
    }
   .hero-main-website {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.hero-main-website > a {
    font-size: 23px;
}

    .btn {
        width: 100%;
        text-align: center;
    }

 .demo-card {
    min-height: 470px;
    padding: 28px;
}
   .demo-image {
    height: 190px;
    margin: -28px -28px 25px -28px;
}

    .demo-number {
        font-size: 65px;
    }

    .demo-content h3 {
        font-size: 26px;
    }
   

}
/* ==========================================
   DEMO CATEGORY BADGES
========================================== */

.demo-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    margin-bottom: 14px;
    padding: 7px 12px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.demo-category.ai {
    color: #ffb06f;

    background:
        rgba(255, 122, 26, 0.12);

    border:
        1px solid rgba(255, 122, 26, 0.38);
}

/* Website demos */
.demo-category.web {
    color: #59c3ff;
    background: rgba(89, 195, 255, 0.10);
    border: 1px solid rgba(89, 195, 255, 0.25);
}

/* GIS demos */
.demo-category.gis {
    color: #7ee2a8;
    background: rgba(126, 226, 168, 0.10);
    border: 1px solid rgba(126, 226, 168, 0.25);
}
.demo-category.gis {
    color: #20c7b7;
}
/* Individual card button accents */

.demo-card--superclip .demo-btn {
    border-color: #59c3ff;
}

.demo-card--ai .demo-btn {
    border-color: #ff7a1a;
}

.demo-card--ai .demo-btn:hover {
    color: #ffad66;
}

.demo-card--express .demo-btn {
    border-color: #ff8a8a;
}

.demo-card--gron .demo-btn {
    border-color: #39864a;
}

.demo-card--trend .demo-btn {
    border-color: #795843;
}

.demo-card--gis .demo-btn {
    border-color: #63f5dc;
}
.demo-category.mechanic {
    color: #ffb4ba;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 180, 186, 0.35);
}

.demo-card--mobile .demo-btn {
    border-color: #ff7b86;
}
/* Smart Catering — warm reddish plum */

.demo-card--catering {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 137, 112, 0.25),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #7a2638,
            #351422
        );

    border-color: rgba(255, 137, 112, 0.45);
}

.demo-card--catering:hover {
    border-color: rgba(255, 166, 145, 0.8);

    box-shadow:
        0 25px 55px rgba(84, 12, 32, 0.4);
}

.demo-category.catering {
    color: #ffd0c5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 180, 165, 0.35);
}

.demo-card--catering .demo-btn {
    border-color: #ff9d88;
}
/* ==========================================
   NEW THREE-COLUMN HERO
========================================== */

.hero {
    min-height: 760px;
}

.hero-content.hero-content--three-columns {
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 80px 4%;

    display: grid;
    grid-template-columns:
        minmax(280px, 0.9fr)
        minmax(380px, 1.25fr)
        minmax(330px, 0.95fr);

    align-items: center;
    gap: 45px;
}


/* LEFT SIDE */

.hero-main--left {
    position: relative;
    z-index: 2;
}

.hero-main--left h1 {
    font-size: clamp(42px, 4vw, 65px);
}

.hero-main--left .hero-text {
    font-size: 17px;
    line-height: 1.75;
}


/* MIDDLE WEBSITE LINK */

.hero-website-center {
    min-height: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-website-center > p {
    margin-bottom: 18px;

    color: #8fa8bd;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero-website-link {
    display: flex;
    align-items: baseline;
    justify-content: center;

    color: #ffffff;

    font-size: clamp(50px, 5vw, 88px);
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 0.95;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.hero-website-link strong {
    color: #59c3ff;
    font-size: 0.55em;
    letter-spacing: -2px;
}

.hero-website-link:hover {
    color: #59c3ff;
    transform: scale(1.04);
}

.hero-website-description {
    margin-top: 24px;

    color: #7890a5;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* RIGHT DEMO MENU */

.hero-demo-menu {
    padding: 25px;

    background: rgba(7, 17, 31, 0.72);

    border: 1px solid rgba(89, 195, 255, 0.2);
    border-radius: 24px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(15px);
}

.demo-menu-heading {
    margin-bottom: 16px;
}

.demo-menu-heading p {
    margin-bottom: 5px;

    color: #59c3ff;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.demo-menu-heading h2 {
    margin-bottom: 4px;

    color: #ffffff;

    font-size: 24px;
}

.demo-menu-heading > span {
    color: #7890a5;
    font-size: 11px;
}

.hero-demo-list {
    display: grid;
    gap: 6px;
}

.hero-demo-link {
    display: grid;
    grid-template-columns: 30px 1fr 20px;
    align-items: center;
    gap: 10px;

    min-height: 48px;
    padding: 7px 10px;

    color: #ffffff;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;

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

.hero-demo-link > span {
    color: #59c3ff;

    font-size: 11px;
    font-weight: 800;
}

.hero-demo-link div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-demo-link strong {
    color: #ffffff;
    font-size: 12px;
}

.hero-demo-link small {
    color: #7890a5;
    font-size: 9px;
}

.hero-demo-link i {
    color: #59c3ff;

    font-size: 14px;
    font-style: normal;

    transition: transform 0.25s ease;
}

.hero-demo-link:hover {
    transform: translateX(5px);

    background: rgba(89, 195, 255, 0.1);

    border-color: rgba(89, 195, 255, 0.4);
}

.hero-demo-link:hover i {
    transform: translateX(3px);
}

.hero-demo-link--new {
    background: rgba(177, 66, 87, 0.16);
    border-color: rgba(255, 126, 145, 0.3);
}

.hero-demo-link--new > span,
.hero-demo-link--new i {
    color: #ff8d9e;
}
/* ==========================================
   LARGER AND COLOURED DEMO LINKS
========================================== */

.hero-demo-link {
    min-height: 57px;
    padding: 9px 13px;

    grid-template-columns: 34px 1fr 22px;
}

.hero-demo-link > span {
    font-size: 13px;
}

.hero-demo-link strong {
    font-size: 14px;
    line-height: 1.25;
}

.hero-demo-link small {
    margin-top: 3px;

    font-size: 10.5px;
    line-height: 1.25;
}

.hero-demo-link i {
    font-size: 17px;
}


/* 01 — Salong Superclip */

.hero-demo-link:nth-child(1) {
    background: linear-gradient(
        135deg,
        rgba(42, 112, 160, 0.34),
        rgba(22, 52, 80, 0.45)
    );

    border-color: rgba(89, 195, 255, 0.36);
}


/* 02 — AI Automation */

.hero-demo-link:nth-child(2) {
    background: linear-gradient(
        135deg,
        rgba(128, 72, 190, 0.34),
        rgba(57, 31, 91, 0.45)
    );

    border-color: rgba(181, 119, 255, 0.38);
}


/* 03 — Express Bilverkstad */

.hero-demo-link:nth-child(3) {
    background: linear-gradient(
        135deg,
        rgba(178, 53, 58, 0.35),
        rgba(82, 25, 30, 0.46)
    );

    border-color: rgba(255, 108, 112, 0.38);
}


/* 04 — Grön Städ */

.hero-demo-link:nth-child(4) {
    background: linear-gradient(
        135deg,
        rgba(45, 128, 82, 0.35),
        rgba(20, 66, 45, 0.46)
    );

    border-color: rgba(102, 220, 147, 0.36);
}


/* 05 — Trend Frisören */

.hero-demo-link:nth-child(5) {
    background: linear-gradient(
        135deg,
        rgba(157, 103, 66, 0.35),
        rgba(77, 46, 31, 0.46)
    );

    border-color: rgba(224, 160, 112, 0.38);
}


/* 06 — Företagskarta */

.hero-demo-link:nth-child(6) {
    background: linear-gradient(
        135deg,
        rgba(20, 130, 126, 0.35),
        rgba(11, 66, 67, 0.46)
    );

    border-color: rgba(55, 222, 207, 0.36);
}


/* 07 — Pizza Delivery */

.hero-demo-link:nth-child(7) {
    background: linear-gradient(
        135deg,
        rgba(190, 104, 40, 0.36),
        rgba(92, 46, 19, 0.46)
    );

    border-color: rgba(255, 159, 82, 0.4);
}


/* 08 — Mobil Bilservice */

.hero-demo-link:nth-child(8) {
    background: linear-gradient(
        135deg,
        rgba(53, 88, 181, 0.36),
        rgba(25, 45, 98, 0.48)
    );

    border-color: rgba(99, 141, 255, 0.4);
}


/* 09 — Smart Catering */

.hero-demo-link:nth-child(9) {
    background: linear-gradient(
        135deg,
        rgba(170, 54, 83, 0.38),
        rgba(83, 24, 45, 0.48)
    );

    border-color: rgba(255, 112, 145, 0.42);
}


/* Brighter text and arrows */

.hero-demo-link:nth-child(1) > span,
.hero-demo-link:nth-child(1) i {
    color: #71ceff;
}

.hero-demo-link:nth-child(2) > span,
.hero-demo-link:nth-child(2) i {
    color: #c38cff;
}

.hero-demo-link:nth-child(3) > span,
.hero-demo-link:nth-child(3) i {
    color: #ff8589;
}

.hero-demo-link:nth-child(4) > span,
.hero-demo-link:nth-child(4) i {
    color: #72e49f;
}

.hero-demo-link:nth-child(5) > span,
.hero-demo-link:nth-child(5) i {
    color: #efb080;
}

.hero-demo-link:nth-child(6) > span,
.hero-demo-link:nth-child(6) i {
    color: #54e6d8;
}

.hero-demo-link:nth-child(7) > span,
.hero-demo-link:nth-child(7) i {
    color: #ffad68;
}

.hero-demo-link:nth-child(8) > span,
.hero-demo-link:nth-child(8) i {
    color: #86a8ff;
}

.hero-demo-link:nth-child(9) > span,
.hero-demo-link:nth-child(9) i {
    color: #ff8faa;
}


/* Keep the colours visible when hovering */

.hero-demo-link:hover {
    filter: brightness(1.22);
    border-color: rgba(255, 255, 255, 0.55);
}
/* ==========================================
   MIDDLE-COLUMN DEMO SLIDESHOW
========================================== */

.hero-website-center {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 610px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;

    background: #07111f;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35);
}


/* Slideshow container */

.middle-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;

    overflow: hidden;
}


/* Individual images */

.middle-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.08);

    animation: middleDemoSlideshow 45s infinite;
}


/* One image starts every five seconds */

.middle-slide:nth-child(1) {
    animation-delay: 0s;
}

.middle-slide:nth-child(2) {
    animation-delay: 5s;
}

.middle-slide:nth-child(3) {
    animation-delay: 10s;
}

.middle-slide:nth-child(4) {
    animation-delay: 15s;
}

.middle-slide:nth-child(5) {
    animation-delay: 20s;
}

.middle-slide:nth-child(6) {
    animation-delay: 25s;
}

.middle-slide:nth-child(7) {
    animation-delay: 30s;
}

.middle-slide:nth-child(8) {
    animation-delay: 35s;
}

.middle-slide:nth-child(9) {
    animation-delay: 40s;
}


/* Dark overlay for readable text */

.middle-slideshow-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 24, 0.48),
            rgba(4, 12, 24, 0.8)
        ),
        radial-gradient(
            circle at center,
            rgba(9, 29, 48, 0.18),
            rgba(3, 10, 20, 0.65)
        );

    pointer-events: none;
}


/* Website text above the images */

.hero-website-content {
    position: relative;
    z-index: 3;

    width: 100%;
    min-height: 610px;

    padding: 40px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-website-content > p {
    margin-bottom: 18px;

    color: #d5eaff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;

    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-website-content .hero-website-description {
    color: #d3e2ee;

    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}


/* Make CBWEBGIS.SE clearly visible */

.hero-website-content .hero-website-link {
    padding: 18px 20px;

    background: rgba(4, 13, 25, 0.58);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(8px);

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}


/* Fade and subtle cinematic zoom */

@keyframes middleDemoSlideshow {

    0% {
        opacity: 0;
        transform: scale(1.08);
    }

    2% {
        opacity: 1;
    }

    8% {
        opacity: 1;
    }

    11% {
        opacity: 0;
        transform: scale(1.16);
    }

    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}


/* Accessibility: stop animation when requested */

@media (prefers-reduced-motion: reduce) {

    .middle-slide {
        animation: none;
        opacity: 0;
    }

    .middle-slide:first-child {
        opacity: 1;
        transform: scale(1);
    }

}
/* =========================================================
   FINAL MOBILE RESPONSIVE FIX
   CB WEB & GIS PORTFOLIO
   IMPORTANT: KEEP THIS AT THE VERY BOTTOM OF STYLE.CSS
========================================================= */


/* =========================================================
   TABLET + MOBILE
========================================================= */

@media (max-width: 900px) {

    /* -----------------------------
       HERO
    ----------------------------- */

    .hero {
        min-height: auto;
        display: block;
    }


    .hero-content.hero-content--three-columns {
        width: 100%;
        max-width: none;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 35px;

        padding: 55px 6% 70px;
    }


    /* LEFT HERO TEXT */

    .hero-main--left {
        width: 100%;
        max-width: 680px;
    }


    .hero-main--left h1 {
        max-width: 650px;

        font-size: clamp(40px, 8vw, 58px);

        line-height: 1.03;

        letter-spacing: -2px;
    }


    .hero-main--left .hero-text {
        max-width: 600px;

        font-size: 16px;

        line-height: 1.7;
    }


    /* HERO BUTTONS */

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;

        gap: 12px;
    }


    /* -----------------------------
       MIDDLE SLIDESHOW
    ----------------------------- */

    .hero-website-center {
        width: 100%;

        min-height: 440px;

        border-left: none;
        border-right: none;

        border-radius: 22px;
    }


    .hero-website-content {
        min-height: 440px;

        padding: 35px 20px;
    }


    .hero-website-link {
        font-size: clamp(42px, 10vw, 68px);

        letter-spacing: -3px;

        flex-wrap: wrap;
    }


    .hero-website-description {
        font-size: 11px;

        letter-spacing: 1.5px;
    }


    /* -----------------------------
       DEMO MENU
    ----------------------------- */

    .hero-demo-menu {
        width: 100%;

        padding: 22px;

        border-radius: 20px;
    }


    .hero-demo-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .hero-demo-link {
        min-width: 0;

        min-height: 60px;
    }


    /* -----------------------------
       DEMO GRID
    ----------------------------- */

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


    /* -----------------------------
       SERVICES
    ----------------------------- */

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


    /* -----------------------------
       CONTACT
    ----------------------------- */

    .contact-box {
        flex-direction: column;

        align-items: flex-start;
    }


    .contact-actions {
        width: 100%;
    }


    .contact-actions .btn {
        width: 100%;

        text-align: center;
    }
}



/* =========================================================
   MOBILE PHONES
========================================================= */

@media (max-width: 600px) {

    /* -----------------------------
       HEADER
    ----------------------------- */

    .navbar {
        padding: 16px 5%;
    }


    .logo img {
        width: 120px;
    }


    .menu-toggle {
        font-size: 27px;
    }


    .nav-links {
        left: 4%;
        right: 4%;

        padding: 20px;
    }



    /* -----------------------------
       HERO
    ----------------------------- */

    .hero {
        min-height: auto;
    }


    .hero-content.hero-content--three-columns {
        display: flex !important;

        flex-direction: column;

        width: 100%;

        padding:
            45px 5% 60px;

        gap: 30px;
    }



    /* -----------------------------
       HERO INTRO
    ----------------------------- */

    .hero-main--left {
        width: 100%;
    }


    .hero-small {
        margin-bottom: 14px;

        font-size: 9px;

        letter-spacing: 1.8px;
    }


    .hero-main--left h1,
    .hero h1 {
        max-width: 100%;

        margin-bottom: 20px;

        font-size: clamp(36px, 11vw, 48px);

        line-height: 1.02;

        letter-spacing: -1.8px;

        overflow-wrap: break-word;
    }


    .hero-text,
    .hero-main--left .hero-text {
        max-width: 100%;

        margin-bottom: 27px;

        font-size: 15px;

        line-height: 1.65;
    }



    /* -----------------------------
       HERO BUTTONS
    ----------------------------- */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .hero-buttons .btn {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        min-height: 52px;

        padding: 13px 18px;

        text-align: center;
    }



    /* =====================================================
       MAIN WEBSITE SLIDESHOW
    ===================================================== */

    .hero-website-center {
        width: 100%;

        min-width: 0;

        min-height: 360px;

        margin: 5px 0 0;

        border-radius: 20px;

        overflow: hidden;
    }


    .hero-website-content {
        width: 100%;

        min-height: 360px;

        padding: 28px 16px;
    }


    .hero-website-content > p {
        margin-bottom: 13px;

        font-size: 8px;

        letter-spacing: 2px;
    }


    .hero-website-content .hero-website-link {
        max-width: 100%;

        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        padding: 14px 13px;

        font-size: clamp(34px, 11vw, 52px);

        line-height: 1;

        letter-spacing: -2px;

        white-space: normal;

        overflow-wrap: anywhere;
    }


    .hero-website-link strong {
        font-size: 0.52em;

        letter-spacing: -1px;
    }


    .hero-website-content
    .hero-website-description {
        margin-top: 17px;

        font-size: 9px;

        line-height: 1.5;

        letter-spacing: 1.2px;
    }



    /* =====================================================
       DEMO MENU
    ===================================================== */

    .hero-demo-menu {
        width: 100%;

        min-width: 0;

        padding: 18px;

        border-radius: 18px;
    }


    .demo-menu-heading {
        margin-bottom: 15px;
    }


    .demo-menu-heading p {
        font-size: 8px;

        letter-spacing: 1.5px;
    }


    .demo-menu-heading h2 {
        font-size: 22px;
    }


    .demo-menu-heading > span {
        font-size: 10px;
    }


    .hero-demo-list {
        display: grid;

        grid-template-columns: 1fr;

        gap: 7px;
    }


    .hero-demo-link {
        width: 100%;

        min-width: 0;

        min-height: 57px;

        padding: 9px 11px;

        grid-template-columns:
            30px minmax(0, 1fr) 20px;

        gap: 9px;
    }


    .hero-demo-link > span {
        font-size: 11px;
    }


    .hero-demo-link strong {
        font-size: 12px;

        white-space: normal;
    }


    .hero-demo-link small {
        font-size: 9px;

        white-space: normal;
    }


    .hero-demo-link i,
    .hero-demo-arrow {
        font-size: 14px;
    }



    /* =====================================================
       DEMO PORTFOLIO SECTION
    ===================================================== */

    .demos {
        padding:
            65px 5%;
    }


    .section-heading {
        margin-bottom: 35px;
    }


    .section-heading > p {
        font-size: 10px;

        letter-spacing: 2px;
    }


    .section-heading h2 {
        font-size: clamp(34px, 10vw, 43px);

        line-height: 1.08;
    }


    .section-heading > span {
        font-size: 15px;

        line-height: 1.6;
    }


    .demo-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .demo-card {
        width: 100%;

        min-width: 0;
        min-height: auto;

        padding: 24px;

        border-radius: 22px;
    }


    .demo-image {
        height: 200px;

        margin:
            -24px -24px 24px;
    }


    .demo-number {
        top: 16px;
        right: 20px;

        font-size: 58px;
    }


    .demo-content h3 {
        font-size: 25px;

        line-height: 1.2;
    }


    .demo-content > p:not(.demo-type) {
        font-size: 14px;

        line-height: 1.65;
    }



    /* =====================================================
       SERVICES
    ===================================================== */

    .services {
        padding:
            65px 5%;
    }


    .services-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .service-card {
        padding: 26px;

        border-radius: 20px;
    }



    /* =====================================================
       CONTACT
    ===================================================== */

    .contact {
        padding:
            20px 5% 70px;
    }


    .contact-box {
        width: 100%;

        padding: 27px 22px;

        border-radius: 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 28px;
    }


    .contact-box h2 {
        font-size: clamp(28px, 8vw, 36px);

        line-height: 1.15;
    }


    .contact-text {
        font-size: 15px;

        line-height: 1.65;
    }


    .contact-actions {
        width: 100%;
    }


    .contact-actions .btn {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        padding: 15px 17px;
    }



    /* =====================================================
       FOOTER
    ===================================================== */

    .site-footer {
        padding:
            27px 5%;

        font-size: 12px;

        line-height: 1.7;
    }

}



/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .hero-content.hero-content--three-columns {
        padding-left: 16px;
        padding-right: 16px;
    }


    .hero-main--left h1,
    .hero h1 {
        font-size: 34px;
    }


    .hero-website-center,
    .hero-website-content {
        min-height: 320px;
    }


    .hero-website-content
    .hero-website-link {
        font-size: 33px;
    }


    .hero-demo-menu {
        padding: 14px;
    }


    .hero-demo-link {
        padding:
            8px 9px;
    }


    .demo-card {
        padding: 20px;
    }


    .demo-image {
        margin:
            -20px -20px 22px;

        height: 180px;
    }

}