/* Base Variables with WCAG 2.2 Compliant Colors */
:root {
    --primary: #330055;
    /* Darker purple for better contrast */
    --primary-light: #e6d9f2;
    /* Light purple background */
    --secondary: #2b6d7a;
    /* Darker teal for better contrast */
    --success: #2d8a3e;
    /* Darker green for better contrast */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    /* Darker text color for better contrast */
    --code-bg: #1a1a2e;
    /* Darker code background */
    --code-header: #282840;
    /* Darker code header */
    --code-text: #e6e6fa;
    /* Lighter code text for contrast */

    /* WCAG 2.2 Focus Indicator Colors with 4.5:1 contrast */
    --focus-primary: #0052cc;
    /* Blue with 4.62:1 contrast against white */
    --focus-secondary: #ffffff;
    /* White for offset */
    --focus-dark: #001a4d;
    /* Very dark blue with 7.3:1 contrast against white */
}

/* Main Styles */
.hero-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Content Styles */
.hero-content h1 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    color: var(--dark-gray);
}

/* WCAG 2.2 Compliant Button Styles with 4.5:1 Focus Contrast */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    position: relative;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #29004d;
    border-color: #29004d;
}

/* Primary Button Focus - 4.5:1 contrast ratio requirement met */
.btn-primary:focus {
    outline: none;
    /* Dual-ring focus indicator for maximum visibility */
    box-shadow:
        0 0 0 2px var(--focus-secondary),
        /* White offset ring */
        0 0 0 5px var(--focus-dark),
        /* Dark blue ring (5px thick) - 7.3:1 contrast */
        0 0 0 7px rgba(0, 26, 77, 0.2);
    /* Subtle glow */
    /* Background doesn't change to maintain button recognition */
    background-color: var(--primary);
    border-color: var(--focus-dark);
}

.btn-outline-secondary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Outline Button Focus - 4.5:1 contrast ratio requirement met */
.btn-outline-secondary:focus {
    outline: none;
    box-shadow:
        0 0 0 2px var(--focus-secondary),
        0 0 0 5px var(--focus-dark),
        0 0 0 7px rgba(0, 26, 77, 0.2);
    background-color: transparent;
    color: var(--primary);
    border-color: var(--focus-dark);
}

/* Service Features */
.feature-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

.feature-content h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--dark-gray);
}

/* Right Column - Visual Elements */
.visual-container {
    position: relative;
    padding: 1rem;
    height: 100%;
    min-height: 600px;
}

