.nav-outer::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0));
    opacity: 0.6;
    pointer-events: none;
}
.page-hero_paragraph {
    margin: 0.85rem auto 0;
    max-width: 720px;
    color: var(--clr-text-muted);
}

.beliefs,
.approach,
.differentiators {
    display: grid;
    gap: 1rem;
}

.beliefs h3,
.approach h4,
.differentiators h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--clr-secondary);
}
:root {
    /* --- Header base (compact) --- */
    --nav-bg: rgba(8, 16, 32, 0.75);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-shadow: 0 18px 45px rgba(6, 9, 18, 0.35);
    --nav-toggle-size: 48px;
    --logo-mobile-height: 44px;
    
    --gradient-midnight: linear-gradient(
        180deg,
        rgba(6, 9, 18, 0.98) 0%,
        rgba(9, 13, 27, 0.96) 42%,
        rgba(11, 15, 31, 0.94) 100%
    );
    --gradient-midnight-soft: linear-gradient(
        180deg,
        rgba(6, 9, 18, 0.94) 0%,
        rgba(9, 13, 27, 0.82) 55%,
        rgba(10, 15, 31, 0) 100%
    );
    --gradient-hero: radial-gradient(circle at top left, rgba(107, 91, 255, 0.2), transparent 45%), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.25), transparent 50%), linear-gradient(135deg, #050d26, #0c152f 60%, #101a3c);
    --clr-midnight: #060912;

    --clr-bg: #f5f7fb;
    --clr-surface: #ffffff;
    --clr-surface-muted: rgba(255, 255, 255, 0.7);
    --clr-accent: #6b5bff;
    --clr-accent-dark: #4338ca;
    --clr-secondary: #2e73ff;
    --clr-text: #0f172a;
    --clr-text-muted: rgba(15, 23, 42, 0.85);
    --clr-muted-strong: rgba(15, 23, 42, 0.75);
    --clr-border: rgba(27, 31, 59, 0.12);
    --shadow-soft: 0 20px 45px rgba(23, 38, 83, 0.12);
    --shadow-card: 0 25px 60px rgba(23, 38, 83, 0.18);
    --shadow-hero: 0 45px 100px rgba(3, 7, 18, 0.55);
    --transition: 220ms ease;
    --btn-font-size: 0.95rem;
    --btn-padding-y: 0.65rem;
    --btn-padding-x: 1.5rem;
    --btn-radius: 999px;
    --header-height: 64px; /* professional compact height */
    --header-offset: 1.75rem;
    --section-padding: clamp(3.5rem, 8vw, 6rem);
}

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

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    max-width: 65ch;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0;
    left: 0;
    right: 0;
}

body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 998;
    pointer-events: none;
    animation: fadeIn 0.3s ease;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

.skip-nav {
    position: absolute;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    transition: top var(--transition);
    z-index: 1001;
}

.skip-nav:focus {
    top: 1rem;
}

.container {
    width: min(1180px, 90vw);
    margin-inline: auto;
}

:where(section, [id]) {
    scroll-margin-top: calc(var(--header-height) + 2.5rem);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section_intro {
    max-width: 640px;
    margin-bottom: 2.75rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--clr-secondary);
    margin-bottom: 0.75rem;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--clr-text-muted);
    line-height: 1.7;
    max-width: 60ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: var(--btn-radius);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-weight: 600;
    font-size: var(--btn-font-size);
    line-height: 1.2;
    min-height: 44px;
    min-width: 44px;
    border: 1px solid transparent;
    transition: background var(--transition), transform var(--transition), color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn-xl {
    font-size: var(--btn-font-size);
    padding: var(--btn-padding-y) var(--btn-padding-x);
}

/* All button variants look exactly the same as btn-accent */
.btn-accent,
.btn-outline,
.btn-ghost {
    background: var(--clr-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 25px 40px rgba(107, 91, 255, 0.35);
    position: relative;
}

.btn-accent::before,
.btn-outline::before,
.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.btn-accent:hover,
.btn-accent:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--clr-accent-dark);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 30px 50px rgba(107, 91, 255, 0.45);
}

