/* ---------- Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background: #ffffff;
}
img { max-width: 100%; display: block; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: #0f172a; line-height: 1.25; margin-top: 0; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin-top: 0; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1e40af;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29,78,216,.25);
}
.btn-outline {
    background: transparent;
    color: #1d4ed8;
    border-color: #1d4ed8;
}
.btn-outline:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f172a;
}
.logo:hover { text-decoration: none; }
.logo img {
    height: 48px;
    width: auto;
    display: block;
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg,#1d4ed8,#0ea5e9);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

/* Nav */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-list a {
    color: #1f2937;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-list a:hover { color: #1d4ed8; text-decoration: none; }
.nav-list a.active { color: #1d4ed8; }
.nav-list a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: #1d4ed8;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 8px 18px;
    color: #1f2937;
}
.dropdown li a:hover { background: #f1f5f9; color: #1d4ed8; }
.caret { font-size: .7rem; margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
    color: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0f172a;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,58,138,.75) 60%, rgba(29,78,216,.65) 100%),
        url("../images/hero-home.jpg") center/cover no-repeat;
    animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
    0%   { transform: scale(1)    translate(0,0); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}
.hero::after {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(14,165,233,.35), transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.2); opacity: 1; }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.hero-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(56, 189, 248, .8);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(56, 189, 248, .8);
    animation: float 14s infinite ease-in-out;
    opacity: 0;
}
.hero-particles span:nth-child(odd)  { background: rgba(96, 165, 250, .7); box-shadow: 0 0 12px rgba(96, 165, 250, .7); }
.hero-particles span:nth-child(3n)   { width: 4px; height: 4px; }
.hero-particles span:nth-child(5n)   { width: 12px; height: 12px; }
.hero-particles span:nth-child(1)  { left: 6%;  top: 18%; animation-delay: 0s;   animation-duration: 12s; }
.hero-particles span:nth-child(2)  { left: 14%; top: 72%; animation-delay: 2s;   animation-duration: 16s; }
.hero-particles span:nth-child(3)  { left: 22%; top: 38%; animation-delay: 4s;   animation-duration: 14s; }
.hero-particles span:nth-child(4)  { left: 32%; top: 82%; animation-delay: 1s;   animation-duration: 18s; }
.hero-particles span:nth-child(5)  { left: 41%; top: 22%; animation-delay: 5s;   animation-duration: 13s; }
.hero-particles span:nth-child(6)  { left: 52%; top: 64%; animation-delay: 3s;   animation-duration: 15s; }
.hero-particles span:nth-child(7)  { left: 61%; top: 30%; animation-delay: 6s;   animation-duration: 17s; }
.hero-particles span:nth-child(8)  { left: 71%; top: 78%; animation-delay: 2.5s; animation-duration: 14s; }
.hero-particles span:nth-child(9)  { left: 80%; top: 14%; animation-delay: 4.5s; animation-duration: 16s; }
.hero-particles span:nth-child(10) { left: 88%; top: 56%; animation-delay: 1.5s; animation-duration: 13s; }
.hero-particles span:nth-child(11) { left: 94%; top: 84%; animation-delay: 3.5s; animation-duration: 15s; }
.hero-particles span:nth-child(12) { left: 47%; top: 8%;  animation-delay: 5.5s; animation-duration: 18s; }
@keyframes float {
    0%, 100% { transform: translate(0,0); opacity: 0; }
    20%      { opacity: 1; }
    50%      { transform: translate(20px, -50px); opacity: .8; }
    80%      { opacity: .4; }
}

