/* Template Color Definitions */
:root {
    --page-background: #03070c;
    --category-ti: #20e0ff;
    --category-website: #7dff7a;
    --category-networking: #9b9b9b;
    --category-security: #ff57a1;
    --category-automation: #ffa94d;
    --category-publication: #4b0082;
    --category-publications: #c39eff;
    --category-client: #3c88fb;
    --page-gradient: linear-gradient(135deg, #04080f 0%, #050c14 100%);
    --header-background: rgba(4, 8, 12, 0.6);
    --footer-background: rgba(41, 77, 99, .1);
    --card-background: rgba(18, 26, 34, 0.92);
    --cta-background: #65fff1;
    --cta-hover: #7efff7;
    --generic-accent: rgba(0, 255, 200, 0.2);
    --base-font: #e8f7ff;
    --price-background: rgba(198, 242, 242, .75);
    --footer-background-2: rgba(198, 242, 242, .04);
    --text-light: #e5f7ff;
    --accent-blue: #00eaff;
    --grid-lines: linear-gradient(rgba(255, 255, 255, 0.0045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.0045) 1px, transparent 1px);
    --presence-blue-glow: #00eaff;
    --security-amethyst-glow: #c87bff;
    --develop-emerald-glow: #5af5b5;
}

*[data-category="hosting"] {
    --border-color: rgb(70, 130, 180);
    --glow-color: rgba(70, 130, 180, 0.4);
    --background-color: rgba(88, 179, 255, 0.4);
    --background-color-active: rgb(120, 170, 210, 0.4);
    --pricing-box-bgcolor: rgba(88, 179, 255, 0.08);
    --pricing-box-bordercolor: rgba(88, 179, 255, 0.3);
    --pricing-box-textcolor: #58b3ff;
    --cta-bgcolor: #1b5869;
    --text-color: rgb(194, 225, 254);
}

*[data-category="security"] {
    --border-color: rgb(153, 102, 204);
    --glow-color: rgba(153, 102, 204, 0.4);
    --background-color: rgba(200, 123, 255, 0.4);
    --background-color-active: rgb(190, 145, 225, 0.4);
    --pricing-box-bgcolor: rgba(200, 123, 255, 0.08);
    --pricing-box-bordercolor: rgba(200, 123, 255, 0.3);
    --pricing-box-textcolor: #c87bff;
    --cta-bgcolor: #6a3391;
    --text-color: rgb(229, 212, 255);
}

*[data-category="development"] {
    --border-color: rgb(80, 200, 120);
    --glow-color: rgba(80, 200, 120, 0.4);
    --background-color: rgba(102, 255, 179, 0.4);
    --background-color-active: rgb(130, 225, 160, 0.4);
    --pricing-box-bgcolor: rgba(102, 255, 179, 0.08);
    --pricing-box-bordercolor: rgba(102, 255, 179, 0.3);
    --pricing-box-textcolor: #66ffb3;
    --cta-bgcolor: #2fa865;
    --text-color: rgb(208, 255, 229);
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 113, 130, 0.5);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(36, 113, 130, 0.0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(36, 113, 130, 0.5);
    }
}

/* Base Page Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
}

html,
body {
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    width: 100%;
    height: auto;
}

body {
    background: var(--page-gradient);
    background-repeat: no-repeat;
    background-size: 140% 140%;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    color: var(--base-font);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;

}

/* Optional alt background: add class="alt-background" to body to swap to a softer mesh */
body.alt-background {
    background: radial-gradient(circle at 12% 18%, rgba(0, 234, 255, 0.08), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(90, 255, 200, 0.06), transparent 32%),
        radial-gradient(circle at 60% 70%, rgba(0, 140, 255, 0.05), transparent 35%),
        linear-gradient(135deg, #050b12 0%, #080f17 100%);
    background-size: cover;
}

body.portfolio-page::before,
body.portfolio-page::after,
body.services-page::before,
body.services-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.portfolio-page::before,
body.services-page::before {
    background:
        repeating-linear-gradient(90deg, transparent 0 96px, rgba(255, 255, 255, 0.02) 96px 98px, transparent 98px 192px),
        repeating-linear-gradient(0deg, transparent 0 96px, rgba(255, 255, 255, 0.02) 96px 98px, transparent 98px 192px);
    mix-blend-mode: screen;
    opacity: 0.18;
}

body.portfolio-page::after,
body.services-page::after {
    background:
        radial-gradient(40% 40% at 82% 18%, rgba(32, 224, 255, 0.3), transparent 55%),
        radial-gradient(50% 50% at 18% 82%, rgba(125, 255, 122, 0.22), transparent 60%),
        radial-gradient(55% 55% at 50% 50%, rgba(195, 158, 255, 0.16), transparent 65%);
    filter: blur(36px);
    opacity: 0.7;
}

header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    background: rgba(3, 12, 20, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.1rem;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.8rem;
}


header .hero-nav {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.35rem 0.1rem;
}

.header-shell {
    width: min(1100px, 94vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}


.brand-block {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
}

.header-shell .hero-nav-strip {
    grid-column: 1 / -1;
    margin-top: 0;
    width: 100%;
}

.brand-text h1 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin: 0 0 0.1rem;
}

.brand-text p {
    margin: 0;
    color: #cfe9f5;
    line-height: 1.4;
}

.header-tags {
    display: none;
}

header .hero-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    color: #dff7ff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s ease;
}

