/* Beautiful CSS for Computer Accessibility Website */

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 6px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Main content wrapper */
#content-wrapper {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Container styles */
.container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Modern Navigation Styles */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 0 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Scroll fade overlays for nav (left/right) */

.nav-container::before,
.nav-container::after {
    content: '';
    position: absolute;
    /* limit the overlay to the nav container's own height instead of full-page */
    top: 0;
    height: 100%;
    bottom: auto;
    width: 56px;
    pointer-events: none;
    z-index: 1100;
    opacity: 0;
    transition: opacity 220ms ease;
}

.nav-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(53,122,189,0.98) 0%, rgba(53,122,189,0.75) 20%, rgba(53,122,189,0.0) 100%);
}

.nav-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(53,122,189,0.98) 0%, rgba(53,122,189,0.75) 20%, rgba(53,122,189,0.0) 100%);
}

/* Toggle fades via JS by adding these classes on the container */
.nav-container.show-left-fade::before { opacity: 1; }
.nav-container.show-right-fade::after { opacity: 1; }

/* Vertical scroll fades for the mobile/vertical nav menu */
.nav-menu::before,
.nav-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 48px;
    pointer-events: none;
    z-index: 1110;
    opacity: 0;
    transition: opacity 220ms ease;
}

.nav-menu::before {
    top: 0;
    background: linear-gradient(180deg, rgba(53,122,189,0.98) 0%, rgba(53,122,189,0.75) 30%, rgba(53,122,189,0.0) 100%);
}

.nav-menu::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(53,122,189,0.98) 0%, rgba(53,122,189,0.75) 30%, rgba(53,122,189,0.0) 100%);
}

.nav-menu.show-top-fade::before { opacity: 1; }
.nav-menu.show-bottom-fade::after { opacity: 1; }

.nav-brand {
    flex-shrink: 0;
}

.nav-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Keep all items on a single row to avoid two-line navs */
    flex-wrap: nowrap;
    /* When there are more items than fit, allow horizontal scrolling (touch friendly) */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Slightly reduce gap so more items fit */
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* keep each item on a single line and avoid wide padding so many fit in one row */
    flex: 0 0 auto;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
    min-width: 56px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.8);
}

.nav-item:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: -3px;
}

.nav-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-weight: 600;
    letter-spacing: 0.3px;
    /* Prevent long labels from overflowing the nav; truncate with ellipsis */
    display: inline-block;
    max-width: 7ch; /* condense label text to save horizontal space */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Show full label on hover/focus for accessibility */
.nav-item:focus .nav-text,
.nav-item:hover .nav-text {
    max-width: 18ch;
}

.nav-link {
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger {
    width: 2rem;
    height: 0.25rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: 0.25rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
}

.hamburger::before {
    transform: translateY(-0.5rem);
}

.hamburger::after {
    transform: translateY(0.5rem);
}

.nav-toggle[aria-expanded="true"] .hamburger {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(90deg) translate(-0.5rem);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(90deg) translate(0.5rem);
}

/* Tab content styles */
.tab-content {
    display: none;
    font-size: 16px;
    padding: 40px;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    min-height: calc(100vh - 80px);
}

.tab-content.active {
    display: block;
}

/* Ensure home tab content is visible by default */
#home.tab-content {
    display: block;
    visibility: visible;
    opacity: 1;
}

.importance-section {
    visibility: visible;
    opacity: 1;
    display: block;
}

/* Hero section - Reduced size */
.hero-section {
    position: relative;
    height: 50vh;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.img-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7) contrast(1.2);
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(3rem, 8vw, 6rem);
    text-align: center;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    margin: 0;
    z-index: 2;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
    animation: titleGlow 3s ease-in-out infinite alternate;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Modern Hero Section - Enhanced Design */
.modern-hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.7) 0%, rgba(224,231,255,0.7) 40%, rgba(252,231,243,0.6) 100%), linear-gradient(120deg, #e0e7ff 0%, #fce7f3 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2) saturate(1.1);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem 1rem;
    min-height: 220px;
    height: 38vh;
}

.hero-text {
    color: white;
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.title-line {
    display: block;
    animation: slideInUp 1s ease-out;
    position: relative;
}

.title-line.highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #66bb6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
}

.title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #66bb6a 100%);
    border-radius: 2px;
    animation: expandWidth 1.2s ease-out 1s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    animation: slideInUp 1s ease-out 0.9s both;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #66bb6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInUp 1s ease-out 1.2s both;
    position: relative;
}

.floating-cards {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.floating-card.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95) 0%, rgba(255, 167, 38, 0.95) 100%);
    color: white;
}

.floating-card.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2.5s;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.95) 0%, rgba(33, 150, 243, 0.95) 100%);
    color: white;
}

.floating-card.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 5s;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.95) 0%, rgba(233, 30, 99, 0.95) 100%);
    color: white;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    line-height: 1.3;
}

/* Enhanced floating animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg); 
    }
}

/* Add decorative elements */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

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

/* Animation classes for modern design */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

.tool-card,
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.tool-card.animate-in,
.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.floating-card {
    opacity: 0;
    animation: float 6s ease-in-out infinite, fadeIn 1s ease-out forwards;
}

.floating-card.animate-in {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for cards */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Modern Tools Section */
.modern-tools-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon .icon {
    font-size: 1.8rem;
    color: white;
}

.tool-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.tool-info p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.tool-content {
    margin-bottom: 2rem;
}

.modern-checker-form {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.modern-checker-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.modern-checker-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modern-checker-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.modern-checker-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modern-error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 1rem;
}

.modern-success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-top: 1rem;
}

.modern-results-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* AI Tool Specific Styles */
.ai-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 1.2rem;
    color: white;
}

