/* Custom CSS to replace Tailwind utilities */
html, body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

/* Service Wrap Hover Animation (from reference) */
.service-wrap1 {
    background-color: transparent;
    padding: 2rem;
    aspect-ratio: 1 / 1;
    transition: all .5s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
}

/* Rotating Neon Gradient */
.service-wrap1 .neon-border {
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background: conic-gradient(from 0deg, transparent 60%, #04c5f0 80%, #fba007 100%);
    animation: rotate-neon 4s linear infinite;
    z-index: 0;
}

/* White Inner Background */
.service-wrap1 .inner-bg {
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: 0.9rem;
    z-index: 1;
    transition: all 0.5s ease;
}

.service-wrap1:hover .inner-bg,
.service-wrap1.hover-active .inner-bg {
    background: rgba(0, 77, 131, 0.85);
}

@keyframes rotate-neon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SVG Running Animation */
.animated-svg-icon {
    width: clamp(50px, 15vw, 80px);
    height: clamp(50px, 15vw, 80px);
    margin-bottom: clamp(0.5rem, 3vw, 1.5rem);
    z-index: 5;
    position: relative;
}

/* Responsive Text inside Service Cards */
.service-wrap1 h4 {
    font-size: clamp(16px, 4vw, 20px) !important;
    line-height: 1.3 !important;
    margin-bottom: clamp(0.5rem, 2vw, 1rem) !important;
}

.service-wrap1 p {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    line-height: 1.5 !important;
}

.service-wrap1 ul {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    line-height: 1.6 !important;
}

.service-wrap1 ul li {
    margin-bottom: 0.35rem;
}

.service-wrap1 .g-line {
    margin-bottom: clamp(0.5rem, 2vw, 1rem) !important;
    margin-top: 0.25rem !important;
}

.animated-svg-icon path,
.animated-svg-icon circle,
.animated-svg-icon rect,
.animated-svg-icon polygon {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash-draw 4s ease-in-out infinite alternate;
}

@keyframes dash-draw {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.service-wrap1 .bg-layer {
    position: absolute;
    inset: 3px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    border-radius: 0.9rem;
}

.service-wrap1:hover .bg-layer,
.service-wrap1.hover-active .bg-layer {
    opacity: 1;
}

.service-wrap1::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: rgba(0, 77, 131, 0.85);
    opacity: 0;
    transition: 0.5s;
    z-index: 3;
    border-radius: 0.9rem;
}

.service-wrap1:hover::before,
.service-wrap1.hover-active::before {
    opacity: 1;
}

.service-wrap1 * {
    position: relative;
    z-index: 4;
}

.service-front {
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-wrap1:hover .service-front,
.service-wrap1.hover-active .service-front {
    opacity: 0;
    transform: translateY(-20px);
}

.service-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-wrap1:hover .service-back,
.service-wrap1.hover-active .service-back {
    opacity: 1;
    transform: translateY(0);
}

.service-icon-img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.g-line {
    height: 2px;
    width: 60px;
    background-color: #04c5f0;
    animation: linear linemove 6s infinite;
    position: relative;
    z-index: 3;
}

@keyframes linemove {
    0% {
        width: 30%;
    }
    50% {
        width: 60%;
    }
    100% {
        width: 30%;
    }
}

/* Sub-title CSS from reference */
.sub-title {
    display: inline-block;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    margin-bottom: 24px;
    padding-left: 40px;
}

.sub-title .double-line {
    position: relative;
}

.sub-title .double-line:before,
.sub-title:before {
    width: 30px;
    top: auto;
    bottom: 10px;
}

.sub-title .double-line:before,
.sub-title:before,
.sub-title .double-line:after,
.sub-title:after {
    position: absolute;
    content: '';
    background-color: #fba007;
    left: 0px;
    height: 2px;
}

.sub-title:before {
    top: 4px;
    width: 30px;
}

.sub-title::after,
.double-line::after {
    top: 9px !important;
    left: 10px !important;
    width: 20px !important;
}

.sub-title .double-line {
    margin-left: 0;
}

.sub-title .double-line:before,
.sub-title .double-line:after {
    -webkit-transform: translate(100%, 0);
    -ms-transform: translate(100%, 0);
    transform: translate(100%, 0);
    right: -10px;
}

.sub-title .double-line:before {
    left: -20px !important;
    top: 6px !important;
}

.sub-title .double-line:after {
    left: -10px !important;
    top: 10px !important;
}

.sub-title .double-line:before,
.sub-title:before {
    width: 30px;
    top: auto;
    bottom: 10px;
}

.sub-title .double-line:before,
.sub-title:before,
.sub-title .double-line:after,
.sub-title:after {
    position: absolute;
    content: '';
    background-color: #fba007;
    left: 0px;
    top: 5px;
    height: 2px;
    width: 30px;
}

.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-20 { height: 5rem !important; }
.w-12 { width: 3rem !important; }

/* Z-Indexes */
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.z-998 { z-index: 998 !important; }
.z-999 { z-index: 999 !important; }
.z-1000 { z-index: 1000 !important; }
.z-1001 { z-index: 1001 !important; }

/* Transitions */
.transition-all { transition-property: all; 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-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.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; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }
.delay-75 { transition-delay: 75ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-600 { transition-delay: 600ms !important; }

/* Effects */
.hover-bg-neutral-800:hover { background-color: #262626; }
.hover-text-white:hover { color: #ffffff !important; }
.text-neutral-400 { color: #a3a3a3; }
.text-neutral-500 { color: #737373; }

/* Custom Border Radius */
.rounded-top-custom {
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
}

/* Social Icon Button */
.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #262626;
    color: #a3a3a3 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon-btn:hover {
    background-color: #04c5f0;
    color: #ffffff !important;
    transform: translateY(-3px);
}
.social-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* 3D SVG Circle */
.svg-3d-circle {
    background: linear-gradient(135deg, #04c5f0, #004d83);
    box-shadow: 0 10px 20px rgba(4, 197, 240, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.2), inset 0 5px 15px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}
.svg-3d-circle:hover {
    transform: translateY(-8px);
}

/* Custom Spacing & Heights */
.hover-text-green:hover { color: #16a34a !important; }
.hover-opacity-80:hover { opacity: 0.8 !important; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.pointer-events-none { pointer-events: none !important; }

/* Careers Custom CSS (Pre-loading for later) */
.bg-careers { background-color: #f8fbfd; }
.text-gradient-careers {
    background-image: linear-gradient(to right, #04c5f0, #004d83);
    -webkit-background-clip: text;
    color: transparent;
}
.btn-gradient-careers {
    background-image: linear-gradient(to right, #04c5f0, #004d83);
}
.hover-shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.transition-shadow { transition: box-shadow 0.3s ease; }
.shadow-lg-custom { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* SVG Draw Animation */
.svg-draw-animate {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    transition: stroke-dashoffset 2s ease-in-out, opacity 0.5s ease-in;
}

/* Hero Carousel Animations */
.hero-anim-title, .hero-anim-desc, .hero-anim-btn {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.owl-item.active .hero-anim-title {
    animation: heroSlideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.2s;
}

.owl-item.active .hero-anim-desc {
    animation: heroSlideInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.4s;
}

.owl-item.active .hero-anim-btn {
    animation: heroSlideInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.6s;
}

.hero-anim-img {
    opacity: 0;
    will-change: transform, opacity;
}

.owl-item.active .hero-anim-img {
    animation: heroSlideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.8s;
}

.hero-anim-box {
    opacity: 0;
    will-change: transform, opacity;
}

.owl-item.active .hero-anim-box {
    animation: heroSlideInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.owl-item.active .hero-anim-box:nth-child(1) { animation-delay: 0.6s; }
.owl-item.active .hero-anim-box:nth-child(2) { animation-delay: 0.8s; }
.owl-item.active .hero-anim-box:nth-child(3) { animation-delay: 1.0s; }
.owl-item.active .hero-anim-box:nth-child(4) { animation-delay: 1.2s; }

@keyframes heroSlideInLeft {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes heroSlideInRight {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes heroSlideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Effect Cursor */
.typing-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}


@keyframes svg-pulse-float {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-5px); color: #004d83; }
    100% { transform: scale(1) translateY(0); }
}

/* Typing text responsive container */
.typing-container {
    min-height: 120px !important;
}
@media (min-width: 576px) {
    .typing-container {
        min-height: 80px !important;
    }
}
@media (min-width: 992px) {
    .typing-container {
        min-height: 60px !important;
    }
}

/* Lenis Smooth Scroll Required CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Custom AOS Blur Animation */
[data-aos="blur-text"] {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-50px);
    transition-property: transform, opacity, filter;
}

[data-aos="blur-text"].aos-animate {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* Custom AOS SVG Draw Animation */
[data-aos="draw-svg"] .svg-draw-path {
    opacity: 0;
}

@keyframes svgDrawLoop {
    0% {
        stroke-dashoffset: var(--path-length, 100);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

[data-aos="draw-svg"].aos-animate .svg-draw-path {
    stroke-dashoffset: var(--path-length, 100); /* default before animation takes over */
    animation: svgDrawLoop 3s ease-in-out infinite;
}

/* Custom AOS Vertical Line Animation */
.animated-vertical-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #04c5f0;
    transform-origin: top;
    transform: scaleY(0);
}

[data-aos="draw-line"].aos-animate .animated-vertical-line {
    transform: scaleY(1);
    transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Success Checkmark Animation */
.checkmark-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #16a34a;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #16a34a;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #16a34a;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px rgba(22, 163, 74, 0.1); }
}

/* Hero Carousel Hover Transitions */
.hero-anim-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.hero-anim-img:hover {
    transform: scale(1.05) !important;
}

.inner-hero-carousel .btn {
    transition: all 0.3s ease-in-out !important;
}
.inner-hero-carousel .btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