.btn-accent:hover::before,
.btn-accent:focus-visible::before,
.btn-outline:hover::before,
.btn-outline:focus-visible::before,
.btn-ghost:hover::before,
.btn-ghost:focus-visible::before {
    opacity: 1;
}

.btn-accent:focus-visible,
.btn-outline:focus-visible,
.btn-ghost:focus-visible {
    outline: 3px solid rgba(107, 91, 255, 0.5);
    outline-offset: 2px;
}

.btn-link {
    padding: 0;
    background: none;
    border: none;
    color: var(--clr-accent);
    font-weight: 600;
    position: relative;
}

.btn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: left;
    transition: transform var(--transition), opacity var(--transition);
}

.btn-link:hover::after,
.btn-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Global header: sticky on scroll --- */
.nav-outer {
    position: sticky;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

/* Accent line across the header for subtle separation */
.nav-outer::after {
    content: none;
}

/* Darken header slightly once the user scrolls */
.nav-wrapper.is-scrolled {
    box-shadow: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
    height: var(--header-height);
    max-height: var(--header-height);
    padding: 0.25rem 0; /* professional compact spacing */
    position: relative;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: clamp(190px, 26vw, 260px); /* bigger min & max for a premium feel */
    height: auto;
    display: block;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    position: relative;
    z-index: 1000;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
    padding: 0.5rem 1.35rem;
    border-radius: 999px;
    position: relative;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-link::before {
    display: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--clr-accent-dark);
    background: rgba(107, 91, 255, 0.12);
    transform: translateY(-1px);
    outline: 2px solid rgba(107, 91, 255, 0.5);
    outline-offset: 2px;
}

.nav-link--active {
    background: rgba(107, 91, 255, 0.15);
    color: var(--clr-accent-dark);
    box-shadow: inset 0 0 0 1px rgba(107, 91, 255, 0.4);
}

.nav-link--active:hover,
.nav-link--active:focus-visible {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: var(--nav-toggle-size);
    height: var(--nav-toggle-size);
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    cursor: pointer;
    place-items: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    z-index: 1400;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #0f172a;
    border-radius: 999px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.3);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

.nav-toggle:focus-visible {
    outline: 2px solid rgba(107, 91, 255, 0.7);
    outline-offset: 3px;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(233, 238, 246, 0.16);
    border-color: rgba(233, 238, 246, 0.75);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle.nav-toggle--dark {
    background: rgba(6, 9, 18, 0.95);
    border-color: rgba(6, 9, 18, 0.85);
    box-shadow: 0 16px 32px rgba(6, 9, 18, 0.55);
}

.nav-toggle.nav-toggle--dark span {
    background: #f8fbff;
}

.nav-toggle.nav-toggle--dark:hover,
.nav-toggle.nav-toggle--dark:focus-visible {
    background: rgba(6, 9, 18, 1);
    border-color: rgba(107, 91, 255, 0.75);
    box-shadow: 0 18px 36px rgba(6, 9, 18, 0.6);
}

.nav-toggle.nav-toggle--dark[aria-expanded="true"] {
    background: rgba(6, 9, 18, 1);
    border-color: rgba(107, 91, 255, 0.9);
}

.mobile-menu {
    position: absolute;
    right: 10px;
    top: 50px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 18, 34, 0.96);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 168px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.mobile-menu a {
    color: #e9eef6;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Desktop upgrades */
@media (min-width: 768px) {
    .nav-wrapper {
        min-height: 80px; /* taller than 64px */
        height: var(--header-height);
        max-height: var(--header-height);
        padding: 0 28px;
    }

    .nav-toggle {
        width: var(--nav-toggle-size);
        height: var(--nav-toggle-size);
    }

    .nav-toggle span {
        width: 24px;
    }
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

@media (min-width: 1024px) {
    .nav-wrapper {
        min-height: 88px; /* match var */
        height: var(--header-height);
        max-height: var(--header-height);
        padding-inline: 36px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

.hero {
    position: relative;
    margin-top: 0;
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
    background: var(--gradient-hero);
    color: #f8fbff;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    box-shadow: var(--shadow-hero);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(120, 119, 198, 0.35), transparent 50%);
    mix-blend-mode: screen;
}

.hero::after {
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.18);
    filter: blur(90px);
    right: 12%;
    top: 10%;
}

.hero_content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.hero .eyebrow,
.hero .lead,
.hero p,
.hero li,
.hero span,
.hero a {
    color: rgba(241, 245, 255, 0.9);
}

.hero_text h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero_subhead {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.85);
    max-width: 45ch;
}

.hero_cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero_pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.hero_pillars li {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    backdrop-filter: blur(12px);
}

.hero_pillars span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero .btn-outline {
    background: var(--clr-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 25px 40px rgba(107, 91, 255, 0.35);
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
    background: var(--clr-accent-dark);
    transform: translateY(-2px);
}

.hero_visual {
    position: relative;
    padding: 1.5rem;
    border-radius: 26px;
    backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero_visual-shell {
    border-radius: 22px;
    padding: 1.5rem;
    background: rgba(4, 7, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 1.25rem;
}

.hero_visual-grid {
    display: grid;
    gap: 1rem;
}

.hero_metric {
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 0.35rem;
}

.hero_metric span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero_metric strong {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.hero_visual-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(59, 130, 246, 0.8), rgba(255, 255, 255, 0));
    opacity: 0.7;
}

.hero_visual-note {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    margin: 0;
}

.hero_visual-shell--logo {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
}

.hero_visual-shell--logo img {
    width: 120px;
    height: auto;
}

.hero_visual-shell--logo small {
    color: rgba(226, 232, 240, 0.75);
}

/* Hero Carousel Styles */
.hero_visual-carousel {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 22px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.why_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

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

.why_card {
    background: var(--clr-surface);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.why_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(23, 38, 83, 0.15);
}

.why_card h3 {
    margin-bottom: 0.5rem;
}

.trust {
    background: #ffffff;
}

.trust_content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.trust_logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
}

.trust_logos span {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: rgba(241, 245, 255, 0.65);
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.trust_placeholder {
    background: var(--clr-surface);
    border-radius: 24px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.services-preview {
    background: #f8faff;
}

.services_preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.services_preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.service-item {
    background: var(--clr-surface);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(23, 38, 83, 0.15);
}

.service-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    color: var(--clr-text-muted);
}

.service-item .btn {
    justify-self: start;
}

.services_stack {
    display: grid;
    gap: 1.25rem;
}

.service-stack {
    background: var(--clr-surface);
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: grid;
    gap: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-stack:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(23, 38, 83, 0.18);
}

.service-stack_header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.service-stack_icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(107, 91, 255, 0.12);
    color: var(--clr-accent-dark);
    display: grid;
    place-items: center;
}

.service-stack_icon svg {
    width: 26px;
    height: 26px;
}

.service-stack_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.service-stack_list li {
    position: relative;
    padding-left: 1.5rem;
}

.service-stack_list li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--clr-accent);
    position: absolute;
    left: 0.35rem;
    top: 0.55rem;
}

.service-stack_cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-stack_note {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.services_extra-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

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

.project-case {
    background: var(--clr-surface);
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.25rem;
}

.project-case--placeholder {
    border-style: dashed;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.project-metrics span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-accent-dark);
}

.case-note {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.testimonials {
    text-align: center;
    background: #0f172a;
    color: rgba(248, 250, 255, 0.92);
    border-radius: 32px;
    margin: 0 auto;
    width: min(1100px, 95vw);
    box-shadow: var(--shadow-hero);
}

.testimonials .eyebrow {
    color: rgba(148, 187, 255, 0.9);
}

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

.blog_card {
    background: var(--clr-surface);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.blog_card h3 {
    margin: 0;
    line-height: 1.3;
}

.blog_card a {
    color: inherit;
}

.blog_card-tag {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-secondary);
}

.blog_card-meta {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.policy_block {
    background: var(--clr-surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.25rem;
}

.policy_block:last-child {
    margin-bottom: 0;
}

/* Shared interior hero background and overlay */
.page-hero {
    margin-top: 0;
    padding: clamp(5rem, 10vw, 7rem) 0 4rem;
    background: var(--clr-midnight);
    text-align: center;
    color: #f1f5ff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    filter: none;
    opacity: 1;
    pointer-events: none;
}

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

.page-hero .eyebrow {
    margin-bottom: 1rem;
    color: rgba(148, 197, 255, 0.88);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.page-hero .lead {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(226, 232, 240, 0.82);
}

/* Interior hero typography contrast helpers */
.page-hero .eyebrow,
.page-hero p,
.page-hero span,
.page-hero a {
    color: rgba(241, 245, 255, 0.88);
}

.page-hero .btn-outline {
    background: var(--clr-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 25px 40px rgba(107, 91, 255, 0.35);
}

.page-hero .btn-outline:hover,
.page-hero .btn-outline:focus-visible {
    background: var(--clr-accent-dark);
    transform: translateY(-2px);
}

.page-hero_cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.problem_grid h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.icon-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 0.85rem;
    color: var(--clr-text-muted);
}

.icon-list li,
.check-list li {
    position: relative;
    padding-left: 2rem;
}

.icon-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: 700;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--clr-secondary);
    font-weight: 700;
}

.services_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--clr-surface);
    padding: 2rem 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(27, 31, 59, 0.06);
    box-shadow: 0 12px 30px rgba(23, 38, 83, 0.08);
    display: grid;
    gap: 1rem;
}

.service-card_icon {
    font-size: 1.75rem;
}

.services_extras {
    margin-top: 3rem;
    background: rgba(107, 91, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(107, 91, 255, 0.12);
}

.services_extras ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    color: var(--clr-text-muted);
}

.why_grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.why_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.why_list li {
    background: var(--clr-surface);
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: 0 12px 26px rgba(23, 38, 83, 0.08);
}

.why_list span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.process_steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.process_steps li {
    background: var(--clr-surface);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(27, 31, 59, 0.06);
    box-shadow: 0 12px 30px rgba(23, 38, 83, 0.08);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.process_steps li:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(23, 38, 83, 0.12);
}

.process_steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: rgba(27, 31, 59, 0.3);
}

.process_steps span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

.portfolio_list {
    display: grid;
    gap: 1.75rem;
}

.project-card {
    background: var(--clr-surface);
    border-radius: 22px;
    border: 1px solid rgba(27, 31, 59, 0.1);
    box-shadow: 0 25px 55px rgba(23, 38, 83, 0.12);
    padding: 2.5rem;
    display: grid;
    gap: 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 65px rgba(23, 38, 83, 0.15);
}

.project-card header h3 {
    margin-bottom: 1rem;
}

.project-card_meta {
    margin: 0.35rem 0;
    color: var(--clr-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.project-card_meta span {
    color: var(--clr-text);
}

.project-card_section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.project-card_section p {
    margin: 0;
}

.project-card_results ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: var(--clr-text-muted);
}

.project-card_footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-preview {
    border-radius: 18px;
    border: 1px dashed rgba(27, 31, 59, 0.2);
    padding: 2rem;
    text-align: center;
    color: var(--clr-text-muted);
    background: repeating-linear-gradient(
        135deg,
        rgba(107, 91, 255, 0.08),
        rgba(107, 91, 255, 0.08) 12px,
        rgba(15, 23, 42, 0.02) 12px,
        rgba(15, 23, 42, 0.02) 24px
    );
}

.project-preview--warm {
    background: repeating-linear-gradient(
        135deg,
        rgba(251, 146, 60, 0.12),
        rgba(251, 146, 60, 0.12) 12px,
        rgba(15, 23, 42, 0.02) 12px,
        rgba(15, 23, 42, 0.02) 24px
    );
}

.project-preview--cool {
    background: repeating-linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.12),
        rgba(59, 130, 246, 0.12) 12px,
        rgba(15, 23, 42, 0.02) 12px,
        rgba(15, 23, 42, 0.02) 24px
    );
}

.project-preview span {
    font-weight: 600;
}

.case-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.case-flow strong {
    display: inline-block;
    min-width: 4.5rem;
}

.project-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: var(--clr-surface);
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: 0 15px 30px rgba(23, 38, 83, 0.09);
}

.testimonial_author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial_author img {
    border-radius: 50%;
    object-fit: cover;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 91, 255, 0.9), rgba(46, 115, 255, 0.9));
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
}

