body {
    box-sizing: border-box;
}

:root {
    --softpolli-purple: #5b21d0;
    --softpolli-purple-dark: #401090;
    --softpolli-purple-light: #f1eaff;
    --softpolli-orange: #ff5b00;
    --softpolli-orange-dark: #e23d11;
    --softpolli-orange-light: #fff0e9;
    --softpolli-ink: #21153a;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.gradient-bg {
    background: linear-gradient(
        135deg,
        var(--softpolli-purple) 0%,
        #7028c7 28%,
        var(--softpolli-orange) 75%,
        var(--softpolli-orange-dark) 100%
    );
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(91, 33, 208, 0.1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 33, 208, 0.2);
    border-color: rgba(255, 91, 0, 0.35);
}

.tech-badge {
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.crystal-pattern {
    position: relative;
    overflow: hidden;
}

.crystal-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
            30deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        ),
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        ),
        linear-gradient(
            30deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        ),
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.1) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(255, 255, 255, 0.1) 87.5%,
            rgba(255, 255, 255, 0.1)
        );
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
}

.icon-gradient-green {
    background: linear-gradient(135deg, var(--softpolli-purple), #7028c7);
}

.icon-gradient-orange {
    background: linear-gradient(135deg, var(--softpolli-orange), #ff7847);
}

.icon-gradient-blue {
    background: linear-gradient(135deg, var(--softpolli-purple-dark), var(--softpolli-purple));
}

.icon-gradient-teal {
    background: linear-gradient(135deg, var(--softpolli-orange), var(--softpolli-orange-dark));
}

/* SoftPolli palette overrides for Tailwind utility classes used by the site. */
[class~="bg-emerald-500"],
[class~="bg-emerald-600"],
[class~="bg-teal-500"],
[class~="bg-teal-600"],
[class~="bg-orange-500"],
[class~="bg-orange-600"],
[class~="bg-blue-500"],
[class~="bg-blue-600"] {
    background-color: var(--softpolli-purple) !important;
}

[class~="text-emerald-400"],
[class~="text-emerald-500"],
[class~="text-emerald-600"],
[class~="text-emerald-700"],
[class~="text-teal-400"],
[class~="text-teal-600"],
[class~="text-blue-400"],
[class~="text-blue-600"],
[class~="text-blue-700"],
[class~="text-indigo-600"],
[class~="text-indigo-700"] {
    color: var(--softpolli-purple) !important;
}

[class~="text-orange-300"],
[class~="text-orange-400"],
[class~="text-orange-600"] {
    color: var(--softpolli-orange) !important;
}

[class~="hover:text-emerald-400"]:hover,
[class~="hover:text-emerald-600"]:hover,
[class~="hover:text-teal-600"]:hover,
[class~="hover:text-orange-400"]:hover {
    color: var(--softpolli-orange) !important;
}

[class~="hover:bg-emerald-600"]:hover,
[class~="hover:bg-teal-600"]:hover,
[class~="hover:bg-indigo-700"]:hover {
    background-color: var(--softpolli-purple-dark) !important;
}

[class~="bg-emerald-100"],
[class~="bg-emerald-50"],
[class~="from-emerald-100"],
[class~="from-emerald-50"] {
    --tw-gradient-from: var(--softpolli-purple-light) var(--tw-gradient-from-position) !important;
    background-color: var(--softpolli-purple-light) !important;
}

[class~="bg-teal-50"],
[class~="bg-teal-100"],
[class~="from-teal-100"] {
    --tw-gradient-from: var(--softpolli-orange-light) var(--tw-gradient-from-position) !important;
    background-color: var(--softpolli-orange-light) !important;
}

[class~="bg-orange-50"],
[class~="bg-orange-100"],
[class~="from-orange-100"],
[class~="bg-blue-50"],
[class~="bg-blue-100"],
[class~="from-blue-100"] {
    --tw-gradient-from: var(--softpolli-orange-light) var(--tw-gradient-from-position) !important;
    background-color: var(--softpolli-orange-light) !important;
}

[class~="from-emerald-500"][class~="to-teal-500"] {
    background-image: linear-gradient(90deg, var(--softpolli-purple), var(--softpolli-orange)) !important;
}

[class~="from-emerald-500"][class~="to-teal-500"]:hover {
    background-image: linear-gradient(90deg, var(--softpolli-purple-dark), var(--softpolli-orange-dark)) !important;
}

[class~="focus:border-emerald-500"]:focus {
    border-color: var(--softpolli-purple) !important;
}

[class~="focus:ring-emerald-200"]:focus {
    --tw-ring-color: #d9c8f7 !important;
}

[class~="border-emerald-200"] {
    border-color: #d9c8f7 !important;
}

[class~="border-emerald-500"] {
    border-color: var(--softpolli-purple) !important;
}

[class~="border-teal-200"],
[class~="border-blue-200"],
[class~="border-blue-300"] {
    border-color: #d9c8f7 !important;
}

[class~="border-orange-200"] {
    border-color: #ffd0bd !important;
}

[class~="bg-emerald-100"][class~="border-l-4"] {
    border-left-color: var(--softpolli-purple) !important;
}

/* ----------------------------------------------------------------------- */

/* =========================
   Shared Marquee Base
========================= */

.marquee-track,
.client-marquee {
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.marquee-track:hover,
.client-marquee:hover {
    animation-play-state: paused;
}

/* =========================
   Left → Right
========================= */
@keyframes marquee-ltr {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* =========================
   Right → Left
========================= */
@keyframes marquee-rtl {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================
   Apply Animations
========================= */
.marquee-track {
    animation-name: marquee-rtl;
    animation-duration: 30s;
}

.client-marquee {
    animation-name: marquee-ltr;
    animation-duration: 50s;
}


