/* REDESIGNED HOMEPAGE CSS FOR AMPRACORE */

:root {
    --primary-red: #a00000;
    --hover-red: #8b0000;
    --dark-bg: #0b0b0b;
    --dark-surface: #151515;
    --light-surface: #ffffff;
    --gray-bg: #f4f4f5;
    --text-main: #0b0b0b;
    --text-muted: #71717a;
    --text-white: #ffffff;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03), 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.12);
    --scroll-animate-distance: 40px;
}

/* Base resets & layout */
.page-content {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: #fafafa;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fafafa;
    margin: 0;
}

.section-padding {
    padding: 6.5rem 8%;
    transition: padding 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

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

.nowrap {
    white-space: nowrap;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   HERO SECTION — REFINED TO MATCH FIGMA DESIGN
   ============================================================ */
.hero-section {
    position: relative;
    padding: 4.5rem 8% 6.5rem;
    /* Reduced from 9.5rem to fix uneven spacing after header */
    overflow: hidden;
    background: radial-gradient(circle at 14% 45%, rgba(200, 0, 0, 0.14), transparent 16%),
        radial-gradient(circle at 88% 18%, rgba(200, 0, 0, 0.12), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #fcf2f2 42%, #ffffff 100%);
    background-repeat: no-repeat;
    transition: padding 0.3s ease;
}

/* 3D Floating Elements Container & Keyframes */
.hero-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    --image-rotation: 0deg;
}

.decor-top-left {
    position: absolute;
    top: -32px;
    left: -72px;
    width: 250px;
    --base-rotation: -42deg;
    --image-rotation: -18deg;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.decor-top-right {
    top: -28px;
    right: -16px;
    width: 220px;
    --base-rotation: 10deg;
    --image-rotation: 3deg;
    transition: all 0.3s ease;
}

.decor-bottom-left {
    bottom: -60px;
    left: -68px;
    width: 220px;
    --base-rotation: 198deg;
    --image-rotation: -12deg;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .decor-top-right {
        width: 195px;
        right: -10px;
        top: -22px;
    }

    .decor-bottom-left {
        width: 190px;
        left: -55px;
        bottom: -44px;
    }
}

@media (max-width: 1024px) {
    .decor-top-right {
        width: 180px;
        right: -8px;
        top: -18px;
    }

    .decor-bottom-left {
        width: 170px;
        left: -36px;
        bottom: -34px;
    }
}

@media (max-width: 768px) {
    .decor-top-right {
        width: 150px;
        right: -10px;
        top: -16px;
    }

    .decor-bottom-left {
        width: 130px;
        left: -24px;
        bottom: -28px;
    }
}

.floating-3d-star {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(156, 12, 22, 0.18));
    animation: float3D 9s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
}

@keyframes float3D {
    0% {
        transform: translateY(0) rotate(calc(var(--base-rotation) + var(--image-rotation))) rotateY(-8deg) rotateX(8deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(calc(var(--base-rotation) + var(--image-rotation) + 6deg)) rotateY(12deg) rotateX(-8deg) scale(1.02);
    }

    100% {
        transform: translateY(0) rotate(calc(var(--base-rotation) + var(--image-rotation))) rotateY(-8deg) rotateX(8deg) scale(1);
    }
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.35fr;
    /* Widened the bento grid from 1.15fr to give premium cards more space */
    gap: 3.5rem;
    /* Reduced gap from 5rem to avoid horizontal squeeze on large displays */
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-left {
    position: relative;
    z-index: 10;
}

.hero-left h1 {
    font-size: 4.4rem;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
    color: #0c0c0c;
}

.hero-left h1 .highlight-red {
    font-weight: 700;
    color: var(--primary-red);
}

.hero-left .section-description {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-explore {
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    box-shadow: 0 12px 30px rgba(156, 12, 22, 0.3);
}

.btn-explore i {
    margin-left: 10px;
    font-size: 0.95rem;
    transition: transform 0.4s ease;
}

.btn-explore:hover {
    background-color: var(--hover-red);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(156, 12, 22, 0.4);
}

.btn-explore:hover i {
    transform: translate(4px, -4px);
}

/* ============================================================
   HERO RIGHT — 3-COLUMN BENTO GRID
   ============================================================ */
.hero-right {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.95fr;
    /* Increased Column 3 width from 0.8fr to 0.95fr to prevent squeeze */
    gap: 1.2rem;
    /* Reduced gap from 1.4rem to gain extra layout safety width */
    position: relative;
    padding: 1.5rem 0.25rem;
    background: transparent;
}

/* -------- HAPPY CLIENTS CARD (left col, top) -------- */
.card-happy-clients {
    height: auto;
    min-height: 240px;
    padding: 2.6rem 1.5rem 2.6rem 4.6rem;
    /* Pushed content left padding to 4.6rem to avoid badge overlap */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: transparent !important;
    /* Make parent container transparent */
    border: none !important;
    /* Remove parent border */
    box-shadow: none !important;
    /* Remove parent shadow */
    overflow: visible !important;
    /* Allow left side cutout and badge to overflow cleanly */
}

/* Pseudo-element for black background, border, shadow, and cutout mask */
.card-happy-clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
    z-index: -1;
    /* Place behind card content */
    pointer-events: none;

    /* Apply circular mask to cut out the left side boundary cleanly and transparently */
    -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 55px, black 56px);
    mask-image: radial-gradient(circle at 0 50%, transparent 55px, black 56px);
}

/* Premium Left Side Concave Cutout */
.card-cutout-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.cutout-circle {
    display: none !important;
    /* Hidden because mask-image creates a truly transparent circular cutout */
}

.cutout-corner-top {
    position: absolute;
    left: 0;
    top: calc(50% - 56px - 16px);
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    /* Seamless match with pure white hero background */
    border-top-right-radius: 16px;
    /* High-fidelity convex corner pointing into black card */
}

.cutout-corner-bottom {
    position: absolute;
    left: 0;
    top: calc(50% + 56px);
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    /* Seamless match with pure white hero background */
    border-bottom-right-radius: 16px;
    /* High-fidelity convex corner pointing into black card */
}

/* 50K+ overlapping badge — fully visible, crisp */
.badge-projects {
    position: absolute;
    left: -50px;
    /* Perfectly centered inside the 112px cutout with 6px white margin all around */
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
    box-shadow: 0 12px 28px rgba(156, 12, 22, 0.25);
    border: none;
    /* Removed physical border, letting the beautiful white cutout frame it instead */
    z-index: 15;
    animation: badgePulse 4s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% {
        transform: translateY(-50%) scale(1);
    }

    100% {
        transform: translateY(-50%) scale(1.05);
    }
}

.badge-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 0 8px;
    text-align: center;
}

/* Large stat — Figma: large, elegant, lighter weight */
.card-large-text {
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.card-sub-text {
    font-size: 1rem;
    color: #a1a1aa;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Avatar overlap list */
.avatar-row {
    display: flex;
    align-items: center;
    margin-top: 1.6rem;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #000000;
    margin-right: -12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
    position: relative;
}

.avatar-img:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 10;
}

.avatar-img:last-child {
    margin-right: 0;
}

/* -------- DELIGHTING CARD (left col, bottom) -------- */
.card-delighting {
    height: auto;
    min-height: 120px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000 !important;
}

.card-delighting p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* -------- CODE IMAGE CARD (middle col, top) -------- */
.card-image-code {
    height: 270px;
    padding: 0;
    border-radius: 32px;
    overflow: hidden;
}

.card-image-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* -------- TRUST CARD (middle col, bottom) -------- */
.card-trust {
    height: auto;
    min-height: 110px;
    padding: 1.8rem;
    background-color: var(--primary-red) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-trust p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* -------- RIGHT STACK WRAPPER (3 stat cards with white concave panel) -------- */
.hero-right-stack-wrapper {
    background-color: #ffffff;
    border-radius: 32px;
    position: relative;
    padding: 1.2rem 1.2rem 1.2rem calc(1.2rem + 1.2rem + 32px);
    /* Add grid gap + 32px overlap extension to left padding */
    margin-left: calc(-1.2rem - 32px);
    /* Shift left by grid gap (1.2rem) and extend 32px under Column 2 cards */
    width: calc(100% + 1.2rem + 32px);
    /* Scale width up so right edge remains perfectly aligned */
    z-index: 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-right-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    height: 100%;
    justify-content: center;
}

/* Small stat cards */
.card-small {
    background-color: #0d0d0d !important;
    padding: 1.2rem 1rem;
    /* Slightly reduced padding to maximize content width */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-small:hover {
    transform: scale(1.04);
}

.small-card-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.small-card-txt {
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Stacks */
.hero-left-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
    z-index: 4;
}

.hero-middle-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
    z-index: 3;
}

/* Base card */
.hero-card {
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
}

/* ============================================================
   FIGMA EXACT DESIGN ENGINE — DESKTOP RE-ENGINEERING (min-width: 1025px)
   ============================================================ */
@media (min-width: 1025px) {

    /* 1. Bento Container (Group 2216) */
    .hero-right {
        display: block !important;
        position: relative !important;
        width: 616px !important;
        height: 377px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    /* 2. Left Stack (Column 1) */
    .hero-left-stack {
        position: absolute !important;
        left: 53px !important;
        top: 0 !important;
        width: 241px !important;
        height: 377px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 5 !important;
        /* Sits on top of the middle stack to ensure full visibility */
    }

    /* 3. Happy Clients Card (Rectangle 1615) */
    .card-happy-clients {
        position: relative !important;
        width: 241px !important;
        height: 241px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .card-happy-clients::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: #000000 !important;
        border-radius: 25px !important;
        z-index: -1 !important;
        pointer-events: none !important;
        -webkit-mask-image: radial-gradient(circle at -5.5px 125.5px, transparent 55px, black 56px) !important;
        mask-image: radial-gradient(circle at -5.5px 125.5px, transparent 55px, black 56px) !important;
    }

    /* Seamless cutout corner styling with the hero section white background */
    .cutout-corner-top {
        position: absolute !important;
        left: -1px !important;
        top: 54.5px !important;
        width: 16px !important;
        height: 16px !important;
        background-color: #ffffff !important;
        border-top-right-radius: 16px !important;
        z-index: 10 !important;
    }

    .cutout-corner-bottom {
        position: absolute !important;
        left: -1px !important;
        top: 180.5px !important;
        width: 16px !important;
        height: 16px !important;
        background-color: #ffffff !important;
        border-bottom-right-radius: 16px !important;
        z-index: 10 !important;
    }

    /* 4. Delighting Clients Card (Rectangle 1615 / Subtract) */
    .card-delighting {
        position: relative !important;
        width: 241px !important;
        height: 121px !important;
        background-color: #000000 !important;
        border-radius: 19px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        border: none !important;
        transform: matrix(-1, 0, 0, 1, 0, 0) !important;
        /* Retain standard Figma transformation context */
    }

    .card-delighting p {
        position: absolute !important;
        left: 32px !important;
        top: 20px !important;
        width: 166px !important;
        height: 81px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 18px !important;
        line-height: 27px !important;
        text-align: center !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: matrix(-1, 0, 0, 1, 0, 0) !important;
        /* Invert text flip back to readable */
    }

    /* 5. 50K+ Projects Badge (Group 2204) */
    .badge-projects {
        position: absolute !important;
        left: -53px !important;
        top: 78px !important;
        width: 95px !important;
        height: 95px !important;
        background: #A00000 !important;
        border-radius: 50% !important;
        z-index: 15 !important;
        margin: 0 !important;
        display: block !important;
        border: none !important;
        box-shadow: 0 12px 28px rgba(156, 12, 22, 0.25) !important;
        animation: badgePulse 4s ease-in-out infinite alternate !important;
    }

    .badge-number {
        position: absolute !important;
        left: 22px !important;
        top: 14px !important;
        width: 51px !important;
        height: 27px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 18px !important;
        line-height: 27px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .badge-text {
        position: absolute !important;
        left: 15px !important;
        top: 40px !important;
        width: 65px !important;
        height: 36px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 18px !important;
        text-align: center !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 6. Happy Clients Content (10K+ & Happy Clients) */
    .card-large-text {
        position: absolute !important;
        left: 77px !important;
        top: 28px !important;
        width: 119px !important;
        height: 80px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 53px !important;
        line-height: 80px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .card-sub-text {
        position: absolute !important;
        left: 69px !important;
        top: 111px !important;
        width: 131px !important;
        height: 27px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 18px !important;
        line-height: 27px !important;
        text-align: center !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Avatars Stack (Group 2069) */
    .avatar-row {
        position: absolute !important;
        left: 45px !important;
        top: 173px !important;
        width: 151px !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .avatar-img {
        position: absolute !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        border: 1px solid #FFFFFF !important;
        object-fit: cover !important;
        margin: 0 !important;
        box-shadow: none !important;
        transition: transform 0.3s ease !important;
    }

    .avatar-img:hover {
        transform: translateY(-4px) scale(1.15) !important;
        z-index: 10 !important;
    }

    .avatar-img:nth-child(1) {
        left: 0px !important;
        z-index: 4 !important;
    }

    .avatar-img:nth-child(2) {
        left: 38px !important;
        z-index: 3 !important;
    }

    .avatar-img:nth-child(3) {
        left: 76px !important;
        z-index: 2 !important;
    }

    .avatar-img:nth-child(4) {
        left: 101px !important;
        z-index: 1 !important;
    }

    /* 7. Middle Stack (Column 2) */
    .hero-middle-stack {
        position: absolute !important;
        left: 312px !important;
        top: 0 !important;
        width: 241px !important;
        height: 377px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 3 !important;
    }

    .card-image-code {
        position: relative !important;
        width: 241px !important;
        height: 241px !important;
        border-radius: 25px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        border: none !important;
        box-shadow: var(--shadow-premium) !important;
    }

    .card-trust {
        position: relative !important;
        width: 179px !important;
        height: 120px !important;
        background-color: #A00000 !important;
        border-radius: 11px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        border: none !important;
        box-shadow: var(--shadow-premium) !important;
    }

    .card-trust p {
        position: absolute !important;
        left: 30px !important;
        top: 19px !important;
        width: 120px !important;
        height: 81px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 18px !important;
        line-height: 27px !important;
        text-align: center !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 8. Right Stack Wrapper (Column 3 backing white panel) */
    .hero-right-stack-wrapper {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 75px !important;
        width: 140px !important;
        height: 310px !important;
        background-color: #ffffff !important;
        border-radius: 32px !important;
        z-index: 4 !important;
        /* Raised to 4 to sit on top of Column 2 cards, preventing text cutoff */
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        box-shadow: var(--shadow-premium) !important;
    }

    .hero-right-stack {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 9. Small Cards (Rectangle 1616 / 1617 / 1618) */
    .card-small {
        position: absolute !important;
        width: 108px !important;
        height: 86px !important;
        background-color: #000000 !important;
        border-radius: 11px !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        box-shadow: none !important;
        transition: transform 0.4s ease !important;
    }

    .card-small:hover {
        transform: scale(1.05) !important;
    }

    .card-small:nth-child(1) {
        left: 16px !important;
        top: 18px !important;
    }

    .card-small:nth-child(2) {
        left: 16px !important;
        top: 117px !important;
    }

    .card-small:nth-child(3) {
        left: 16px !important;
        top: 216px !important;
    }

    .small-card-num {
        position: absolute !important;
        left: 12px !important;
        /* Adjusted leftward slightly from 16px to 12px for beautiful inner centering */
        top: 11px !important;
        width: auto !important;
        height: 23px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        line-height: 22px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .card-small:nth-child(1) .small-card-num {
        top: 12px !important;
    }

    .small-card-txt {
        position: absolute !important;
        left: 12px !important;
        /* Adjusted leftward slightly from 16px to 12px for beautiful inner centering */
        top: 37px !important;
        width: 84px !important;
        height: 36px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 18px !important;
        color: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .card-small:nth-child(2) .small-card-txt {
        top: 36px !important;
    }

    .card-small:nth-child(3) .small-card-txt {
        top: 36px !important;
        width: 72px !important;
    }
}

/* --- DIGITAL SOLUTIONS SECTION --- */
.solutions-section {
    background-color: var(--light-surface);
    overflow: hidden;
    padding: 6.5rem 0 6.5rem;
}

.solutions-section .section-header {
    padding: 0 8%;
    margin-bottom: 3.5rem;
}

.solutions-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}

.solutions-slider-container::before,
.solutions-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.solutions-slider-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.solutions-slider-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.solutions-track {
    display: flex;
    gap: 2.2rem;
    width: max-content;
    animation: slideMarquee 28s linear infinite;
    padding-left: 2rem;
}

.solutions-track:hover {
    animation-play-state: paused;
}

.solution-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.solution-card-link:focus-visible {
    outline: 3px solid rgba(162, 0, 0, 0.35);
    outline-offset: 4px;
}

.solution-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
    width: 440px;
    flex-shrink: 0;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(160, 0, 0, 0.2);
}

.solution-placeholder {
    width: 100%;
    height: 240px;
    background-color: #e8e8e8;
    border-radius: 18px;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
}

.solution-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: placeholderShimmer 2.5s infinite;
}

@keyframes placeholderShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #0b0b0b;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@keyframes slideMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.1rem));
    }
}

/* --- EXPLORE OUR EXPERTISE SECTION --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-card {
    background-color: var(--light-surface);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.expertise-card-content {
    padding: 2.8rem 2.5rem 1.8rem;
    flex: 1;
}

.expertise-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.expertise-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 2rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.9rem;
}

.sparkle-bullet {
    font-size: 1.1rem;
    color: var(--primary-red);
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.expertise-card-image {
    height: 260px;
    margin-top: auto;
    overflow: hidden;
    position: relative;
}

.expertise-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* --- ALL SYSTEMS, ONE CONNECTION SECTION --- */
.connection-section {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 6.5rem 0;
    text-align: center;
}

.connection-section h2 {
    color: var(--text-white);
    margin-bottom: 4rem;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.connection-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
}

.connection-row {
    display: grid;
    gap: 1.25rem;
    width: 100%;
}

.connection-row-top {
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 1.5rem;
}

.connection-row-bottom {
    grid-template-columns: repeat(4, 1fr);
}

.conn-box,
.conn-box-large {
    background-color: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.conn-box {
    height: 180px;
    padding: 1.8rem 1rem;
}

.conn-box-large {
    height: 250px;
    padding: 2.5rem 1.5rem;
}

.conn-box:hover,
.conn-box-large:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.conn-icon,
.conn-icon-large {
    color: #ffffff;
    margin-bottom: 1.2rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.conn-icon {
    font-size: 2.2rem;
}

.conn-icon-large {
    font-size: 2.8rem;
}

.conn-label,
.conn-label-large {
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.conn-label {
    font-size: 0.95rem;
}

.conn-label-large {
    font-size: 1.15rem;
}

.conn-box:hover .conn-icon,
.conn-box-large:hover .conn-icon-large {
    transform: scale(1.1);
    color: var(--primary-red);
}

@media (max-width: 1200px) {
    .connection-row-top {
        grid-template-columns: repeat(3, 1fr);
    }

    .connection-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .connection-row-top,
    .connection-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .conn-box {
        height: 170px;
    }

    .conn-box-large {
        height: 220px;
    }
}

@media (max-width: 480px) {

    .connection-row-top,
    .connection-row-bottom {
        grid-template-columns: 1fr;
    }

    .connection-section h2 {
        font-size: 2.2rem;
    }
}

/* --- SERVICES / MISSION & VISION SECTION --- */
.services-section {
    background-color: var(--light-surface);
    padding: 7.5rem 0;
}

.services-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 6rem;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 4%;
}

.services-left {
    position: relative;
    display: inline-block;
}

.services-left img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    display: block;
}

.play-badge-wrap {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.play-badge-wrap:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.02);
}

.play-badge-svg {
    width: 100%;
    height: 100%;
    animation: rotateBadge 22s linear infinite;
}

.play-badge-text {
    fill: #0b0b0b;
    font-size: 6.2px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.play-btn-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(160, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.play-badge-wrap:hover .play-btn-inner {
    background-color: #c00000;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 10px 25px rgba(192, 0, 0, 0.45);
}

.play-btn-inner i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes rotateBadge {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mission-block {
    margin-bottom: 3.8rem;
}

.mission-title,
.vision-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b0b0b;
    border-left: 4px solid var(--primary-red);
    padding-left: 14px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mission-desc,
.vision-desc {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.68 !important;
    margin: 0;
}

@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .services-left {
        max-width: 600px;
        margin: 0 auto;
    }

    .play-badge-wrap {
        right: -30px;
    }
}

@media (max-width: 576px) {
    .solution-card {
        width: 290px !important;
        padding: 1.5rem !important;
    }

    .play-badge-wrap {
        width: 120px;
        height: 120px;
        right: -15px;
    }

    .play-btn-inner {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .mission-title,
    .vision-title {
        font-size: 1.4rem;
    }
}

/* --- BENEFIT CARDS --- */
.benefits-section {
    background-color: var(--light-surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.benefit-card {
    height: 500px;
    border-radius: 0;
    padding: 2.5rem 2rem 2.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-soft);
    color: var(--text-white);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.benefit-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.benefit-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.benefit-content {
    position: relative;
    z-index: 2;
}

.benefit-bg-media {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-erp {
    background-color: #18181b;
}

.benefit-erp .benefit-bg-media {
    top: -50px;
    right: -50px;
    width: 280px;
    height: 280px;
    opacity: 0.85;
}

.benefit-ai {
    background-color: #8B2022;
}

.benefit-ai .benefit-bg-media {
    top: -30px;
    right: -40px;
    width: 270px;
    height: 260px;
    opacity: 0.85;
}

.benefit-mobile {
    background-color: #16223b;
}

.benefit-mobile .benefit-bg-media {
    top: -30px;
    right: -40px;
    width: 260px;
    height: 260px;
    opacity: 0.85;
}

.benefit-pos {
    background-color: #3b3f46;
}

.benefit-pos .benefit-bg-media {
    top: -30px;
    right: -30px;
    width: 240px;
    height: 240px;
    opacity: 0.85;
}

.benefit-card:hover .benefit-bg-media {
    transform: scale(1.08);
}

.benefit-anim-sphere {
    animation: floatSphere 16s ease-in-out infinite;
}

.benefit-anim-bars {
    animation: floatBars 16s ease-in-out infinite;
}

.benefit-anim-cube {
    animation: floatCube 16s ease-in-out infinite;
}

.benefit-anim-wire {
    animation: floatWireSphere 16s ease-in-out infinite;
}

@keyframes floatSphere {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(5px, -8px) rotate(180deg) scale(1.02);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

@keyframes floatBars {
    0% {
        transform: translateY(0) scale(1);
    }

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

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes floatCube {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-10px) rotate(15deg) scale(1.04);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes floatWireSphere {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-5px, -8px) rotate(-180deg) scale(1.03);
    }

    100% {
        transform: translate(0, 0) rotate(-360deg) scale(1);
    }
}

/* --- FLOATING DECORATIONS --- */
.expertise-section,
.services-section,
.insights-section,
.contact-timeline-section {
    position: relative;
}

.floating-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.floating-decor img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    animation: floatDecor 8s ease-in-out infinite alternate;
    transform: rotate(var(--decor-rotation, 0deg));
}

@keyframes floatDecor {
    0% {
        transform: translateY(0) rotate(var(--decor-rotation, 0deg)) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--decor-rotation, 0deg) + 8deg)) scale(1.03);
    }

    100% {
        transform: translateY(0) rotate(var(--decor-rotation, 0deg)) scale(1);
    }
}

/* Individual Decor Positioning */
.decor-expertise-right {
    top: 14%;
    right: -62px;
    width: 180px;
    --decor-rotation: 180deg;
}

.decor-services-left {
    top: 8%;
    left: -60px;
    width: 180px;
    --decor-rotation: -20deg;
}

.decor-services-right {
    bottom: 14%;
    right: -50px;
    width: 180px;
    --decor-rotation: 180deg;
}

.decor-insights-left {
    top: 26%;
    left: -60px;
    width: 180px;
    --decor-rotation: -12deg;
}

.decor-insights-right {
    bottom: 12%;
    right: -52px;
    width: 180px;
    --decor-rotation: 180deg;
}

.decor-contact-right {
    bottom: 5%;
    right: -130px;
    width: 220px;
    --decor-rotation: 180deg;
}

@media (max-width: 900px) {
    .floating-decor:not(.star-decor) {
        display: none !important;
    }
}

/* Star-shaped decorations: absolute within their sections (not sticky) */
.floating-decor.star-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.floating-decor.star-decor img {
    display: block;
    height: auto;
}

/* --- BENEFIT CARDS TAGS & HOVER STYLING --- */
.benefit-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        margin-top 0.4s ease;
    margin-top: 0;
}

.benefit-tag {
    font-size: 0.72rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 99px;
    background-color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.benefit-card:hover .benefit-tags-container {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.2rem;
}

/* --- INSIGHTS & UPDATES --- */
.blog-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 2rem;
}

.blog-slider-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-slider-container::-webkit-scrollbar {
    display: none;
}

.insight-card {
    min-width: 360px;
    max-width: 360px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .insight-card {
        min-width: 85vw;
        max-width: 85vw;
    }
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.insight-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.5s ease;
}

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

.insight-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.insight-content h3 {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
    flex: 1;
}

.insight-excerpt {
    display: none;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.insight-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.btn-readmore-red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #a00000;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-readmore-red i {
    font-size: 0.8rem;
}

.btn-readmore-red:hover {
    background-color: #800000;
    transform: translateY(-2px);
    color: white;
}

/* --- CONTACT & TIMELINE SECTION --- */
.contact-timeline-section {
    background-color: var(--light-surface);
}

.contact-timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 6rem;
    align-items: flex-start;
}

.timeline-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #111;
}

.timeline-flow-new {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.timeline-flow-new::before {
    content: '';
    position: absolute;
    left: 41px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background-color: #333;
}

.timeline-item-new {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.timeline-item-new:last-child {
    margin-bottom: 0;
}

.timeline-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #a00000;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-text-new strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-text-new p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.contact-form-card-new {
    background: #ffffff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-form-card-new h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #111;
}

.custom-contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row-two-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-line input,
.form-group-line select {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group-line select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 14px;
    padding-right: 20px;
}

.form-group-textarea textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    background-color: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-top: 1rem;
}

.form-group-line input:focus,
.form-group-line select:focus,
.form-group-textarea textarea:focus {
    outline: none;
    border-color: #a00000;
}

.form-group-line input::placeholder,
.form-group-textarea textarea::placeholder {
    color: #888;
}

.btn-submit-red {
    background-color: #a00000;
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit-red:hover {
    background-color: #800000;
    transform: translateY(-2px);
}

/* ============================================================
   GLOBAL RESPONSIVENESS
   ============================================================ */
@media (max-width: 1200px) {
    .section-padding {
        padding: 5rem 6%;
    }

    .hero-section {
        padding: 6.5rem 6% 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-right {
        grid-template-columns: 1fr 1fr 1fr;
        /* Keep 3 columns on tablet/laptop but centered */
        max-width: 780px;
        /* Increase width from 600px to 780px to give cards breathing room */
        margin: 0 auto;
    }

    .decor-top-left {
        width: 190px;
        left: -45px;
        top: -18px;
    }

    .decor-top-right {
        width: 200px;
        right: -16px;
        top: -22px;
    }

    .decor-bottom-left {
        width: 200px;
        left: -60px;
        bottom: -45px;
    }

    .hero-right-stack-wrapper {
        grid-column: span 1;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.5rem;
    }

    .hero-right-stack {
        flex-direction: column;
    }

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

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .benefit-card {
        height: auto !important;
        min-height: 460px !important;
        border-radius: 24px !important;
        padding: 2.2rem 1.6rem 2rem !important;
    }

    .benefit-tags-container {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        margin-top: 1.2rem !important;
    }

    .badge-projects {
        left: -44px;
        width: 90px;
        height: 90px;
    }

    /* Scale decorative 3D stars down responsively to prevent overlapping hero elements */
    .decor-top-left {
        width: 140px;
        left: -16px;
        top: -10px;
    }

    .decor-top-right {
        width: 170px;
        right: -14px;
        top: 6px;
    }

    .decor-bottom-left {
        width: 170px;
        left: -36px;
        bottom: -28px;
    }
}

@media (max-width: 1024px) {
    .card-happy-clients::before {
        -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 50px, black 51px) !important;
        mask-image: radial-gradient(circle at 0 50%, transparent 50px, black 51px) !important;
    }

    .cutout-circle {
        display: none !important;
    }

    .cutout-corner-top {
        top: calc(50% - 51px - 14px);
        width: 14px;
        height: 14px;
        background-color: #ffffff;
        border-top-right-radius: 14px;
    }

    .cutout-corner-bottom {
        top: calc(50% + 51px);
        width: 14px;
        height: 14px;
        background-color: #ffffff;
        border-bottom-right-radius: 14px;
    }

    .decor-top-right {
        width: 180px;
        right: -8px;
        top: -18px;
    }

    .decor-bottom-left {
        width: 170px;
        left: -36px;
        bottom: -34px;
    }
}

@media (max-width: 900px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-timeline-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {

    .card-cutout-left,
    .bento-white-bridge {
        display: none !important;
    }

    .hero-section {
        padding: 5.5rem 5% 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-left h1 {
        font-size: 2.3rem;
    }

    .hero-left .section-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .card-large-text {
        font-size: 3.4rem;
    }

    .hero-right {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .hero-right-stack-wrapper {
        grid-column: span 1;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.5rem !important;
    }

    .hero-right-stack {
        flex-direction: column;
        gap: 1rem;
    }

    .card-image-code {
        min-height: 240px;
    }

    .card-small {
        width: 100%;
        margin: 0;
    }

    .badge-projects {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .benefit-card {
        height: auto !important;
        min-height: 420px !important;
        border-radius: 24px !important;
        padding: 2rem 1.4rem 1.8rem !important;
    }

    .benefit-tag {
        font-size: 0.68rem !important;
        padding: 5px 11px !important;
    }

    .form-row-two {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
        background: transparent;
        border: none;
        border-radius: 0;
        gap: 1rem;
    }

    .subscribe-form input {
        background: #18181b;
        padding: 0.9rem 1.5rem;
        border-radius: 999px;
        border: 1px solid var(--border-dark);
    }

    .btn-sub-submit {
        width: 100%;
        padding: 0.9rem;
    }

    /* Further scale decorative stars down for smaller tablet viewports */
    .decor-top-left {
        width: 100px;
        left: -14px;
        top: 0px;
    }

    .decor-top-right {
        width: 120px;
        right: -12px;
        top: 10px;
    }

    .decor-bottom-left {
        width: 130px;
        left: -28px;
        bottom: -18px;
    }

    .card-happy-clients::before {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .card-happy-clients {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 5%;
    }

    .hero-left h1 {
        font-size: 2.1rem;
        /* Significantly reduced to fit longer words like "Innovation" without cutoffs */
        line-height: 1.25;
    }

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

    .hero-right-stack-wrapper {
        grid-column: span 1;
    }

    .hero-right-stack {
        flex-direction: column;
    }

    .card-large-text {
        font-size: 3.2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Very small star elements on mobile viewports for clean ambient accentuation */
    .decor-top-left {
        width: 70px;
        left: -10px;
        top: -5px;
    }

    .decor-top-right {
        width: 90px;
        right: -10px;
        top: 15px;
    }

    .decor-bottom-left {
        width: 100px;
        left: -20px;
        bottom: -15px;
    }
}

@media (max-width: 360px) {
    .hero-left h1 {
        font-size: 1.8rem;
        /* Absolute safety margin for tiny screen mobile devices */
    }
}

/* ANIMATIONS ON SCROLL */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(var(--scroll-animate-distance));
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}