header .hero-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #7efff7;
}

header.homepage {
    grid-template-columns: minmax(110px, 14%) 1fr;
    align-items: center;
}

header>img {
    transition: transform 0.3s ease, box-shadow 0.3s;
    filter: drop-shadow(0 0 16px rgba(0, 255, 234, 0.6));
}

header h1 {
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    text-align: left;
    color: rgb(48, 255, 255);
    text-shadow: 0 0 14px rgba(94, 231, 255, 0.45);
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

/* Homepage layout */
.home-shell {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: rgba(15, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%);
    pointer-events: none;
}


.hero-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a7e8ff;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0;
    color: #dff7ff;
    line-height: 1.3;
    text-align: left;
}

.hero-lede {
    margin: 0;
    color: #d1e9f5;
    font-size: 1.05rem;
    line-height: 1.55;
}

.cta-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.cta-primary,
.cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cta-primary {
    background: rgba(0, 200, 255, 0.8);
    color: #011018;
    border: none;
}

.cta-ghost {
    background: transparent;
    color: #dff7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
    background: rgba(0, 220, 255, 0.9);
}

.cta-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #7efff7;
}

.hero-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #bfeff7;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 240px;
    display: grid;
    place-items: center;
}

.terminal-window {
    width: 100%;
    max-width: 480px;
    background: #0a0e14;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: 'Share Tech Mono', monospace;
}

.terminal-header {
    background: #1a1e24;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: #888;
}

.terminal-body {
    padding: 1rem;
    min-height: 180px;
    color: #e8e8e8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.prompt {
    color: #00ff88;
    font-weight: bold;
}

.command {
    color: #00d4ff;
}

.terminal-output {
    color: #fff;
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.cursor {
    animation: blink 1s infinite;
    color: #00ff88;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.section-title-row h2 {
    margin: 0;
    color: #dff7ff;
    text-align: left;
}

.section-link {
    text-decoration: none;
    color: #a7e8ff;
    font-weight: 700;
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 1rem;
}

.home-card {
    position: relative;
    padding: 1.2rem 1.25rem 1.1rem 1.25rem;
    background: rgba(20, 30, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100%;
}

.home-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--border-color, #00eaff);
    opacity: 0.5;
}

.home-card h3 {
    margin: 0;
    color: #dff7ff;
    letter-spacing: 0.4px;
    text-align: left;
}

.home-card p {
    margin: 0;
    color: #d1e9f5;
    line-height: 1.55;
}

.home-card .pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #bfeff7;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.home-card a {
    color: #a7e8ff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.home-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    overflow: visible;
}

.trust-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: visible;
}

.trust-card h4 {
    margin: 0 0 0.35rem;
    color: #dff7ff;
    text-align: left;
}

.trust-card p {
    margin: 0;
    color: #cfe7f5;
    line-height: 1.5;
}

.trust-card.certifications {
    background: linear-gradient(140deg, rgba(0, 234, 255, 0.08), rgba(102, 255, 179, 0.06));
    border-color: rgba(0, 234, 255, 0.2);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 234, 255, 0.1) inset;
}

.trust-card .cert-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #cfe7f5;
}

.trust-card .cert-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
}

.trust-card .cert-list a {
    color: #a7e8ff;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
}

.trust-card .cert-list a:hover {
    color: #7efff7;
}

.trust-card .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 4px;
    background: rgba(10, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5fdff;
    font-weight: 600;
    width: 100%;
    justify-content: space-between;
    max-width: 100%;
    flex-wrap: wrap;
    text-align: left;
    word-break: break-word;
    position: relative;
    z-index: 1;
    cursor: default;
}

.trust-card .cert-name {
    flex: 1 1 auto;
    min-width: 0;
}