.testimonial .name {
    font-weight: 600;
}

.testimonial .role {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.pricing_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--clr-surface);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: 0 15px 40px rgba(23, 38, 83, 0.1);
    position: relative;
    display: grid;
    gap: 1rem;
}

.pricing-card--featured {
    background: linear-gradient(160deg, rgba(107, 91, 255, 0.95), rgba(46, 115, 255, 0.9));
    color: #ffffff;
    box-shadow: 0 25px 50px rgba(23, 38, 83, 0.2);
}

.pricing-card--featured .btn-outline {
    background: #ffffff;
    border-color: transparent;
    color: var(--clr-accent);
    box-shadow: 0 25px 40px rgba(255, 255, 255, 0.35);
}

.pricing-card--featured .btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 700;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.pricing-card ul li {
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card ul li::before {
    content: "•";
    position: absolute;
    left: 0.4rem;
    color: currentColor;
}

.badge {
    position: absolute;
    top: -0.75rem;
    left: 1.75rem;
    background: #ffffff;
    color: var(--clr-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.pricing_addons {
    margin-top: 3rem;
    text-align: center;
}

.pricing_addons ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
    color: var(--clr-text-muted);
    flex-wrap: wrap;
}

.cta {
    padding: 5rem 0;
    background: linear-gradient(120deg, rgba(107, 91, 255, 0.15), rgba(46, 115, 255, 0.1));
}

.cta_content {
    background: var(--clr-surface);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid rgba(27, 31, 59, 0.06);
    display: grid;
    gap: 1.5rem;
}

.cta_actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem;
    align-items: start;
}

.contact_intro {
    background: var(--clr-surface);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1.25rem;
}

.contact_intro a:focus-visible {
    outline: 2px solid rgba(107, 91, 255, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.contact_intro h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    letter-spacing: -0.01em;
}

.contact_list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 0.75rem;
    color: var(--clr-text-muted);
}

.contact_list strong {
    color: var(--clr-text);
}

.contact_list a {
    word-break: break-word;
}

.contact_faq {
    margin-top: 2.5rem;
    background: var(--clr-surface);
    border-radius: 24px;
    border: 1px solid rgba(27, 31, 59, 0.08);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.faq_list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.faq_list div {
    border-top: 1px solid rgba(27, 31, 59, 0.08);
    padding-top: 1rem;
}

.faq_list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.faq_list dt {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.faq_list dd {
    margin: 0;
    color: var(--clr-text-muted);
}

.contact_form {
    display: grid;
    gap: 1rem;
    background: var(--clr-surface);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: var(--shadow-card);
}

.contact_form label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-weight: 600;
}

.contact_form input,
.contact_form textarea,
.contact_form select {
    border-radius: 12px;
    border: 2px solid rgba(15, 23, 42, 0.15);
    background: #ffffff;
    padding: 0.85rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--clr-text);
    font-size: 1rem;
}

.contact_form input::placeholder,
.contact_form textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.contact_form input:focus,
.contact_form textarea:focus,
.contact_form select:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(107, 91, 255, 0.15);
    outline: none;
}

