:root {
    --primary-dark: #0a0a0a;
    --primary-light: #141414;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    --text-main: #ffffff;
    --text-muted: #d4d4d4;
    --font-heading: "Plus Jakarta Sans", sans-serif;
    --font-body: "Inter", sans-serif;
    --section-spacing: 120px;
    --surface-card: rgba(255, 255, 255, 0.045);
    --surface-card-strong: rgba(255, 255, 255, 0.075);
    --border-soft: rgba(255, 255, 255, 0.1);
}

html {
    scroll-padding-top: 92px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container,
.row,
[class*="col-"] {
    min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    color: var(--text-main);
    font-family: var(--font-heading);
    letter-spacing: 0;
}

.navbar {
    background: rgba(10, 10, 10, 0.86);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link.active::after {
    background: var(--accent-blue);
    border-radius: 4px;
    bottom: 0;
    content: "";
    height: 2px;
    left: 1rem;
    position: absolute;
    right: 1rem;
}

.btn-hire {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.5);
    color: #fff !important;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hire:hover {
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.7);
    transform: translateY(-2px);
}

.hero-section,
.page-header {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(6, 182, 212, 0.04) 36%, transparent 62%),
        linear-gradient(180deg, #060606 0%, #101010 100%);
    overflow: hidden;
    position: relative;
}

.hero-section {
    padding: 165px 0 95px;
}

.page-header {
    padding: 180px 0 80px;
}

.hero-section::before,
.page-header::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    content: "";
    inset: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    position: absolute;
    z-index: 0;
}

.hero-section h1 {
    line-height: 1.04;
    max-width: 680px;
    overflow-wrap: break-word;
}

.hero-section h1 span {
    display: block;
}

.hero-section h1.display-3,
.page-header h1.display-3 {
    font-size: 4.15rem;
}

.services-section h2.display-5 {
    font-size: 2.65rem;
}

.cta-panel h2.display-6 {
    font-size: 2.2rem;
}

.hero-section .lead {
    max-width: 620px;
    overflow-wrap: break-word;
}

.hero-proof-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
    max-width: 620px;
}

.hero-proof-grid > div {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    min-width: 0;
    padding: 1rem;
}

.hero-proof-grid strong,
.hero-proof-grid span {
    display: block;
}

.hero-proof-grid strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-proof-grid span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.hero-visual {
    margin-left: auto;
    max-width: 620px;
    position: relative;
}

.hero-img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 30px 70px -30px rgba(59, 130, 246, 0.2);
    display: block;
    object-fit: cover;
    width: 100%;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-visual-panel {
    align-items: center;
    background: rgba(250, 250, 250, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    bottom: 24px;
    box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
    color: #111;
    display: flex;
    gap: 14px;
    left: 24px;
    padding: 14px;
    position: absolute;
    right: 24px;
}

.hero-visual-panel strong,
.hero-visual-panel span {
    display: block;
}

.hero-visual-panel > div:last-child {
    min-width: 0;
}

.hero-visual-panel strong {
    color: #111;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    line-height: 1.25;
}

.hero-visual-panel span {
    color: #525252;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.mini-chart {
    background:
        linear-gradient(to top, rgba(34, 197, 94, 0.95), rgba(34, 197, 94, 0.95)) 10px bottom / 9px 24px no-repeat,
        linear-gradient(to top, rgba(59, 130, 246, 0.95), rgba(59, 130, 246, 0.95)) 28px bottom / 9px 36px no-repeat,
        linear-gradient(to top, rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.95)) 46px bottom / 9px 18px no-repeat,
        linear-gradient(to top, rgba(6, 182, 212, 0.95), rgba(6, 182, 212, 0.95)) 64px bottom / 9px 30px no-repeat,
        #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    flex: 0 0 86px;
    height: 54px;
}

.services-section {
    background:
        linear-gradient(180deg, #141414 0%, #101010 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0;
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    height: 100%;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
}

.icon-box {
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--accent-blue);
    display: flex;
    font-size: 24px;
    height: 60px;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 60px;
}

.section-heading {
    margin: 0 auto 46px;
    max-width: 760px;
}

.section-heading > span,
.section-heading > div > span {
    color: var(--accent-amber);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #fff;
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.12;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    max-width: 760px;
    overflow-wrap: break-word;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    overflow-wrap: break-word;
}

.section-heading-split {
    align-items: end;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    max-width: none;
}

.section-heading-split h2 {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.section-heading-split em {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
    -webkit-text-fill-color: transparent;
}

.pricing-section {
    background: #090909;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 100px 0;
}

.pricing-grid {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2rem;
}

.pricing-card.is-highlight {
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(255, 255, 255, 0.055) 58%),
        #101010;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 70px -35px rgba(59, 130, 246, 0.65);
}

.pricing-label {
    align-self: flex-start;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
}

