/* Text wrap balance for all elements */
* {
    text-wrap: balance;
}

/* Consistent paragraph line-height and font size */
p {
    line-height: 1.5;
    font-size: 15px;
}

/* Exclude headers from 15px rule */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
}

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

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom scrollbar to match sleek aesthetic */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Bootstrap Accordion Custom Styling */
#aboutAccordion .accordion-item {
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#aboutAccordion .accordion-item:hover {
    box-shadow: 0 4px 12px rgba(85, 34, 221, 0.1);
    border-color: rgba(85, 34, 221, 0.2);
    transform: translateY(-1px);
}

#aboutAccordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(85, 34, 221, 0.3);
    box-shadow: 0 4px 16px rgba(85, 34, 221, 0.15);
    border-left: 4px solid #5522dd;
}

#aboutAccordion .accordion-button {
    background-color: #ffffff;
    color: #3f3f46;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

#aboutAccordion .accordion-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to right, rgba(85, 34, 221, 0.1), transparent);
    transition: width 0.3s ease;
}

#aboutAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(to right, rgba(85, 34, 221, 0.05), #ffffff);
    color: #5522dd;
    box-shadow: none;
    font-weight: 700;
}

#aboutAccordion .accordion-button:not(.collapsed)::before {
    width: 4px;
}

#aboutAccordion .accordion-button:focus {
    border-color: #5522dd;
    box-shadow: 0 0 0 0.25rem rgba(85, 34, 221, 0.2);
    outline: none;
}

#aboutAccordion .accordion-button:hover {
    background-color: #f8f9fa;
    color: #5522dd;
    padding-left: 1.75rem;
}

#aboutAccordion .accordion-button:hover::before {
    width: 3px;
}

#aboutAccordion .accordion-button:not(.collapsed):hover {
    background: linear-gradient(to right, rgba(85, 34, 221, 0.08), #ffffff);
}

#aboutAccordion .accordion-body {
    padding: 1.5rem 1.5rem 1.75rem 1.5rem;
    color: #52525b !important;
    line-height: 1.75;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

#aboutAccordion .accordion-body p,
#aboutAccordion .accordion-body ul,
#aboutAccordion .accordion-body li,
#aboutAccordion .accordion-body * {
    color: #52525b !important;
}

#aboutAccordion .accordion-collapse.show {
    display: block !important;
}

#aboutAccordion .accordion-collapse.show .accordion-body {
    color: #52525b !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

#aboutAccordion .accordion-collapse.collapsing .accordion-body {
    color: #52525b !important;
    visibility: visible !important;
}

#aboutAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235522dd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(2878%) hue-rotate(248deg) brightness(89%) contrast(93%);
}

#aboutAccordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235522dd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(2878%) hue-rotate(248deg) brightness(89%) contrast(93%);
}


/* Form Container Styling */
.form-container {
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-container:hover {
    box-shadow: 0 4px 16px rgba(85, 34, 221, 0.15);
    border-color: rgba(85, 34, 221, 0.3);
    transform: translateY(-2px);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(85, 34, 221, 0.05), transparent);
    border-radius: 0.5rem;
    transition: width 0.3s ease;
    pointer-events: none;
}

.form-container:hover::before {
    width: 4px;
}

/* Form styling */
input, select, textarea {
    transition: all 0.3s ease;
    font-size: 16px; /* Prevents zoom on iOS */
}

input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 34, 221, 0.15) !important;
}

/* Enhanced button styling for forms */
.form-container button[type="submit"],
.form-container .glassy-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-container button[type="submit"]:hover,
.form-container .glassy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 34, 221, 0.25);
}

.form-container button[type="submit"]:active,
.form-container .glassy-btn:active {
    transform: translateY(0);
}

/* Enhanced form labels */
.form-container label {
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.form-container label:hover {
    color: #5522dd;
}

/* Form section headers */
.form-container .text-center h3 {
    position: relative;
    padding-bottom: 1rem;
}

.form-container .text-center h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, #5522dd, transparent);
    border-radius: 2px;
}

/* Subtle animation for form fields on focus */
@keyframes formFieldFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 34, 221, 0.1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(85, 34, 221, 0.1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(85, 34, 221, 0.1);
    }
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    animation: formFieldFocus 0.3s ease;
}

/* Enhanced shield/icon in form headers */
.form-container .flex.items-center.justify-center img {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(85, 34, 221, 0.2));
}

.form-container:hover .flex.items-center.justify-center img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(85, 34, 221, 0.3));
}
@media (min-width: 640px) {
    input, select, textarea {
        font-size: inherit;
    }
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5522dd;
    box-shadow: 0 0 0 3px rgba(85, 34, 221, 0.1);
}

/* Mobile input sizing */
@media (max-width: 640px) {
    input, select, textarea {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }
}

