/* Custom Animations and Styles for Travolyo Securities */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Fade In Animation */
.fade-in {
    opacity: 0; /* Start invisible */
}

/* This class will be added by JavaScript when the element is in view */
.fade-in.appear {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Hover Glow Effect */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
    transition: box-shadow 0.3s ease;
}

/* Background Pattern */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
}

.blue-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
}

.green-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(5, 241, 13, 0.2);
}

.purple-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 0, 255, 0.2);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 45%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.btn-ripple:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.btn-ripple:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn-ripple:hover::after {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    border: 3px solid #1a1a1a;
    border-top: 3px solid #38bdf8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Shake Animation for Errors */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Scale on Hover */
.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Image Overlay Effect */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.img-overlay:hover::before {
    opacity: 1;
}

/* Text Shadow for Headers */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Border Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.3);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.8);
    }
}

.border-glow {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid #38bdf8;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Slide Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-slide {
    animation: slideDown 0.3s ease-out;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 100;
    animation: checkmark 0.6s ease-out forwards;
}

/* Blur Background Effect */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

}

/* .swiper {
  width: 600px;
  height: 300px;
} */

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 100vh;
    /* min-height: 500px; */
}

.swiper-slide {
    position: relative;
}


.swiper-button-prev,
.swiper-button-next {
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    /* background: rgba(255, 59, 59, 0.8); */
    backdrop-filter: blur(10px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #38bdf8;
    opacity: 1;
}

.custom-shadow {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.10);
}

.default-btn {
    z-index: 1;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    padding: 14px 32px;
    line-height: 1;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.35), 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.default-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.default-btn:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 55%, #0ea5e9 100%);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.4), 0 6px 14px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.default-btn:hover::before {
    left: 120%;
}

.default-btn:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.default-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35), 0 14px 28px rgba(14, 165, 233, 0.35);
}

.default-btn.bg-gray-800,
.default-btn.bg-gray-500 {
    background: linear-gradient(135deg, #2b2b2b 0%, #171717 60%, #0f0f0f 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.default-btn.bg-gray-800:hover,
.default-btn.bg-gray-500:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #1d1d1d 60%, #111111 100%);
}

/* Auxlium-style Services Section */
.security-service-sec {
    padding: 5rem 0;
    background-color: #f4f7fb;
}

.security-service-sec span {
    color: #38bdf8;
}

.security-service-sec .container11 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.security-service-sec .row {
    display: flex;
    flex-wrap: wrap;
    margin: -35px -15px;
}

.security-service-sec .section-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.security-service-sec .section-header h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.security-service-sec .section-header p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 0.75rem;
}

.security-service-sec .sec-icon {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0 auto;
    color: #38bdf8;
    font-size: 1.5rem;
}

.security-service-sec .sec-icon::before,
.security-service-sec .sec-icon::after {
    content: "";
    position: absolute;
    height: 1px;
    top: 60%;
    background: #0a0a0a;
    width: 50px;
}

.security-service-sec .sec-icon::before {
    left: -70px;
}

.security-service-sec .sec-icon::after {
    right: -70px;
}

.security-service-sec .col {
    padding: 15px;
    text-align: center;
    flex: 0 0 25%;
    max-width: 25%;
}

.security-service-sec a {
    text-decoration: none;
    color: inherit;
}

.security-service-sec .service-card {
    width: 100%;
    height: 100%;
    padding: 2em 1.5em;
    border-radius: 14px;
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.security-service-sec .service-card::after {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #0a0a0a 0%, #38bdf8 100%);
    position: absolute;
    left: 0%;
    top: -98%;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.77, -0.04, 0, 0.99);
}

.security-service-sec h3 {
    font-size: 20px;
    text-transform: capitalize;
    font-weight: 600;
    color: #0a0a0a;
    margin: 1em 0;
    z-index: 2;
}

.security-service-sec p {
    color: #5a6072;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.03em;
    z-index: 2;
    margin-bottom: 0;
}

.security-service-sec .icon-wrapper {
    background-color: #38bdf8;
    position: relative;
    margin: 0 auto;
    font-size: 28px;
    height: 2.5em;
    width: 2.5em;
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: 0.5s;
    z-index: 2;
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.25);
}

.security-service-sec .service-card:hover:after {
    top: 0%;
}

.security-service-sec .service-card:hover .icon-wrapper {
    background-color: #ffffff;
    color: #38bdf8;
}

.security-service-sec .service-card:hover h3 {
    color: #ffffff;
}