.pricing-top h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pricing-price {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.pricing-top p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.pricing-features {
    display: grid;
    flex: 1;
    gap: 0.8rem;
    list-style: none;
    margin: 1.6rem 0 2rem;
    padding: 0;
}

.pricing-features li {
    align-items: flex-start;
    color: var(--text-muted);
    display: flex;
    gap: 0.65rem;
    line-height: 1.45;
}

.pricing-features i {
    color: var(--accent-green);
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.home-work-section {
    background:
        linear-gradient(180deg, #101010 0%, #141414 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0;
}

.home-work-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-tile {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-tile:hover {
    border-color: rgba(6, 182, 212, 0.36);
    box-shadow: 0 18px 48px -28px rgba(6, 182, 212, 0.6);
    transform: translateY(-6px);
}

.work-image-link {
    aspect-ratio: 16 / 10;
    background: #fff;
    display: block;
    overflow: hidden;
}

.work-image-link img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
    width: 100%;
}

.work-tile:hover .work-image-link img {
    transform: scale(1.04);
}

.work-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.work-kicker {
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.work-content h3 {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.work-content p {
    color: var(--text-muted);
    flex: 1;
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    overflow-wrap: break-word;
}

.work-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.7rem;
    justify-content: space-between;
    padding-top: 1rem;
}

.client-grid-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 80px;
    margin-top: 80px;
    padding-bottom: 80px;
}

.client-grid {
    align-items: center;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
}

.client-grid-item {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    height: 160px;
    justify-content: center;
    padding: 30px;
    transition: all 0.3s ease;
    width: 100%;
}

.client-grid-item:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.client-grid-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.case-study-section {
    padding: 60px 0 100px;
}

.project-card-grid {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin-bottom: var(--section-spacing);
}

.project-image-wrapper {
    perspective: 1000px;
    position: relative;
}

.image-container-3d {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 30px 70px -30px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}

.project-img {
    background: #fff;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}

.project-image-wrapper:hover .image-container-3d {
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 40px 80px -20px rgba(59, 130, 246, 0.3);
    transform: rotateX(4deg) rotateY(-4deg) translateY(-10px) scale(1.02);
}

.project-header {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 1.8rem;
}

.client-logo-wrapper {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    display: flex;
    height: 64px;
    justify-content: center;
    padding: 12px;
    width: 64px;
}

.client-logo {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.badge-category {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 6px 14px;
    text-transform: uppercase;
}

.project-title {
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.project-meta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    width: 100%;
}

.content-block {
    margin-bottom: 2rem;
}

.section-label {
    align-items: center;
    display: flex;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.label-challenge {
    color: #f87171;
}

.label-solution {
    color: #4ade80;
}

.project-desc {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.tech-stack-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.cta-section {
    background: var(--primary-light);
    overflow: hidden;
    position: relative;
}

.cta-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0 50px;
}

.text-muted-custom {
    color: var(--text-muted);
}

@media (min-width: 992px) {
    .project-card-grid {
        gap: 5rem;
        grid-template-columns: 5.5fr 4.5fr;
    }

    .project-card-grid.even .project-image-wrapper {
        order: 2;
    }

    .project-card-grid.even .project-content-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .page-header {
        padding-top: 140px;
    }

    .hero-section {
        padding-bottom: 70px;
    }

    .hero-section h1.display-3,
    .page-header h1.display-3 {
        font-size: 2.7rem;
    }

    .hero-proof-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual-panel {
        margin-top: 12px;
        position: static;
    }

    .section-heading h2 {
        font-size: 2.05rem;
    }

    .services-section h2.display-5,
    .cta-panel h2.display-6 {
        font-size: 2.05rem;
    }

    .section-heading-split,
    .pricing-grid,
    .home-work-grid {
        grid-template-columns: 1fr;
    }

    .services-section,
    .pricing-section,
    .home-work-section {
        padding: 75px 0;
    }

    .pricing-card,
    .service-card {
        padding: 1.5rem;
    }

    .client-grid {
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .client-grid-item {
        height: 100px;
        padding: 15px;
    }

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

@media (min-width: 769px) and (max-width: 991px) {
    .hero-section h1.display-3,
    .page-header h1.display-3 {
        font-size: 3.35rem;
    }

    .pricing-grid,
    .home-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 575px) {
    .container {
        margin-left: 0;
        margin-right: auto;
        max-width: 390px;
    }

    .hero-section h1.display-3,
    .page-header h1.display-3 {
        font-size: 2.08rem;
        max-width: 340px;
    }

    .section-heading h2,
    .services-section h2.display-5,
    .cta-panel h2.display-6 {
        font-size: 1.85rem;
        max-width: 330px;
    }

    .hero-section .lead,
    .hero-proof-grid,
    .hero-visual,
    .service-card,
    .pricing-card,
    .work-tile {
        max-width: 340px;
    }

    .service-card,
    .pricing-card,
    .work-tile {
        margin-left: auto;
        margin-right: auto;
    }

    .services-section .text-muted-custom,
    .section-heading p {
        margin-left: auto;
        margin-right: auto;
        max-width: 340px;
    }

    .hero-visual-panel {
        align-items: flex-start;
    }

    .mini-chart {
        flex-basis: 72px;
        width: 72px;
    }

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