/* Custom styles to augment Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* Remove default browser margin that causes white padding around the page */
    overflow-x: hidden;
}

/* Free offer modal slide-in */
.free-offer-panel {
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.free-offer-modal.free-offer-open .free-offer-panel {
    transform: translateX(0);
    opacity: 1;
}

.click-now-hand {
    display: inline-block;
    animation: click-now-nudge 1.2s ease-in-out infinite;
}

.click-cursor {
    position: absolute;
    left: -0px;
    bottom: -10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    text-shadow: -2px 0 #000000, 2px 0 #000000, 0 -2px #000000, 0 2px #000000, 0 0 2px #000000;
    pointer-events: none;
    z-index: 10;
    animation: click-cursor-tap 1.6s ease-in-out infinite;
}

.click-rays {
    position: absolute;
    top: -8px;
    left: 2px;
    width: 18px;
    height: 18px;
    background:
        linear-gradient(#000000, #000000) 50% 0/2px 6px no-repeat,
        linear-gradient(#000000, #000000) 0 50%/6px 2px no-repeat,
        linear-gradient(#000000, #000000) 100% 50%/6px 2px no-repeat;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Hero animated illustration */
.hero-orbit {
    position: absolute;
    border-radius: 9999px;
    opacity: 0.35;
    border-style: solid;
}

.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 56px);
    height: var(--size, 56px);
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-240px) rotate(calc(var(--angle) * -1));
}


.hero-orbit-lg {
    width: 480px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hero-orbit-spin 26s linear infinite;
}

.hero-orbit-md {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hero-orbit-spin 20s linear infinite reverse;
}

.hero-orbit-sm {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hero-orbit-pulse 6s ease-in-out infinite;
}

.hero-card-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    animation: hero-card-float 10s ease-in-out infinite;
}

.hero-code-stream {
    position: relative;
    height: 258px;
    overflow: hidden;
    border-top: 1px solid rgba(71, 85, 105, 0.35);
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 10, 30, 0.92) 100%);
}

.hero-code-stream::before,
.hero-code-stream::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 2;
}

.hero-code-stream::before {
    top: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}

.hero-code-stream::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}

.hero-matrix {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2px;
    padding: 10px 10px 6px;
}

.matrix-column {
    position: relative;
    overflow: hidden;
}

