/* ==========================================================================
   CSS Custom Properties & Config
   ========================================================================== */
:root {
    --brand-primary: #006ce6;
    /* Drupal-esque Blue */
    --brand-secondary: #00bfff;
    /* Lighter Cyan */
    --brand-dark: #121826;
    --brand-purple: #7b2cbf;
    --brand-purple-soft: rgba(123, 44, 191, 0.1);

    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --transition-speed: 0.3s;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 50px -15px rgba(0, 108, 230, 0.15);
}

/* ==========================================================================
   Base Styles & Typography
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.fw-black {
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

/* Utilities */
.tracking-wide {
    letter-spacing: 0.05em;
}

.z-index-1 {
    z-index: 1;
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.85);
}

.hover-white:hover {
    color: white !important;
}

.transition-transform {
    transition: transform var(--transition-speed) ease;
}

.group:hover .group-hover-translate-x {
    transform: translateX(5px);
}

/* Custom Backgrounds & Colors */
.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.bg-dark {
    background-color: var(--brand-dark) !important;
    background-color: #000924 !important;
    margin-top: -2px;
}

.bg-purple {
    background-color: var(--brand-purple) !important;
}

.text-purple {
    color: var(--brand-purple) !important;
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.15);
}

.bg-info-soft {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-secondary-soft {
    background-color: rgba(108, 117, 125, 0.1);
}

.bg-purple-soft {
    background-color: var(--brand-purple-soft);
}

.bg-blue-soft {
    background-color: rgba(0, 108, 230, 0.1);
}

.bg-light-gradient {
    background: linear-gradient(180deg, #cee2ff 0%, #ffffff 100%);
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    font-weight: 600;
}

.btn-brand:hover {
    color: white;
    background: linear-gradient(135deg, #0056b3, #00a1d6);
    box-shadow: 0 8px 25px rgba(0, 108, 230, 0.4);
    transform: translateY(-2px);
}

.btn-primary:not(.btn-brand) {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:not(.btn-brand):hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-cta {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-lg {
    padding: 0.8rem 2rem;
    border-radius: 8px;
}

/* Nav */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
}

.nav-link.active {
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 108, 230, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(123, 44, 191, 0.2) 0px, transparent 50%);
    padding-top: 80px;
    /* Offset for fixed header */
}

.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.6;
}

.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: linear-gradient(135deg, rgba(0, 108, 230, 0.4), rgba(0, 191, 255, 0.2));
    animation: float 15s ease-in-out infinite alternate;
}

.bg-shape-2 {
    bottom: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.3), rgba(0, 108, 230, 0.1));
    animation: float 20s ease-in-out infinite alternate-reverse;
}

.bg-shape-3 {
    /* For Form Section */
    top: -20%;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-speed);
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

/* ==========================================================================
   Features / Lists
   ========================================================================== */
.audit-benefits-list .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hover-lift {
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card {
    border-radius: 16px;
}

/* ==========================================================================
   Audience Section
   ========================================================================== */
.audience-section {
    background-image:
        linear-gradient(rgba(18, 24, 38, 0.95), rgba(18, 24, 38, 0.97)),
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.audience-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: background var(--transition-speed);
}

.audience-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   Compliance Impact
   ========================================================================== */
.impact-gradient-bg {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    position: relative;
}

.impact-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

/* ==========================================================================
   Form Section
   ========================================================================== */
.form-card {
    border-radius: 20px;
}

.form-control {
    border-color: #e2e8f0;
    box-shadow: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 108, 230, 0.15);
}

.form-floating>label {
    padding-left: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.pulse-btn {
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 191, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
    }
}

/* Fade In Up effect for elements */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (min-width: 992px) {
    .pb-lg-6 {
        padding-bottom: 5rem !important;
    }
}

.credentials-bar span {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Dark Form Section
   ========================================================================== */
.dark-form-section {
    background: url(../images/future-proof-bg.webp) no-repeat top center #040e24;
    background-size: cover;
    position: relative;
    overflow: hidden;
}


.form-dark-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.form-dark-input {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    color: white !important;
    padding: 10px 0 !important;
    font-size: 0.85rem !important;
    box-shadow: none !important;
}

.form-dark-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-dark-input:focus {
    border-bottom-color: #4b7bec !important;
}

.btn-dark-form {
    background-color: #4471e8;
    border-color: #4471e8;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-dark-form:hover {
    background-color: #3b60cd;
    border-color: #3b60cd;
    color: white;
}

/* Dark Form Validation Overrides */
.was-validated .form-control.form-dark-input:invalid,
.form-control.form-dark-input.is-invalid {
    border-bottom-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0px center !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

.was-validated .form-control.form-dark-input:valid,
.form-control.form-dark-input.is-valid {
    border-bottom-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0px center !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}