/* Glassy button style */
.btn-glassy {
    background: #5522dd;
}

/* Nav active state */
.nav-link.active {
    color: #5522dd;
    font-weight: 600;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(calc(100% + 1rem));
    transition: transform 0.3s ease-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
.mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-item:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-item:nth-child(6) { transition-delay: 0.3s; }

/* Hamburger animation */
.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav active state */
.mobile-nav-link.active {
    background: rgba(85, 34, 221, 0.08);
}

/* Nav scroll effects */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px -10px rgba(85, 34, 221, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(221, 119, 34, 0.2);
}

/* Video background */
.video-container {
    position: relative;
    overflow: hidden;
}
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Hero car background */
.hero-car-bg {
    background-image: url('../images/AdobeStock_51481871.png');
    background-position: bottom right !important;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (max-width: 639px) {
    .hero-car-bg {
        height: 100vh !important;
        min-height: 100vh !important;
        top: 0 !important;
        bottom: auto !important;
    }
}
@media (min-width: 640px) {
    .hero-car-bg {
        background-size: 110% auto;
        background-position: bottom right;
        height: 100%;
        bottom: auto;
        top: 0;
    }
}
@media (min-width: 1024px) {
    .hero-car-bg {
        background-size: cover;
        background-position: center center;
        height: 100%;
        bottom: auto;
        top: 0;
    }
}

/* Radar Ping Animation */
.radar-ping {
    position: absolute;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.radar-ping::before,
.radar-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 0;
    height: 0;
    border: 2px solid;
    animation: radarPing 3s ease-out infinite;
}

.radar-ping::after {
    animation-delay: 1.5s;
}

/* Start with purple, alternate to orange */
.radar-ping::before {
    border-color: rgba(85, 34, 221, 0.6);
}

.radar-ping::after {
    border-color: rgba(85, 34, 221, 0.4);
}

@keyframes radarPing {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-color: rgba(85, 34, 221, 0.6);
    }
    25% {
        border-color: rgba(221, 119, 34, 0.6);
    }
    50% {
        width: 100px;
        height: 100px;
        border-color: rgba(85, 34, 221, 0.6);
    }
    75% {
        border-color: rgba(221, 119, 34, 0.4);
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-color: rgba(85, 34, 221, 0.4);
    }
}

/* Countup reel spacing and alignment */
.countup-wrapper {
    text-align: left;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: nowrap;
    overflow: visible;
    line-height: 1;
    font-size: 0;
}

.countup-wrapper.justify-center {
    text-align: center;
}

/* Glassy Button Styles */
.glassy-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

@media (max-width: 640px) {
    .glassy-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        min-height: auto !important;
        line-height: 1.4 !important;
        border-width: 1.5px !important;
    }
}

.glassy-btn-primary {
    background: #5522dd;
    color: white;
    border-color: #5522dd;
}

.glassy-btn-primary:hover {
    background: transparent;
    color: #5522dd;
    border-color: #5522dd;
    box-shadow: none;
}

.glassy-btn-secondary {
    background: #dd7722;
    color: white;
    border-color: #dd7722;
}

.glassy-btn-secondary:hover {
    background: transparent;
    color: #dd7722;
    border-color: #dd7722;
    box-shadow: none;
}

.glassy-btn.w-full {
    width: 100%;
}

.nodec, .nodec * {
    text-decoration: none !important;
}

.countup-wrapper > * {
    font-size: 3rem; /* text-5xl */
    line-height: 1; 
    vertical-align: text-bottom;
    display: inline-block;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    word-spacing: normal;
}

@media (min-width: 1024px) {
    .countup-wrapper > * {
        font-size: 4.5rem; /* lg:text-7xl */
        line-height: 1;
    }
}

.countup-wrapper .countup-smooth {
    display: inline-block;
    vertical-align: text-bottom;
    margin: 0;
    padding: 0;
    letter-spacing: normal;
    word-spacing: normal;
}

.countup-wrapper .countup-smooth * {
    vertical-align: text-bottom;
    margin: 0;
    padding: 0;
    letter-spacing: normal;
    word-spacing: normal;
}

.countup-wrapper .countup-smooth span {
    display: inline-block;
}

.countup-wrapper .countup-symbol {
    display: inline-block;
    letter-spacing: normal;
    line-height: 1;
    vertical-align: text-bottom;
    margin: 0;
    padding: 0;
}

/* Directory Modal Animations */
.directory-modal-backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-out;
    opacity: 0;
}

.directory-modal-backdrop.open {
    opacity: 1;
}

.directory-modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}

.directory-modal-backdrop.open .directory-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.directory-card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.directory-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* AOS - Fade only (no transforms) */
[data-aos] {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Override AOS default transforms */
[data-aos] {
    transform: none !important;
}