.message-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.quick-action {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.quick-action:hover {
    border-color: #4a90e2;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.modern-btn.primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.modern-btn.secondary {
    background: white;
    color: #4a90e2;
    border-color: #4a90e2;
}

.modern-btn.secondary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

/* Modern Features Section */
.modern-features-section {
    padding: 4rem 0;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon .icon {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Modern CTA Section */
.modern-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0 0 3rem 0;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 222, 128, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive Design for Modern Home */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding: 0 2rem;
    }
    
    .modern-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-cards {
        width: 320px;
        height: 320px;
    }
    
    .floating-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .modern-hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1.5rem;
        gap: 3rem;
    }
    
    .modern-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .floating-cards {
        width: 280px;
        height: 280px;
    }
    
    .floating-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 1.8rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .tools-container,
    .features-container,
    .cta-container {
        padding: 0 1rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .floating-cards {
        display: none;
    }
}

/* Quote section styles */
.quote-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    position: relative;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.quote .quote-mark-start {
    position: absolute;
    top: -30px;
    left: 40px;
    font-size: 8rem;
    color: #4a90e2;
    opacity: 0.15;
    font-family: serif;
    font-weight: bold;
    animation: quoteFloat 4s ease-in-out infinite;
    z-index: 1;
}

.quote .quote-mark-end {
    position: absolute;
    bottom: -50px;
    right: 40px;
    font-size: 8rem;
    color: #4a90e2;
    opacity: 0.15;
    font-family: serif;
    font-weight: bold;
    animation: quoteFloat 4s ease-in-out infinite reverse;
    z-index: 1;
}

.quote::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a90e2, #357abd, #4a90e2);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quote:hover::after {
    opacity: 0.3;
}

.quote:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.quote p {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-style: italic;
    margin: 0 0 30px 0;
    line-height: 1.5;
    color: #2c3e50;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quote cite {
    font-size: 1.3rem;
    color: #4a90e2;
    font-style: normal;
    font-weight: 700;
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Box container styles */
.box-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 40px !important;
    margin: 60px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.box {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
    color: white !important;
    padding: 40px 30px !important;
    border-radius: 20px !important;
    text-align: center !important;
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.box:hover::before {
    left: 100%;
}

.box:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 144, 226, 0.4);
}

.box img {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.box:hover img {
    transform: scale(1.1) rotate(5deg);
}

.box h3 {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Styled paragraph styles */
.styled-paragraph {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px 40px;
    margin: 35px 0;
    border-left: 8px solid #4a90e2;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.styled-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    transition: width 0.3s ease;
}

.styled-paragraph:hover::before {
    width: 8px;
}

.styled-paragraph:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.styled-paragraph strong {
    color: #4a90e2;
    font-weight: 700;
}

/* About section styles */
.about-me-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    align-items: start;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.about-me-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

.profile-picture-container {
    text-align: center;
}

.profile-picture {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #4a90e2;
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture:hover::before {
    opacity: 1;
}

.profile-picture:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
}

.about-me-title {
    color: #4a90e2;
    margin-bottom: 25px;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-me-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #495057;
    font-size: 1.1rem;
}

/* Blog styles */
.blog-intro {
    text-align: center;
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-post:hover::before {
    transform: scaleX(1);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 30px;
}

.blog-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-image {
    transform: scale(1.05);
}

.blog-link h2 {
    color: #4a90e2;
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-link p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    font-weight: 600;
}

/* AI section styles */
.my-ai-card {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.my-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

.bigblue {
    color: #4a90e2;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.my-ai-separator {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    margin: 40px 0;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.my-ai-quote {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    border-left: 6px solid #4a90e2;
    position: relative;
}

.my-ai-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #4a90e2;
    opacity: 0.2;
    font-family: serif;
}

.ai-benefits {
    margin: 50px 0;
}

.ai-benefits h2 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ai-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.ai-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ai-item:hover::before {
    transform: scaleX(1);
}

.ai-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-item h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.ai-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Accessibility features styles */
.features-intro {
    text-align: center;
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.accessibility-button {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 25px 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.accessibility-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.accessibility-button:hover::before {
    left: 100%;
}

.accessibility-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #3a7bc8 0%, #2d5a9e 100%);
}

.accessibility-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.button-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.accessibility-info {
    margin-top: 50px;
}

.accessibility-info h2 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #4a90e2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(53, 122, 189, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* News section styles */
.news-section {
    margin-bottom: 50px;
}

.news-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #4a90e2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(53, 122, 189, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-item h2 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.news-item time {
    color: #666;
    font-size: 1rem;
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.news-item p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.resources-section h2 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.resource-link {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-link:hover::before {
    transform: scaleX(1);
}

.resource-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
}

.resource-link h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.resource-link p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

.footer-content p {
    margin: 8px 0;
    color: #bdc3c7;
    font-size: 1rem;
}

/* Accessibility widget styles */
.accessibility-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    transform: none !important;
}

/* Ensure widget stays in position even with grayscale */
.grayscale .accessibility-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    transform: none !important;
}

/* Ensure widget stays in position with any accessibility mode */
.high-contrast .accessibility-widget,
.invert-colors .accessibility-widget,
.brightness .accessibility-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    transform: none !important;
}

/* Accessibility widget button styles */
#acc-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer !important;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    pointer-events: auto !important;
    z-index: 10003 !important;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#acc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #3a7bc8, #2d5a9e);
}

#acc-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

#acc-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.widget-icon {
    font-size: 1.5rem;
    display: inline-block;
}

.widget-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.acc-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 15px;
    min-width: 280px;
    display: none;
    z-index: 10002;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 80vh;
    overflow-y: auto;
}

.acc-menu.show {
    display: block;
}

.acc-section {
    margin-bottom: 20px;
}

.acc-section:last-child {
    margin-bottom: 0;
}

.acc-section h4 {
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.acc-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    position: relative;
}

.acc-menu button:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #4a90e2;
    transform: translateX(5px);
}