/* Hero copy slides in on load */
.hero h1, .hero p, .hero-actions {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .8s ease forwards;
}
.hero h1            { animation-delay: .1s; }
.hero p             { animation-delay: .3s; }
.hero-actions       { animation-delay: .5s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* SVG network overlay */
.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: .55;
}
.hero-network .net-line {
    stroke: rgba(125, 211, 252, .55);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 6 8;
    animation: dash 6s linear infinite;
}
.hero-network .net-line.slow { animation-duration: 9s; stroke-dasharray: 4 12; }
.hero-network .net-line.fast { animation-duration: 4s; stroke-dasharray: 2 6; }
@keyframes dash {
    to { stroke-dashoffset: -56; }
}
.hero-network .net-node {
    fill: rgba(56, 189, 248, .9);
    animation: nodePulse 4s ease-in-out infinite;
}
.hero-network .net-node:nth-child(odd)  { animation-delay: 1s; }
.hero-network .net-node:nth-child(3n)   { animation-delay: 2s; fill: rgba(96, 165, 250, .9); }
.hero-network .net-node:nth-child(5n)   { animation-delay: .5s; }
@keyframes nodePulse {
    0%, 100% { transform-origin: center; opacity: .5; }
    50%      { opacity: 1; }
}

/* Headline rotator */
.rotator-wrap {
    display: inline-block;
    height: 1.1em;
    line-height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
    color: #38bdf8;
}
.rotator {
    display: flex;
    flex-direction: column;
    animation: rotateText 16s infinite;
}
.rotator span {
    display: block;
    height: 1.1em;
    white-space: nowrap;
}
@keyframes rotateText {
    0%, 20%   { transform: translateY(0); }
    25%, 45%  { transform: translateY(-1.1em); }
    50%, 70%  { transform: translateY(-2.2em); }
    75%, 95%  { transform: translateY(-3.3em); }
    100%      { transform: translateY(-4.4em); }
}

/* Animated stat counters */
.stats-section {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 64px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat {
    padding: 16px;
}
.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .85rem;
}
@media (max-width: 720px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Service card 3D flip */
.flip-card {
    perspective: 1200px;
    background: transparent;
    border: 0;
    padding: 0;
    transition: none;
    overflow: visible;
    height: 360px;
}
.flip-card:hover { transform: none; box-shadow: none; }
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.flip-card-front .card-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.flip-card-front .card-body,
.flip-card-back .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #fff;
    border-color: #1d4ed8;
}
.flip-card-back h3 { color: #fff; }
.flip-card-back p  { color: #dbeafe; flex: 1; }
.flip-card-back .btn {
    align-self: flex-start;
    margin-top: auto;
    background: #ffffff;
    color: #1d4ed8;
}
.flip-card-back .btn:hover { background: #f1f5f9; }

/* Hero video background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-video + .hero-bg { display: none; }

/* Reduced motion guard for new effects */
@media (prefers-reduced-motion: reduce) {
    .hero-network, .rotator, .flip-card-inner { animation: none !important; transition: none !important; }
    .rotator { transform: none !important; }
    .hero-video { display: none; }
    .slider-track { transition: none !important; }
}

/* ---------- Case study detail page ---------- */
.cs-detail-hero {
    position: relative;
    color: #fff;
    padding: 120px 0 96px;
    background: #0f172a;
    overflow: hidden;
}
.cs-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .35;
    z-index: 0;
}
.cs-detail-hero.plantation::before { background-image: url("../images/case-plantation.jpg"); }
.cs-detail-hero.banking::before    { background-image: url("../images/case-banking.jpg"); }
.cs-detail-hero.utilities::before  { background-image: url("../images/case-utilities.jpg"); }
.cs-detail-hero.healthcare::before { background-image: url("../images/case-healthcare.jpeg"); }
.cs-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.85), rgba(30,58,138,.65));
    z-index: 1;
}
.cs-detail-hero .container { position: relative; z-index: 2; }
.cs-detail-hero .cs-back {
    display: inline-block;
    color: #7dd3fc;
    margin-bottom: 14px;
    font-size: .9rem;
}
.cs-detail-hero .cs-back:hover { color: #fff; text-decoration: none; }
.cs-detail-hero h1 { color: #fff; max-width: 760px; margin: 0 0 18px; }
.cs-detail-hero .cs-tag {
    display: inline-block;
    background: rgba(56,189,248,.18);
    color: #7dd3fc;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(56,189,248,.35);
    margin-bottom: 14px;
}
.cs-detail-hero p.lead {
    color: #e2e8f0;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0;
}

/* Two-column body */
.cs-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.cs-section {
    margin-bottom: 40px;
}
.cs-section h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1d4ed8;
    display: inline-block;
}
.cs-section p, .cs-section li {
    color: #334155;
    line-height: 1.75;
}
.cs-section ul {
    padding-left: 22px;
}
.cs-section ul li {
    margin-bottom: 8px;
}

/* Sidebar card */
.cs-sidebar {
    position: sticky;
    top: 96px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.cs-sidebar h3 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin: 0 0 16px;
}
.cs-sidebar dl { margin: 0; }
.cs-sidebar dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 14px;
}
.cs-sidebar dt:first-child { margin-top: 0; }
.cs-sidebar dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 500;
}

