/* Base Styles */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Inter', sans-serif;
}

/* Utility Classes */
.gradient-bg {
    background: linear-gradient(135deg, #F08C35 0%, #F55E82 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #F08C35 0%, #F55E82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Images */
.hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    height: calc(100vh - 64px);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #030b1c 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    position: relative;
    overflow: hidden;
}

/* video layer */
.video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}


.video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1920px;
    height: 1080px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.testimonial-bg {
    background-image: url('https://readdy.ai/api/search-image?query=professional%20manufacturing%20executive%20in%20modern%20office%20with%20industrial%20background%2C%20confident%20business%20leader%2C%20corporate%20portrait%20style%2C%20natural%20lighting%2C%20professional%20atmosphere&width=800&height=600&seq=testimonial001&orientation=landscape');
    background-size: cover;
    background-position: center;
}

.contact-bg {
    background-image: url('https://readdy.ai/api/search-image?query=modern%20technology%20workspace%20with%20VR%20headsets%20and%20digital%20displays%2C%20futuristic%20training%20environment%2C%20clean%20minimal%20design%2C%20professional%20tech%20setup&width=600&height=800&seq=contact001&orientation=portrait');
    background-size: cover;
    background-position: center;
}

.map-bg {
    background-image: url('https://public.readdy.ai/gen_page/map_placeholder_1280x720.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Transform Utilities */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-2 {
    --tw-translate-y: -0.5rem;
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
}

/* Hover States */
.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:text-gray-900:hover {
    color: #111827 !important;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:text-primary:hover {
    color: #F08C35;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

/* Group Hover */
.group:hover .group-hover\:text-primary {
    color: #F08C35;
}

/* Focus States */
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-primary:focus {
    --tw-ring-color: #F08C35;
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Backdrop Utilities */
.backdrop-blur-sm {
    --tw-backdrop-blur: blur(4px);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

/* Opacity Utilities */
.opacity-0 {
    opacity: 0;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-90 {
    opacity: 0.9;
}

/* Border Opacity */
.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Background Opacity */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Text Opacity */
.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

/* Gradient Opacity */
.from-primary\/10 {
    --tw-gradient-from: rgba(240, 140, 53, 0.1);
    --tw-gradient-to: rgba(240, 140, 53, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-secondary\/10 {
    --tw-gradient-to: rgba(245, 94, 130, 0.1);
}

/* Hidden Utility */
.hidden {
    display: none;
}

/* Z-Index */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Custom Utilities */
.rounded-button {
    border-radius: 8px;
}

.cta-btn {
    transition: transform .3s ease-out;
}

/* Hover triggers the loop */
.cta-btn:hover {
    animation: float 2.4s linear infinite alternate;
    box-shadow: 0px 8px 16px #00000020;
}

.cta-btn:active {
    box-shadow: none;
}

/* Keyframes: slow, even bob */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}


/* Responsive Utilities */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1920px) {
    .video-bg iframe {
        width: 175vh;
        height: 100vh;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes upDown {

    0%,
    100% {
        transform: translateY(0);
    }

    /* start & end at baseline */
    25% {
        transform: translateY(-6px);
    }

    /* drift up */
    75% {
        transform: translateY(6px);
    }

    /* drift down */
}

.floating {
    animation: upDown 4s ease-in-out infinite;
    will-change: transform;
    /* keeps it buttery smooth */
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

/* full‑width animated background */
#net-bg {
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

/* respect users who disable motion */
@media (prefers-reduced-motion: reduce) {
    .net-bg {
        animation: none;
    }
}

#net-bg {
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    #net-bg {
        display: none;
    }
}

.xr-training-h1 {
    color: #fff;
}

.xr-training-bg-black {
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)) !important;
}