.contact_form label {
    color: var(--clr-text);
    font-weight: 600;
}

.contact_form textarea {
    resize: vertical;
}

.contact_form .full {
    grid-column: 1 / -1;
}

.contact_form .btn {
    justify-self: flex-start;
    border-radius: var(--btn-radius);
}

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

.contact_form .field-error {
    font-size: 0.85rem;
    color: #b91c1c;
    display: none;
}

.contact_form.is-validated :is(input, textarea, select):invalid {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.04);
}

.contact_form.is-validated :is(input, textarea, select):invalid + .field-error {
    display: block;
}

.form-note {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin: 0;
}

.form-success {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: #15803d;
    font-weight: 600;
}

.contact_form[data-status="success"] .form-success,
.contact_form[data-status="error"] .form-success {
    display: block;
}

.contact_form[data-status="error"] .form-success {
    color: #b91c1c;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.intake {
    background: rgba(107, 91, 255, 0.05);
}

.intake-form {
    background: var(--clr-surface);
    border-radius: 26px;
    padding: 3rem;
    border: 1px solid rgba(27, 31, 59, 0.08);
    box-shadow: 0 35px 70px rgba(23, 38, 83, 0.15);
    display: grid;
    gap: 2.5rem;
}

.intake-form fieldset {
    margin: 0;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(27, 31, 59, 0.1);
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 1.25rem;
}

