* {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: #1e1333 !important;
    /* Deep Brand Purple - Matches #5b3c9b */
}

.gradient-text {
    background: linear-gradient(135deg, #5b3c9b 0%, #ac9cc9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-color {
    color: #6F6773;
}

.accent-bg {
    background-color: #6F6773;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -5px rgba(91, 60, 155, 0.2), 0 15px 15px -5px rgba(91, 60, 155, 0.1);
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

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

@keyframes float {

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

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

.section-padding {
    padding: 4rem 0;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(172, 156, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 60, 155, 0.1) 0%, transparent 50%);
}

/* HubSpot Form Styling */
.hs-form-frame * {
    color: #1f2937 !important;
}

.hs-form-frame label {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.hs-form-frame input,
.hs-form-frame textarea,
.hs-form-frame select {
    background-color: #ffffff !important;
    border: 2px solid #d1d5db !important;
    color: #1f2937 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    width: 100% !important;
}

.hs-form-frame input:focus,
.hs-form-frame textarea:focus,
.hs-form-frame select:focus {
    border-color: #5b3c9b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(91, 60, 155, 0.1) !important;
}

.hs-form-frame .hs-button {
    background: linear-gradient(135deg, #5b3c9b 0%, #ac9cc9 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    cursor: pointer !important;
}

.hs-form-frame .hs-button:hover {
    background: linear-gradient(135deg, #4a2d7c 0%, #9588b8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(91, 60, 155, 0.3) !important;
}

.hs-form-frame .hs-error-msgs {
    color: #ef4444 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

@media print {
    body {
        margin: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* --- Dynamic Features --- */

/* Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    /* Behind content but above background */
    pointer-events: none;
    /* Allow clicking through */
}

/* Ensure content on top of particles */
header.gradient-bg {
    position: relative;
    /* Ensure context */
}

header.gradient-bg .container,
header.gradient-bg nav {
    position: relative;
    z-index: 10;
    /* Above particles */
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 400px;
    /* Explicit height to fix layout issues */
    min-height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smoother bounce */
    transform-style: preserve-3d;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    /* Match tailwind rounded-lg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* Hover Float Effect for Tiles */
.hover-float {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-float:hover i,
.hover-float:hover img {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.flip-card-front {
    background-color: white;
    color: black;
    z-index: 2;
}

.flip-card-back {
    background: linear-gradient(135deg, #5b3c9b 0%, #ac9cc9 100%);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
}

/* AOS overrides/fixes if needed */
[data-aos] {
    pointer-events: auto;
}