.acc-menu button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.acc-menu button.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.acc-menu button.active:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.acc-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}

.acc-text {
    flex: 1;
    font-size: 0.95rem;
}

.acc-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
    transition: all 0.3s ease;
}

.acc-menu button.active .acc-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.font-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.font-btn {
    flex: 1;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

.font-btn .acc-icon {
    margin-right: 0 !important;
    font-weight: bold;
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4) !important;
}

/* Accessibility notification */
.accessibility-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1001;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    word-wrap: break-word;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility mode styles */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast a {
    color: #ffff00 !important;
}

.high-contrast .accessibility-widget {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast .acc-menu {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast .acc-menu button {
    color: #fff !important;
}

.high-contrast .acc-menu button:hover {
    background: #333 !important;
    color: #ffff00 !important;
}

.grayscale {
    filter: grayscale(100%) !important;
}

.grayscale * {
    filter: grayscale(100%) !important;
}

/* Ensure grayscale doesn't affect layout */
.grayscale img,
.grayscale video,
.grayscale canvas {
    filter: grayscale(100%) !important;
}

/* Font size adjustments */
body.font-size-12 { font-size: 12px !important; }
body.font-size-14 { font-size: 14px !important; }
body.font-size-16 { font-size: 16px !important; }
body.font-size-18 { font-size: 18px !important; }
body.font-size-20 { font-size: 20px !important; }
body.font-size-22 { font-size: 22px !important; }
body.font-size-24 { font-size: 24px !important; }

/* Scale all text elements proportionally */
.font-size-12 * { font-size: 0.75em !important; }
.font-size-14 * { font-size: 0.875em !important; }
.font-size-16 * { font-size: 1em !important; }
.font-size-18 * { font-size: 1.125em !important; }
.font-size-20 * { font-size: 1.25em !important; }
.font-size-22 * { font-size: 1.375em !important; }
.font-size-24 * { font-size: 1.5em !important; }

/* Preserve specific font sizes for headings and important elements */
.font-size-12 h1, .font-size-14 h1, .font-size-16 h1, .font-size-18 h1, .font-size-20 h1, .font-size-22 h1, .font-size-24 h1 { font-size: 2.5rem !important; }
.font-size-12 h2, .font-size-14 h2, .font-size-16 h2, .font-size-18 h2, .font-size-20 h2, .font-size-22 h2, .font-size-24 h2 { font-size: 2rem !important; }
.font-size-12 h3, .font-size-14 h3, .font-size-16 h3, .font-size-18 h3, .font-size-20 h3, .font-size-22 h3, .font-size-24 h3 { font-size: 1.5rem !important; }

.colorblind-mode {
    filter: contrast(1.2) saturate(0.8);
}

.magnified {
    transform: scale(1.1);
    transform-origin: top left;
}

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

.simplified-layout {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.reading-line {
    background: linear-gradient(transparent 0%, transparent 49%, #4a90e2 50%, transparent 51%, transparent 100%);
    background-size: 100% 2em;
}

/* Typography */
.big {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #4a90e2;
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bigwhite {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #4a90e2;
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 2px 2px 30px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

/* Responsive design */
@media screen and (max-width: 1024px) {
    #content-wrapper {
        margin: 10px;
    }
    
    .tab-content {
        padding: 30px;
    }
    
    .about-me-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 0 2rem 0;
        gap: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        font-size: 1rem;
    }
    
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }
    
    .nav-item.active {
        background: rgba(255, 255, 255, 0.25);
        border-left: 4px solid white;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .container {
        margin: 10px;
    }
    
    .title {
        font-size: clamp(3rem, 8vw, 6rem);
    }
    
    .big {
        font-size: 2rem;
    }
    
    .box-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .button-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .accessibility-widget {
        bottom: 20px;
        right: 20px;
    }
    
    #acc-btn {
        padding: 12px 16px;
    }
    
    .widget-text {
        display: none;
    }
    
    .my-ai-card {
        padding: 30px 20px;
    }
    
    .bigblue {
        font-size: 2.5rem;
    }
    
    .quote-section {
        padding: 60px 20px;
    }
    
    .quote {
        padding: 40px 30px;
    }
    
    .quote p {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .quote .quote-mark-start,
    .quote .quote-mark-end {
        font-size: 5rem;
    }
    
    /* Lessons grid responsive */
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        min-width: 250px;
        padding: 30px 20px;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lesson-btn {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-item {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .img-container {
        height: 60vh;
    }
    
    .quote-section {
        padding: 40px 15px;
    }
    
    .quote {
        padding: 30px 20px;
    }
    
    .quote p {
        font-size: 1.2rem;
    }
    
    .styled-paragraph {
        padding: 25px;
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .box {
        padding: 25px 20px;
    }
    
    .about-me-container {
        padding: 25px;
    }
    
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    /* Lessons grid responsive */
    .category-btn {
        min-width: 200px;
        padding: 25px 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .lessons-title {
        font-size: 2rem;
    }
    
    .lesson-btn {
        padding: 20px;
    }
    
    .lesson-btn h3 {
        font-size: 1.2rem;
    }
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .accessibility-widget,
    .tabs {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    #content-wrapper {
        margin: 0;
        box-shadow: none;
    }
}

/* AI section enhanced styles */
.ai-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tech-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.tech-item h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.tech-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tech-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.app-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.app-icon {
    font-size: 2.5rem;
}

.app-card h3 {
    color: #4a90e2;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.app-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.app-features li {
    color: #4a90e2;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.app-features li:last-child {
    border-bottom: none;
}

.future-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.future-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.future-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.future-item:hover::before {
    transform: scaleX(1);
}

.future-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.future-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.future-item h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.future-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Enhanced accessibility features */
.invert-colors {
    filter: invert(100%) !important;
}

.invert-colors * {
    filter: invert(100%) !important;
}

.brightness {
    filter: brightness(1.5) !important;
}

.brightness * {
    filter: brightness(1.5) !important;
}

.readable-fonts {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

.readable-fonts * {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

.highlight-links a {
    background: #ffff00 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.big-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%234a90e2" stroke="%23fff" stroke-width="2"/></svg>') 16 16, auto !important;
}

.big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%234a90e2" stroke="%23fff" stroke-width="2"/></svg>') 16 16, auto !important;
}

.focus-indicator *:focus {
    outline: 4px solid #4a90e2 !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

.tooltips *:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
}

.hide-images img,
.hide-images video,
.hide-images canvas {
    display: none !important;
}

.pause-animations * {
    animation: none !important;
    transition: none !important;
}

/* Text to speech button styling */
.text-to-speech-active {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

/* Responsive design for existing elements */
@media screen and (max-width: 768px) {
    .tech-grid,
    .applications-grid,
    .future-content,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-item,
    .app-card,
    .future-item,
    .stat-item {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tech-icon,
    .future-icon,
    .app-icon {
        font-size: 2rem;
    }
}

/* Lessons Section Styles */
.lessons-intro {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
}

.category-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-btn:hover::before,
.category-btn.active::before {
    transform: scaleX(1);
}

.category-btn:hover,
.category-btn.active {
    border-color: #4a90e2;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4a90e2;
    display: block;
}

.category-desc {
    font-size: 1rem;
    color: #666;
    display: block;
}

.lessons-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.lessons-container.active {
    display: block;
}

.lessons-title {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.lesson-btn {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    cursor: pointer;
    text-align: left;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.lesson-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lesson-btn:hover::before {
    transform: scaleX(1);
}

.lesson-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
}

.lesson-number {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.lesson-btn h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.lesson-btn p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Lesson Full Page Styles */
.lesson-full-page {
    width: calc(100vw - 160px);
    max-width: none;
    margin: 0 80px;
    padding: 40px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.lesson-full-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(1);
    transition: transform 0.3s ease;
    z-index: 1;
}

.lesson-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #4a90e2;
    margin-bottom: 20px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lesson-header h1 {
    color: #4a90e2;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: center;
}

.back-to-lessons {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.back-to-lessons:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.back-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.back-text {
    font-size: 0.9rem;
}

.lesson-content {
    max-width: calc(900px - 160px);
    margin: 0 auto;
    padding: 40px 50px;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lesson-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4a90e2, #357abd, #4a90e2);
    border-radius: 20px 20px 0 0;
}

.lesson-section {
    margin-bottom: 50px;
    position: relative;
}

.lesson-content h2 {
    color: #4a90e2;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    text-align: center;
    letter-spacing: -0.5px;
}

.lesson-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.lesson-content h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 35px 0 20px 0;
    padding-left: 20px;
    border-left: 4px solid #4a90e2;
    position: relative;
}

.lesson-content p {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    position: relative;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.lesson-content p:hover {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: #4a90e2;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.lesson-content p strong {
    color: #2c5aa0;
    font-weight: 700;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.lesson-content input[type="text"],
.lesson-content input[type="color"],
.lesson-content select {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    margin: 5px;
}

.lesson-content input[type="text"]:focus,
.lesson-content input[type="color"]:focus,
.lesson-content select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.lesson-content button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    margin: 5px;
}

.lesson-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd, #2c5aa0);
}

.lesson-content a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.lesson-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transition: width 0.3s ease;
}

.lesson-content a:hover::after {
    width: 100%;
}

.lesson-content a:hover {
    color: #2c5aa0;
}

.lesson-content kbd {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lesson-content code {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.lesson-content .highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #4a90e2;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    position: relative;
    overflow: hidden;
}

.lesson-content .highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), transparent);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.lesson-content .highlight-box h4 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.lesson-content .example-list {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 4px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.lesson-content .example-list ul {
    margin: 0;
    padding-left: 25px;
}

.lesson-content .example-list li {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
}

.lesson-content .example-list li::before {
    content: '→';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

.lesson-content blockquote {
    border-left: 5px solid #4a90e2;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 15px 15px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lesson-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: #4a90e2;
    opacity: 0.3;
    font-family: serif;
}

/* Enhanced lesson content animations */
.lesson-content {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-content h2 {
    animation: fadeInDown 1s ease-out 0.2s both;
}

.lesson-content p {
    animation: fadeInUp 0.8s ease-out both;
}

.lesson-content p:nth-child(1) { animation-delay: 0.3s; }
.lesson-content p:nth-child(2) { animation-delay: 0.4s; }
.lesson-content p:nth-child(3) { animation-delay: 0.5s; }
.lesson-content p:nth-child(4) { animation-delay: 0.6s; }
.lesson-content p:nth-child(5) { animation-delay: 0.7s; }
.lesson-content p:nth-child(6) { animation-delay: 0.8s; }
.lesson-content p:nth-child(7) { animation-delay: 0.9s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced lesson content spacing and visual hierarchy */
.lesson-content {
    margin-top: 20px;
    margin-bottom: 40px;
}

.lesson-content p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c5aa0;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 5px solid #4a90e2;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.lesson-content p:first-of-type strong {
    color: #1a365d;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Enhanced interactive elements */
.lesson-content input[type="text"]:hover,
.lesson-content input[type="color"]:hover,
.lesson-content select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.lesson-content button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Enhanced lesson content background pattern */
.lesson-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(100px, -100px);
    pointer-events: none;
}

/* Enhanced lesson content responsive design */
@media screen and (max-width: 768px) {
    .lesson-content {
        padding: 25px;
        margin: 15px;
    }
    
    .lesson-content h2 {
        font-size: 2rem;
        text-align: left;
    }
    
    .lesson-content h2::after {
        left: 0;
        transform: none;
    }
    
    .lesson-content p {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .lesson-content p:first-of-type {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .lesson-content input[type="text"],
    .lesson-content input[type="color"],
    .lesson-content select,
    .lesson-content button {
        width: 100%;
        margin: 5px 0;
    }
}

@media screen and (max-width: 480px) {
    .lesson-content {
        padding: 20px;
        margin: 10px;
    }
    
    .lesson-content h2 {
        font-size: 1.8rem;
    }
    
    .lesson-content h3 {
        font-size: 1.5rem;
        padding-left: 15px;
    }
    
    .lesson-content p {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    .lesson-content p:first-of-type {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Quiz toggle button styling */
.quiz-toggle-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    max-width: 120px;
}

.quiz-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.quiz-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.quiz-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.quiz-text {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive design for quiz toggle button */
@media screen and (max-width: 768px) {
    .lesson-full-page {
        width: calc(100vw - 80px);
        margin: 0 40px;
    }
    
    .lesson-content {
        max-width: calc(100% - 80px);
        padding: 25px 30px;
        margin: 15px;
    }
    
    .quiz-toggle-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px auto;
        display: inline-flex;
        max-width: 100px;
        padding: 6px 12px;
    }
    
    .quiz-text {
        font-size: 0.75rem;
    }
    
    .lesson-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px;
    }
    
    .lesson-header h1 {
        order: 1;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    
    .quiz-toggle-btn {
        order: 2;
    }
    
    .back-to-lessons {
        order: 3;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .lesson-full-page {
        width: calc(100vw - 40px);
        margin: 0 20px;
    }
    
    .lesson-content {
        max-width: calc(100% - 40px);
        padding: 20px 25px;
        margin: 10px 5px;
    }
    
    .quiz-toggle-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
        max-width: 90px;
    }
    
    .quiz-icon {
        font-size: 0.9rem;
    }
    
    .quiz-text {
        font-size: 0.7rem;
    }
    
    .lesson-header {
        padding: 15px;
    }
    
    .lesson-header h1 {
        font-size: 1.8rem;
    }
}

/* How We Help Page Styles */
.help-hero {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="help-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23help-grain)"/></svg>');
    opacity: 0.3;
}

.help-hero-content {
    position: relative;
    z-index: 2;
}

.help-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.help-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.help-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    line-height: 1.4;
}

/* Mission Section Styles */
.mission-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 60px;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.mission-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #4a90e2;
}

.mission-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.principle-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.principle-card:hover::before {
    transform: scaleX(1);
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.principle-card h3 {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.principle-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Services Section Styles */
.help-services {
    padding: 80px 40px;
    background: white;
}

.services-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a90e2;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.service-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: #4a90e2;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: center;
}

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

.service-features li {
    color: #4a90e2;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Impact Section Styles */
.impact-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="impact-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23impact-grain)"/></svg>');
    opacity: 0.3;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.impact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.impact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}

.impact-label {
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Call to Action Section Styles */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd, #2c5aa0);
}

.cta-button.secondary {
    background: white;
    color: #4a90e2;
    border: 3px solid #4a90e2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #4a90e2;
    color: white;
}

.cta-icon {
    font-size: 1.3rem;
}

/* Responsive Design for How We Help Page */
@media screen and (max-width: 768px) {
    .help-hero {
        padding: 60px 20px;
    }
    
    .help-title {
        font-size: 2.5rem;
    }
    
    .help-subtitle {
        font-size: 1.2rem;
    }
    
    .help-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-section,
    .help-services,
    .impact-section,
    .cta-section {
        padding: 60px 20px;
    }
    
    .mission-title,
    .services-title,
    .impact-title,
    .cta-title {
        font-size: 2.5rem;
    }
    
    .mission-principles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .help-hero {
        padding: 40px 15px;
    }
    
    .help-title {
        font-size: 2rem;
    }
    
    .help-subtitle {
        font-size: 1rem;
    }
    
    .mission-section,
    .help-services,
    .impact-section,
    .cta-section {
        padding: 40px 15px;
    }
    
    .mission-title,
    .services-title,
    .impact-title,
    .cta-title {
        font-size: 2rem;
    }
    
    .mission-text {
        font-size: 1.1rem;
        padding: 25px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .principle-card,
    .service-card,
    .impact-card {
        padding: 25px 20px;
    }
    
    .stat-number,
    .impact-number {
        font-size: 2.5rem;
    }
    
    .service-icon,
    .principle-icon {
        font-size: 2.5rem;
    }
}

/* Chatbot Styles */
.chatbot-container {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 25px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.chatbot-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.chatbot-header h3, .chatbot-header p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.chatbot-header h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chatbot-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.chat-messages {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease-out;
}

.message:last-child {
    margin-bottom: 0;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}

.bot-message.error .message-content {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-content p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 5px;
}

.chat-input-container {
    position: relative;
    z-index: 2;
}

.input-wrapper {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    font-family: inherit;
}

#chat-input::placeholder {
    color: #999;
}

.send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

/* When showing progress text, make button wider */
.send-button:has(.loading-text) {
    width: auto;
    min-width: 50px;
    border-radius: 25px;
    padding: 0 20px;
    gap: 8px;
}

.loading-text {
    font-size: 14px;
    white-space: nowrap;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

.input-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.clear-chat-btn,
.example-questions-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.clear-chat-btn:hover,
.example-questions-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.example-questions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.example-questions h4 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.question-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.question-chip {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-chip:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Chat History Styles */
.chat-history-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chat-history-header h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-history-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-history-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.chat-history-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.history-list {
    margin-bottom: 15px;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

.history-item:hover {
    background-color: #f8f9fa;
}

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

.history-item .history-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.history-item .history-timestamp {
    font-size: 0.8rem;
    color: #666;
}

.history-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.export-history-btn,
.clear-history-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.export-history-btn:hover,
.clear-history-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.clear-history-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.clear-history-btn:hover {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .chatbot-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .chatbot-header h3 {
        font-size: 2rem;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .question-chips {
        flex-direction: column;
        align-items: center;
    }
    
    .question-chip {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .chatbot-container {
        padding: 15px;
    }
    
    .chatbot-header h3 {
        font-size: 1.8rem;
    }
    
    .chat-messages {
        height: 250px;
        padding: 15px;
    }
    
    .message-content {
        max-width: 95%;
        padding: 12px 16px;
    }
    
    .input-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .clear-chat-btn,
    .example-questions-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Accessibility Enhancements */
.chat-messages:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

#chat-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.send-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.question-chip:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
.high-contrast .chatbot-container {
    background: #000;
    border: 2px solid #fff;
}

.high-contrast .message-content {
    border: 2px solid #000;
}

.high-contrast .bot-message .message-content {
    background: #fff;
    color: #000;
}

.high-contrast .user-message .message-content {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .message {
        animation: none;
    }
    
    .send-button:hover {
        transform: none;
    }
    
    .question-chip:hover {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Chat Page Styles */
.chat-page {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.chat-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chat-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chat-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Modern Chatbot Styles */
.modern-chatbot-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.modern-chatbot {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.modern-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    position: relative;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.avatar-icon {
    font-size: 1.5rem;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-indicator.online {
    background: #4ade80;
}

.header-text {
    flex: 1;
}

.modern-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.modern-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1rem;
}

.modern-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 2rem;
    background: #f8fafc;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid #e0f2fe;
}

.welcome-content h4 {
    color: #1e40af;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.welcome-content p {
    color: #64748b;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #475569;
}

.quick-action-btn:hover {
    border-color: #4a90e2;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.quick-icon {
    font-size: 1.2rem;
}

.modern-input {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.modern-wrapper {
    margin-bottom: 1rem;
}

.input-field-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    min-height: 100px;
    min-width: 500px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input-field-container:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modern-textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    font-family: inherit;
    min-height: 60px;
    max-height: 200px;
    padding: 12px 20px;
    width: 100%;
    min-width: 400px;
    box-sizing: border-box;
}

.modern-textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.modern-textarea:focus {
    outline: none;
    background: #f8fafc;
}

.modern-textarea:focus::placeholder {
    color: #cbd5e1;
}

.modern-send {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.modern-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.modern-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.char-counter {
    font-weight: 600;
}

.input-tips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modern-history {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
}

.modern-toggle {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-toggle:hover {
    background: rgba(74, 144, 226, 0.2);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.modern-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.modern-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.modern-btn:hover {
    border-color: #4a90e2;
    background: #f0f9ff;
    color: #4a90e2;
}

.btn-icon {
    font-size: 1rem;
}

.back-to-site {
    margin-top: 60px;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.back-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.back-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.back-icon {
    font-size: 1.2rem;
}

.back-text {
    font-size: 1.1rem;
}

/* Responsive Design for Chat Page */
@media screen and (max-width: 768px) {
    .chat-page {
        padding: 20px;
    }
    
    .chat-title {
        font-size: 2.5rem;
    }
    
    .chat-subtitle {
        font-size: 1.1rem;
    }
    
    .back-content h2 {
        font-size: 1.8rem;
    }
    
    .input-field-container {
        padding: 1rem;
        min-height: 80px;
        min-width: 300px;
        max-width: 100%;
    }
    
    .modern-textarea {
        min-height: 50px;
        max-height: 150px;
        padding: 8px 12px;
        min-width: 250px;
    }
    
    .modern-send {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .chat-page {
        padding: 15px;
    }
    
    .chat-title {
        font-size: 2rem;
    }
    
    .chat-subtitle {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .input-field-container {
        padding: 0.75rem;
        min-height: 70px;
        border-radius: 12px;
        min-width: 250px;
        max-width: 100%;
    }
    
    .modern-textarea {
        min-height: 45px;
        max-height: 120px;
        padding: 6px 10px;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .modern-send {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
    
    .input-footer {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Chat Tab Button */
.chat-tab {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chat-tab:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.chat-tab:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: -3px;
}

.chat-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.chat-tab:hover::before {
    left: 100%;
}

/* Responsive Design for Chat Tab */
@media screen and (max-width: 768px) {
    .chat-tab {
        font-size: 14px;
        padding: 15px 10px;
    }
}

@media screen and (max-width: 480px) {
    .chat-tab {
        font-size: 12px;
        padding: 12px 8px;
    }
}

/* Accessibility Score Page Styles */
.score-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.score-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.score-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.score-form input[type="url"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.score-form input[type="url"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.score-form button {
    background: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    min-width: 200px;
}

.score-form button:hover {
    background: #0056b3;
}

.score-form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Enhanced Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-header h2 {
    margin: 0;
    color: #333;
    font-size: 2rem;
}

.export-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.export-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pdf-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.json-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.json-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

/* Detailed Score Breakdown */
.detailed-score-breakdown {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detailed-score-breakdown h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.score-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.score-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.score-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4a90e2;
}

.score-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 15px;
    text-align: center;
}

.category-details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.detail-item {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #4a90e2;
}

/* Accessibility Metrics */
.accessibility-metrics {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accessibility-metrics h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4a90e2;
}

.metric-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    color: white;
}

.metric-content {
    flex: 1;
}

.metric-content h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.metric-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 8px;
}

.metric-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Results Section */
.results-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.score-display {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#score-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.recommendation-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recommendation-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recommendation-card details {
    margin-top: 1rem;
}

.recommendation-card summary {
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
    padding: 0.5rem 0;
}

.recommendation-card summary:hover {
    text-decoration: underline;
}

.help-link {
    text-align: center;
    padding: 1rem;
    background: #e7f3ff;
    border-radius: 5px;
    border: 1px solid #b3d9ff;
}

.help-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.help-link a:hover {
    text-decoration: underline;
}

/* Help Page Styles */
.help-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.help-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.help-content h1 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.help-content h2 {
    color: #007bff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.help-content h3 {
    color: #495057;
    margin: 1.5rem 0 1rem 0;
}

.help-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.help-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.help-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.help-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.help-content a {
    color: #007bff;
    text-decoration: none;
}

.help-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .score-section,
    .help-section {
        padding: 1rem;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    #score-value {
        font-size: 2rem;
    }
    
    .help-content {
        padding: 1rem;
    }
    
    .standards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .priority-issues-grid {
        grid-template-columns: 1fr;
    }
    
    .issue-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wcag-standards-section {
        padding: 1rem;
    }
    
    /* Enhanced responsive styles for new components */
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .export-actions {
        justify-content: center;
    }
    
    .score-categories,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-icon {
        margin-bottom: 10px;
    }
    
    .detailed-score-breakdown,
    .accessibility-metrics {
        padding: 20px;
        margin: 20px 0;
    }
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

/* WCAG Standards Section */
.wcag-standards-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wcag-standards-section h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
}

.standards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.compliant-standards h4,
.non-compliant-standards h4 {
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.standard-item {
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 4px solid;
    background: white;
}

.standard-item.compliant {
    border-left-color: #28a745;
    background: #d4edda;
}

.standard-item.non-compliant {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.standard-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.standard-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.no-standards {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Priority Issues Section */
.priority-issues-section {
    margin: 2rem 0;
}

.priority-issues-section h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
}

.priority-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.priority-issue-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.issue-header h4 {
    color: #495057;
    margin: 0;
}

.wcag-criterion {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.issue-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.issue-metrics {
    display: flex;
    gap: 1rem;
}

.issue-metrics span {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.impact.high {
    background: #dc3545;
    color: white;
}

.impact.medium {
    background: #ffc107;
    color: #212529;
}

.impact.low {
    background: #28a745;
    color: white;
}

.effort.low {
    background: #28a745;
    color: white;
}

.effort.medium {
    background: #ffc107;
    color: #212529;
}

.effort.high {
    background: #dc3545;
    color: white;
}

.no-issues {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
}

.score-label {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
}

/* New scoring elements */
.score-explanation {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-breakdown {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.score-breakdown h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.breakdown-label {
    font-weight: 500;
    color: #555;
}

.breakdown-value {
    font-weight: 600;
    color: #4a90e2;
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.compliance-level {
    margin-top: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.next-steps {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* Enhanced priority issue cards */
.affected-elements {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.fix-example {
    margin-top: 8px;
    font-size: 0.9rem;
}

.fix-example code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    border: 1px solid #dee2e6;
}

.estimated-time {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
}

.severity {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity.critical {
    background: #dc3545;
    color: white;
}

.severity.high {
    background: #fd7e14;
    color: white;
}

.severity.medium {
    background: #ffc107;
    color: #212529;
}

.severity.low {
    background: #28a745;
    color: white;
}

/* Code Examples Section */
.code-examples-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.code-examples-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 3px solid #4a90e2;
    padding-bottom: 10px;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Code Examples Cards */
.code-example-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.example-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.wcag-criterion {
    background: #4a90e2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.severity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.severity.critical {
    background: #dc3545;
}

.severity.high {
    background: #fd7e14;
}

.severity.moderate {
    background: #ffc107;
    color: #212529;
}

.severity.low {
    background: #28a745;
}

.example-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Code Comparison */
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.bad-code, .good-code, .before-code, .after-code {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid;
}

.bad-code, .before-code {
    border-color: #dc3545;
    background: #fff5f5;
}

.good-code, .after-code {
    border-color: #28a745;
    background: #f0fff4;
}

.bad-code label, .before-code label {
    color: #dc3545;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.good-code label, .after-code label {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.code-comparison pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.code-comparison code {
    background: none;
    color: inherit;
    padding: 0;
}

.explanation {
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

/* Implementation Steps */
.implementation-steps, .testing-methods, .common-mistakes, .best-practices {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.implementation-steps h5, .testing-methods h5, .common-mistakes h5, .best-practices h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.implementation-steps ol, .testing-methods ul, .common-mistakes ul, .best-practices ul {
    margin: 0;
    padding-left: 20px;
}

.implementation-steps li, .testing-methods li, .common-mistakes li, .best-practices li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Technical Info */
.technical-info {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.technical-info p {
    margin: 5px 0;
    color: #1976d2;
    font-weight: 500;
}

/* Fixes Section */
.fixes-section {
    margin-top: 40px;
}

.fixes-section h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

.fix-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.fix-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.fix-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.priority.critical {
    background: #dc3545;
}

.priority.high {
    background: #fd7e14;
}

.priority.medium {
    background: #ffc107;
    color: #212529;
}

.priority.low {
    background: #28a745;
}

.fix-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.estimated-time, .difficulty {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Code Fixes */
.code-fixes, .css-fixes, .js-fixes {
    margin: 20px 0;
}

.code-fixes h6, .css-fixes h6, .js-fixes h6 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.code-fix-item, .css-fix-item, .js-fix-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #4a90e2;
}

.code-fix-item h7, .css-fix-item h7, .js-fix-item h7 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.notes {
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Testing Checklist */
.testing-checklist {
    margin-top: 40px;
}

.testing-checklist h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

.checklist-category {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.checklist-category h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
}

.checklist-category ul {
    margin: 0;
    padding-left: 20px;
}

.checklist-category li {
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
    padding: 5px 0;
}

/* Resources Section */
.resources-section {
    margin-top: 40px;
}

.resources-section h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

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

.resources-list li {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resources-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.resources-list a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.resources-list a:hover {
    color: #357abd;
    text-decoration: underline;
}

.resource-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Button Styles */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .code-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .example-header, .fix-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fix-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .code-examples-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .code-example-card, .fix-card, .checklist-category, .resources-list li {
        padding: 20px;
    }
}

/* Grain overlay for hero section to match quote-section */
.grain-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ===== UNIFIED DESIGN SYSTEM ===== */

/* Unified Button System */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

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

.btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Unified Form System */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Unified Card System */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card.card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card.card-secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Unified Typography System */
.text-primary {
    color: #667eea;
}

.text-secondary {
    color: #764ba2;
}

.text-muted {
    color: #6c757d;
}

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

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

.text-right {
    text-align: right;
}

/* Unified Spacing System */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Unified Color System */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Unified Animation System */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* Accessibility Enhancements */
.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;
}

.focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn::before,
    .animate-fade-in,
    .animate-slide-in,
    .animate-pulse {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Fundamental.bg-inspired layout and UX */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}
.nav-elevated {
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.10);
    background: transparent;
}
.fundamental-hero {
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 3.5rem 0 2.5rem 0;
}
.fundamental-hero-bg {
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.8) 0%, rgba(224,231,255,0.7) 40%, rgba(252,231,243,0.5) 100%), linear-gradient(120deg, #e0e7ff 0%, #fce7f3 100%);
    border-radius: 32px;
    overflow: hidden;
    min-height: 320px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.fundamental-hero-img {
    width: 220px;
    height: 90px;
    object-fit: contain;
    opacity: 0.6;
    position: absolute;
    bottom: 16px;
    right: 32px;
    z-index: 2;
    pointer-events: none;
}
.fundamental-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.fundamental-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #222;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.fundamental-subtitle {
    font-size: 1.35rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 0.5rem auto;
    font-weight: 500;
    opacity: 0.96;
}
.section-spacer {
    height: 3.5rem;
}
.fundamental-section {
    padding: 3.5rem 0 2.5rem 0;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.06);
    margin-bottom: 2.5rem;
}
.fundamental-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.fundamental-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.fundamental-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #357abd;
    margin-bottom: 0.5rem;
}
.fundamental-section-subtitle {
    font-size: 1.15rem;
    color: #666;
    font-weight: 500;
}
.fundamental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.fundamental-btn {
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 1.1rem 2.2rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    transition: box-shadow 0.2s, background 0.2s;
}
.fundamental-btn:hover {
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.13);
    background: #e0e7ff;
}
.fundamental-cta {
    background: linear-gradient(120deg, #e0e7ff 0%, #fce7f3 100%);
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.08);
}
.fundamental-cta-content {
    text-align: center;
    padding: 2.5rem 0;
}
.fundamental-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .fundamental-hero, .fundamental-section, .fundamental-cta {
        border-radius: 18px;
        padding: 2rem 0 1.5rem 0;
    }
    .fundamental-container {
        padding: 0 1rem;
    }
    .fundamental-title {
        font-size: 2.2rem;
    }
}
@media (max-width: 600px) {
    .fundamental-hero, .fundamental-section, .fundamental-cta {
        border-radius: 10px;
        padding: 1.2rem 0 0.7rem 0;
    }
    .fundamental-title {
        font-size: 1.4rem;
    }
    .fundamental-section-title {
        font-size: 1.2rem;
    }
    .fundamental-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .fundamental-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Split Hero Section Styles */
.split-hero {
    background: linear-gradient(120deg, #e0e7ff 0%, #fce7f3 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.06);
    margin-bottom: 2.5rem;
    padding: 0;
}
.split-hero-inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 420px;
    align-items: stretch;
    border-radius: 32px;
    overflow: hidden;
    background: none;
}
.split-hero-image {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    min-width: 0;
    min-height: 420px;
}
.split-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.92;
}
.split-hero-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3.5rem 3rem 3.5rem 3rem;
    background: none;
    min-width: 0;
}
.split-hero-content .modern-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.split-hero-content .hero-subtitle {
    font-size: 1.35rem;
    color: #444;
    max-width: 600px;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    opacity: 0.96;
}
@media (max-width: 900px) {
    .split-hero-inner {
        flex-direction: column;
        min-height: 0;
    }
    .split-hero-image, .split-hero-content {
        flex: 1 1 100%;
        min-height: 220px;
        padding: 2rem 1.2rem;
    }
    .split-hero-content {
        align-items: center;
        text-align: center;
        padding: 2rem 1.2rem;
    }
    .split-hero-content .modern-title {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
    .split-hero {
        border-radius: 10px;
    }
    .split-hero-inner {
        border-radius: 10px;
    }
    .split-hero-content .modern-title {
        font-size: 1.2rem;
    }
    .split-hero-content .hero-subtitle {
        font-size: 1rem;
    }
}

/* Cursor ring: light blue translucent dot around cursor */

#cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    /* slightly bigger by default */
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /* removed hard outline border to keep the ring soft and subtle */
    border: none;
    /* light sky-blue fill with a little less transparency */
    background: rgba(135, 206, 250, 0.28); /* skyblue */
    /* soft glow instead of a sharp outline */
    box-shadow: 0 10px 26px rgba(135, 206, 250, 0.22), 0 3px 8px rgba(135,206,250,0.14) inset;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 120ms ease, width 120ms ease, height 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
    pointer-events: none;
    z-index: 100000;
    opacity: 0.98;
}

/* Enlarged ring when over interactive elements */
#cursor-ring.cursor-active {
    transform: translate(-50%, -50%) scale(1.4);
    /* slightly larger when active */
    width: 42px;
    height: 42px;
    background: rgba(135, 206, 250, 0.36);
    box-shadow: 0 18px 44px rgba(135, 206, 250, 0.34), 0 6px 14px rgba(135,206,250,0.18) inset;
}

/* Slightly smaller ring on very small screens to avoid blocking UI */
@media (max-width: 420px) {
    #cursor-ring { width: 18px; height: 18px; }
    #cursor-ring.cursor-active { width: 26px; height: 26px; }
}