.intake-form legend {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--clr-secondary);
}

.fieldset-note {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin: -0.5rem 0 0;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.input-grid .full {
    grid-column: 1 / -1;
}

.intake-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.intake-form input,
.intake-form textarea,
.intake-form select {
    border-radius: 12px;
    border: 1px solid rgba(27, 31, 59, 0.14);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem 1rem;
}

.intake-form textarea {
    resize: vertical;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.option-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(27, 31, 59, 0.12);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    font-weight: 500;
}

.checkbox input,
.radio input {
    accent-color: var(--clr-accent);
}

.checkbox:hover,
.radio:hover,
.checkbox:has(input:focus-visible),
.radio:has(input:focus-visible) {
    border-color: rgba(107, 91, 255, 0.45);
    box-shadow: 0 12px 24px rgba(23, 38, 83, 0.12);
    background: rgba(107, 91, 255, 0.08);
}

.project-card_footer .btn,
.intake-form_submit {
    justify-self: start;
}

.intake-form_note {
    margin-top: -1rem;
}

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

.trust_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.trust_list li {
    background: var(--clr-surface);
    border: 1px solid rgba(27, 31, 59, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.site-footer {
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
    background: #050d26;
    color: rgba(248, 250, 255, 0.78);
    margin-top: clamp(2rem, 6vw, 4rem);
}

.footer_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer_brand {
    display: grid;
    gap: 0.5rem;
}

.footer_brand p {
    margin: 0;
    color: rgba(248, 250, 255, 0.78);
}

.footer_links {
    display: grid;
    gap: 0.75rem;
}

.footer_contact ul,
.footer_links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.4rem;
}

.footer_contact a,
.footer_links a,
.footer_bottom a {
    color: rgba(248, 250, 255, 0.9);
}

.footer_contact a:hover,
.footer_links a:hover,
.footer_bottom a:hover {
    color: var(--clr-secondary);
}

.footer_links ul + ul {
    margin-top: 0.25rem;
}

.footer_notes p {
    margin: 0.15rem 0;
}

.footer_notes a {
    color: rgba(148, 197, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.footer_notes a:hover,
.footer_notes a:focus-visible {
    color: var(--clr-secondary);
    outline: 2px solid rgba(107, 91, 255, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer_contact .btn {
    justify-self: start;
}

.footer_bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.footer_bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand--footer img {
    width: 220px;
}

/* Portfolio Page Styles */
.portfolio-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0f1e3a 50%, #152545 100%);
    color: #ffffff;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(107, 91, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(251, 146, 60, 0.1), transparent 60%);
    pointer-events: none;
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 91, 255, 0.2), transparent 70%);
    filter: blur(80px);
    right: 10%;
    top: 20%;
    pointer-events: none;
}

.portfolio-hero_shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.hero-shape--orange {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff9f43, #ff6b35);
    left: 5%;
    top: 10%;
    animation-delay: 0s;
}

.hero-shape--teal {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #00d2d3, #01a3a4);
    left: 8%;
    top: 50%;
    animation-delay: -7s;
}

.hero-shape--pink {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff6b9d, #c44569);
    left: 0;
    top: 5%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.portfolio-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.portfolio-hero_title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.portfolio-hero_description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.portfolio-filters {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 1.5rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.portfolio-filters_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

.portfolio-filters_types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: rgba(107, 91, 255, 0.05);
}

.filter-btn--active {
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.filter-btn--active:hover {
    background: linear-gradient(135deg, #ff8c2e, #e55a2b);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.portfolio-filters_dropdowns {
    display: flex;
    gap: 1rem;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--clr-text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-dropdown:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.filter-dropdown svg {
    transition: transform var(--transition);
}

.filter-dropdown[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.filter-clear {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
    font-family: inherit;
}

.filter-clear:hover {
    color: var(--clr-accent);
}

.portfolio-section_title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.portfolio-clients {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.portfolio-projects_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .portfolio-projects_grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-showcase--featured {
        grid-column: 1 / -1;
    }
}

.project-showcase {
    background: var(--clr-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow var(--transition), opacity 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr;
    opacity: 1;
    transform: scale(1);
}

.project-showcase:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: var(--shadow-card);
}

.project-showcase--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.project-showcase_image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-showcase--featured .project-showcase_image {
    aspect-ratio: auto;
}

.project-showcase_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-showcase:hover .project-showcase_image img {
    transform: scale(1.05);
}

.project-showcase_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-gradient-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.project-gradient-overlay--purple {
    top: 0;
    right: 0;
    width: 50%;
    height: 45%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(255, 20, 147, 0.4) 50%, rgba(138, 43, 226, 0.3) 100%);
    clip-path: ellipse(80% 70% at 80% 20%);
    filter: blur(25px);
    opacity: 0.85;
    mix-blend-mode: overlay;
}

.project-abstract-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(30px);
    opacity: 0.7;
    mix-blend-mode: overlay;
}

.project-abstract-shape--1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #ff9f43, #ff6b35);
    bottom: 10%;
    left: 5%;
}

.project-abstract-shape--2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #00d2d3, #01a3a4);
    bottom: 15%;
    left: 10%;
}

.project-abstract-shape--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff6b9d, #c44569);
    bottom: 8%;
    left: 8%;
}

.project-abstract-shape--4 {
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, #6c5ce7, #a29bfe);
    bottom: 12%;
    left: 5%;
}

.project-abstract-shape--5 {
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, #00b894, #00cec9);
    bottom: 10%;
    left: 7%;
}

.project-abstract-shape--6 {
    width: 175px;
    height: 175px;
    background: radial-gradient(circle, #ff9f43, #ff6b35);
    bottom: 12%;
    left: 6%;
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text);
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.project-badge--featured {
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.project-showcase_content {
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.project-showcase--featured .project-showcase_content {
    padding: 2.5rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
    background: var(--clr-surface);
}

.project-showcase--featured .project-link--top-right {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.project-showcase_title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.project-showcase_description {
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
}

.project-showcase_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(107, 91, 255, 0.1);
    color: var(--clr-accent-dark);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-showcase_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
}

.project-read-time {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.project-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(107, 91, 255, 0.1);
    color: var(--clr-accent);
    transition: all var(--transition);
}

.project-link:hover {
    background: var(--clr-accent);
    color: #ffffff;
    transform: scale(1.1);
}

.project-link--top-right {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.project-showcase:not(.project-showcase--featured) .project-showcase_content {
    position: relative;
}

.portfolio-view-more {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 2rem;
}

.portfolio-link {
    color: var(--clr-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.portfolio-link:hover {
    color: var(--clr-accent-dark);
}

/* Templates Section */
.portfolio-templates {
    background: var(--clr-bg);
}

.template-filters {
    margin: 2rem 0 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--clr-border);
}

.template-filters_wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.template-filters_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.template-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.template-filter-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: rgba(107, 91, 255, 0.05);
}

.template-filter-btn--active {
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.template-filter-btn--active:hover {
    background: linear-gradient(135deg, #ff8c2e, #e55a2b);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.portfolio-templates_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.template-card {
    background: var(--clr-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow var(--transition), opacity 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr;
    opacity: 1;
    transform: scale(1);
}

.template-card:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: var(--shadow-card);
}

.template-card_image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.template-card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.template-card:hover .template-card_image img {
    transform: scale(1.05);
}

.template-card_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.template-card:hover .template-card_overlay {
    opacity: 1;
}

.template-card_actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0 1.5rem;
}

.template-card_actions .btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
}

.template-card_badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.template-card_badge--featured {
    background: linear-gradient(135deg, #ff9f43, #ff6b35);
    color: #ffffff;
}

.template-card_badge--new {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff;
}

.template-card_content {
    padding: 1.75rem;
    display: grid;
    gap: 1rem;
}

.template-card_title {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.template-card_description {
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.template-card_meta {
    display: grid;
    gap: 0.75rem;
}

.template-card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.template-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(46, 115, 255, 0.1);
    color: var(--clr-secondary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-card_tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.3rem 0.65rem;
    background: rgba(107, 91, 255, 0.1);
    color: var(--clr-accent-dark);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(107, 91, 255, 0.2);
}

.template-card_footer {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--clr-border);
    margin-top: auto;
}

.template-card_link {
    color: var(--clr-accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.template-card_link:hover {
    color: var(--clr-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio-filters_wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-filters_types {
        justify-content: center;
    }

    .portfolio-filters_dropdowns {
        justify-content: center;
    }

    .filter-clear {
        text-align: center;
    }

    .project-showcase--featured {
        grid-template-columns: 1fr;
    }

    .portfolio-projects_grid {
        grid-template-columns: 1fr;
    }

    .portfolio-templates_grid {
        grid-template-columns: 1fr;
    }

    .portfolio-view-more {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .template-filters_categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .template-filters_categories::-webkit-scrollbar {
        height: 4px;
    }

    .template-filters_categories::-webkit-scrollbar-track {
        background: var(--clr-bg);
    }

    .template-filters_categories::-webkit-scrollbar-thumb {
        background: var(--clr-border);
        border-radius: 2px;
    }

    .template-card_actions {
        padding: 0 1rem;
    }

    .template-card_actions .btn {
        max-width: 100%;
    }

    .template-card_footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Portfolio Page Specific Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Filter Section */
.filter-section {
    background: var(--card-bg);
    padding: 2rem;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .filter-section {
        top: 60px;
        padding: 1.5rem 1rem;
    }
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--card-bg);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Portfolio Grid */
.portfolio-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    top: 0;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.75rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.portfolio-category.template {
    background: var(--accent);
}

.portfolio-category.client {
    background: #10b981;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.portfolio-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--background);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.portfolio-link:hover {
    gap: 0.75rem;
}

.portfolio-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.portfolio-request-btn i {
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.modal-body {
    padding: 3rem;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.modal-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.detail-item p {
    font-weight: 600;
    color: var(--text);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .filter-section {
        top: 60px;
        padding: 1.25rem 1rem;
    }

    .filter-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .portfolio-section {
        margin: 2.5rem auto;
        padding: 0 1.25rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-card {
        border-radius: 8px;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100%;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section {
        padding: 3.5rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .filter-section {
        padding: 1rem 0.75rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .portfolio-section {
        padding: 0 1rem;
    }

    .portfolio-grid {
        gap: 1.25rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-title {
        font-size: 1.25rem;
    }

    .portfolio-description {
        font-size: 0.95rem;
    }
}

/* Footer link hover styles */
.site-footer a:hover {
    color: white !important;
}

/* --- Portfolio page: Fixed header on desktop --- */
@media (min-width: 1025px) {
    /* Make header fixed on portfolio page desktop */
    body[data-page="portfolio"] .nav-outer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    /* Add padding to main content to account for fixed header */
    body[data-page="portfolio"] main {
        padding-top: var(--header-height);
    }

    /* Remove sticky positioning from filter section so it scrolls with content */
    body[data-page="portfolio"] .filter-section {
        position: relative;
        top: auto;
    }
}