@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;900&display=swap');

/* Base styles - these are the default styles without any accessibility changes */
body {
    font-family: 'Heebo', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
}

/* Header and Hero Section */
.gradient-bg {
    background: linear-gradient(90deg, #1a56db 0%, #0e2954 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI3MjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3OS4xMDMlIiB5MT0iMjEuNTI5JSIgeDI9IjM1LjEyNSUiIHkyPSI4NC4wOTclIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNGMjhDQyIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzNCRjhFNyIgc3RvcC1vcGFjaXR5PSIuMjciIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0wIDUyNC44UzM0OCA1NzcuOTUgNzAxLjcyNCA0ODcuODQ3YzM1My43MjUtOTAuMTA0IDcwNy43NTUtNDQuNDg4IDcwNy43NTUtNDQuNDg4VjBIMHY1MjQuOHoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbC1vcGFjaXR5PSIuMiIvPjwvc3ZnPg==');
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 60%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTc2IiBoZWlnaHQ9IjQzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI5Ny4wMjIgNDI2LjY0N0M0NjAuNDUyIDQyNi42NDcgNTc2IDMzMS42MTggNTc2IDE3MS43MTcgNTc2IDExLjgxNyA0NDAuNjE1LTQ2LjgzMyAyNzcuMTg1LTQ2LjgzM2MtMTYzLjQzIDAtMzIxLjYxMSAxMjkuNzQtMjQ3LjM5OSAyNTMuNjQ1IDc0LjIxMyAxMjMuOTA0IDkyLjAwNiAyMTkuODM1IDI2Ny4yMzYgMjE5LjgzNXoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjA4Ii8+PC9zdmc+');
    background-repeat: no-repeat;
    background-position: right bottom;
    z-index: 0;
}

/* Logo Styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card:nth-child(1):hover {
    border-bottom-color: #3B82F6;
}

.service-card:nth-child(2):hover {
    border-bottom-color: #EF4444;
}

.service-card:nth-child(3):hover {
    border-bottom-color: #10B981;
}

.service-card:nth-child(4):hover {
    border-bottom-color: #8B5CF6;
}

.service-card:nth-child(5):hover {
    border-bottom-color: #F59E0B;
}

.service-card:nth-child(6):hover {
    border-bottom-color: #6366F1;
}

/* Icons and Containers */
.icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

/* Animation Effects */
.pulse-border {
    position: relative;
}

.pulse-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: rgba(79, 70, 229, 0.1);
    line-height: 1;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Form Styles */
.custom-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.custom-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-blob {
        width: 100%;
        opacity: 0.5;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card::before {
        font-size: 60px;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
}

/* Form validation styles */
.form-error {
    border-color: #EF4444 !important;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message styles */
.success-message {
    background-color: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Styles */
:root {
    --focus-outline: 3px solid #4F46E5;
    --focus-outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: #4F46E5;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gradient-bg {
        background: #1E40AF;
    }
    
    .text-white {
        color: white;
    }
    
    .text-indigo-600 {
        color: #4F46E5;
    }
}

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

/* Accessibility Toolbar */
.accessibility-toolbar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.accessibility-toolbar-button {
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.accessibility-toolbar-button:hover {
    background: #4338CA;
    transform: scale(1.1);
}

.accessibility-panel {
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 250px;
    display: none;
}

.accessibility-panel.active {
    display: block;
}

.accessibility-control {
    margin-bottom: 15px;
}

.accessibility-control label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.accessibility-control button {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessibility-control button:hover {
    background: #e5e7eb;
}

.accessibility-control button.active {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* Font size controls */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-size-controls button:hover {
    background: #e5e7eb;
}

/* Font size classes */
.font-size-base {
    font-size: 16px !important;
}

.font-size-increase-1 {
    font-size: 18px !important;
}

.font-size-increase-2 {
    font-size: 20px !important;
}

.font-size-increase-3 {
    font-size: 22px !important;
}

.font-size-decrease-1 {
    font-size: 14px !important;
}

.font-size-decrease-2 {
    font-size: 12px !important;
}

/* Apply font size to all text elements */
.font-size-base *,
.font-size-increase-1 *,
.font-size-increase-2 *,
.font-size-increase-3 *,
.font-size-decrease-1 *,
.font-size-decrease-2 * {
    font-size: inherit !important;
}

/* Color scheme classes - these only apply when explicitly added */
.color-scheme-default {
    --text-color: #1f2937;
    --bg-color: #f8fafc;
    --link-color: #4F46E5;
    --heading-color: #1f2937;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --button-bg: #4F46E5;
    --button-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
    --input-text: #1f2937;
    --nav-bg: #1a56db;
    --nav-text: #ffffff;
    --footer-bg: #1f2937;
    --footer-text: #ffffff;
    --footer-heading: #ffffff;
    --gradient-start: #1a56db;
    --gradient-end: #0e2954;
    --icon-color: #4F46E5;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.color-scheme-high-contrast {
    --text-color: #000000;
    --bg-color: #ffffff;
    --link-color: #0000ff;
    --heading-color: #000000;
    --card-bg: #ffffff;
    --card-border: #000000;
    --button-bg: #000000;
    --button-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #000000;
    --input-text: #000000;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --footer-heading: #ffffff;
    --gradient-start: #000000;
    --gradient-end: #000000;
    --icon-color: #000000;
    --border-color: #000000;
    --hover-bg: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

.color-scheme-dark {
    --text-color: #ffffff;
    --bg-color: #1f2937;
    --link-color: #818cf8;
    --heading-color: #ffffff;
    --card-bg: #374151;
    --card-border: #4B5563;
    --button-bg: #818cf8;
    --button-text: #ffffff;
    --input-bg: #374151;
    --input-border: #4B5563;
    --input-text: #ffffff;
    --nav-bg: #111827;
    --nav-text: #ffffff;
    --footer-bg: #111827;
    --footer-text: #ffffff;
    --footer-heading: #ffffff;
    --gradient-start: #111827;
    --gradient-end: #1f2937;
    --icon-color: #818cf8;
    --border-color: #4B5563;
    --hover-bg: #4B5563;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Apply color scheme variables only when a color scheme class is present */
.color-scheme-default body,
.color-scheme-high-contrast body,
.color-scheme-dark body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

.color-scheme-default a,
.color-scheme-high-contrast a,
.color-scheme-dark a {
    color: var(--link-color);
}

.color-scheme-default h1,
.color-scheme-default h2,
.color-scheme-default h3,
.color-scheme-default h4,
.color-scheme-default h5,
.color-scheme-default h6,
.color-scheme-high-contrast h1,
.color-scheme-high-contrast h2,
.color-scheme-high-contrast h3,
.color-scheme-high-contrast h4,
.color-scheme-high-contrast h5,
.color-scheme-high-contrast h6,
.color-scheme-dark h1,
.color-scheme-dark h2,
.color-scheme-dark h3,
.color-scheme-dark h4,
.color-scheme-dark h5,
.color-scheme-dark h6 {
    color: var(--heading-color);
}

.color-scheme-default .card,
.color-scheme-default .service-card,
.color-scheme-default .testimonial-card,
.color-scheme-high-contrast .card,
.color-scheme-high-contrast .service-card,
.color-scheme-high-contrast .testimonial-card,
.color-scheme-dark .card,
.color-scheme-dark .service-card,
.color-scheme-dark .testimonial-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

.color-scheme-default button,
.color-scheme-default .btn,
.color-scheme-high-contrast button,
.color-scheme-high-contrast .btn,
.color-scheme-dark button,
.color-scheme-dark .btn {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.color-scheme-default input,
.color-scheme-default textarea,
.color-scheme-default select,
.color-scheme-high-contrast input,
.color-scheme-high-contrast textarea,
.color-scheme-high-contrast select,
.color-scheme-dark input,
.color-scheme-dark textarea,
.color-scheme-dark select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.color-scheme-default .gradient-bg,
.color-scheme-high-contrast .gradient-bg,
.color-scheme-dark .gradient-bg {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.color-scheme-default nav,
.color-scheme-high-contrast nav,
.color-scheme-dark nav {
    background-color: var(--nav-bg);
    color: var(--nav-text);
}

.color-scheme-default nav a,
.color-scheme-high-contrast nav a,
.color-scheme-dark nav a {
    color: var(--nav-text);
}

.color-scheme-default footer,
.color-scheme-high-contrast footer,
.color-scheme-dark footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.color-scheme-default footer h1,
.color-scheme-default footer h2,
.color-scheme-default footer h3,
.color-scheme-default footer h4,
.color-scheme-default footer h5,
.color-scheme-default footer h6,
.color-scheme-high-contrast footer h1,
.color-scheme-high-contrast footer h2,
.color-scheme-high-contrast footer h3,
.color-scheme-high-contrast footer h4,
.color-scheme-high-contrast footer h5,
.color-scheme-high-contrast footer h6,
.color-scheme-dark footer h1,
.color-scheme-dark footer h2,
.color-scheme-dark footer h3,
.color-scheme-dark footer h4,
.color-scheme-dark footer h5,
.color-scheme-dark footer h6 {
    color: var(--footer-heading);
}

.color-scheme-default i,
.color-scheme-default .icon,
.color-scheme-high-contrast i,
.color-scheme-high-contrast .icon,
.color-scheme-dark i,
.color-scheme-dark .icon {
    color: var(--icon-color);
}

.color-scheme-default .border,
.color-scheme-high-contrast .border,
.color-scheme-dark .border {
    border-color: var(--border-color);
}

.color-scheme-default .hover\:bg-gray-100:hover,
.color-scheme-high-contrast .hover\:bg-gray-100:hover,
.color-scheme-dark .hover\:bg-gray-100:hover {
    background-color: var(--hover-bg) !important;
}

.color-scheme-default .shadow,
.color-scheme-high-contrast .shadow,
.color-scheme-dark .shadow {
    box-shadow: 0 1px 3px 0 var(--shadow-color), 0 1px 2px 0 var(--shadow-color);
}