.trust-card .cert-badge .cert-details {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    max-width: min(360px, calc(100vw - 2.5rem));
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(5, 14, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    color: #dff7ff;
    z-index: 5;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.trust-card .cert-badge:hover .cert-details,
.trust-card .cert-badge:focus-within .cert-details {
    display: block;
}


.trust-card .cert-details strong {
    display: block;
    color: #f5fdff;
    margin-bottom: 0.2rem;
}

.trust-card .cert-details a {
    color: #a7e8ff;
    font-weight: 700;
    text-decoration: none;
}

.trust-card .cert-details a:hover {
    color: #7efff7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
}

.testimonial-card {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 234, 255, 0.05) inset;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.testimonial-card .quote {
    margin: 0;
    color: #dff7ff;
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #bfeff7;
    font-weight: 700;
}

.testimonial-card .badge {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.2);
    color: #eaffff;
    font-weight: 800;
}

.testimonial-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.testimonial-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #dff7ff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.testimonial-nav button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.testimonial-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cta-strip {
    padding: 1.15rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.18), rgba(102, 255, 179, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.cta-strip h3 {
    margin: 0;
    color: #f6fdff;
    text-align: left;
}

.cta-strip p {
    margin: 0;
    color: #e5f5ff;
    text-align: left;
}

.cta-strip .cta-ghost {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
    color: #eaffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
    .home-hero {
        padding: 1.1rem;
    }

    .home-card {
        padding: 1rem;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-shell {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    header {
        padding: 0.8rem 0.85rem 1rem;
    }

    .hero-nav-strip {
        width: 100%;
        margin: 0.4rem 0 0.6rem;
    }
}

header.homepage .hero-nav {
    display: none;
}

.hero-nav-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(120deg, rgba(5, 14, 22, 0.82), rgba(5, 18, 28, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 234, 255, 0.08) inset;
    position: sticky;
    top: 0;
    z-index: 8;
    backdrop-filter: blur(12px);
    width: 100%;
    margin: 0.4rem 0 0.6rem;
    border-radius: 14px;
}

.hero-nav-strip a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-nav-strip a:hover {
    color: #7efff7;
    background: rgba(0, 234, 255, 0.08);
    box-shadow: 0 0 14px rgba(0, 234, 255, 0.18);
    transform: translateY(-1px);
}

.hero-nav-strip a.active {
    color: #7efff7;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 16px rgba(0, 234, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-nav-strip a::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.8), rgba(102, 255, 179, 0.8));
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.25);
}

.hero-nav-strip a:hover::after,
.hero-nav-strip a.active::after {
    width: 80%;
}

.hero-nav-strip .cta-nav {
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.8), rgba(102, 255, 179, 0.8));
    color: #011018;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0, 234, 255, 0.32);
}

.hero-nav-strip .cta-nav:hover {
    box-shadow: 0 16px 32px rgba(0, 234, 255, 0.36);
}

header p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #cccccc;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

header>img:hover {
    transform: scale(1.05);
}

header nav {
    display: flex;
    flex-direction: row;
}

header nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16pt;
    position: relative;
    display: block;
    padding: 1rem;
    transition: color 1s ease;
    letter-spacing: 0.5px;
}

header nav a:hover {
    color: var(--accent-blue);
}

header nav a.active {
    color: #2a8da5;
}

header nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 20%;
    background: linear-gradient(to right, rgba(96, 148, 160, 0.3), rgba(42, 141, 165, 0.3));
    width: 100%;
}

header nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.7), rgba(90, 255, 200, 0.7));
    transition: width 0.25s ease;
}

header nav a:hover::before,
header nav a.active::before {
    width: 100%;
}

main {
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    flex: 1;
    padding: 1rem;
    /* grow and fill space */
}