.security-service-sec .service-card:hover p {
    color: #e2e8f0;
}

@media (max-width: 1200px) {
    .security-service-sec .col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .security-service-sec .section-header h2 {
        font-size: 2rem;
    }

    .security-service-sec .sec-icon::before,
    .security-service-sec .sec-icon::after {
        width: 30px;
        left: -50px;
        right: -50px;
    }

    .security-service-sec .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .security-service-sec .section-header h2 {
        font-size: 1.8rem;
    }

    .security-service-sec .sec-icon::before,
    .security-service-sec .sec-icon::after {
        display: none;
    }

    .security-service-sec .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.industry-icon {
    filter: brightness(0) saturate(100%) invert(66%) sepia(52%) saturate(522%) hue-rotate(166deg) brightness(96%) contrast(92%);
}

/* Why Choose Us Section */
.whyUs {
    padding: 5rem 0;
    color: #e5e7eb;
}

.linear-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 50%),
        linear-gradient(135deg, #0b0f14 0%, #111827 55%, #0b0f14 100%);
}

.whyUs .box-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.whyUs .heading {
    text-align: left;
    max-width: 820px;
}

.whyUs .heading h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.whyUs .heading p {
    color: #cbd5f5;
    font-size: 1rem;
    line-height: 1.7;
}

.whyUs .sub {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.whyUs .sub span {
    width: 56px;
    height: 3px;
    background: #38bdf8;
    display: inline-block;
    border-radius: 999px;
}

.whyUs-points {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    gap: 1.5rem;
}

.whyUs-points li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.whyUs-points li:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
}

.whyUs-points i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #38bdf8;
    color: #0b0f14;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(56, 189, 248, 0.25);
}

.whyUs-points .text h5 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}

.whyUs-points .text p {
    margin: 0;
    color: #cbd5f5;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (min-width: 900px) {
    .whyUs-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .whyUs .heading h2 {
        font-size: 2rem;
    }
}


.sectors-new {
	padding: 90px 0;
	background: #fafafa;
}

.sectors-new .section-title h2 {
    color: #131313;
}

.sectors-new .items .col-6 {
	border-right: 1px solid #e3e3e3;
	border-bottom: 1px solid #e3e3e3;
}

.sectors-new .items .row .col-6:last-child {
	border-right: none;
}

.sectors-new .items .row:last-child .col-6 {
	border-bottom: none;
}

.sectors-new .items .item {
	padding: 25px 10px;
}

.sectors-new .items .item img {
	max-width: 60px;
}

.sectors-new .items .item h3 {
	font-size: 16px;
    line-height: 22px;
    margin-bottom: 0px;
    font-weight: 500;
    color: #131313;
    margin-top: 15px;
}

/* Smooth transition for the accordion height */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.active .faq-content {
    max-height: 1000px; /* Large enough to fit content */
    transition: max-height 0.5s ease-in;
}
/* Chevron rotation */
.chevron {
    transition: transform 0.3s ease;
}
.active .chevron {
    transform: rotate(180deg);
}

/* Client Slider Animation */
.client-slider-container {
    position: relative;
}

.client-slider {
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-slider:hover {
    animation-play-state: paused;
}


/* Team members style */        
.image-box:before {
    position: absolute;
    left: 0;
    right: -10px;
    top: -57px;
    height: 100%;
    background-image: url('../../assets/images/new/shape.png');
    transform: scale(-1);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    content: "";
}

.info-box:before {
    position: absolute;
    left: 0;
    right: -30px;
    background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
    content: "";
    top: 0;
    height: 100%;
    transform: skew(-30deg);
    border-radius: 0 14px 14px 0;
    z-index: -1;
}

.sec-title .title-gradient {
    background: linear-gradient(to left, #38bdf8 0%, #1a1a1a 25%, #38bdf8 75%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Group Hover Effects */
.inner-box:hover .social-box {
    transform: translateX(10px);
    opacity: 1;
}

.inner-box:hover .image-wrapper {
    border-radius: 0% !important;
}

.inner-box:hover .team-img {
    transform: scale(1.1);
}

.team-block .image-box {
    position: relative;
    display: block;
    text-align: center;
    padding: 50px 0;
}

.team-block .image-box:before {
    position: absolute;
    left: -0px;
    right: -10px;
    top: -57px;
    height: 100%;
    background-image: url(../../assets/images/new/shape.png);
    transform: scale(-1);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    content: "";
}