.matrix-rain {
    position: absolute;
    top: -130%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    font-family: "Courier New", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.15px;
    color: #57ff8e;
    opacity: 0.95;
    text-shadow: 0 0 8px rgba(87, 255, 142, 0.4);
    animation: matrix-rain-fall var(--dur, 6s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.matrix-column:nth-child(3n) .matrix-rain {
    color: #42e8ff;
    text-shadow: 0 0 7px rgba(66, 232, 255, 0.4);
}

.matrix-column:nth-child(4n) .matrix-rain {
    color: #d2ff5e;
    text-shadow: 0 0 7px rgba(210, 255, 94, 0.38);
}

.matrix-column:nth-child(5n) .matrix-rain {
    color: #7dfdb0;
    text-shadow: 0 0 7px rgba(125, 253, 176, 0.38);
}

.hero-card-float {
    position: absolute;
    padding: 10px 14px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    color: #e5e7eb;
    font-size: 12px;
}

.hero-card-top-right {
    top: 18%;
    left: 6%;
    animation: hero-chip-float 8s ease-in-out infinite;
}

.hero-card-bottom-left {
    bottom: 12%;
    right: 4%;
    animation: hero-chip-float 9s ease-in-out infinite reverse;
}

.hero-bar-shimmer {
    background-size: 200% 100%;
    animation: hero-bar-loading 2.8s ease-in-out infinite;
}

.hero-matrix-bg {
    overflow: hidden;
    opacity: 1;
    mix-blend-mode: normal;
}

.hero-matrix-col {
    position: absolute;
    top: -90%;
    left: var(--x, 0%);
    display: block;
    width: auto;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.02;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    color: #75ff85;
    text-shadow: 0 0 16px rgba(117, 255, 133, 0.95);
    animation: hero-matrix-fall var(--dur, 6.8s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.hero-matrix-col:nth-child(3n) {
    color: #52ff52;
    text-shadow: 0 0 16px rgba(82, 255, 82, 0.9);
}

.hero-matrix-col:nth-child(5n) {
    color: #ff1a1a;
    text-shadow: 0 0 16px rgba(255, 26, 26, 0.9);
}

.hero-matrix-col:nth-child(7n) {
    color: #66ff66;
    text-shadow: 0 0 16px rgba(102, 255, 102, 0.9);
}

.hero-matrix-col:nth-child(9n) {
    color: #ff0000;
    text-shadow: 0 0 16px rgba(255, 0, 0, 0.9);
}

@keyframes hero-orbit-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes hero-matrix-scroll {
    0% {
        transform: translateY(0);
    }

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

@keyframes hero-matrix-fall {
    0% {
        transform: translateY(-120vh);
        opacity: 0;
    }

    7% {
        opacity: 1;
    }

    94% {
        opacity: 1;
    }

    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

@keyframes matrix-rain-fall {
    0% {
        transform: translateX(-50%) translateY(-140%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(320%);
        opacity: 0;
    }
}



@keyframes click-now-nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@keyframes click-cursor-tap {

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

    50% {
        transform: translateY(2px) scale(0.98);
    }
}


@keyframes hero-orbit-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.35;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 0.55;
    }
}

@keyframes hero-card-float {

    0%,
    100% {
        transform: translate(-50%, -52%);
    }

    50% {
        transform: translate(-50%, -48%);
    }
}

@keyframes hero-chip-float {

    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes hero-bar-loading {
    0% {
        background-image: linear-gradient(90deg, rgba(37, 99, 235, 0.2), #2563eb, #facc15, rgba(250, 204, 21, 0.2));
        background-position: 0% 50%;
    }

    100% {
        background-image: linear-gradient(90deg, rgba(37, 99, 235, 0.2), #2563eb, #facc15, rgba(250, 204, 21, 0.2));
        background-position: 200% 50%;
    }
}

.full-bleed {
    /* Use normal document width to avoid extra space caused by 100vw including the scrollbar */
    width: 100%;
    margin-left: 0;
}

.hero-fill {
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Gradient Text Utility */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #cca43b, #f1c40f);
}

/* Services Dropdown Enhancement */
.group:hover .opacity-0.invisible {
    opacity: 1;
    visibility: visible;
}

/* Smooth dropdown animation */
.group>div {
    animation: dropdownSlide 0.2s ease-out forwards;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Add subtle shadow to dropdown */
.group-hover>div {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   RESPONSIVE HERO ILLUSTRATIONS
   ======================================== */

/* Coding Illustration (Bottom Left) - Base sizing */
.hero-coding-illustration {
    transform: scale(0.35) translateY(-150px);
    transform-origin: bottom left;
}

.hero-coding-box {
    width: 560px;
    height: 560px;
}

/* Social Illustration (Top Right) - Base sizing */
.hero-social-illustration {
    transform: scale(0.38) translateX(30px);
    transform-origin: top right;
}

.hero-social-box {
    width: 520px;
    height: 520px;
}

/* Medium-Large screens (1024px - lg breakpoint) */
@media (min-width: 1024px) {
    .hero-coding-illustration {
        transform: scale(0.45) translateY(-120px);
    }

    .hero-social-illustration {
        transform: scale(0.48) translateX(25px);
    }
}

/* Large screens (1280px - xl breakpoint) */
@media (min-width: 1280px) {
    .hero-coding-illustration {
        transform: scale(0.60) translateY(-80px);
    }

    .hero-social-illustration {
        transform: scale(0.60) translateX(20px);
    }
}

/* Extra Large screens (1536px - 2xl breakpoint) */
@media (min-width: 1536px) {
    .hero-coding-illustration {
        transform: scale(0.75) translateY(-40px);
    }

    .hero-social-illustration {
        transform: scale(0.75) translateX(6px);
    }
}

/* Very large screens (1800px+) */
@media (min-width: 1800px) {
    .hero-coding-illustration {
        transform: scale(0.80) translateY(-20px);
    }

    .hero-social-illustration {
        transform: scale(0.80) translateX(6px);
    }
}