/* Stats strip */
.cs-stats {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #fff;
    padding: 48px 0;
}
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}
.cs-stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: #7dd3fc;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.cs-stat-label {
    color: #cbd5e1;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width: 860px) {
    .cs-detail-body { grid-template-columns: 1fr; }
    .cs-sidebar { position: static; }
}

/* ---------- Our Work slider ---------- */
.work-slider {
    position: relative;
    margin: 40px auto 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
    background: #0f172a;
}
.slider-viewport {
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1);
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    position: relative;
    height: 480px;
    overflow: hidden;
}
.slide-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform .8s ease;
}
/* Slowly zoom the active slide's image (Ken Burns) */
.slide.is-active .slide-image {
    animation: slideZoom 8s ease-in-out forwards;
}
@keyframes slideZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

/* Dark gradient overlay for legibility + animated shimmer band */
.slide-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.85) 100%),
        linear-gradient(90deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.25) 60%, rgba(15,23,42,0) 100%);
    z-index: 1;
}
.slide-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    left: -30%;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,.18), transparent);
    z-index: 2;
    pointer-events: none;
}
.slide.is-active .slide-image-wrap::after {
    animation: slideShimmer 4s ease-in-out 1s forwards;
}
@keyframes slideShimmer {
    from { left: -30%; }
    to   { left: 130%; }
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 60px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 60%;
}
.slide-number {
    font-size: .9rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: .15em;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(12px);
}
.slide-tag {
    display: inline-block;
    background: rgba(56, 189, 248, .18);
    color: #7dd3fc;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 18px;
    align-self: flex-start;
    border: 1px solid rgba(56, 189, 248, .35);
    opacity: 0;
    transform: translateY(12px);
}
.slide-content h3 {
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 540px;
    opacity: 0;
    transform: translateY(12px);
}
.slide-content .btn {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(12px);
}
/* Stagger animate-in when slide becomes active */
.slide.is-active .slide-number { animation: slideUp .6s ease .15s forwards; }
.slide.is-active .slide-tag    { animation: slideUp .6s ease .25s forwards; }
.slide.is-active .slide-content h3  { animation: slideUp .6s ease .35s forwards; }
.slide.is-active .slide-content .btn { animation: slideUp .6s ease .5s  forwards; }
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .95);
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .15);
    color: #1d4ed8;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}
.slider-arrow:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, width .3s ease;
}
.slider-dot:hover { background: #94a3b8; }
.slider-dot.active {
    background: #1d4ed8;
    width: 28px;
    border-radius: 5px;
}

.slider-progress {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(29, 78, 216, .15);
    z-index: 2;
}
.slider-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
    transition: width 5s linear;
}
.slider-progress-bar.run { width: 100%; }
.slider-progress-bar.reset { transition: none; width: 0; }

