/* Custom Styles */
:root {
    --brand-dark: #0B0F19;
    --brand-card: #151B2B;
    --brand-orange: #2469bc;
    /* --brand-orange: #00619E; */
    /* --brand-blue: #00619E; */
    --brand-blue: #2469bc;
    --brand-gray: #7C868D;

}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 97, 158, 0.5);
    /* Updated to Blue glow */
}

/* Standardized Typography */
/* .section-title removed - using Tailwind classes in HTML */

/* Standardized Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    /* rounded-full */
    font-weight: 600;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
    cursor: pointer;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1.2;
    min-height: 32px;
}

@media (min-width: 768px) {
    .btn-sm {
        padding: 0.7rem 1.25rem;
        font-size: 0.8125rem;
        line-height: 1.5;
        min-height: 36px;
    }
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
    min-height: 42px;
}

@media (min-width: 768px) {
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        line-height: 1.5;
        min-height: 48px;
    }
}

.btn-xl {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    line-height: 1.3;
    min-height: 44px;
}

@media (min-width: 768px) {
    .btn-xl {
        padding: 0.875rem 2.25rem;
        font-size: 1.125rem;
        line-height: 1.5;
        min-height: 48px;
    }
}

/* Button Variants */
/* Creative Button Styles */
.btn-primary {
    background-color: var(--brand-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 97, 158, 0.3);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #2469bc;
    box-shadow: 0 0 30px hsla(203, 100%, 31%, 0.6), 0 0 60px rgba(0, 97, 158, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-secondary:hover::after {
    height: 100%;
}

.btn-secondary:hover {
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Initial state for GSAP reveals to prevent FOUC */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.hero-sub-text {
    text-shadow: 0 0 15px rgba(36, 105, 188, 0.2);
    letter-spacing: 0.4em;
    animation: subtext-glow 4s ease-in-out infinite;
}

@keyframes subtext-glow {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(36, 105, 188, 0.2);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 25px rgba(36, 105, 188, 0.5);
    }
}

.hero-desc {
    opacity: 0.85;
}

/* Lenis Recommended 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-scrolling iframe {
    pointer-events: none;
}

/* ===============================
   MOVED FROM INDEX.HTML
================================ */

/* Custom Animations */
.animate-wiggle {
    animation: wiggle-periodic 6s ease-in-out infinite;
}

/* Periodic Wiggle Animation */
@keyframes wiggle-periodic {

    0%,
    85%,
    100% {
        transform: rotateZ(0deg);
    }

    87% {
        transform: rotateZ(-5deg);
    }

    89% {
        transform: rotateZ(5deg);
    }

    91% {
        transform: rotateZ(-5deg);
    }

    93% {
        transform: rotateZ(5deg);
    }

    95% {
        transform: rotateZ(-5deg);
    }

    97% {
        transform: rotateZ(5deg);
    }
}

/* Mega Menu Animation */
.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Glassmorphism Card - High Visibility */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    /* Sky Blue Border */
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.2);
    transform: translateY(-8px);
}

/* Dropdown Styles (Legacy support if needed) */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

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

/* ===============================
   MOBILE MENU ACCORDION
================================ */
/* Custom Scrollbar for Mobile Menu */
#mobile-menu .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

details>summary {
    list-style: none;
    outline: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary svg {
    transform: rotate(180deg);
}

details .animate-fadeIn {
    animation: accordionFadeIn 0.4s ease-out forwards;
}

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

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

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===============================
   3D & ANIMATION UTILITIES
================================ */

.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

/* Custom X-axis rotation */
.hover\:rotate-x-2:hover {
    transform: rotateX(2deg);
}

/* Slow Pulse */
@keyframes pulse-slow {

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

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Grow Animation for Progress Bars */
@keyframes grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.animate-grow {
    animation: grow 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    transform-origin: left;
}

/* ===============================
   SWIPER CUSTOMIZATION
================================ */

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--brand-blue);
    width: 24px;
    border-radius: 5px;
}

.swiper-slide {
    height: auto;
    /* Ensures slides stretch to fill height */
}

.swiper-slide .glass-card {
    height: 100%;
    /* Ensures card fills the slide */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Marquee Animation Pause on Hover */
.group:hover .animate-marquee {
    animation-play-state: paused;
}

/* Scan Animation for Logistics Page */
@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

.animate-scan {
    animation: scan 4s linear infinite;
}

/* Flow Animation for IoT Section */
@keyframes flow {
    0% {
        stroke-dashoffset: 24;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.animate-flow {
    animation: flow 2s linear infinite;
}

/* Float Animation */
@keyframes float {

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

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

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