body.portfolio-page main {
    width: min(1100px, 94vw);
    margin: 1.25rem auto 2.5rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

body.services-page main {
    width: min(1100px, 94vw);
    margin: 1.25rem auto 2.5rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.home-page main {
    width: min(1100px, 94vw);
    margin: 1.35rem auto 2.6rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

footer {
    color: var(--base-font);
    padding: 1.6rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background:
        radial-gradient(70% 70% at 18% 20%, rgba(0, 234, 255, 0.1), transparent 55%),
        radial-gradient(60% 60% at 82% 30%, rgba(255, 87, 161, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(0, 20, 30, 0.78), rgba(0, 10, 20, 0.94));
    border-top: 1px solid rgba(0, 234, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 234, 255, 0.08) inset;
}

footer:after {
    pointer-events: none;
    content: ' ';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 234, 255, 0.12), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(90, 255, 200, 0.1), transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(255, 87, 161, 0.08), transparent 50%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 10, 20, 0.42) 100%);
    filter: blur(6px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.footer-content h2,
.footer-content h3 {
    color: #f3fdff;
    margin-bottom: 0.5rem;
}

.footer-content p,
.footer-content a {
    text-decoration: none;
    margin: 0;
    color: #cfefff;
    line-height: 1.6;
}

.footer-content ul {
    list-style-type: none;
    margin: 0;
}

.footer-content a:hover {
    text-decoration: underline;
    color: #7efff7;
}

.footer-bottom {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #7ca4ac;
}

#larger-logo {
    width: 15%;
    height: auto !important;
}

#square-logo {
    width: clamp(102px, 10.8vw, 142px);
    height: auto !important;
    filter: drop-shadow(0 0 12px rgba(91, 236, 255, 0.45));
}


section.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem 1rem;
    margin: 1rem 0;
    justify-content: space-around;
    box-sizing: border-box;
    align-items: stretch;
}

.portfolio-shell {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.portfolio-page .portfolio-filter {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(6px);
}

.portfolio-page .portfolio-filter a {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.portfolio-page .portfolio-filter a.active {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 234, 255, 0.25);
}

.services-shell {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.services-page .category-filter {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(6px);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.services-page .filter-button {
    min-width: 140px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 0.65rem 1.05rem;
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.28s ease, background-color 0.25s ease, color 0.2s ease, opacity 0.2s ease;
    color: #bfeff7;
}

.services-page .filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 234, 255, 0.18);
    color: #7efff7;
}

.services-page .filter-button.active {
    background: rgba(255, 255, 255, 0.08);
    color: #7efff7;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), 0 0 14px rgba(0, 234, 255, 0.22);
}

.card {
    box-sizing: border-box;
    padding: 0.75rem;
    border-radius: 14px;
    text-align: center;
    margin: 0 0.5rem;
    min-height: 60vh;
    color: white;
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 22px rgba(0, 234, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.homepage-grid .card.services {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), 0 0 16px rgba(0, 234, 255, 0.14);
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.92), rgba(5, 10, 18, 0.96));
}

.homepage-grid .card.services .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
}

.homepage-grid .card.services .cta-button {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.homepage-grid .card.services .cta-button a {
    font-weight: 700;
    letter-spacing: 0.8px;
}

.card>a {
    margin: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


.card .card-icon {
    display: block;
    font-size: 3rem;
    margin: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.45));
}

.cta {
    background: linear-gradient(120deg, #65fff1, #00eaff, #7efff7);
    border-radius: 10px;
    padding: .85rem 1.8rem;
    box-sizing: border-box;
    color: #001419;
    display: inline-block;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.25);
    cursor: pointer;
    cursor: hand;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.15s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.cta.ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(0, 234, 255, 0.35);
    box-shadow: none;
}

.featured-strip {
    width: min(1100px, 92vw);
    margin: 0.75rem auto 0.75rem;
    padding: 1.25rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.92), rgba(5, 10, 18, 0.97));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 234, 255, 0.18);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.featured-strip::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    pointer-events: none;
    box-shadow: inset 0 0 12px rgba(0, 234, 255, 0.08);
}

.featured-strip .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7efff7;
    font-weight: 700;
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
}

.featured-strip h2 {
    margin: 0 0 0.35rem;
    text-align: left;
}

.featured-strip p {
    margin: 0;
    color: var(--text-light);
    text-align: left;
}

.featured-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-actions .cta,
.featured-actions .cta.ghost {
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.featured-actions .cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(0, 234, 255, 0.35), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.featured-actions .cta.ghost:hover {
    background: rgba(0, 234, 255, 0.08);
    box-shadow: 0 0 14px rgba(0, 234, 255, 0.2);
}

.services-nav-link {
    margin-top: 0.25rem;
    text-align: center;
    font-size: 0.95rem;
    grid-column: span 3;
}

.services-nav-link a {
    color: #b2ffff;
    text-decoration: none;
    opacity: 0.92;
    font-weight: 700;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.services-nav-link a:hover {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.35);
}

.services-nav-card {
    grid-column: span 3;
    display: flex;
    justify-content: center;
}

.services-nav-card .services-nav-link {
    grid-column: auto;
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.85), rgba(5, 10, 18, 0.9));
    border: 1px solid rgba(0, 234, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 234, 255, 0.14);
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    min-width: 260px;
}

.services-nav-card .services-nav-link p {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.4px;
}

