/* CSS Variables */
:root {
    --primary: #cf6317;
    --primary-dark: #a04d12;
    --background-light: #f8f7f6;
    --background-dark: #211811;
    --card-dark: #32241a;
    --border-dark: #654834;
    --text-subtle: #c8a093;

    /* Light mode defaults */
    --bg: var(--background-light);
    --bg-secondary: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #d1d5db;
    --border-light: #e5e7eb;
    --surface-portfolio: #eaf1f7;
    --surface-portfolio-border: #c9d6e4;
    --surface-portfolio-ink: #162033;
    --surface-parchment: #f4e8da;
    --surface-parchment-border: #c79a73;
    --surface-parchment-ink: #33241b;
    --surface-parchment-track: #dccfc2;
    --surface-cta: #f3e5d6;
    --surface-cta-border: #d8b89a;
    --surface-cta-ink: #2e221b;
}

/* Font Faces */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('Assets/PlusJakartaSans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('Assets/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    src: url('Assets/MaterialSymbolsOutlined.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Dark Mode */
.dark {
    --bg: var(--background-dark);
    --bg-secondary: var(--card-dark);
    --text: #ffffff;
    --text-muted: var(--text-subtle);
    --border: var(--border-dark);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Grid Pattern for Buttons */
.grid-pattern {
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (hover: none) and (pointer: coarse) {
    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -999px;
    z-index: 200;
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--primary);
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

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

/* Buttons */
.btn-retro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.1s ease;
    box-shadow: 0px 4px 0px 0px var(--primary-dark);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-retro:active {
    transform: translateY(4px);
    box-shadow: 0px 0px 0px 0px var(--primary-dark);
}

/* Card Styles */
.card-retro {
    transition: all 0.2s ease;
    border: 2px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.dark .card-retro {
    border-color: var(--border);
}

.card-retro:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0px 0px var(--primary);
    border-color: var(--primary);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 4px solid var(--border-light);
    background-color: rgba(248, 247, 246, 0.95);
}

.dark header {
    border-bottom-color: var(--border);
    background-color: rgba(33, 24, 17, 0.95);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.25rem;
    object-fit: cover;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .logo-img {
        transform: none !important;
    }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navigation */
nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    nav {
        display: flex;
    }
}

nav a {
    font-size: 0.875rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: #e5e7eb;
}

.dark .theme-toggle:hover {
    background-color: var(--card-dark);
}

.dark .theme-toggle .material-symbols-outlined {
    color: white;
}

/* Start Project Button */
.btn-start {
    display: none;
    height: 2.5rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    align-items: center;
    justify-content: center;
}

.btn-start:hover {
    background-color: #d96d20;
}

.dark .btn-start {
    background-color: var(--primary);
}

@media (min-width: 640px) {
    .btn-start {
        display: inline-flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu button {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu button:hover {
    background-color: #e5e7eb;
}

.dark .mobile-menu button:hover {
    background-color: var(--card-dark);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    width: min(90vw, 24rem);
    height: 100%;
    margin-left: auto;
    background: var(--bg);
    border-left: 2px solid var(--border-light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dark .mobile-nav-panel {
    border-left-color: var(--border);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: rgba(207, 99, 23, 0.12);
    color: var(--primary);
}

.mobile-nav-link.active {
    background: rgba(207, 99, 23, 0.12);
    color: var(--primary);
}

.mobile-nav-cta {
    display: inline-flex;
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

main .container {
    width: 100%;
    max-width: 960px;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    main .container {
        padding: 3rem 1.5rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.breadcrumbs .chevron {
    font-size: 1rem;
}

.breadcrumbs .current {
    color: var(--primary);
    font-weight: 700;
}

/* Page Heading */
.heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background-color: rgba(207, 99, 23, 0.1);
    color: var(--primary);
    border: 1px solid rgba(207, 99, 23, 0.2);
    width: fit-content;
}

.dark .heading-badge {
    background-color: rgba(207, 99, 23, 0.2);
    border: 1px solid rgba(207, 99, 23, 0.4);
}

.heading-badge .icon {
    font-size: 1.125rem;
}

.heading-badge .text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.heading-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .heading-title {
        font-size: 3rem;
    }
}

.heading-title .highlight {
    color: var(--primary);
}

.heading-title .br {
    display: none;
}

@media (min-width: 640px) {
    .heading-title .br {
        display: block;
    }
}

.heading-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42rem;
    line-height: 1.625;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.info-section {
    border: 1px dashed var(--border-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
}

.dark .info-section {
    border-color: var(--border);
}

.section-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* About: Quest & Origin */
.about-quest {
    margin-top: 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: 1.5rem;
    background: var(--bg-secondary);
    padding: 2rem 1.25rem;
    transition: all 0.2s ease;
}

.dark .about-quest {
    border-color: var(--border);
}

.about-quest:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0px 0px var(--primary);
    border-color: var(--primary);
}

.about-quest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .about-quest {
        padding: 2.5rem;
    }

    .about-quest-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.about-quest-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-quest-text {
    display: grid;
    gap: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.125rem;
}

.about-quest-btn {
    margin-top: 2rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.about-quest-btn:hover {
    background: var(--primary);
    color: white;
}

.about-quest-panel {
    position: relative;
    background: var(--surface-parchment);
    color: var(--surface-parchment-ink);
    border: 1px solid rgba(199, 154, 115, 0.5);
    box-shadow: 0 18px 32px rgba(85, 54, 30, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.dark .about-quest-panel {
    background: #221811;
    color: white;
    border: none;
    box-shadow: none;
}

@media (min-width: 1024px) {
    .about-quest-panel {
        padding: 2rem;
    }
}

.about-quest-corner {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-color: var(--surface-parchment-border);
}

.dark .about-quest-corner {
    border-color: var(--primary);
}

.about-quest-corner-tl {
    top: -0.5rem;
    left: -0.5rem;
    border-top: 4px solid;
    border-left: 4px solid;
}

.about-quest-corner-br {
    right: -0.5rem;
    bottom: -0.5rem;
    border-right: 4px solid;
    border-bottom: 4px solid;
}

.about-quest-panel-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.dark .about-quest-panel-title {
    color: var(--primary);
}

.about-quest-skill-list {
    display: grid;
    gap: 1.5rem;
}

.about-quest-skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-quest-skill-head span:last-child {
    color: var(--primary);
}

.dark .about-quest-skill-head span:last-child {
    color: var(--primary);
}

.about-quest-bar-track {
    height: 0.9rem;
    border-radius: 9999px;
    background: var(--surface-parchment-track);
    overflow: hidden;
}

.dark .about-quest-bar-track {
    background: #3d2e24;
}

.about-quest-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--primary);
}

.dark .about-quest-bar-fill {
    background: var(--primary);
}

/* Services Section */
.services-section {
    position: relative;
    padding-top: 1.5rem;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 3rem auto auto -4rem;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(207, 99, 23, 0.18), rgba(207, 99, 23, 0));
    pointer-events: none;
    z-index: 0;
}

.services-intro,
.services-grid {
    position: relative;
    z-index: 1;
}

.services-intro {
    max-width: 52rem;
    margin-bottom: 1.75rem;
}

.services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 99, 23, 0.25);
    background: rgba(207, 99, 23, 0.08);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dark .services-kicker {
    border-color: rgba(248, 185, 134, 0.24);
    background: rgba(207, 99, 23, 0.18);
    color: #ffd7bc;
}

.services-title {
    max-width: 14ch;
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.services-lead {
    margin-top: 0.95rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

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

.service-card {
    --service-accent: var(--primary);
    --service-accent-soft: rgba(207, 99, 23, 0.18);
    --service-accent-strong: rgba(207, 99, 23, 0.34);
    --service-chip-bg: #fff1e8;
    --service-chip-text: #8a420d;
    --service-visual-bg: linear-gradient(135deg, #fff7f2 0%, #ffe4d1 100%);
    --service-frame-bg: #ffffff;
    --service-shadow: rgba(207, 99, 23, 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 100%;
    padding: 1rem;
    border-radius: 1.5rem;
    overflow: hidden;
    isolation: isolate;
    border-color: rgba(207, 99, 23, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 242, 0.94) 100%),
        var(--bg-secondary);
    box-shadow: 0 22px 46px rgba(17, 24, 39, 0.08);
    animation: service-card-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--service-delay, 0s);
}

.dark .service-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(57, 40, 28, 0.96) 0%, rgba(33, 24, 17, 0.95) 100%),
        var(--bg-secondary);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, var(--service-shadow) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.85;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.service-card.card-retro:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 58px rgba(17, 24, 39, 0.12), 8px 8px 0 0 var(--service-accent);
    border-color: var(--service-accent);
}

.dark .service-card.card-retro:hover {
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.45), 8px 8px 0 0 var(--service-accent);
}

.service-card:hover::before {
    transform: scale(1.18);
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card--code {
    --service-accent: #0f7ddb;
    --service-accent-soft: rgba(15, 125, 219, 0.15);
    --service-accent-strong: rgba(15, 125, 219, 0.24);
    --service-chip-bg: #e1f1ff;
    --service-chip-text: #0b4f85;
    --service-visual-bg: linear-gradient(145deg, #eff8ff 0%, #dbeeff 100%);
    --service-shadow: rgba(15, 125, 219, 0.26);
}

.service-card--analytics {
    --service-accent: #1f8d7a;
    --service-accent-soft: rgba(31, 141, 122, 0.16);
    --service-accent-strong: rgba(31, 141, 122, 0.24);
    --service-chip-bg: #e5fbf4;
    --service-chip-text: #12685a;
    --service-visual-bg: linear-gradient(145deg, #f2fffb 0%, #d9f6ef 100%);
    --service-shadow: rgba(31, 141, 122, 0.22);
}

.service-card--software {
    --service-accent: #8b5cf6;
    --service-accent-soft: rgba(139, 92, 246, 0.16);
    --service-accent-strong: rgba(139, 92, 246, 0.28);
    --service-chip-bg: #efe6ff;
    --service-chip-text: #5f34b3;
    --service-visual-bg: linear-gradient(145deg, #29103d 0%, #12051d 100%);
    --service-frame-bg: #14061d;
    --service-shadow: rgba(139, 92, 246, 0.3);
}

.service-card--ux {
    --service-accent: #dc6c2f;
    --service-accent-soft: rgba(220, 108, 47, 0.16);
    --service-accent-strong: rgba(220, 108, 47, 0.26);
    --service-chip-bg: #fff0e5;
    --service-chip-text: #8d471d;
    --service-visual-bg: linear-gradient(145deg, #fff9f1 0%, #ffe7d1 100%);
    --service-shadow: rgba(220, 108, 47, 0.24);
}

.dark .service-card--code {
    --service-chip-bg: #123b61;
    --service-chip-text: #e2f1ff;
    --service-visual-bg: linear-gradient(145deg, #11273a 0%, #0d1f2f 100%);
    --service-frame-bg: #f4fbff;
}

.dark .service-card--analytics {
    --service-chip-bg: #15493f;
    --service-chip-text: #dcfff7;
    --service-visual-bg: linear-gradient(145deg, #122d29 0%, #0f211f 100%);
    --service-frame-bg: #f8fffc;
}

.dark .service-card--software {
    --service-chip-bg: #4d3584;
    --service-chip-text: #f0e7ff;
}

.dark .service-card--ux {
    --service-chip-bg: #6a371d;
    --service-chip-text: #ffe8d7;
    --service-visual-bg: linear-gradient(145deg, #38210f 0%, #241509 100%);
    --service-frame-bg: #fff9f1;
}

.service-visual {
    position: relative;
    min-height: 15.5rem;
    padding: 0.9rem;
    border-radius: 1.2rem;
    background: var(--service-visual-bg);
    overflow: hidden;
    border: 1px solid var(--service-accent-soft);
}

.service-image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 13.5rem;
    height: 100%;
    border-radius: 1rem;
    padding: 0.75rem;
    background: var(--service-frame-bg);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
    animation: service-float 6.5s ease-in-out infinite;
}

.dark .service-image-frame {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.service-image {
    width: 100%;
    max-height: 17rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(17, 24, 39, 0.12));
    transform: scale(1.01);
    transition: transform 0.45s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05) translateY(-4px);
}

.service-chip {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--service-chip-bg);
    color: var(--service-chip-text);
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.08);
}

.dark .service-chip {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.service-orb {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: radial-gradient(circle, var(--service-accent-strong) 0%, rgba(255, 255, 255, 0) 74%);
    animation: service-pulse 5.8s ease-in-out infinite;
    pointer-events: none;
}

.service-orb--one {
    right: -1.25rem;
    top: 1.6rem;
    width: 7rem;
    height: 7rem;
}

.service-orb--two {
    left: -1rem;
    bottom: -1.4rem;
    width: 6rem;
    height: 6rem;
    animation-delay: 0.9s;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    padding: 0.25rem 0.15rem 0.15rem;
}

.service-copy {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.service-eyebrow {
    color: var(--service-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.72;
}

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

.service-points li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
}

.dark .service-points li {
    color: #f4ece5;
}

.service-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.46rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--service-accent);
    box-shadow: 0 0 0 0.25rem var(--service-accent-soft);
}

.service-card .card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: var(--service-chip-bg);
    color: var(--service-chip-text);
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.25s ease, gap 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    border: 1px solid var(--service-accent-soft);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: fit-content;
}

.service-card:hover .card-link {
    gap: 0.65rem;
    transform: translateX(2px);
}

.service-card .card-links:hover,
.service-card .card-links:focus-visible {
    color: inherit;
    text-decoration: none;
}

.service-card .card-link .arrow {
    font-size: 1rem;
}

@media (min-width: 700px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .service-card {
        grid-column: span 6;
    }

    .service-card--code,
    .service-card--ux {
        grid-column: span 7;
    }

    .service-card--analytics,
    .service-card--software {
        grid-column: span 5;
    }
}

@keyframes service-card-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes service-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes service-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.14);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-image-frame,
    .service-orb {
        animation: none !important;
    }

    .service-card,
    .service-card::before,
    .service-card::after,
    .service-image,
    .service-card .card-link {
        transition: none !important;
    }

    .service-card.card-retro:hover,
    .service-card:hover .service-image,
    .service-card:hover .card-link {
        transform: none !important;
    }
}

/* Stats Section */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
    margin-top: 2rem;
}

.dark .stats-section {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
}

.stats-section .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-section .stat-icon {
    font-size: 1.875rem;
    color: var(--primary);
}

.stats-section .stat-info {
    display: flex;
    flex-direction: column;
}

.stats-section .stat-number {
    font-weight: 700;
    font-size: 1.125rem;
}

.stats-section .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    width: 100%;
}

.cta-box {
    --cta-glow-x: 50%;
    --cta-glow-y: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    border: 4px solid var(--surface-cta-border);
    background-color: var(--surface-cta);
    box-shadow: 0 22px 42px rgba(120, 79, 43, 0.12);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at var(--cta-glow-x) var(--cta-glow-y), rgba(207, 99, 23, 0.16), transparent 45%);
    transition: background 0.2s ease;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 4rem 3rem;
    }
}

.dark .cta-box {
    background-color: #221811;
    border-color: var(--primary);
    box-shadow: none;
}

.dark .cta-box::before {
    background: radial-gradient(circle at var(--cta-glow-x) var(--cta-glow-y), rgba(207, 99, 23, 0.3), transparent 45%);
}

.cta-box .cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.08;
    pointer-events: none;
}

.dark .cta-box .cta-bg {
    opacity: 0.2;
}

.cta-box .cta-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-box .cta-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(207, 99, 23, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    animation: bounce 1s infinite;
}

.dark .cta-box .cta-icon {
    background-color: rgba(207, 99, 23, 0.2);
}

.cta-box .cta-icon span {
    font-size: 2.5rem;
    color: var(--primary);
}

.dark .cta-box .cta-icon span {
    color: var(--primary);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cta-box h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--surface-cta-ink);
    letter-spacing: -0.025em;
}

.dark .cta-box h2 {
    color: white;
}

@media (min-width: 768px) {
    .cta-box h2 {
        font-size: 3rem;
    }
}

.cta-box p {
    color: rgba(46, 34, 27, 0.8);
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto;
}

.dark .cta-box p {
    color: #d1d5db;
}

.cta-box .cta-button {
    width: 100%;
    max-width: 28rem;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.cta-box .cta-btn {
    width: 100%;
    height: 3.5rem;
    background-color: var(--primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 14px 24px rgba(207, 99, 23, 0.22);
}

.dark .cta-box .cta-btn {
    box-shadow: none;
}

.cta-box .cta-btn:hover {
    background-color: #d96d20;
}

/* Footer */
footer {
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
    margin-top: auto;
    background-color: var(--bg);
}

.dark footer {
    border-top-color: var(--border);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer .footer-logo {
    display: flex;
    align-items: center;
    color: var(--text);
}

footer .footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

footer .footer-logo img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    object-fit: cover;
}

footer .footer-logo span {
    font-weight: 700;
}

footer .footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

footer .footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

footer .copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Back To Top */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    background: var(--bg-secondary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    z-index: 130;
}

.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.dark .back-to-top {
    background: var(--card-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top .material-symbols-outlined {
    font-size: 1.35rem;
}

@media (min-width: 768px) {
    .back-to-top {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
    
    .sm\:block {
        display: block;
    }
    
    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:justify-between {
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