/* Background Decoration */
.bg-decoration {
    position: absolute;
    width: 450px;
    height: 450px;
    background-color: rgba(51, 0, 85, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Accessibility Cards */
.accessibility-cards {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    margin: 0 auto;
}

.a11y-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

/* Checklist Card */
.checklist-card .card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--light-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: var(--dark-gray);
}

.checklist-card .card-body {
    padding: 15px;
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-gray);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.in-progress {
    color: var(--secondary);
}

/* Code Card */
.code-card {
    background: var(--code-bg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--code-header);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.code-header span {
    color: #a599e9;
    font-size: 14px;
}

.code-body {
    padding: 15px;
}

.code-body pre {
    margin: 0;
    color: var(--code-text);
    font-size: 13px;
    line-height: 1.5;
}

/* WCAG Card */
.wcag-card {
    padding: 15px;
}

.wcag-content {
    display: flex;
    align-items: center;
}

.wcag-badge {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wcag-info {
    flex: 1;
}

.wcag-info h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.wcag-info p {
    margin: 0;
    font-size: 14px;
    color: var(--dark-gray);
}

.compliance-meter {
    margin-top: 10px;
    width: 100%;
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.percentage {
    font-weight: bold;
    color: var(--primary);
}

.meter-bar {
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background-color: var(--primary);
}

/* WCAG 2.2 Compliant Focus Styles for All Interactive Elements */
/* Universal focus styles with 4.5:1 contrast against white background */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: none;
    box-shadow:
        0 0 0 2px var(--focus-secondary),
        0 0 0 5px var(--focus-dark),
        /* 7.3:1 contrast against white */
        0 0 0 7px rgba(0, 26, 77, 0.2);
}

/* Special handling for elements on dark backgrounds */
.code-card a:focus,
.code-card button:focus,
.code-card input:focus {
    box-shadow:
        0 0 0 2px var(--code-bg),
        /* Dark background color as offset */
        0 0 0 5px #66b3ff,
        /* Light blue with high contrast against dark */
        0 0 0 7px rgba(102, 179, 255, 0.3);
}

/* Links within text content */
.hero-content a:focus,
.checklist-card a:focus,
.wcag-card a:focus {
    box-shadow:
        0 0 0 2px var(--white),
        0 0 0 5px var(--focus-dark),
        0 0 0 7px rgba(0, 26, 77, 0.2);
}

/* Ensure all interactive elements meet size requirements */
.btn-primary:focus,
.btn-outline-secondary:focus {
    /* 5px thick focus ring exceeds WCAG 2.2 minimum requirement of 2px */
    /* Focus indicator contrast of 7.3:1 exceeds 4.5:1 requirement */
    /* Meets both SC 2.4.11 Focus Appearance and SC 1.4.11 Non-text Contrast */
}

/* Responsive Styles */
@media (max-width: 991px) {
    .visual-container {
        min-height: auto;
        padding-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-feature {
        flex-direction: column;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}


/* Services Section Styles */
.services-section {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
    /* Add scroll margin to account for fixed header */
    scroll-margin-top: 120px;
}

.separator {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(65, 9, 107, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(65, 9, 107, 0.15);
}

.service-card:hover::before,
.service-card:focus-within::before {
    opacity: 1;
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
    transform: scale(1.1);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.service-link span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover,
.service-link:focus {
    color: var(--secondary-color);
    background-color: rgba(102, 163, 175, 0.1);
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 4px;
}

.service-link:hover span,
.service-link:focus span {
    transform: translateX(5px);
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.service-link:hover::after,
.service-link:focus::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover,
.cta-button:focus {
    color: var(--white);
    box-shadow: 0 5px 15px rgba(65, 9, 107, 0.3);
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    background-color: var(--secondary-color);
}

.cta-button:hover::before,
.cta-button:focus::before {
    left: 0;
}

/* Ensuring focus visibility for accessibility */
.service-card:focus-within {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Section heading focus styles */
#services-heading:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
    /* Ensure sufficient padding for focus visibility */
    padding: 0.5rem;
    margin: -0.5rem;
    /* Add scroll margin to heading itself */
    scroll-margin-top: 120px;
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.col-md-6:nth-child(1) .service-card {
    animation-delay: 0.1s;
}

.col-md-6:nth-child(2) .service-card {
    animation-delay: 0.2s;
}

.col-md-6:nth-child(3) .service-card {
    animation-delay: 0.3s;
}

.col-md-6:nth-child(4) .service-card {
    animation-delay: 0.4s;
}

.col-md-6:nth-child(5) .service-card {
    animation-delay: 0.5s;
}

.col-md-6:nth-child(6) .service-card {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .service-card {
        margin-bottom: 1rem;
    }

    .col-md-6:nth-child(n) .service-card {
        animation-delay: 0.1s;
    }
}

/* CSS for premium styling with sophisticated animations  */

/* Base Variables */
:root {
    --primary-color: #41096b;
    --primary-light: rgba(65, 9, 107, 0.1);
    --primary-dark: #330756;
    --secondary-color: #66a3af;
    --secondary-light: rgba(102, 163, 175, 0.15);
    --secondary-dark: #4a7680;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --black: #000000;
    --gray-light: #e9ecef;
    --gray-medium: #ced4da;
    --gray-dark: #343a40;
    --box-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 15px 45px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition-standard: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Section Styling */
.about-section {
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--primary-light) 100%);
    opacity: 0.5;
    z-index: 0;
}

/* Premium Header Styling */
.decorative-element {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    opacity: 0.1;
}

.separator-premium {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    position: relative;
    margin-bottom: 1.5rem;
}

.lead-premium {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Box Styling */
.content-box {
    background-color: var(--white);
    box-shadow: var(--box-shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
    height: 100%;
    z-index: 1;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-strong);
}

.accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.accent-secondary {
    background-color: var(--secondary-color);
}

.rich-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

/* Principles Section */
.principles-intro {
    max-width: 700px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gray-dark);
}

.principle-card {
    transition: transform var(--transition-standard);
}

.principle-card:hover {
    transform: translateY(-8px);
}

.card-inner {
    background-color: var(--white);
    box-shadow: var(--box-shadow-soft);
    position: relative;
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
    transition: box-shadow var(--transition-standard);
}

.principle-card:hover .card-inner {
    box-shadow: var(--box-shadow-strong);
}

.principle-card:nth-child(2) .card-inner {
    border-top-color: var(--secondary-color);
}

.principle-card:nth-child(3) .card-inner {
    border-top-color: var(--primary-color);
}

/* Icon Styling */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    transition: transform var(--transition-smooth),
        background-color var(--transition-standard);
}

.principle-card:nth-child(2) .icon-wrapper {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
}

.principle-card:hover .icon-wrapper {
    transform: rotateY(180deg);
}

.principle-card:hover:nth-child(odd) .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
}

.principle-card:hover:nth-child(even) .icon-wrapper {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Divider and Quote Styling */
.principle-divider {
    height: 1px;
    width: 80px;
    background-color: var(--gray-medium);
    margin: 1.5rem 0;
    transition: width var(--transition-standard);
}

.principle-card:hover .principle-divider {
    width: 100%;
}

.principle-quote {
    color: var(--gray-dark);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Vision Statement Styling */
.vision-premium {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, var(--secondary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-strong);
}

.vision-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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");
    opacity: 0.15;
}

.vision-statement {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.highlight {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-section header {
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.about-content-left {
    opacity: 0;
    animation: fadeInLeft 0.8s var(--transition-smooth) forwards;
    animation-delay: 0.2s;
}

.about-content-right {
    opacity: 0;
    animation: fadeInRight 0.8s var(--transition-smooth) forwards;
    animation-delay: 0.3s;
}

.principle-card {
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s + 0.4s);
}

.principle-card:nth-child(1) {
    --card-index: 1;
}

.principle-card:nth-child(2) {
    --card-index: 2;
}

.principle-card:nth-child(3) {
    --card-index: 3;
}

.vision-premium {
    opacity: 0;
    animation: scaleIn 1s var(--transition-smooth) forwards;
    animation-delay: 0.8s;
}

/* Accessibility focus styles - WCAG 2.2 Compliant */
/* Focus indicator must be at least 2px thick and high contrast */
.card-inner:focus,
.content-box:focus,
.principle-card:focus,
.vision-premium:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    /* Ensure minimum focus area is 24x24px as per WCAG 2.2 */
}

/* Enhanced focus visibility */
.card-inner:focus-visible,
.content-box:focus-visible,
.principle-card:focus-visible,
.vision-premium:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px var(--white), 0 0 0 4px var(--secondary-color);
}

/* Ensure minimum target size of 24x24px for interactive elements */
.card-inner,
.content-box,
.principle-card,
.vision-premium {
    min-height: 24px;
    min-width: 24px;
}

/* Respect user's preference for reduced motion - WCAG 2.2 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .about-section header,
    .about-content-left,
    .about-content-right,
    .principle-card,
    .vision-premium {
        animation: none !important;
        opacity: 1 !important;
    }

    .card-inner:hover,
    .content-box:hover,
    .principle-card:hover,
    .principle-card:hover .icon-wrapper,
    .principle-card:hover .principle-divider {
        transition: none !important;
        transform: none !important;
    }

    /* Remove all parallax and motion effects */
    .vision-mask {
        transform: none !important;
    }
}

/* Enhanced contrast for better visibility - WCAG 2.2 AA */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2d0545;
        --secondary-color: #4a7680;
        --gray-dark: #212529;
    }

    .card-inner,
    .content-box,
    .principle-card {
        border: 2px solid var(--gray-dark);
    }

    .highlight::after {
        background-color: var(--white);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .content-box {
        margin-bottom: 2rem;
    }

    .vision-statement {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .vision-statement {
        font-size: 1.2rem;
    }

    .rich-text p {
        font-size: 0.95rem;
    }

    .principle-card {
        margin-bottom: 1.5rem;
    }
}


/* Value Card Animations */
.value-card {
    background-color: var(--white);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover,
.value-card:focus {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Icon Container Animation */
.icon-container {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.value-card:hover .icon-container,
.value-card:focus .icon-container {
    transform: scale(1.1);
}

/* SVG Icon Animation */
.icon-container svg {
    transition: transform 0.5s ease;
}

.value-card:hover .icon-container svg,
.value-card:focus .icon-container svg {
    transform: scale(1.2);
}

/* Values Statement Animation */
.values-statement {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.values-statement:hover,
.values-statement:focus-within {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.values-statement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.8s ease;
}

.values-statement:hover::after,
.values-statement:focus-within::after {
    width: 100%;
}

/* Ensure animations don't trigger vestibular disorders */
@media (prefers-reduced-motion: reduce) {

    .value-card,
    .value-card:hover,
    .value-card:focus,
    .icon-container,
    .icon-container svg,
    .values-statement,
    .values-statement::after {
        transition: none;
        transform: none;
        animation: none;
    }
}

/* Enhance focus indicators for accessibility */
.value-card:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Ensure appropriate color contrast */
.value-card h3,
.values-statement h3 {
    color: var(--primary-color);
}

/* Make sure text remains readable */
.value-card p,
.values-statement p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .col-md-6 {
        margin-bottom: 1.5rem;
    }
}


:root {
    --primary-color: #41096b;
    --secondary-color: #66a3af;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-dark: #343a40;
    --focus-color: #005fcc;
    --error-color: #dc3545;
    --success-color: #198754;
}

/* Respect user's motion preferences - WCAG 2.2 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* When animations are paused */
.animations-paused *,
.animations-paused *::before,
.animations-paused *::after {
    animation-play-state: paused !important;
    transition-duration: 0ms !important;
}

.stats-section {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(102, 163, 175, 0.03) 0%, rgba(65, 9, 107, 0.03) 100%);
    transform: rotate(-3deg);
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

/* Enhanced focus management - WCAG 2.2 */
.stat-card:focus,
.stat-card:focus-within {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    border-radius: 12px;
}

.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover .card,
.stat-card:focus .card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--secondary-color);
}

.stat-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(65, 9, 107, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon,
.stat-card:focus .stat-icon {
    background-color: rgba(65, 9, 107, 0.2);
    transform: scale(1.1);
}

.stat-value,
.stat-fraction {
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
}

.stat-symbol {
    color: var(--secondary-color);
    font-weight: 700;
}

.stat-label {
    color: var(--gray-dark);
    font-weight: 600;
    line-height: 1.3;
}

/* Motion controls styling */
.motion-controls {
    margin-bottom: 2rem;
}

.motion-controls button {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.motion-controls button:hover,
.motion-controls button:focus {
    background: var(--secondary-color);
    color: var(--white);
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

.motion-controls button[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* CTA Card styling */
.cta-card .card {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(65, 9, 107, 0.9) 100%);
}

.cta-card .btn:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

/* Improved color contrast for WCAG 2.2 AA */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.text-muted {
    color: #6c757d !important;
    /* Ensuring 4.5:1 contrast ratio */
}

/* Enhanced responsive design */
@media (max-width: 992px) {

    .stat-value,
    .stat-fraction {
        font-size: 2.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1.5rem;
    }

    .stat-value,
    .stat-fraction {
        font-size: 2rem;
    }

    .motion-controls {
        text-align: left;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card .card {
        border: 3px solid var(--black);
    }

    .stat-icon {
        border: 2px solid var(--black);
    }
}

/* Screen reader only content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* CSS Variables - WCAG 2.2 Compliant Colors */
:root {
    --primary-color: #2d0845;
    /* Darkened for AA contrast */
    --primary-light: rgba(45, 8, 69, 0.1);
    --primary-ultra-light: rgba(45, 8, 69, 0.03);
    --primary-dark: #1f0630;
    --secondary-color: #2c5a63;
    /* Darkened for AA contrast */
    --secondary-light: rgba(44, 90, 99, 0.2);
    --secondary-ultra-light: rgba(44, 90, 99, 0.05);
    --secondary-dark: #1e3d43;
    /* Further darkened */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #dee2e6;
    --gray-medium: #495057;
    /* Darkened for AA contrast */
    --gray-dark: #212529;
    /* Darkened for AAA contrast */
    --success: #146c43;
    /* Darkened for AA contrast */
    --danger: #b02a37;
    /* Darkened for AA contrast */
    --focus-ring: rgba(44, 90, 99, 0.5);
    --text-muted: #6c757d;
}

/* WCAG 2.2 Focus Management */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus for mouse users, keep for keyboard users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --gray-dark: #000000;
        --focus-ring: rgba(0, 0, 0, 0.8);
    }

    .form-control {
        border-width: 2px;
    }

    .premium-btn {
        border: 2px solid #000000;
    }
}

/* Base Section Styles */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    padding: 80px 0;
    overflow: hidden;
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-ultra-light) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-ultra-light) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
}

/* Section Header */
.section-header {
    position: relative;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
}

.section-subtitle::before {
    left: -30px;
}

.section-subtitle::after {
    right: -30px;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.title-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.title-separator span {
    display: block;
    height: 5px;
    border-radius: 3px;
    background-color: var(--secondary-color);
}

.title-separator span:nth-child(1) {
    width: 15px;
}

.title-separator span:nth-child(2) {
    width: 30px;
}

.title-separator span:nth-child(3) {
    width: 15px;
}

/* Contact Panels */
.contact-info-panel,
.contact-form-panel {
    position: relative;
    height: 100%;
}

.inner-wrapper {
    padding: 50px 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-info-panel .inner-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form-panel .inner-wrapper {
    background-color: var(--white);
    margin-left: -20px;
    z-index: 1;
}

/* Info Panel Styles */
.brand-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.accent-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
}

.info-content {
    position: relative;
    z-index: 1;
}

.welcome-message {
    margin-bottom: 40px;
}

.welcome-message h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.welcome-message p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.animate-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.animate-list-item:hover {
    transform: translateX(5px);
}

.icon-wrapper {
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
}

.icon-circle svg {
    width: 18px;
    height: 18px;
}

.premium-list .content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.premium-list .content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--white);
}

.cta-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-prompt p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--white);
}

.arrow-animation {
    position: relative;
    color: var(--white);
}

@keyframes bounceRight {

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

    50% {
        transform: translateX(10px);
    }
}

.arrow-animation {
    animation: bounceRight 2s infinite ease-in-out;
}

/* Form Panel Styles */
.premium-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Fieldset and Legend */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Form Labels - WCAG 2.2 Compliant Static Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.3;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Form Controls - No Floating Labels */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-dark);
    background-color: var(--white);
    background-clip: padding-box;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--gray-dark);
    background-color: var(--white);
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--gray-light);
    opacity: 1;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    box-shadow: 0 0 0 3px var(--focus-ring);
    border-color: var(--secondary-color);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: none;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(176, 42, 55, 0.3);
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(20, 108, 67, 0.3);
}