.card:hover,
.cta-button:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 22px rgba(0, 234, 255, 0.1);
}

.cta>a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.03);
}

* {
    font-family: "Inter", sans-serif;
    color: var(--base-font);
}


div.keyed-list {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 0.5rem 0;
    text-align: left;
    align-items: stretch;
    box-sizing: border-box;
    font-size: 85%;
    margin: 1rem 0;
}

div.keyed-list>.item-name {
    font-weight: bold;
}

div.keyed-list>.item-name,
div.keyed-list>.item-desc,
div.price-list>.item-name,
div.price-list>.item-price {
    box-sizing: border-box;
    padding: .4rem;
    width: 100%;
    height: 100%;
}

div.keyed-list>.item-name:nth-of-type(4n+1),
div.keyed-list>.item-name:nth-of-type(4n+1)+div,
div.price-list>.item-name:nth-of-type(4n+1),
div.price-list>.item-name:nth-of-type(4n+1)+div {
    background: rgba(255, 255, 255, .05);
}

div.price-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0;
    text-align: left;
    align-items: stretch;
    box-sizing: border-box;
    font-size: 85%;
    margin: 1rem 0;
}


.tooltip {
    font-size: 85%;
    font-style: italic;
}

#contact-form {
    display: none;
    background: rgba(8, 16, 24, 0.9);
    border: 1px solid rgba(0, 234, 255, 0.3);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 234, 255, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
}

#contact-form input[type=text],
#contact-form input[type=email],
#contact-form textarea {
    background: rgba(18, 41, 54, 0.85);
    color: #e2f1f8;
    border: 1px solid rgba(0, 234, 255, 0.45);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.35rem 0;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 12px rgba(0, 234, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #65fff1;
    background-color: rgba(24, 58, 76, 0.95);
    box-shadow: 0 0 14px rgba(0, 234, 255, 0.25);
    transform: translateY(-1px);
}

.service-label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 110%;
}

.checkbox-group {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 110%;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#contact-form input[type=checkbox] {
    width: 30px;
    margin: 0;
    display: inline;
}

#contact-form textarea {
    height: 100px;
}

#contact-form button {
    background: linear-gradient(120deg, #65fff1, #00eaff, #7efff7);
    color: #001419;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.3s ease;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.35);
}

#contact-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px) scale(1.01);
}

.form-submitted-noerror {
    background: rgba(0, 255, 0, 0.2);
}

.form-submitted-error {
    background: rgba(255, 0, 0, 0.2);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

@media (orientation: portrait) {
    header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
    }

    header>* {
        text-align: center;
        margin: auto;
    }

    header nav {
        text-align: center;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    header nav a {
        text-align: center;
        margin: 0;
    }

    section.card-grid {
        grid-template-columns: 1fr;
    }

    #square-logo {
        width: 40vw;
    }

    #contact-form {
        width: 100%;
        left: 0;
    }

    section.card-grid {
        margin: 1rem 0;
        padding: 1rem;
    }

    header.not-homepage>nav {
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 0;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    body {
        background-size: 200% 200%;
    }

    header {
        grid-template-columns: 1fr;
        padding: 0.6rem 1rem 0.8rem;
        gap: 0.75rem;
    }

    header>img {
        width: 40vw;
        margin: 0 auto;
    }

    header h1 {
        text-align: center;
        font-size: 1.6rem;
        margin: 0 0 0.2rem;
    }

    header p {
        text-align: center;
        font-size: 0.95rem;
        margin: 0;
    }

    .hero-nav-strip {
        gap: 0.75rem;
        padding: 0.35rem 0.75rem;
        flex-wrap: wrap;
    }

    .hero-nav-strip a {
        padding: 0.28rem 0.48rem;
        font-size: 0.9rem;
    }

    .featured-strip {
        width: 96vw;
        max-width: 1100px;
        margin: 0.75rem auto 0.5rem;
        padding: 1rem 1.15rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-actions {
        width: 100%;
    }

    .featured-actions .cta,
    .featured-actions .cta.ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    section.card-grid,
    section.card-grid.homepage-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        min-height: auto;
        margin: 0;
    }

    .homepage-grid .card.services {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 0 10px rgba(0, 234, 255, 0.1);
    }

    .services-nav-card {
        grid-column: span 1;
        width: 100%;
        justify-content: stretch;
    }

    .services-nav-card .services-nav-link {
        width: 100%;
    }

    .service-card {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .hero-bullets,
    .contact-hero .meta {
        font-size: 0.95rem;
    }

    .contact-hero {
        grid-column: 1;
    }
}