@media (max-width: 860px) {
    .slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .slide-image {
        height: 240px;
    }
    .slide-content { padding: 32px 28px; }
    .slider-arrow { width: 40px; height: 40px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
}
.hero h1 { color: #ffffff; max-width: 780px; margin-bottom: 18px; }
.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    color: #cbd5e1;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { color: #ffffff; border-color: #ffffff; }
.hero .btn-outline:hover { background: #ffffff; color: #1d4ed8; }

/* ---------- Page header (non-home) ---------- */
.page-header {
    background: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), #0f172a;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 96px 0;
    text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #e2e8f0; max-width: 720px; margin: 0 auto; }
.page-header.about-bg    { background-image: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), url("../images/about-banner.jpg"); }
.page-header.services-bg { background-image: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), url("../images/services-banner.jpg"); }
.page-header.cases-bg    { background-image: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), url("../images/case-studies-banner.jpg"); }
.page-header.contact-bg  { background-image: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), url("../images/contact-banner.jpg"); }
.page-header.kb-bg       { background-image: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,58,138,.75)), url("../images/about-banner.jpg"); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title {
    text-align: center;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 48px;
}
.alt-bg { background: #f8fafc; }

/* ---------- Card grids ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.card .icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg,#1d4ed8,#0ea5e9);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: #475569; margin: 0; }

/* Card with image on top */
.card-img {
    padding: 0;
}
.card-img .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.card-img .card-body {
    padding: 24px 24px 28px;
}
.card-img .card-body h3 { margin-bottom: 10px; }
.card-img .card-body p { color: #475569; margin: 0; }

/* Industry cards */
.industry-card {
    border-left: 4px solid #1d4ed8;
}

/* Partner logos — auto-scrolling carousel */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
            mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.partners-track {
    display: flex;
    gap: 56px;
    width: max-content;
    align-items: center;
    animation: scroll-x 35s linear infinite;
}
.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.partner-logo {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 24px;
    min-width: 180px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.partner-logo img {
    max-height: 50px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter .2s ease, transform .2s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero::after, .hero-particles span,
    .partners-track,
    .hero h1, .hero p, .hero-actions {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- About strategy ---------- */
.pillar-card {
    text-align: center;
    padding: 32px 24px;
}
.pillar-card .icon {
    margin: 0 auto 16px;
}

/* ---------- Case studies ---------- */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.case-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: stretch;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.case-item:hover {
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
    border-color: #1d4ed8;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.case-item:hover .case-readmore { color: #1d4ed8; }
.case-item:hover .case-readmore::after { transform: translateX(4px); }
.case-readmore {
    margin-top: auto;
    padding-top: 14px;
    color: #64748b;
    font-weight: 600;
    font-size: .9rem;
    transition: color .2s ease;
}
.case-readmore::after {
    content: "";
    display: inline-block;
    transition: transform .2s ease;
}
.case-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.case-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.case-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1;
    margin-bottom: 4px;
}
.case-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info p {
    color: #475569;
    margin-bottom: 14px;
}
.contact-info strong { color: #0f172a; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}
textarea { min-height: 140px; resize: vertical; }

.form-success {
    display: none;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg,#1d4ed8,#0ea5e9);
    color: #fff;
    text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: #e0f2fe; max-width: 620px; margin: 0 auto 28px; }
.cta-section .btn-primary {
    background: #ffffff;
    color: #1d4ed8;
}
.cta-section .btn-primary:hover { background: #f1f5f9; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #ffffff; }

.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    width: 40px; height: 40px;
    background: #1e293b;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background .15s ease, transform .15s ease;
    overflow: hidden;
    padding: 8px;
}
.social-links a:hover { background: #1d4ed8; text-decoration: none; transform: translateY(-2px); }
.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav-list {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(15,23,42,.06);
        display: none;
    }
    .nav-list.open { display: flex; }
    .nav-list li { width: 100%; }
    .nav-list a { display: block; padding: 12px 24px; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
    }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .case-item { grid-template-columns: 1fr; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 64px 0; }
    section { padding: 56px 0; }
}