/* Form Text and Feedback */
.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger);
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* Required Field Indicators */
.field-required {
    color: var(--danger);
    font-weight: 700;
    margin-left: 3px;
}

.optional-indicator {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9em;
}

.required-fields-note {
    font-size: 0.875rem;
    color: var(--gray-dark);
    font-weight: 600;
    margin-top: 15px;
}

.required-fields-note .field-required {
    color: var(--danger);
}

/* Submit Button */
.form-action {
    text-align: right;
    margin-top: 30px;
    margin-bottom: 20px;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 48px;
    /* WCAG touch target size */
    min-width: 44px;
}

.premium-btn:hover:not(:disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 8, 69, 0.3);
}

.premium-btn:active {
    transform: translateY(0);
}

.premium-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: inline-block;
    margin-right: 10px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.premium-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(3px);
}

/* Status Messages */
#form-status .success-message {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 10px;
    background-color: rgba(20, 108, 67, 0.1);
    border: 2px solid var(--success);
    color: var(--gray-dark);
}

#form-status .error-message {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 10px;
    background-color: rgba(176, 42, 55, 0.1);
    border: 2px solid var(--danger);
    color: var(--gray-dark);
}

.status-icon {
    margin-right: 12px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.status-text h5 {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 1rem;
}

.status-text p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .inner-wrapper {
        padding: 40px 30px;
    }

    .welcome-message h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 991.98px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-form-panel .inner-wrapper {
        margin-left: 0;
        margin-top: 30px;
    }

    .form-action {
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .decorative-circle {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 50px 0;
    }

    .inner-wrapper {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .welcome-message h3 {
        font-size: 1.5rem;
    }

    .premium-btn {
        width: 100%;
        padding: 16px 25px;
    }

    .form-floating>.form-control {
        height: calc(3.2rem + 2px);
    }
}

@media (max-width: 575.98px) {
    .contact-section {
        padding: 40px 0;
    }

    .inner-wrapper {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        display: none;
    }

    .welcome-message h3 {
        font-size: 1.3rem;
    }

    .benefits-list h4 {
        font-size: 1.1rem;
    }

    .premium-list .content h5 {
        font-size: 1rem;
    }

    .premium-list .content p {
        font-size: 0.9rem;
    }

    .animate-list-item {
        margin-bottom: 20px;
    }

    .icon-circle {
        width: 30px;
        height: 30px;
    }

    .icon-circle svg {
        width: 14px;
        height: 14px;
    }

    .form-control {
        height: auto;
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    .premium-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }

    .cta-prompt p {
        font-size: 1rem;
    }
}